This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

C6accel_harrdetectObject problem in DM8148



I use C6Acceel_opencv library.

the C6accel_Flip is ok. 

but when I call C6accel_harrdetectObject, i have two problem.

1. when calls, it complaint about storage is not alloc. 

    but the standard opencv did not require the storage to alloc, it will alloc in the function.

    to resolve this problem, I alloc a CVSIize to storage

2. after resolve problem 1, the call blocks, and never return. 

 

anyone who faliliar with C6accel Opencv?

  • Can you provide the details of which version of c6accel is used?

    Regards

    Asheesh

     

  • We found that haar detect function is showing error on DM8148 but it works on DM8168. There is some issue with the memory configuration for the server creation. We are investigating the issue and it will be fixed in next release of c6accel.

    Regards

    Asheesh

  • thanks for your reply. and I will wait for next release. but the EZSDK5.03 said that it remove C6accel.

    So I'd like to know whether the next C6accel release will be tested in dm8148?  

    and I also found other function can not work correctly, such as C6accel_cvEqualizeHist.

    one more question:

    my opencv version on arm side is OpenCv2.0, should I change to OPENCV1.0 (because the C6accel_opencv is Version1.0, I guess)?

    p.s: my c6accel_2_01_00_09 is from the ti-ezsdk_dm814x-evm_5_02_02_60. 

  • C6accel release will be validated on EZSDK 5.03.01.15 released in December. We will look into equalizehist function. Thanks for providing feedback.

    On ARM side you donot have to migrate to OpenCV 1.0 release.

    Regards

    Asheesh

  • Ethan,

    Can you elaborate on the issue that you are seeing with equalizeHit function. Our test show that the output of the C6Accel_equalizeHist and the ARM side EqualizeHst function are bit exact.

    Regards,

    Rahul

  • Thanks for your kindly reply.

    I have met a lot of fail when I use a serial of opencv functions.

    One is C6_accel_cvAbsDiff,  the code is from update_mhi( IplImage* img, IplImage* dst, int diff_threshold ),

    which from opencv motion-detect.-example: opencv/samples/c/motempl.c

    if( !mhi || mhi->width != size.width || mhi->height != size.height )
        {
            if( buf == 0 )
            {
                buf = (IplImage**)malloc(N*sizeof(buf[0]));
                memset( buf, 0, N*sizeof(buf[0]));
            }
            
            for( i = 0; i < N; i++ )
            {
                cvReleaseImage( &buf[i] );
                buf[i] = cvCreateImage( size, IPL_DEPTH_8U, 1 );
                cvZero( buf[i] );
            }
            cvReleaseImage( &mhi );
            cvReleaseImage( &orient );
            cvReleaseImage( &segmask );
            cvReleaseImage( &mask );
             
            mhi = cvCreateImage( size, IPL_DEPTH_32F, 1 );
            cvZero( mhi ); // clear MHI at the beginning
            orient = cvCreateImage( size, IPL_DEPTH_32F, 1 );
            segmask = cvCreateImage( size, IPL_DEPTH_32F, 1 );
            mask = cvCreateImage( size, IPL_DEPTH_8U, 1 );
        }

        C6_accel_cvCvtColor(h,  img, buf[last], CV_BGR2GRAY ); // ok

        idx2 = (last + 1) % N; // index of (last - (N-1))th frame
        last = idx2;

        silh = buf[idx2];
            C6_accel_cvAbsDiff(h, buf[idx1], buf[idx2], silh ); // failed
          
           C6_accel_cvThreshold( silh, silh, diff_threshold, 1, CV_THRESH_BINARY ); // and threshold it
        cvUpdateMotionHistory( silh, mhi, timestamp, MHI_DURATION ); // update MHI

        

     

    which report:

    CMEMK error : get_phys():  unable to find phy addr for xxxx.

    and C6_accel_cvThreshhold may also failed.

    Abviously, the fail reason has something to do with Cmem malloc.

    can you please test cvAbsDiff and if possible test update_mhi or "opencv/samples/c/motempl.c "

    p.s:  is there any C6accel -opencv example resources?