-
-
Notifications
You must be signed in to change notification settings - Fork 56.5k
cv2.resize small documentation issue for Python #19569
Copy link
Copy link
Closed
Labels
affected: 3.4category: documentationDocumentation fix or updateDocumentation fix or updatecategory: imgproccategory: python bindings
Milestone
Description
System information
- OpenCV => 4.5.1
- Operating System / Platform => Debian 10
- Python
-->
Detailed description
The documentation of resize states:
dsize output image size; if it equals zero, it is computed as [...]
But actually, in Python, you need dsize=None to reproduce the wanted behaviour.
Steps to reproduce
import numpy as np
img = np.zeros((10,10),dtype=np.uint8)
img = cv2.resize(img, 0, fx=0.25, fy=0.25)
Outputs:
SystemError: new style getargs format but argument is not a tuple
Issue submission checklist
- I report the issue, it's not a question
- I checked the problem with documentation, FAQ, open issues,
forum.opencv.org, Stack Overflow, etc and have not found solution - I updated to latest OpenCV version and the issue is still there
- There is reproducer code and related data files: videos, images, onnx, etc
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
affected: 3.4category: documentationDocumentation fix or updateDocumentation fix or updatecategory: imgproccategory: python bindings