Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.

Focus Points

Ryan Peach edited this page Nov 3, 2015 · 6 revisions

#Overview Focus points are the key to the technology behind OpenScan's document templates. They are the symbols which are on each corner of the document template, and which serve as unique and easy/accurate to detect points in any image. They are inspired by qr code technology, and can be used as corners or, optionally, selection boxes for cloud integration.

#Rules By convention, focus points are 1x1x.1" square contours which contain a smaller n-polygon of size between 3-6, which are convex and have regular length edges and regular angles (regular meaning each is the same as all the others). They are stored as struct "Fp" as defined under geometry.cpp, and their shape is tested for by the isPoly method under cvmethods.cpp. They have an inner border which is defined at the maximum depth in the hierarchy, but must be calculated using shape detection in case stray markings are found within the innermost border (detecting this will soon become a feature).

Source: http://dsynflo.blogspot.com/2014/10/opencv-qr-code-detection-and-extraction.html

#Varieties ##Corners

Corners are always defined as a square within a square. They have a depth of 3, a shape of 4, and are filled.

##Reference Corner

Reference corners mark the top left of a page, and are always defined as a square within a square. They have a depth greater than or equal to 4, a shape of 4, and are unfilled. These can optionally be made other shapes to activate specific cloud service features.(feature in the works)

##Selection Box

Selection boxes are optional unfilled focus points which can be filled in by the user to activate a variety of cloud service integration features for any particular page.

Clone this wiki locally