Android Question TextRecognition based on MLKit on a continuous loop

gregchao

Active Member
Licensed User
Longtime User
Is there a way to make this text recognition work on a continuous loop? When the User is satisfied with the result, he/she stops the loop...

 

gregchao

Active Member
Licensed User
Longtime User
I tried the camera preview and it is not a good idea. The delay time of the text recognition is too long so I abandoned the idea.

I ran into a second issue. The example app itself takes a long time to load. It is 134Mb on my iPhone. Is there a way to trim it down?...possibly trading away some features. I am only interested in Latin so I deleted the Chinese module already.
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Remove these declarations:
B4X:
#AdditionalLib: MLKitTextRecognitionChinese.framework.3
#AdditionalLib: MLKitTextRecognitionDevanagari.framework.3
#AdditionalLib: MLKitTextRecognitionJapanese.framework.3
#AdditionalLib: MLKitTextRecognitionKorean.framework.3

And Files\Special\ all bundles except of the LatinOCR.

This is for B4i.
 
Upvote 0

gregchao

Active Member
Licensed User
Longtime User
Those declarations are not in the example. Here are the declarations:

#AdditionalLib: MLKitCommon.framework.3
#AdditionalLib: MLKitBarcodeScanning.framework.3
#AdditionalLib: MLImage.framework.3
#AdditionalLib: MLKitVision.framework.3
#AdditionalLib: MLKitImageLabeling.framework.3
#AdditionalLib: MLKitImageLabelingCommon.framework.3
#AdditionalLib: MLKitImageLabelingCustom.framework.3
#AdditionalLib: MLKitObjectDetection.framework.3
#AdditionalLib: MLKitObjectDetectionCommon.framework.3
#AdditionalLib: MLKitObjectDetectionCustom.framework.3
#AdditionalLib: MLKitVisionKit.framework.3
#AdditionalLib: MLKitXenoCommon.framework.3
#AdditionalLib: PromisesObjC.framework.3
#AdditionalLib: GTM
#AdditionalLib: sqlite3
#AdditionalLib: GTMSessionFetcher.framework.3
#AdditionalLib: GoogleUtilitiesComponents.framework.3
#AdditionalLib: Accelerate.framework
#AdditionalLib: GoogleDataTransport.framework.3
#AdditionalLib: MLKitTextRecognitionCommon.framework.3
#AdditionalLib: MLKitTextRecognition.framework.3

Can I remove any of these or are they all necessary?
 
Upvote 0
Top