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.

mirror effect with openCV in EVM C6748

Héllo !!

I would know please how to use the openCV library in C6748 to create an vertical and horizontal image mirror.

Wich functions can i use?

Best regards

  • Hi Mustapha,

    Thanks for your post.

    Which version of OpenCV do you wish to use ? OpenCV 1.x or OpenCV 2.x ?

    OpenCV 1.1 is an initial version of the vision library which was built using C code. OpenCV 2.x migrates all of this initial software to a C++ code base and adds several new APIs to vision library. You should start determining  which APIs you need for your algorithm and identify which version provides you all this functionality. OpenCV does run on the DSP but there is some porting effort involved to cross compile it.

    To start with, you would refer facedetect demo project on c6748 LCDK which is using openCV libaries. For more details, please refer the below E2E posts :

    http://e2e.ti.com/support/dsp/omap_applications_processors/f/42/t/326897.aspx

    http://e2e.ti.com/support/dsp/omap_applications_processors/f/42/t/328962.aspx

    Thanks & regards,

    Sivaraj K

    -------------------------------------------------------------------------------------------------------
    Please click the Verify Answer button on this post if it answers your question.
    -------------------------------------------------------------------------------------------------------

     

  • Hi 

    I have already seen you reply.

    Yes I will use it. I think it is the simple way to do the application.

    The cxcore.h countains the flip function :

    /* Mirror array data around horizontal (flip=0),
    vertical (flip=1) or both(flip=-1) axises:
    cvFlip(src) flips images vertically and sequences horizontally (inplace) */
    CVAPI(void) cvFlip( const CvArr* src, CvArr* dst CV_DEFAULT(NULL),
    int flip_mode CV_DEFAULT(0));

    I count to use the facedetect demo and replace the function that detect the face by the function flip. . The user choose the flip function using switches.Do you think that is a good idea?

    Switche 1 => No efect

    Switche 2 => Horizontal flip

    Switche 3 => Vertical flip

    Switche 4 => Horizontal and vertical switch 

    Thanks&Regards

  • Hello:

    The solution to rotate the  video is given in this thread :

    http://e2e.ti.com/support/dsp/tms320c6000_high_performance_dsps/f/115/p/351260/1267210.aspx#1267210

    Please make verified answer and close this thread.

    Think you !!