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.

How to convert an OpenCV classifier .xml to an hexadecimal array in a .h file

Hello,

I am working with a DSP (TMDXLCDK6748) and I want to work with the facedetect example which is in C6SDK. This example uses a OpenCV classifier for faces and I want to use another openCv classifier.

The problem is:

The facedetect example uses a openCV classifier in .h with a hexadecimal array. The other OpenCV classifiers are in .xml files.

If I want to use the OpenCv Classifier in the DSP, I need to export the file to a hexadecimal array in a .h.

How can I do this??

Thank you very much

Best Regard

  • Hi Javi,

    What are you trying to do ?

    For generic OpenCV queries, please do search in internet.

    Post your question on this forum If you have any device specific issues,

    Please elaborate your requirement and We try to support our level best.

  • Hello,

    I am using TMDXLCDK6748, this a DSP board with a single core. I want to use this board in biometrics aplications.
    To do that, I am going to start working with facedetect example which is in the C6SDK. This example uses OpenCV library, precompiled for DSP. Also, the example uses a OpenCV classifier which is in a hexadecimal array saved in a .h

    I need to use another OpenCV classifier, but every OpenCV classifier are saved in .xml. I need to convert this OpenCV classiffier in .xml file to an hexadecimal arrray saved in .h

    I cannot use the OpencCv classifier in .xml because the DSP board cannot read it.

    I talked to TI technic (asktexas@ti.com) and he told me that I had to write the question in this forum. I tried to write the same question in other forum as TI-RTOS Forum and C67x Single Core DSP Forum. And they told that this is the right forum.

    So, the question is:

    How can I convert the OpenCV classifier saved in .xml to a OpenCV classifier saved in .h??

    Thank you very much

    Best Regard

  • Hello,

    Any news??

    Thank you

    Best Regards