Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribedimage text in transcribed

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Fred R. McFadden, Jeffrey Slater, Mary B. Prescott

5th Edition

0805360549, 978-0805360547

More Books

Students also viewed these Databases questions