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

Python3 failed to connect to the webcam and python2 is available. #46

Closed
smallverse opened this issue Sep 9, 2019 · 9 comments
Closed

Comments

@smallverse
Copy link

Exception information:

'cap. IsOpened () = = False: RTSP: / / admin: xxx@x.x.x.x'

Opencv version problem?

@aidlearning
Copy link
Owner

aidlearning commented Sep 9, 2019

sorry for reply your request. can you provide the code using webcam in python3. right code is following :
from cvs import *
cap=cvs.VideoCapture(0)
img=cvs.read()
if img is None:
print cam is not open!
else:
print cam is opened!

@aidlearning
Copy link
Owner

don't using the cap. IsOpened () ,because the OpenCV is not support the function under the unroot termux.

@smallverse
Copy link
Author

thanks!

Yes, but the code does not use 'the cap. IsOpened ()'.

The same code, only using python3.

'python3 faceID. py' in rk3399

I will also confirm it tomorrow

@aidlearning
Copy link
Owner

On some development cards, the camera number is confused. You can try Video Capture (0) or Video Capture (1).

@smallverse
Copy link
Author

smallverse commented Sep 9, 2019

Capture (0) or Video Capture (1) is no problems in mobile phone,only in rk3399 dev card by ‘rtsp url’.
I will follow up.

@aidlearning
Copy link
Owner

I will find a way to support the rtsp url for videocapture...in the version 0.70(https://github.com/aidlearning/AidLearning-FrameWork/releases/tag/0.70), aid learning support the rtsp url. later version get ride of the support ,because I change the type of Gui programming.but you can try the version 0.70,it support the rstp url.

@smallverse
Copy link
Author

smallverse commented Sep 9, 2019

ok ,thanks.

I have connected the RTSP url today, but the performance is not very good for 1920X080 screen.

@smallverse
Copy link
Author

Previously custom developed termux in rk3399 cluster, but no GUI.

However, due to performance problems, engineering is difficult. Currently, we are exploring arm Linux, but due to the low recognition rate of model problems (bottleneck), we are studying our face recognition part and preparing to migrate arm Linux.

Video handles getting frames that we later developed in collaboration with third parties to address performance

@aidlearning
Copy link
Owner

that's good!

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