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
- Install SpinView (Spinnaker Web Installer)
- Install Python version 3.8
- Open
cmd
- Run
pip install walkway
orpython -m pip install walkway
.
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 orctrl+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 maycd
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
File details
Details for the file walkway-0.0.8.tar.gz
.
File metadata
- Download URL: walkway-0.0.8.tar.gz
- Upload date:
- Size: 31.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0566fd0a0d9572c27c995ba8d736b9e463898d034e9131f2cbeeddd0c380efdb |
|
MD5 | 51e0b25cba838bfcbb923a0d29e91841 |
|
BLAKE2b-256 | bf941f79465ebe66186bcc28096793041df0ee65d47a0e5639101f064470e672 |