Replies: 1 comment
|
It's a little unclear exactly what you're asking. Toga's camera API allows you to capture an image using iOS, Android, or macOS camera. If you want to pass that image to OpenCV, then you can do so, although you'll need to convert the However, Toga gaining a camera API doesn't add any features to OpenCV. I believe OpenCV may have some native camera APIs; however, I know nothing about them, nor do I have any reason to believe that Toga adding a camera API would have any impact on OpenCV's camera support (as OpenCV doesn't have any dependency on Toga). If you want to know if you can use OpenCV's camera API, you'd need to direct that question to OpenCV. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I see a hardware example ,This means that if I execute the following code, Can I use the camera of my mobile phone by opencv?
class ExampleHardwareApp(toga.App):
def startup(self):
try:
# This will provide a prompt for camera permissions at startup.
# If permission is denied, the app will continue.
self.camera.request_permission()
except NotImplementedError:
print("The Camera API is not implemented on this platform")
All reactions