Opencv 3.3 in unable to import dnn module using python


    We are not able to import dnn module of opencv in python code.

command used:



import cv2

from cv2 import dnn


cv2.dnn.<some_function> also not working


Processor :RZG1H



  • Hi SS,

    What is the error you are seeing when trying to import DNN - is it that there is no such module?

    In OpenCV 3.3 the DNN module is not built by default, you need to change the configuration in order to build it. Another option is to use OpenCV 3.4 where the module is built by default.

  • Hi SS,

    Was the previous reply useful for you? Did it help to solve your issue?

    Kind regards,
  • In reply to Georgi:

    This thread will be archived due to inactivity.

    Mike Clements
    RenesasRulz Moderator