Show count

This commit is contained in:
Thomas Farstrike
2025-05-14 11:04:08 +02:00
parent 965818408c
commit adce7ed04f
2 changed files with 4 additions and 1 deletions
@@ -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...")
+1 -1
View File
@@ -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;