'How can I adjust detecting latency in ML kit text recognition?

I want to lower the latency of detection because I get too many words in a second. I've tried to lower it by changing variables like FPS, maxFrameMs, minFramems, etc(almost everything regarding to latency) in VisonProcessorBase.java and InferenceInfoGraphic.java class but it didn't work. How can I lower the speed of detection?



Solution 1:[1]

Those variables are just used for counting rather configuring camera.

You can play with REQUESTED_FPS constant and #selectPreviewFpsRange method inside the CameraSource.java class to lower the speed of frame feeding for detection.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 zhouyi