-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
module 'cvlib' has no attribute 'detect_face' #25
Comments
Hi @yensan0512 , can you try changing the name of the script you are running from |
I have change to cvlib_script.py but it still the same,sirC:\xampp\htdocs\faceD>python cvlib_script.py |
You can keep the import statement as
No need to change any code inside the script. The reason for changing the file name is it might confuse python while trying to import the package cvlib since the filename is also named cvlib. |
It is okay, i get the output just the output will come out in two sqaure
label
…On Tue, Jul 16, 2019 at 2:46 PM Arun Ponnusamy ***@***.***> wrote:
You can keep the import statement as
import cvlib as cv
No need to change any code inside the script. The reason for changing the
file name is it might confuse python while trying to import the package
cvlib since the filename is also named cvlib.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#25?email_source=notifications&email_token=AIEOVPYXGTLOOJLR7GL6WKLP7VVD3A5CNFSM4IDWOLOKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZ7353Y#issuecomment-511688431>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AIEOVP7UPZWJDKTJILCBJLTP7VVD3ANCNFSM4IDWOLOA>
.
|
C:\xampp\htdocs\faceD>python cvlib.py
Using TensorFlow backend.
WARNING:tensorflow:From C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\framework\op_def_library.py:263: colocate_with (from tensorflow.python.framework.ops) is deprecated and will be removed in a future version.
Instructions for updating:
Colocations handled automatically by placer.
2019-07-15 20:47:44.195976: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2
WARNING:tensorflow:From C:\ProgramData\Anaconda3\lib\site-packages\keras\backend\tensorflow_backend.py:3445: calling dropout (from tensorflow.python.ops.nn_ops) with keep_prob is deprecated and will be removed in a future version.
Instructions for updating:
Please use
rate
instead ofkeep_prob
. Rate should be set torate = 1 - keep_prob
.WARNING:tensorflow:From C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\ops\math_ops.py:3066: to_int32 (from tensorflow.python.ops.math_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Use tf.cast instead.
Traceback (most recent call last):
File "cvlib.py", line 12, in
import cvlib as cv
File "C:\xampp\htdocs\faceD\cvlib.py", line 42, in
face, confidence = cv.detect_face(frame)
AttributeError: module 'cvlib' has no attribute 'detect_face'
[ WARN:0] terminating async callback
The text was updated successfully, but these errors were encountered: