I would like to know how I can use OpenCV to detect on my VideoCamera a Image. The Image can be one of 500 images.
What I'm doing at the moment:
- (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view. self.videoCamera = [[CvVideoCamera alloc] initWithParentView:imageView]; self.videoCamera.delegate = self; self.videoCamera.defaultAVCaptureDevicePosition = AVCaptureDevicePositionBack; self.videoCamera.defaultAVCaptureSessionPreset = AVCaptureSessionPresetHigh; self.videoCamera.defaultAVCaptureVideoOrientation = AVCaptureVideoOrientationPortrait; self.videoCamera.defaultFPS = 30; self.videoCamera.grayscaleMode = NO; } -(void)viewDidAppear:(BOOL)animated{ [super viewDidAppear:animated]; [self.videoCamera start]; } #pragma mark - Protocol CvVideoCameraDelegate #ifdef __cplusplus - (void)processImage:(cv::Mat&)image; { // Do some OpenCV stuff with the image cv::Mat image_copy; cvtColor(image, image_copy, CV_BGRA2BGR); // invert image //bitwise_not(image_copy, image_copy); //cvtColor(image_copy, image, CV_BGR2BGRA); } #endif The images that I would like to detect are 2-5kb small. Few got text on them but others are just signs. Here a example:


Do you guys know how I can do that?