twelve17 / openalpr-ios

Xcode Framework for the openalpr library
GNU General Public License v3.0
116 stars 35 forks source link

Recognition not working with iPhone Camera output #15

Closed xcodewarrier closed 8 years ago

xcodewarrier commented 8 years ago

Hello,

I've managed to get the library working within my app when passing a static image as per the example, but when using an image from the camera recognition is unsuccessful every time - is there something differnent with the image thats returned from a AVCaptureSession() Here's the code I'm using to get the image:

NSData* imageData = [AVCaptureStillImageOutput jpegStillImageNSDataRepresentation:sampleBuffer];
UIImage* image = [UIImage imageWithData:imageData];
cv::Mat cvImage = [self cvMatFromUIImage:image];
[self.plateScanner scanImage:cvImage onSuccess:^(NSArray * results) {

// Never suceeds

twelve17 commented 8 years ago

The image data is probably different than what I am using. I'm afraid this is outside the scope of this project. You might want to try the openalpr mailing list.

nicpro85 commented 8 years ago

image orientation