
A just wanna to detect answer mark thought opencv. Looked at many samples. But most of them about hought circle, face detection etc. I look at this question But its not about android.
How to detect this answer sheet perfectly? Referance marks needed?
Where I begin to detect these black circles?
Here my code to detect circles. But I think I need another method to detect my black marks. If I can get the that coordinates than I can get next step.
public Mat onCameraFrame(CameraBridgeViewBase.CvCameraViewFrame inputFrame) {
mRgba = inputFrame.rgba();
mGray = inputFrame.gray();
MatOfRect circles = new MatOfRect();
Imgproc.HoughCircles(mGray, circles, Imgproc.CV_HOUGH_GRADIENT, 1, 50);
// returns number of circular objects found
Log.e("circle check", "circles.cols() " + circles.cols());
return mRgba;
}
↧