-
Notifications
You must be signed in to change notification settings - Fork 1k
Multiple cameras with Vuforia using SwitchableCamera #203
Comments
I'm not very familiar with that part of the codebase, but have you tried calling |
Setup is effectively...
You can then switch cameras as so...
|
The webcam models I am using are c920s and c110. They have different stream resolutions, 1080p and 720p. I read in the source code that SwitchableCamera works best when the cameras are of the same model. Would getting another model fix my issue? |
You might be running into bandwidth issues. Have a look at this issue that was filed for EasyOpenCV OpenFTC/EasyOpenCV#6 |
Initializing Vuforia twice with different cameras always throws a no-camera-access error. But after looking through the sdk code (specifically VuforiaLocalizerImpl) I found that SwitchableCamera was a thing. It seems to suggest that running Vuforia on two separate cameras is possible by switching between them. What is the correct way to do this?
Setup: Control Hub with 2 web cameras connected.
Both work when run individually.
Here is how I am using SwitchableCamera
I believe that
Impl
classes are not really meant to be used directly, but I could not find another way to create SwitchableCameraName.When running this in an OpMode, I do not get any readings (trackables are not visible), and calling
setActiveCamera
on(SwitchableCamera) vuforiaLocalizer.getCamera()
throws errors.I will post the models of the webcams, the code I am using, and the specific error messages in a day or two once I go to the workshop again.
The text was updated successfully, but these errors were encountered: