Community

desine of the app Answered

hi 

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

0

Comments

3 comments

  • Avatar
    Oksana Serdyuk

    Hi,

    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);
    1
  • Avatar
    tahasamar

    there is no selectedArea

     

    0
  • 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.

    0

Please sign in to leave a comment.