Skip to content
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

cat-pet detector.py error: frame.setFlags #36

Closed
ozett opened this issue Feb 24, 2019 · 3 comments
Closed

cat-pet detector.py error: frame.setFlags #36

ozett opened this issue Feb 24, 2019 · 3 comments

Comments

@ozett
Copy link

ozett commented Feb 24, 2019

i wanted to try cat-detection,
(object-detection already running fine)
disabled twilio in the script, but got this error:

root@raspimax7219:/usr/src/tensorflow1/models/research/object_detection# python3 Pet_detector.py
Traceback (most recent call last):
  File "Pet_detector.py", line 275, in <module>
    frame.setflags(write=1)
ValueError: cannot set WRITEABLE flag to True of this array
root@raspimax7219:/usr/src/tensorflow1/models/research/object_detection#

may you can help me out, shorthand?
dont understand the array-constrution...but you?
what to do here?

thanks,
tozett

@ozett
Copy link
Author

ozett commented Feb 24, 2019

i would have been to simple.
i disabled the line, the script run firsthand, than trow an error:

image

@ozett
Copy link
Author

ozett commented Feb 24, 2019

i compared the object-detector.py with the cat-detector.py and
changed the pet.py without real understanding at one line according to the object.py
but no it runs..i am waiting now for the cat to come and see if it works..

image

@EdjeElectronics
Copy link
Owner

Hi @ozett , glad you were able to get it working. Issue #30 discusses how to deal with the "ValueError: cannot set WRITEABLE flag to True of this array" error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants