-
Notifications
You must be signed in to change notification settings - Fork 7
Focus Points
#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).
#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.