Hi every body;
I’ve developed an application for dragon board 410c to evaluate the board and specifically it’s gpu
so I’ve paste the first page of my github wiki page for that project, please take a look at and try it.
I believe there are good tip in the wiki
the app works with both D3 camera board and AIStarvision camera board.
The source code originally forked from d3 engineering github.
the github address is: https://github.com/gholamlooali/410c_camera_support
Introduction:
It’s a while that I’m evaluating the dragon board 410c for a computer vision application so I developed the source code originally forked from D3 Engineering website to test the csi camera on the db410c. the board has been tested in 2 mode: 1- direct dump mode 2- nv12 format mode In this journey I have encountered different subject that I’m trying to share which might help anybody who wants to use this board.
First thing first:
In this project I used the debian release 17.06 build #252 ,as it’s mentioned in the 96boards website in the debian image the camera is disabled and all I had to do was to make a small correction on the Device Tree File (enable camera) and re complile and rebuild the image . (every step is clearly in the 96boards web site . piece of cake ). Forgot to say I used 2 camera board one from D3 and another from AIStar vision, both working fine and did not notice any problem.
How to Run the application:
you can run the app in 2 mode :
1- Direct Dump - In this mode there is no image processing by snapdragon Soc and any frame from camera directly goes to memory and can be used, in this mode the format of the image is UYVY and res. =1920 x 1080 (which is a cropped image from original image)
2- NV12 format - Here the image is processed by CMSS (qualcomm camera module sub system) inside the soc and the final frame is in the NV12 format and can be cropped or scaled by the topology defined in the media-ctl command (in this app topology is res=1280x960 , no scale, no crop, format=NV12)
Applicatiion can be launched by :
./capture -d /dev/video0 -s /dev/v4l-subdev10 -v 3
for direct dump
./capture -d /dev/video3 -s /dev/v4l-subdev10 -v 3
for NV12 format (the only difference is video0 or video3)
Image Processing Commands:
while application is running,
press y to show only the y portion (luminance)
press u to show only the u portion (cb-chrominance)
press v to show only the v portion (cr-chrominance)
press r to show only the red color
press g to show only the green color
press b to show only the blue color
press c to show all colors
press s to apply soble filter for edge detection
press q to quit