main module

class main.rpi_recorder

Bases: object

rpi_recorder is the top level class of natural mouse tracker. It creates RFID_reader objects 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 a pi_video_stream object and four RFID_reader objects.

run()

Main function that opens threads and runs pi_video_stream in main thread. In each thread, RFID_reader checks for RFID pickup. The pickup data is then logged to a text file by :class: pi_video_stream.

setdown()

Shuts down the pi_video_stream object and RFID_reader objects. Note that this method has to execute for the video and txt files to save properly.