even though i gave the keyword according to the fuction cv.dnn.blobFromImage still it is showing same error

asked 2020-01-26 22:40:24 -0600

Traceback (most recent call last): File "speed_estimation_dl_video.py", line 154, in <module> ddepth=cv2.CV_32S) TypeError: 'ddepth' is an invalid keyword argument for blobFromImage()

edit retag flag offensive close merge delete

Comments

opencv version ?

can you show the resp. lines of code ?

what kind of model is used here ? (CV_32S is most likely wrong)

berak gravatar imageberak ( 2020-01-27 02:17:33 -0600 )edit

try :

help(cv2.dnn.blobfromImage)
berak gravatar imageberak ( 2020-01-27 02:36:00 -0600 )edit

@bhargav_narasimha. Your invalid keyword isn't accurately. Drop cv2.

ddepth=cv2.CV_32S

to:

ddepth=CV_32S

Here is link: Depth and type

supra56 gravatar imagesupra56 ( 2020-01-27 08:04:50 -0600 )edit

thank you .

bhargav_narasimha gravatar imagebhargav_narasimha ( 2020-01-27 12:07:54 -0600 )edit