Camera on i.MX6 Q

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Camera on i.MX6 Q

4,867 次查看
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

标签 (4)
0 项奖励
回复
8 回复数

4,491 次查看
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 项奖励
回复

4,491 次查看
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 项奖励
回复

4,491 次查看
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 项奖励
回复

4,491 次查看
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 项奖励
回复

4,491 次查看
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 项奖励
回复

4,491 次查看
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 项奖励
回复

4,491 次查看
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 项奖励
回复

4,491 次查看
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 项奖励
回复