コミュニティ

How to get the cropped frame (area of interest) on Android ?

Your Android OCR sample code is so great,working perfectly!

I have tried to read and understood the source code of the sample,I want to know how can you crop the frame from SurfaceView.

But I can only understand the part of SurfaceViewWithOverlay,I learn how did you draw a Rect on the canvas,I have no idea how can you crop the Rect on per frame.

Could you help me,please?
 

この記事は役に立ちましたか?

0人中0人がこの記事が役に立ったと言っています

コメント

1件のコメント

  • Avatar
    Permanently deleted user

    Hi!

    As far as I understand you are studying our sample of Real-Time-Recognition and would like to know how the images are cropped by the Area of Interest; in which method it is performed.

    As you can see in the startRecognition method of the sample, when the start method is called one of its parameters (the last one) is the areaOfInterest. So that is the start method that crops the image inside itself.

    For more information please refer to our documentation: http://rtrsdk.com/documentation/android-api-reference/text-capture-service/start-method/

    0

サインインしてコメントを残してください。