UFOID / UFO-Detector

UFO Detector
http://ufoid.net/
GNU General Public License v3.0
54 stars 8 forks source link

ActualDetector doesn't always start recorder after detecting object #43

Closed hekkup closed 8 years ago

hekkup commented 8 years ago

The unit test of ActualDetector tells that bright objects are not always detected. In the current basic test a 10-pixel wide object moves across the screen in about one second. Detection rate is only around 50%. In this kind of controlled setup the detection rate should be 100%.

UFOID commented 8 years ago

Looking at posCounter I am getting 26 total positive detections for the detectBrightObjects() test which seems to indicate 100%

hekkup commented 8 years ago

Ok, in that case the test is catching another issue: the recorder is not always started even if objects are detected allright. The test is verifying the recorder thread has been started. I didn't actually look inside ActualDetector to see what's going on, just figured that the recorder should be started always.

UFOID commented 8 years ago

You do test the recording start in the ActualDetector unit test with QVERIFY(mockRecorderStartCount > 0); This test always passes for me as far as I can tell

hekkup commented 8 years ago

That was the test which was failing. Strange but now it passes for me, too, so the problem went away. I don't know why. Anyway, I'm going to close this issue.