Open LordLadybug opened 3 years ago
grab video frame TEST: is frame valid?
masking and thresholding TEST: does mask capture a laser dot?
return center TEST: are the coordinates returned on dot center?
Tests above are converted into a python module, will need further fleshing out. A few tests have already been filled out.
Will also have to consult the unit testing docs in official docs to make sure this is structured correctly.
All but two tests have been written in some capacity; currently 12 tests fail as of the last time the testing suite ran. Still need to put something for the contours center on dot test and the contours thrown off by other parts of image test.
Must add code to deal with issues when image that results from thresholding results in a blank image(black or white). 1 of 2 things has happened so far when fed a blank image: