I am trying to detect qr codes with the sony smarteyeglass
When I use CAMERA_MODE_STILL i can capture a picture and detect the barcode in it works fine!
Now when I change the recording mode to CAMERA_MODE_JPG_STREAM_LOW_RATE
I have to set the resolution to CAMERA_RESOLUTION_QVGA else setCameraMode is throwing "resolution has illegal value" because in SmartEyeglassControlUtils Stream support only contains QVGA
private static final List<Integer> CAMERA_JPEG_STREAM_SUPPORT_RESOLUTION = Arrays.asList(
SmartEyeglassControl.Intents.CAMERA_RESOLUTION_QVGA
);
I already tried modifying that but then the camera is not working anymore.
So how would I detect a QR code without having to actually snap a picture and send it to the zxing Library? is there a way to increase quality and still use the stream? or do I have to use Stillmode and actually capture pictures so I can use 3M resolution?
Sorry for the late reply. You should be able to use the CAMERA_MODE_JPG_STREAM_LOW_RATE option and capture the images you need frame by frame and send them to zing. If you start from the SampleCameraControl sample and open the "SampleCameraControl.java" file then you can modify the listener in the SampleCameraControl constructor like this: