Commented out debug prints. Fixed a couple little bugs in the cleanUpVids function. Converted the script from using getImageData to getFrameData and handling the recording to file in-line instead of in a separate method because there seemed to be no other way to get frames for analysis while recording to disk. Changed the output file names for when analyzing a video file so that they would not overwrite or be confusing (by including a camera number that may be different from the original). This version has been successfully testing in both file and camera mode for a 3 minute run. Note, the video runs much faster since the frames recorded have nothing to do with the fps default. The recorded frames are the same ones that are analyzed in the live camera analysis.
Commented out debug prints. Fixed a couple little bugs in the cleanUpVids function. Converted the script from using getImageData to getFrameData and handling the recording to file in-line instead of in a separate method because there seemed to be no other way to get frames for analysis while recording to disk. Changed the output file names for when analyzing a video file so that they would not overwrite or be confusing (by including a camera number that may be different from the original). This version has been successfully testing in both file and camera mode for a 3 minute run. Note, the video runs much faster since the frames recorded have nothing to do with the fps default. The recorded frames are the same ones that are analyzed in the live camera analysis.

hepcat72/flyMultiPlate