Possible Duplicate:
Recognize Black patterns appearing on the four corners of the image ios using opencv or some other technique
After surfing long on the net and founding no appropriate answer I am asking question.
There is a image that is captured from the camera, the image is a image of a book page.
Its background is pure white, having text in black and black rectangles on the four side corners of the paper.
I have to detect whether the black rectangles are present in the image or not and if present, I need to process the image in the manner that the image fills the iphone screen as the showing four corners displaying fitted the screen, all other extra portion of the image is cut off.
for making more clear, below is the image which contains the patterns(not rectangle) but actually they will be rectangle.
For more understanding of the question you can refer shotnote app.I need to achieve the same camera feature of theta app. http://itunes.apple.com/us/app/shot-note/id411332997?mt=8 refer first two screenshots.
It might be possible duplicate of some questions but that question does not have any relavent answer.
Please help me in how to use open cv or is there any other technique to achieve this functionality.
I am stuck here.
Thanks in advance!