Skip to content

Camera is dark due to FPSrate #193

@Thomas-Pronovost92

Description

@Thomas-Pronovost92

Hi!
I recently tried to integrate this code scanner to my project (v2.3.2). The preview of the camera is dark however on one of my test device a Fire HD 10 tablet.

I think that I have narrowed the issue down to the FPS rate, the one selected being [3000, 3000] (same value for max and min)
In my way to implement a fix, I found that the classes are all final, thus untouchable unless I copy the project in my app, which I would like to avoid)

Here is the fix that worked for me (when I copied your project in my app:
In Utils.configureFpsRange - > adding fpsRange[Parameters.PREVIEW_FPS_MIN_INDEX] != fpsRange[Parameters.PREVIEW_FPS_MAX_INDEX] in the if statement resolved the issue

So is there a reason why all classes are final? And would it be possible to remove this feature?
Also, maybe a method could be added to select the FPSrate?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions