Announcement

Collapse
No announcement yet.

Moto g5 with UVC Webcam

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Moto g5 with UVC Webcam

    Hello from PowerStackers 5029,

    We recently bought new Moto g5s to utilize the 5ghz wifi capabilities, however, we are experiencing issues regarding use with UVC cameras. We ran code to read from the camera stream and save to a local directory on the phones and it seems to be crashing every time we initialize the camera. Is this an issue with moto g5s

    We have tested this code on ZTE speed and moto g5 with success.

    Modified version of the example webcam code:
    https://github.com/robotgenis/PowerS...UVCCamera.java

    This is the code in the Init:
    UVCCamera camera;
    camera = UVCCamera.getCamera(this);
    camera.start();


    Thanks,
    Krishna
    PowerStackers 5029

  • #2
    Are you getting this error?
    Code:
    java.lang.IllegalArgumentException: pointer must not be null
    If so, I got that too but I was able to fix it by moving
    Code:
    characteristics = cameraName.getCameraCharacteristics();
    to
    Code:
    onOpened()

    Comment


    • #3
      It worked, Thank you!

      Thanks,
      Krishna
      PowerStackers 5029

      Comment

      Working...
      X