Skip to content

cv2.resize small documentation issue for Python #19569

@decadenza

Description

@decadenza
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

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions