-
Notifications
You must be signed in to change notification settings - Fork 32
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
can't open camera by index #55
Comments
I have the same error. I work on Linux Mint 19.3 and python 3.6.9. |
ran into same issue today |
installing kivy 2.1.0.dev0 from github fixes this issues for me, thanks |
how can I access 'index' of xcamera in zbarcam.py from main.py and change the value? |
I have to drop the @property
def xcamera(self):
return self.ids['xcamera'] to @property
def xcamera(self):
xcamera = self.ids['xcamera']
xcamera.index = 1
# xcamera.resolution = (640, 480)
return xcamera If This is just a workaround to get my app working. There must be a better way. |
You can probably monkey patch it without rewriting the entire thing |
Yeah, Do you have any idea how those camera indices are assigned? I have to try-and error to figure it out. |
Great for the monkey patch. |
Adding index as property, is the best way. I did tests and all good. Will make a PR later. |
I got this error while running my code
The text was updated successfully, but these errors were encountered: