Question: I do not understand why I am getting this error even after doing the following: Please help me solve this error. I am running Spyder

 I do not understand why I am getting this error evenafter doing the following: Please help me solve this error. I am

I do not understand why I am getting this error even after doing the following:

running Spyder through Anaconda (Please only show the MAC solution) \( \begin{array}{ll}43

Please help me solve this error. I am running Spyder through Anaconda (Please only show the MAC solution)

\( \begin{array}{ll}43 & \text { current_face_image = current_frame[top_pos: bottom_pos, left_pos:right_pos] } \\ 44 & \text { \#The 'AGE_GENDER_MODEL_MEAN_VALUES' calculated by using the numpy_mean() } \\ 45 & \text { AGE_GENDER_MODEL_MEAN_VALUES }=\text { (78.4263377603, 87.7689143744, 114.895847746) } \\ 46 & \text { \#create blob of current flace slice } \\ 47 & \text { \#params image, scale, (size), (mean), RBSwap) } \\ 48 & \text { current_face_image_blob }=\text { cV2.dnn.blobFromImage(current_face_image, 1, (227, 227), AGE_GENDER_MODEL_MEAN_VALUES, swapRB=False) } \\ 49 & \end{array} \) line 49, in current_face_image_blob = cv2.dnn.blobFromImage(current_face_image, 1, (227, 227), AGE_GENDER_MODEL_MEAN_VALUES, SwapRB=False) AttributeError: module 'cv2' has no attribute 'dnn' \$ sudo pip3 install opencv-contrib-python

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!