jhansireddy / AndroidScannerDemo

ScanLibrary is an android document scanning library built on top of OpenCV, using the app you will be able to select the exact edges and crop the document accordingly from the selected 4 edges and change the perspective transformation of the cropped image.
MIT License
1.07k stars 472 forks source link

cropping polygom coming on the side of the image #72

Open prog-Noon opened 6 years ago

prog-Noon commented 6 years ago

when I capture an image the polygon coming on the side of the screen and after click next I have part of image result with black color. device-2018-04-20-121946

nthreads commented 6 years ago

I am also facing similar issue, did you find any solution for this? I face this when app locale is Arabic.

nthreads commented 6 years ago

I spent sometime and fixed my case by setting the layout diretion to setLayoutDirection(View.LAYOUT_DIRECTION_LTR) in PolygonView.java file.