EdgeDrawing segmentation fault
Author: cole-ddaCreated Jan 20, 2023Updated Sep 2, 2026
Labelsbugcategory: ximgproc
System Information
opencv-contrib-python-headless 4.6.0.66 Operating System / Platform: mac 12.6.2 Python Version: 3.9 - 3.11
Detailed description
[1] 45704 segmentation fault
Steps to reproduce
def test(file:str):
import cv2
import numpy as np
img = cv2.imread(file)
img2=cv2.cvtColor(img,cv2.COLOR_BGR2GRAY)
ed = cv2.ximgproc.createEdgeDrawing()
ed.detectEdges(img2)
#when import rich library
#throw segmentation fault
#pip install rich
import rich.console
lines = ed.detectLines()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)
Source: opencv/opencv_contrib