Skip to main content

Motion detector for a narrow runway

Project description

Walkway - motion detector

Capture high frame rate videos of a custom-made, CatWalk like setup for mice using a FLIR's BlackFly camera. A video is saved to disk whenever motion is detected and if locomotion satisfies the criteria defined in the configuration (e.g. ignoring brief periods of locomotion).

Installation

Usage overview

  • Power on IR light source.

  • Plug in camera to computer.

  • Adjust camera settings using SpinView (optional)

    • Adjust camera aperture and focus to view region of interest under the light conditions expected during the experiment.
    • Adjust image format to limit the view to the apparatus' walkway. Note that some parameters can only be changed when acquisition is off.
  • Open cmd

  • Run python -m walkway.capture to start auto-triggering.

  • Press q on the GUI or ctrl+c on the command window when done.

  • Video files are saved to cmd's working directory (defaults to C:/Users/<your username> in Windows). You may cd to a different directory prior to start capturing to save videos elsewhere.

  • You may use a configuration file in JSON format with python -m walkway.capture --configuration configuration.json; this will override any parameters previously set to the camera.

  • Run python -m walkway.capture --help for more information.

  • Run python -m walkway.gui to open GUI.

  • Run python -m walkway.experiment to open an experiment with two FLIR cameras and a Petteron microphone.

Version History

  • 0.0.9: Fixed folder select and load profile in experiment.
  • 0.0.8: Added a GUI and an experiment.
  • 0.0.7: Changed defaults. Added image parameters.
  • 0.0.4: Add argument parser and configuration file.
  • 0.0.1: Initial release. Scripts are multithreaded so as to not lag during writing operations to disk.

License

© 2021 Leonardo Molina

This project is licensed under the GNU GPLv3 License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

walkway-0.0.8.tar.gz (31.0 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page