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

Camera function #1

Closed
SensRy opened this issue Feb 22, 2018 · 4 comments
Closed

Camera function #1

SensRy opened this issue Feb 22, 2018 · 4 comments

Comments

@SensRy
Copy link

SensRy commented Feb 22, 2018

Hi!
When I click a camera button I got:
Error: Exception while reading next frame
'NoneType' object has no attribute 'copy'

@HighTemplar-wjiang
Copy link
Owner

That means reading from webcam failed.

Can you tell me your OS and OpenCV lib version? I also had some trouble when streaming webcam in Ubuntu 16.04 with python3, while python2 works fine.

Probably it's the OpenCV's library issue, please refer to this thread:
opencv/opencv#8471

@SensRy
Copy link
Author

SensRy commented Feb 23, 2018

Windows 10, python 3, OpenCV 3.3.0

@HighTemplar-wjiang
Copy link
Owner

HighTemplar-wjiang commented Feb 23, 2018

It seems that OpenCV cannot read the FPS of the webcam, but it shouldn't cause this issue. I have modified the source code anyway, can you update and try again? It works in my Windows 10 PC.

There is an easy way to test your environment, you may try the OpenCV official python samples:
https://github.com/opencv/opencv/tree/master/samples/python

Try "python camshift.py", if it works, then your OpenCV configuration should be fine.

@SensRy
Copy link
Author

SensRy commented Feb 23, 2018

Great. Everything is working!

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