You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was experiencing with cv2.connectedComponents in python and with the connectivity argument (Wanted to use 4 instead of 8), and I faced a SegFault error when using this function without giving the output labels array as parameter (and letting opencv allocating it for me)
I'm not sure whether it is a bug of opencv or opencv python. So I just opened the issue here.
Hello !
I was experiencing with cv2.connectedComponents in python and with the connectivity argument (Wanted to use 4 instead of 8), and I faced a SegFault error when using this function without giving the output labels array as parameter (and letting opencv allocating it for me)
I'm not sure whether it is a bug of opencv or opencv python. So I just opened the issue here.
Steps to reproduce
Example that yields a SegFault
A solution without SegFault and the good result
This behavior does not seem to happen with connectivity=8
I'm on Ubuntu 20.4 64bits (x86_64)
Using Python 3.8.13
and OpenCv-python 4.5.5.64
The text was updated successfully, but these errors were encountered: