Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AI-Deck Himax camera callback not called again if registered too quickly after last catpure #411

Open
Jool99 opened this issue Mar 11, 2024 · 0 comments

Comments

@Jool99
Copy link

Jool99 commented Mar 11, 2024

How to reproduce:

  • Call pi_camera_capture async()
  • In callback function, call
    • pi_camera_control(&camera, PI_CAMERA_CMD_STOP, 0);
    • HERE (see below)
    • pi_camera_capture_async(&camera, cameraBuffer, CAM_WIDTH * CAM_HEIGHT, pi_task_callback(&task1, cam_handler, NULL));
    • pi_camera_control(&camera, PI_CAMERA_CMD_START, 0);

If there is not sufficient delay where it says HERE above, the callback function will not be called a second time.

If executing a sufficiently large CNN this might not be a problem but, weirdly, a delay is required.

For the exact setup, this issue was discovered in the AI Deck classification demo by bitcraze. The callback function discussed above corresponds to cam_handler in classification.c

This has previously been discussed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant