Skip to main content

Split an image into equal parts

import cv2

from a_cv2_split_images_into_equal_parts import add_split_images_to_cv2

add_split_images_to_cv2()

list_pics,list_files=cv2.split_image_into_equal_parts(

    img=r"https://github.com/hansalemaos/screenshots/raw/main/splitted1.jpeg",

    outputfolder="f:\\picsplittedxxx",

    pixel_width=100,

    pixel_height=200,

    colorborder=(255, 0, 0),

    text_color_border1=(0, 150, 0),

    text_color_border2=(200, 0, 0),

    text_height_1=0.4,

    text_height_2=0.4, )



In[3]: list_pics

Out[3]: 

[array([[[145, 170, 144],

         [145, 170, 144],

         [145, 170, 144],

         ...,

         [113, 149, 119],

         [112, 148, 118],

         [114, 150, 120]],

 

        [[145, 170, 144],

         [145, 170, 144],

         [145, 170, 144],

         ...,

         [112, 148, 118],

         [112, 148, 118],

         [113, 149, 119]],

		 ....

list_files

Out[4]: 

['f:\\picsplittedxxx\\splitted\\0x0-100x200.png',

 'f:\\picsplittedxxx\\splitted\\0x200-100x400.png',

 'f:\\picsplittedxxx\\splitted\\0x400-100x750.png',

 'f:\\picsplittedxxx\\splitted\\100x0-200x200.png',

 'f:\\picsplittedxxx\\splitted\\100x200-200x400.png',

 'f:\\picsplittedxxx\\splitted\\100x400-200x750.png',

 'f:\\picsplittedxxx\\splitted\\200x0-300x200.png',

 'f:\\picsplittedxxx\\splitted\\200x200-300x400.png',

 'f:\\picsplittedxxx\\splitted\\200x400-300x750.png',

 ....





import cv2

from a_cv2_split_images_into_equal_parts import add_split_images_to_cv2

add_split_images_to_cv2()

list_pics,list_files=cv2.split_image_into_equal_parts(

    img=r"https://github.com/hansalemaos/screenshots/raw/main/splitted1.jpeg",

    outputfolder=None,

    pixel_width=100,

    pixel_height=200,

    colorborder=(255, 0, 0),

    text_color_border1=(0, 150, 0),

    text_color_border2=(200, 0, 0),

    text_height_1=0.4,

    text_height_2=0.4, )

In[3]: list_pics

Out[3]: 

[array([[[145, 170, 144],

         [145, 170, 144],

         [145, 170, 144],

         ...,

         [113, 149, 119],

         [112, 148, 118],

         [114, 150, 120]],

 

        [[145, 170, 144],

         [145, 170, 144],

         [145, 170, 144],

         ...,

         [112, 148, 118],

         [112, 148, 118],

         [113, 149, 119]],

		 ....

Metadata

Release files for a-cv2-split-images-into-equal-parts 0.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for a-cv2-split-images-into-equal-parts 0.10
File Size Uploaded Provenance Actions
a_cv2_split_images_into_equal_parts-0.10.tar.gz 4.6 kB Without provenance Details for a_cv2_split_images_into_equal_parts-0.10.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for a-cv2-split-images-into-equal-parts 0.10
File Interpreter ABI Platform Actions
a_cv2_split_images_into_equal_parts-0.10-py3-none-any.whl Python 3 none any Details for a_cv2_split_images_into_equal_parts-0.10-py3-none-any.whl

Total release size: 11.0 kB

Release files / a_cv2_split_images_into_equal_parts-0.10.tar.gz

Download URL a_cv2_split_images_into_equal_parts-0.10.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
83c034ae5a4feaeb5ff1b4324aa829b51cf04b94815a95e76311b9e5688b849a
BLAKE2b-256 checksum
How to use checksums
0c6d3098230eb43e893b3ef232742b9c744ee0bb5a004699c71997debdd2b225
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release files / a_cv2_split_images_into_equal_parts-0.10-py3-none-any.whl

Download URL a_cv2_split_images_into_equal_parts-0.10-py3-none-any.whl
Size 6.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c21b4fa31941e600438e13afe8b844c9ea0edcb2eb1e16e7d1b90b759af1d68d
BLAKE2b-256 checksum
How to use checksums
7dc83449aef60652ccc50d3a438aca89f49ca159a90ba392765c6e6d7f3733ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Security for a-cv2-split-images-into-equal-parts 0.10

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.10 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page