pageauc / pi-timolo

Raspberry PI-TIMOLO ( PI-TImelapse, MOtion, LOwLight ) uses RPI picamera and OpenCV for Remote Headless Security Monitoring using Motion Tracking, Rclone Auto Sync files with remote storage services. Auto Twilight Transitions and Low Light Camera Settings. Panoramic images using PanTiltHat and More. This project is featured on GitHub Awesome software.
MIT License
548 stars 101 forks source link

motion unfocused #69

Closed mmcalmeida closed 6 years ago

mmcalmeida commented 6 years ago

One of my cameras running pi-timolo saves unfocused motion pictures but saves focused timelapse pictures. Is the imagewidth and imageheight different for those tho options?

pageauc commented 6 years ago

Ok. The default config.py motion track setting is

motionTrackQuickPic=True 

that uses a stream image since it is much faster. If you want better quality motion image then set

motionTrackQuickPic=False  

This will stop the motion track stream and save a pi-camera image. There will be a several second delay for the pi-camera to switch between stream mode and image mode. This will take a much better image.

Note You can also adjust default jpg image quality using the config.py image setting

imageJpegQuality = 20      # default = 20  Valid jpg encoder quality values 1(high) - 40(low)

20 is the default camera quality and should be OK.

Please note I converted pi-timolo to use opencv motion tracking instead of motion detection since it greatly reduces false positives and also allows capturing a quickpic frame image from the motion track stream.

Let me know if this resolves your problem Regards Claude ....

mmcalmeida commented 6 years ago

I have changed motionTrackQuickPic from True to False and now the motion images are focused. Thank you very much. Manuel