我用6410开发一款软件,要用到摄像头。结果打不开摄像头。
请高手指教,多谢!另悬赏现金200元,绝不食言!如果言辞有不妥之处请见谅!
开发板插上摄像头后的检测结果:
usb 1-1.2: new full speed USB device using s3c2410-ohci and address 5
usb 1-1.2: New USB device found, idVendor=05a9, idProduct=a511
usb 1-1.2: New USB device strings: Mfr=0, Product=0, SerialNumber=0
gspca: probing 05a9:a511
ov519: Device custom id 6c
ov519: Uploading quantization tables
ov519: I2C synced in 0 attempt(s)
ov519: starting OV7xx0 configuration
ov519: Sensor is an OV7620
input: ov519 as /devices/platform/s3c2410-ohci/usb1/1-1/1-1.2/input/input2
gspca: video2 created
程序相关部分值调整:
struct capture_info{
int width, height;
char device[256];
{
static struct capture_info capinfo={384, 384, "/dev/video2"};
... ...
caphandle=cap_driver->open(capinfo.device);
if(!caphandle){
printf("failed to open video for linux interface!\n");
return -1;
}
程序运行报错:
frame buffer: 480x272, 16bpp, 0x7f800byte
failed to open video for linux interface!
v4l: getimage
Segmentation fault
[ 此帖被xmut在2011-07-31 22:02重新编辑 ]