'module' object has no attribute 'dnn_DetectionModel'

Hİ there,

I do some things about object detection with OPENCV.
Why do I get the error `AttributeError: module ‘cv2’ has no attribute ‘dnn_DetectionModel’ when I try to run object recognition on JETSON NANO. when

I compile program I get errors like this.

Please help me, I deal with hours…

Hi,

Do you use default OpenCV package.
The error indicates that your library doesn’t include dnn module.

You can build it from source to get the dnn module support:

Thanks.