Intermittent Pulse Y-maze Identification Record
Authors/Creators
Description
This Python program integrates computer vision and hardware control, using OpenCV for image processing, nidaqmx for DAQ signal management, and tkinter for user interaction. It checks the availability of two cameras, a DAQ card, and necessary libraries before prompting the user to select a directory for saving videos. The program allows the user to define a region of interest (ROI) on a live feed from Camera 1, where it detects "black objects(black mouse)" in real-time. When an object is detected, a DAQ signal is triggered via a separate thread managing periodic outputs, which can be used to control a laser for synchronized irradiation. Camera 1 records the detection process with annotations, while Camera 2 captures a standard feed, both saved to the specified directory. Live feeds are displayed during operation, and the program safely releases all hardware resources upon exit. This solution is ideal for automation, experiments, or surveillance requiring real-time detection and signal control.
Files
Files
(6.5 kB)
| Name | Size | |
|---|---|---|
|
md5:15ad1da328b5c1a3a482b19ce50c8dcc
|
6.5 kB | Download |
Additional details
Software
- Programming language
- Python