Y
Y
YaKot2014-11-30 23:22:47
OpenCV
YaKot, 2014-11-30 23:22:47

License plate recognition. iANPR. invalid conversion from 'iANPRCapture {aka void*}' to 'void**' what's wrong?

You need to find the coordinates of the car number on a short video (1-2 seconds). I use the iANPR library. It's easy to process the frame, but if you use the iANPRCapture streaming module, you get errors like invalid conversion from 'iANPRCapture {aka void*}' to 'void**' and all that...

#include <dirent.h>
#include <iostream>
#include <stdio.h>
#include "opencv/highgui.h"
#include "../src/iANPR.h"
#include "opencv/cv.h"
#include "../src/iANPRcapture.h"
#include "../src/iANPRinterface.h"

int main(void)
{
    CvCapture *camera = cvCreateFileCapture("rtsp://192.168.1.10/user=admin_password=tlJwpbo6_channel=1_stream=1.sdp");
    assert(camera);
    IplImage* rgb = 0;
    int i1 = 0;
    IplImage* Img = cvQueryFrame( camera );
    int intFrame = 10;
    iANPRCapture *icapture = 0;
...
...
     icapture = CreateiANPRCapture(intFrame, a, cvRect( 0, 0,Img->width, Img->height ));

    for(int f = 0; f < intFrame; f++) {

        rgb = cvQueryFrame( camera );
        IplImage* Img = cvCreateImage( cvGetSize( Img ), 8, 1 );
        cvCvtColor( rgb, Img, CV_BGR2GRAY );

        i1 = AddFrameToiANPRCapture(icapture, Img, &all, Rects, res);

...

In inclusions:
...
typedef void* iANPRCapture;
iANPRCapture 
...
CreateiANPRCapture( int max_frames, ANPR_OPTIONS Options, CvRect Rect );
...
void
ReleaseiANPRCapture( iANPRCapture *Capture );
...
int
AddFrameToiANPRCapture( iANPRCapture Capture, IplImage* Image, int* AllNumber, CvRect* Rects, char** Texts );

documentation is ianpr.org/doc/iANPR.pdf
how to be?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question