Ask Your Question
-1

How to extract white paper from image

asked 2017-01-05 10:55:44 -0500

smtabatabaie gravatar image

Hi, I'm new to opencv , I want to write a script for having an effect like Microsoft office lens, which can detect a piece of paper no matter the camera angle and put a rectangle around it and crop it and then unwrap it. I wanted to ask if you guys know any approaches to such problem using openCV

image description

Thanks very much Best

edit retag flag offensive close merge delete

Comments

4

downvoted for being all "i want", without showing any own research or skill.

(we simply can't help you, like this)

berak gravatar imageberak ( 2017-01-05 11:26:25 -0500 )edit

Thanks very much for judging @berak . As i said I'm new to opencv and looking for clues and where to start for this problem.

smtabatabaie gravatar imagesmtabatabaie ( 2017-01-05 11:30:53 -0500 )edit
2

admittedly, a snake-bites-tail thing. so, some clues:

  • find corners of paper sheet
  • 4 points are enough for a perspective transformation (did you even knew, what that is ?)
  • warpPerspective does the actual transformation.

(hint: this site has a search bar, too)

try some things on your own, come back with a more refined question, please.

(again, though i even halfway sympathize with your "go-bold-and-barefoot-where-angels-fear-to-thread" approach, - the world does not work like this, and we can only help you, if you understand the basics (which again are all absent in your question.)

berak gravatar imageberak ( 2017-01-05 11:38:38 -0500 )edit

Thanks very much @berak for you condescending comment.

smtabatabaie gravatar imagesmtabatabaie ( 2017-01-05 12:05:55 -0500 )edit
1

again, this is not a coding, but a maths problem. unless you understand the latter, we can't help you to solve the former.

berak gravatar imageberak ( 2017-01-05 12:06:45 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-01-09 07:13:23 -0500

essamzaky gravatar image
edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2017-01-05 10:55:44 -0500

Seen: 2,729 times

Last updated: Jan 09 '17