2017-06-19 07:18:24 -0600 | received badge | ● Self-Learner (source) |
2017-06-19 07:18:24 -0600 | received badge | ● Necromancer (source) |
2017-06-19 06:46:00 -0600 | asked a question | Convert background to white Hi, I have already finished my document scanner but I'm trying to improve the results. I correctly detect edges, crop and fix perspective of the document but I wanted to improve the readability of the final image. Here I have a cropped document: And I wanted to clear a liitle bit the background of the image and remove the dog-eared cases. I've read about the grab-cut algorithm but I'm not really sure if this is what I need. In this case the document does not have white background but it usually will. Any idea if the grab-cut is the correct one and how to implement it? Thanks |
2017-06-19 06:33:48 -0600 | answered a question | Problem when transporting points to a bigger image For those who find themselves in the same position, the problem was the division between integers results in an integer value instead of a double value. So this: should be: besides this the transportation works flawlessly. |
2017-03-24 03:04:11 -0600 | received badge | ● Enthusiast |
2017-03-23 05:41:48 -0600 | received badge | ● Student (source) |
2017-03-23 05:11:16 -0600 | commented question | Problem when transporting points to a bigger image Both images line up perfectly, and even the warp perspective on the preview gives a perfectly cropped and square image. I guess it can be something about the scale but I really don't know what. Thanks |
2017-03-22 10:01:56 -0600 | commented question | Problem when transporting points to a bigger image Sorry Steven, I've added some code to see if someone has some insight. Thanks! |
2017-03-22 03:16:10 -0600 | received badge | ● Editor (source) |
2017-03-22 03:15:40 -0600 | commented question | Problem when transporting points to a bigger image The test with a chessboard gives rectangular shapes instead of square shapes and same margin problem. I've updated the question with those images to see if anyone can help me out. Thanks! |
2017-03-22 03:02:56 -0600 | commented question | Problem when transporting points to a bigger image Thanks, will try that. |
2017-03-21 15:03:38 -0600 | asked a question | Problem when transporting points to a bigger image Hi, I'm developing a document scanner library from Android and I have almost everthing sorted but there's one thing that I can't get an appropiate solution. The library detects, crops and fixes the perspective for the document it finds, on the preview the contour is found perfectly adjusted to the document so it stores this contour and takes a full resolution picture, then multiplies (Core.multiply) the found set of points to crop the full-sized image and in that image I don't get the same adjustment that in the preview. Here is an example of the preview (the document is lightly highlighted with a blue rectangle): and the full-sized image (that has some annoying margin): Has someone any idea what can be happening? Thanks a lot. EDIT: The code I use to find the contour: And the code to convert the detected contour to the full-sized image: Sorry for not attaching code earlier. |
2017-03-20 03:06:44 -0600 | received badge | ● Supporter (source) |
2017-03-20 03:06:42 -0600 | received badge | ● Scholar (source) |
2017-03-16 12:09:47 -0600 | commented question | MatOfPoint image transportation Wow, I didn't know this method. Yep, that works, thanks a lot!! |
2017-03-16 04:28:46 -0600 | asked a question | MatOfPoint image transportation Hi, I'm developing a document scanner using OpenCV and I succesfully detected and drawed the contour on the preview of the JavaCameraView, now I want to take a picture and use the detected points to extract that part of the image from the newly taken image. That image taken by the camera is bigger than the preview, is there a way to use the same MatOfPoint in the new image "transporting" (I don't know if it's the right word) the points? Thanks |