From adce7ed04fb8addef418c1f35368baadd7c71b3b Mon Sep 17 00:00:00 2001 From: Thomas Farstrike Date: Wed, 14 May 2025 11:04:08 +0200 Subject: [PATCH] Show count --- internal_filesystem/apps/com.example.camtest/assets/camtest.py | 3 +++ webcam_test/webcam_capture.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/internal_filesystem/apps/com.example.camtest/assets/camtest.py b/internal_filesystem/apps/com.example.camtest/assets/camtest.py index a7e34915..3d9ca1b2 100644 --- a/internal_filesystem/apps/com.example.camtest/assets/camtest.py +++ b/internal_filesystem/apps/com.example.camtest/assets/camtest.py @@ -209,7 +209,10 @@ if not cam: if cam or use_webcam: build_ui() + count=0 while appscreen == lv.screen_active() and keepgoing is True: + print(f"capture nr {count}") + count += 1 try_capture() time.sleep_ms(100) # Allow for the MicroPython REPL to still work. Reducing it doesn't seem to affect the on-display FPS. print("App backgrounded, deinitializing camera...") diff --git a/webcam_test/webcam_capture.c b/webcam_test/webcam_capture.c index 7a412aa7..3ec1489b 100644 --- a/webcam_test/webcam_capture.c +++ b/webcam_test/webcam_capture.c @@ -185,7 +185,7 @@ int main() { return -1; } - if (capture_frames(100) < 0) { + if (capture_frames(1000) < 0) { printf("Frame capture failed\n"); deinit_webcam(); return -1;