Alguém pode me ajudar? Estou começando a utilizar o OpenCV, como faço para contar quantos rebites tenho numa placa a partir da captura de vídeo, já consegui capturar a imagem, converter para cinza. Falta detectar os pontos, e contá-los. 
while (true) {
// Read current camera frame into matrix
cap.read(image);
// Render frame if the camera is still acquiring images
if (image!=null) {
frame.render(image);
Imgproc.cvtColor(image, image1, Imgproc.COLOR_RGB2GRAY);
Imgproc.threshold(image1,seg,150,255,Imgproc.THRESH_BINARY_INV);
frameSeg.render(seg);
} else {
System.out.println("No captured frame -- camera disconnected");
break;
}
}
}