Automatic ROI detection
Hi All,
I am working on foreground extraction using Grabcut algorithm which will extract the object located inside the region of interest. However, instead of specifying the ROI manually, is there any way we can detect the object automatically without explicitly specifying the ROI? I am using python.
Thanks in advance
You try SIFT algorithm, https://robwhess.github.io/opensift/
@greenworld Sorry I don't understand. How can you use sift to initialize grabcut?
@AJ94 you can read this paper to help you :
Automatic GrabCut color Image Segmentation Based on EM Algorithm
@greenworld i don't think so sift can initialize grabcut. @LBerger Is any code reference available?
What kind of object you want to detect? There is a lot of detection techniques in opencv.
@pi-null-mezon The object can be anything ranging from car,tree to human being. Is it possible to have any algorithm which will automatically detect object from unknown images??
if you want to detect text you can use er filter text detection present in text module of open cv contrib otherwise you can use the function find contours (incase there is no specific object )and then apply grabcut on the corresponding rectangle or you can try using mser