desine of the app Answered


I need to have a smaller camera scanner part(the square at the center of the main page)

Was this article helpful?

0 out of 0 found this helpful



  • Avatar
    Oksana Serdyuk


    Do we understand correctly that your question relates to Real-Time Recognition SDK?

    If so, the size of the window and the search area are set via selectedArea. If you follow the chain of method calls in our samples, then after changing the visual part (self.selectedArea), setAreaOfInterest is also updated. For example, if you want to change the recognition area, then the developers recommend to use the similar code:

    // set the frame area of the same size as the window area with margins of 10 points on the edges
    self.selectedArea = CGRectInset(viewBounds, 10, 10);
  • Avatar

    there is no selectedArea


  • Avatar
    Oksana Serdyuk

    Yes, you are right, that is for our iOS sample.

    A similar algorithm for Android, to change the area of interest kindly use the setAreaOfInterest method. Further, as you can see in the startRecognition method of the code sample, when the start method is called one of its parameters is areaOfInterest. This method crops this area of interest on the image inside itself.


Please sign in to leave a comment.