Google Glass preview image scrambled with new XE10 release

前端 未结 6 1177
情歌与酒
情歌与酒 2020-12-02 17:44

This occurs using a few apks that make use of the camera (e.g., zxing, opencv). It displays a glitched image in the preview but it is still a function of what the camera se

6条回答
  •  萌比男神i
    2020-12-02 17:52

    This still is an issue as of XE22 (!) Lowering the frames per second to 30 or lower does the trick:

     parameters.setPreviewFpsRange(30000, 30000);
    

    And indeed, don't forget to set the parameters:

    camera.setParameters(parameters);
    

    I have found no clear explanation as to why this causes trouble, since 60 fps is included in the supported fps range. The video can record 720p, but I never saw a source add the fps to this.

提交回复
热议问题