-
Notifications
You must be signed in to change notification settings - Fork 19
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
Multiple overlaid timestamps on an image being sent by detect_motion #15
Comments
Hi Stephen (@sbkirby), |
Hey Jeff @jeffbass ,
For the above resolution, it took about 51.85 seconds to fetch 200 frames or 3.85fps. A resolution of (640,480) took 6.75 seconds or 29.6fps running on an RPi 4B with the HQ camera module. Next, I switched to the
Note: I used the SaveQueue class below to save the images.
I appears as though this is a "Feature" of frames acquired from videostreams in a thread. The same frame remains available until the thread is capable of providing another. |
Hi Stephen @sbkirby, I'm going to use an unthreaded Your test is also making me think about the |
Hi Stephen @sbkirby, cameras:
P1:
viewname: Mailbox
resolution: (640, 480)
framerate: 16
threaded_read: False # this is the new option; False selects PiCameraUnthreadedStream
vflip: False
exposure_mode: auto # night
detectors:
motion:
ROI: (17,45),(85,61)
draw_roi: ((255,0,0),1)
send_frames: detected event # continuous
send_count: 2
delta_threshold: 3
min_motion_frames: 2
min_still_frames: 2
min_area: 3 # minimum area of motion as percent of ROI
blur_kernel_size: 15 # Guassian Blur kernel size
send_test_images: False
draw_time: ((0,255,255),1)
draw_time_org: (5,5) Perhaps you could try out this branch and use that yaml option and tell me if it eliminates the overlaid timestamps for you as well. |
I'll try it out, and let you know. |
I works fine, great job. Unfortunately, it reveals just how slow these RPi camera modules really are. Prior to working with these cameras, I always thought that ALL image processing software would be much slower than the hardware. Today, I'm not so sure. I'm going to play around with the exposure and gain control to see if I can increase the fps. Thanks for all your hard work. |
@sbkirby, Regarding image processing speed: I have found that doing any image transformation on the RPi slows down the image pipeline. I noticed you have a |
I have merged the The |
Hi Stephen (@sbkirby ),
Thanks again for your debugging efforts on images captured by detect_motion. I used your "draw_time" yaml settings on one of my RPi cams that is sending at 640x480 resolution with a framerate setting of 16. It sent an image with two timestamps on the same image (and it also sent images with a single timestamp). I now have a reproducible example that shows it is not your use of the high resolution camera that is the problem. I'll try to debug this relatively soon and keep you posted. If you come up with anything, let me know.
Here's the image from my Driveway-Mailbox RPi with 2 timestamps on the same image.
Jeff
The text was updated successfully, but these errors were encountered: