android - What is mean by setRequestedFps in CameraSource Google Mobile vision API -


what meaning of setrequestedfps in mobile vision api.

camera code :

mcamerasource =             new camerasource.builder(getapplicationcontext(), textrecognizer)                     .setfacing(camerasource.camera_facing_back)                     .setrequestedpreviewsize(1280, 1024)                     .setrequestedfps(40.0f)                      .setflashmode(useflash ? camera.parameters.flash_mode_torch : null)                     .setfocusmode(autofocus ? camera.parameters.focus_mode_continuous_picture : null)                     .build(); 

initializing processing object.

ocrdetectorprocessor  =new ocrdetectorprocessor(this,mgraphicoverlay,documenttype);     textrecognizer textrecognizer = new textrecognizer.builder(context).build();     textrecognizer.setprocessor(ocrdetectorprocessor); 

processor class

class ocrdetectorprocessor{ public ocrdetectorprocessor(ocrcaptureactivity ocrcaptureactivity,graphicoverlay<ocrgraphic> mgraphicoverlay,string documenttype) {  } @override public void receivedetections(detector.detections<textblock> detections) {  }} 

my question : if set setrequestedfps(40.0f) receivedetections called 40 times in second or not

yes if device supports. if not change best available fps.

as mentioned @ google apis android

sets requested frame rate in frames per second. if exact requested value not available, best matching available value selected. default: 30.


Comments

Popular posts from this blog

java - Suppress Jboss version details from HTTP error response -

gridview - Yii2 DataPorivider $totalSum for a column -

Sass watch command compiles .scss files before full sftp upload -