MouseTrap Classes
From Foss2Serve
Contents |
Classes
app
main.py
- Loads the Image Detection Module (idm)
commons.py
- Stores global variables for Ocvfw
* cv: OpenCV related variables * hg: OpenCV.highgui related variables. Set in ocvfw/idm/ color.py to be used in the creation of the Window and Trackbar * abs_path: the absolute path to the commons file * haar_cds: array with the haar xml file paths * colors: array with the types of colors the image can appear in * singleton: class instance to be passed through program globally
- Methods:
get_ch(color): returns channel corresponding to the color given (rgb, bgr, gray)
environment.py
debug.py
- This is used to display messages to the command line
- Very helpful to troubleshoot