We need print several shape or marker in a special object, then we do a detection to calculate the number of markers. After research from many tutorials, I have the following questions,
What marker should I print. The object is a rectangle shape, I can define the marker to print, I think it's better to print circles on the surface, what shape do you recommend?
How to find the markers I learnt a lot from feature2d, historam match and template match, as well as ORB, LBP, BRISK,FREAK,SIFT, SURF etc. But these detect and compute methods seems not so good for this case.
How to define the features? can we use pre-defined feature set to detect the target markers?
How to find the ROI I have an idea, I don't know if it is feasible. I use the camera to take an background image firstly, then after capture the object, use minus to get the object. Mat background (from camera); Mat withObject (from camera); Mat target = withObject - background; after do that, I can see there is no background now. However, I don't how to figure out the shape of object. seems I can use the following code: int threhold = 1;//the original background is 0 threhold(withObject , outputMat, threhold, 255, CV_BINARY_INV); findContours(....)
Thanks a lot for your advices in advanced.