Hi, I am having trouble with getting this corner detection code to work properly. It works fine but points are scattered all over the place, i want the corner points to be detected within the bounding box. is there anything i need to add or edit?
This is the code i have so far:-
faceDetector = vision.CascadeObjectDetector('FrontalFaceCART');cornerDetector = vision.CornerDetector('Method','Harris corner detection (Harris & Stephens)');Irgb2gray=rgb2gray(Iface);bboxes = step(faceDetector, Irgb2gray);corners = detectHarrisFeatures(Irgb2gray);Irgb2gray = insertObjectAnnotation(Iface, 'rectangle', bboxes, 'Face');figure, imshow(Irgb2gray), title('Detected faces'); hold on; plot(points.selectStrongest(50));
Thank you in advance.
Best Answer