main module¶
-
class
main.rpi_recorder¶ Bases:
objectrpi_recorderis the top level class of natural mouse tracker. It createsRFID_readerobjects which run in separate threads, and also runs camera recording in the main loop. User config files can be found in ‘config.ini’-
__init__()¶ Constructor for
recorder. Loads the config file ‘config.ini’ and creates api_video_streamobject and fourRFID_readerobjects.
-
run()¶ Main function that opens threads and runs
pi_video_streamin main thread. In each thread,RFID_readerchecks for RFID pickup. The pickup data is then logged to a text file by :class: pi_video_stream.
-
setdown()¶ Shuts down the
pi_video_streamobject andRFID_readerobjects. Note that this method has to execute for the video and txt files to save properly.
-