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 understand face detection demo code easily

Hii Community members,

Now I have sucessfully ran face detection demo on C6748 LCDK and CCS 5. I am interested in understanding the face detection code. Please provide some references where I can get insight into the code.

 

With regards,

AS

  • Dear Amlan,
    We don't have document to understand the facedetect code but we have comments for code in every source files.
    Initializing the peripheral, PINMUX, setting interrupt, DAC init, facedetect task (openCV APIs) etc.,
  • Dear Sir,
    You are right and I am getting many information from comment lines but I am a beginner and those are not sufficent for getting started .
    1. Is there any manual or references from which I can learn how to start programming?
    Can you explain
    2. What is the memory location of the luma and chroma and how many bits?
    3. What is the memory location of the RGB and how many bits?
    4. Can we directly operate on those memory locations?
    All the above qestions are on C6748 LCDK and CCS 5.
  • Above questions are on Face detecion demo of CCS C6748 LCDK.

  • 1. Is there any manual or references from which I can learn how to start programming?
    Can you explain

    We don't have documents or guide for programming the face detect demo.


    2. What is the memory location of the luma and chroma and how many bits?
    3. What is the memory location of the RGB and how many bits?
    4. Can we directly operate on those memory locations?

    You can find those information while debugging the code, when you hit the particular function, it tells about that memory, value etc.,
  • Hi Amlan,

    For Various family of processors, TI release many software packages to demonstrate the capabilities of the processor. Usually documentation like user guide, getting started guides and software developer guide are provided to the customers to get start with the board to run the software programs, so that it will ease their development cycle.

    You may find guides on how to run but not the line by line explanation on code for any software or demo program for that matter. The reason is it would be huge to explain....

    It is good news that you are able to run the demo successfully; So that you can do debugging too.....
    If one would want to understand the code, I would recommend to do step by step debugging by using the debugging features such as step-in , step-out, setting breakpoints etc.

    Before even you start debugging, first look at the different source files and header and understand the purpose of each file and the list of functions contained in it and the significance of those functions.

    Always start and traverse from function , main() which is the starting point of any code!!...

    Some tools like source Insight will be more useful and helpful for reading and traversing source codes.

    While doing so, if you find any of the portions difficult to understand, please do come to us. We will help you.

    Good luck.
  • Dear Shankari G ,Thank you for your answer in details. With regards,AS
  • Hi Amlan,

    You are welcome!.