Please help me to detect the mark of this paper? anyone please
1 | initial version |
Please help me to detect the mark of this paper? anyone please
Please help me to detect the mark of improve this paper? code for wrapping? anyone please
This is my code for wrapping this image
Mat img = Imgcodecs.imread(getImg().getPath()); if (img.empty()) { Log.e("FragmentMain", "Empty Image"); } Mat gray = new Mat(); Mat blurred = new Mat(); Mat edged = new Mat(); Imgproc.cvtColor(img, gray, Imgproc.COLOR_BGR2GRAY); Imgproc.GaussianBlur(gray, blurred, new Size(5, 5), 0); Imgproc.Canny(blurred, edged, 75, 200);
Mat clone = edged.clone();
Mat hierarchy= new Mat();
List<MatOfPoint> contours = new ArrayList<MatOfPoint>();
Imgproc.findContours(clone, contours, hierarchy, Imgproc.RETR_EXTERNAL, Imgproc.CHAIN_APPROX_SIMPLE);
List<Point> curves = new ArrayList<>();
hierarchy.release();
Mat corners = new Mat(4, 1,
Please help me to improve this code for wrapping? anyone please
This is my code for wrapping this image .
Mat gray = new Mat();
Mat blurred = new Mat();
Mat edged = new Mat();
Mat img = Imgcodecs.imread(getImg().getPath());
if (img.empty()) {
Log.e("FragmentMain", "Empty Image");
}