-
-
Notifications
You must be signed in to change notification settings - Fork 56.5k
Closed
Labels
bugcategory: python bindingsconfirmedThere is stable reproducer / investigation completeThere is stable reproducer / investigation complete
Milestone
Description
System information (version)
Example
- OpenCV => 3.4.2 and 4.2
- Operating System / Platform => Windows 64 Bit
- Compiler => python 3.6
Detailed description
I generated the example of the function HoughLinesPointSet in python and there is an issue in the function cv::Mat::copyTo which generates the issue: error: (-215:Assertion failed) channels() == ((((dtype) & ((512 - 1) << 3)) >> 3) + 1)
I think the function copyTo confuses the channels of the points in the numpy types (dtype).
Steps to reproduce
import cv2
import numpy as np
point = np.array([[0.0, 369.0], [10.0, 364.0]], np.float32)
rhoMin = 0.0
rhoMax = 360.0
rhoStep = 1
thetaMin = 0.0
thetaMax = np.pi / 2.0
thetaStep = np.pi / 180.0
lines_max = 2
threshold = 1
lines = cv2.HoughLinesPointSet(point, lines_max, threshold, rhoMin, rhoMax, rhoStep, thetaMin, thetaMax, thetaStep)Issue submission checklist
- I report the issue, it's not a question
- I checked the problem with documentation, FAQ, open issues,
answers.opencv.org, Stack Overflow, etc and have not found solution - I updated to latest OpenCV version and the issue is still there
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugcategory: python bindingsconfirmedThere is stable reproducer / investigation completeThere is stable reproducer / investigation complete