-
Notifications
You must be signed in to change notification settings - Fork 21
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
YAML settings to detect birds in flight #5
Comments
Hi Stephen, I'm not sure if the software can work at those values, especially the resolution. The largest resolution I use is 640x480 and I can get about 16 FPS. I just tried a test with a resolution of 1920x1456, I could only get a max of 2 FPS (both tests are sending jpgs). This is when testing with As for the other settings, I have never used a I never deploy an imagenode PiCamera motion detector without first bench testing it inside with Thanks for your question. It makes me realize I need to document clearly that I have never tested any of this software at resolutions higher than 640x480. If I were to do such testing, I would probably modify imagenode to capture frames rapidly to a large memory buffer and then use a separate process to empty that memory buffer by sending images via imageZMQ. Python 3.8 has made such inter-process large memory buffers possible. It would allow high speed image capture and detection, but only until the buffer filled up. In my “bursts of motion with long periods of no motion” use case, that might work OK. I don’t know how well it would work with birds. For reference, here is my # Settings file for imagenode.py barn camera
---
node:
name: Barn
print_settings: False
patience: 30
send_threading: False
stall_watcher: True
heartbeat: 2
hub_address:
H1: tcp://192.168.86.71:5555
cameras:
P1:
resolution: (640, 480)
framerate: 16
vflip: True # change to True or False to suit your RPi PiCamera
exposure_mode: night
detectors:
motion:
ROI: (2,2),(98,98)
draw_roi: ((255,0,0),1)
send_frames: detected event # continuous or none or detected event
send_count: 4
delta_threshold: 3
min_motion_frames: 2
min_still_frames: 5
min_area: 2 # minimum area of motion as percent of ROI
blur_kernel_size: 15 # Guassian Blur kernel size
send_test_images: False
sensors:
T1:
name: Temp
type: DS18B20
gpio: 4
read_interval_minutes: 15 # read sensor every X minutes
min_difference: 1 # send if this much change in degrees The ROI is effectively the entire field of view. It captures coyotes, bobcats, raccoons and rabbits well. It captures birds in flight when they are close. Crows at 20 feet; hummingbirds at less than 10 feet. I don’t know if this software pipeline would work well to capture birds at any further than that, since they wouldn’t be very big in a 640x480 frame. Hope this answer helps clarify the settings I use. If you do get a higher resolution than 640x480 to work, please let me know the settings. Or any improvements you make to the motion detector. |
Jeff, Stephen |
Hi Stephen, Wow. Well done on the birds image capture. I had no idea that the motion detector could be tuned to such a small ROI percentage. Thanks for sharing. Your settings are very different from anything I have used (obviously, since I've never used such high resolution images ;-). I did not intend the use of Instead of doing a pull request, would you be willing to copy / paste your code and problem description and solution as an imagenode issue? That way any other imagenode Windows users will see it. I'll come up with a better way to implement the Patience class that does not involve Thanks, |
Jeff, |
Jeff,
I'm attempting to use
imagenode
with a DIY RPi Sky Camera to detect birds flying/migrating over my house, but I'm not having any success. I've used the Test #3 in imagenode/blob/master/docs/testing.rst in an attempt to tune my YAML file, but I'm not having any success. I've adjusted the delta_threshold, min_area, blur_kernel_size, min_motion_frames, and can't seem to get it to trigger satisfactorily. Am I asking to much of the software to detect such small objects?I've adjusted the min_area to as low as 0.1, and delta_threshold to 1. I'm using a resolution of 1920,1456, and a framerate of 30 with a RPi HQ Camera Module. Are there any adjustments you would recommend to achieve my goal. The raptor migration season is just beginning here in Texas, and we have numerous Mississippi Kites flying over the house in the morning.
The text was updated successfully, but these errors were encountered: