-
-
Notifications
You must be signed in to change notification settings - Fork 56.5k
Closed
Labels
Milestone
Description
System Information
OpenCV version: 4.10.0
Operating System / Platform: Debian 12
Compiler & compiler version: GCC (Debian 12.2.0-14) 12.2.0
// example for python user
OpenCV python version: 4.10.0.84
Operating System / Platform: Debian 12
Python version: 3.12.4
Detailed description
Segmentation fault on specific input image occurred.
Thread 1 "python" received signal SIGSEGV, Segmentation fault. 0x00007fff240dd403 in cv::HoughLinesProbabilistic (image=..., rho=1, theta=0.0174532924, threshold=0, lineLength=187, lineGap=10, lines=std::vector of length 17, capacity 32 = {...}, linesMax=2147483647) at /home/human/PycharmProjects/test/local-control-unit/backend/opencv-python/opencv/modules/imgproc/src/hough.cpp:692 692 if( *mdata )
Steps to reproduce
import cv2
import numpy as np
if __name__ == '__main__':
image_path = 'crash_img_zero.jpg'
zero_img = cv2.cvtColor(cv2.imread(image_path), cv2.COLOR_BGR2GRAY)
lines = cv2.HoughLinesP(
zero_img.astype('uint8'), 1, np.pi / 180,
threshold=0,
minLineLength=zero_img.shape[1] // 3,
maxLineGap=10,
) 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 any solution
- I updated to the 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
