opencv_contrib icon indicating copy to clipboard operation
opencv_contrib copied to clipboard

EdgeDrawing segmentation fault

Open cole-dda opened this issue 2 years ago • 1 comments

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

  • [X] I report the issue, it's not a question
  • [X] I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
  • [X] I updated to the latest OpenCV version and the issue is still there
  • [X] There is reproducer code and related data files (videos, images, onnx, etc)

cole-dda avatar Jan 20 '23 14:01 cole-dda

Hey there! I still have exactly the same issue, same code snippet, do you have any fix or idea to solve this?

opencv-contrib-python-4.10.0.82 Operating System / Platform: Ubuntu 22.04 Python Version: 3.10.12

KevinCortacero avatar Jun 06 '24 10:06 KevinCortacero