Catalog PyPI
Back to packageRELEASE DETAILS

0.10

PyPI

a-cv2-easy-resize

Different ways of resizing pictures in OpenCV

opencv
Published24 Nov 2022
Direct dependencies2
Transitive dependenciesNot calculated

README

Version 0.10 documentation

Different ways of resizing pictures in OpenCV


pip install a-cv2-easy-resize



from a_cv2_easy_resize import add_easy_resize_to_cv2

from a_cv_imwrite_imread_plus import add_imwrite_plus_imread_plus_to_cv2

add_imwrite_plus_imread_plus_to_cv2()

add_easy_resize_to_cv2()

import cv2

pic = cv2.imread_plus(r"https://raw.githubusercontent.com/hansalemaos/screenshots/main/splitted1.jpeg")

pic1 = cv2.easy_resize_image(

    pic.copy(), width=200, height=None, percent=None, interpolation=cv2.INTER_AREA

)

pic2 = cv2.easy_resize_image(

    pic.copy(), width=None, height=200, percent=None, interpolation=cv2.INTER_AREA

)

pic3 = cv2.easy_resize_image(

    pic.copy(), width=100, height=200, percent=None, interpolation=cv2.INTER_AREA

)

pic4 = cv2.easy_resize_image(

    pic.copy(), width=None, height=None, percent=40, interpolation=cv2.INTER_AREA

)

pic5 = cv2.easy_resize_image(

    pic.copy(), width=None, height=None, percent=None, interpolation=cv2.INTER_AREA

)  # returns original

cv2.imwrite('f:\\papagei\\pic1.png', pic1)

cv2.imwrite('f:\\papagei\\pic2.png', pic2)

cv2.imwrite('f:\\papagei\\pic3.png', pic3)

cv2.imwrite('f:\\papagei\\pic4.png', pic4)

cv2.imwrite('f:\\papagei\\pic5.png', pic5)



Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 2

Native requirements
2 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
numpy
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": "",
  "evaluation": "NOT_EVALUATED"
}
numpyruntime
opencv-python
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": "",
  "evaluation": "NOT_EVALUATED"
}
opencv-pythonruntime

Distribution files

2 collected
a_cv2_easy_resize-0.10-py3-none-any.whl

bdist_wheel · 5.18 KB · Python py3

Source file
a_cv2_easy_resize-0.10.tar.gz

sdist · 3.61 KB · Python source

Source file

Repository

PENDING
hansalemaos/a_cv2_easy_resize

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 18:44 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:55933f4e15154c5975d58896de054843d9052f669aa53573cff2d8ddfe79c2d2

Other collected versions

View all collected versions →