mgonzs13/yolov8_ros

[debug_node-3] AttributeError: module 'cv2' has no attribute 'Mat'

mzahana opened this issue · 3 comments

Hi @mgonzs13
Thanks for the great repo.

I am using your latest main branch inside a docker container on Jetson Orin Nx with Ros2 container.

My Opncv version is 4.5.0

The debug_node throws the following error.

[debug_node-3] AttributeError: module 'cv2' has no attribute 'Mat'

Any idea what could be the issue ?

Hi @mzahana, I am using OpenCV 4.5.4 and opencv-python 4.8.0.76. Verify your opencv-python version, upgrading might be necessary.

I am running into the same issue and have opencv-python 4.8.0.76 installed. Was there a fix found?

I have replaced cv2.Mat with np.array. This should solve it.