Portál AbcLinuxu, 2. listopadu 2025 14:51
int i;
scanf("%d", &i);
// for (i = 1; i < 65500; i = i * 1.031 + 1 )
arducam_set_control(camera_instance, V4L2_CID_EXPOSURE, i);
usleep(100);
sprintf(file_name, "arducam_%d.raw", 10000 + i);
save_image(camera_instance, file_name, width, height);
Jedná se o ten řádek "arducam_set_control". Řešení dotazu:
if(scanf("%d", &i) != 1)
{
perror("scanf error");
exit(1);
}
arducam_set_control. Zkuste se podívat sem:
https://github.com/ArduCAM/MIPI_Camera/blob/master/RPI/preview_resolution.c#L50
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.