Camera on i.MX6 Q

cancel
Showing results for 
Search instead for 
Did you mean: 

Camera on i.MX6 Q

578 Views
1990rahulreddy
Contributor IV

How can I enable camera from code?

I am using Yocto + eclipse & able to run "Hello word" on board...

or how can I include haarcascade classifier..in my code..for object detection

Please, Help...

Thanks in adVance

Labels (4)
0 Kudos
8 Replies

202 Views
joanxie
NXP TechSupport
NXP TechSupport

The edit-compile-test loop is the quickest way so can test your changes.

1. Go to the package's source code folder and edit your files.

2. Compile that particular package, e.g.

bitbake linux-imx -c compile -f

3. Deploy, e.g.

bitbake linux-imx -c deploy

4. Insert the SD card into your host, and copy the Linux kernel into the the first partition

sudo cp tmp/deploy/images/uImage /media/Boot

5. Insert the SD card into your board, boot and test your changes

6. In case you are satisfied with the results, you need to create a patch and add into the package's recipe. Check this document to execute this step.

0 Kudos

202 Views
1990rahulreddy
Contributor IV

Do you know, How to link libraries. I mean I have to edit code in Eclipse IDE  & make executable. I have cross compile "Hello world" & run on SABRE board, but, I am not able to link, opencv libraries in eclipse. I have compile for Linux GCC, but, not able to find solution for "Cross Compile"

0 Kudos

202 Views
1990rahulreddy
Contributor IV

@ Guanqiong Xie

I have detected face...but, how can I can edit code, in /usr/bin, there are executable....

I have to edit code & make binary again..

Please, tell how to do it.

0 Kudos

202 Views
joanxie
NXP TechSupport
NXP TechSupport

for how to buid your own code in yocto, I suggest you to read the document as below:

<The Yocto Project™ and Linux® Software Development for i.MX Application Processors >.

0 Kudos

202 Views
1990rahulreddy
Contributor IV

I have to edit face detection code & make binary again..How to proceed..From above pdf, I am not getting answer.

0 Kudos

202 Views
joanxie
NXP TechSupport
NXP TechSupport

I just find one example for your case in opencv release:

root@imx6qpsabresd:~# facedetect

This program demonstrates the cascade recognizer. Now you can use Haar or LBP features.

This classifier can recognize many kinds of rigid objects, once the appropriate classifier is trained.

It's most known use is for faces.

0 Kudos

202 Views
1990rahulreddy
Contributor IV

ERROR: Could not load classifier cascade,

i m creating directory & in that i put .xml file

what is other way..to solve the issue.

0 Kudos

202 Views
1990rahulreddy
Contributor IV

by default path is ../data/ & executable is in /usr/bin,

1. how to change the path or

2. how to make executable again, by editing code

or

what is other way to run it

0 Kudos