How to do Unit testing in OpenCV?
OpenCV v3.3.1:
Say for example, there is an API named get/set in VideoCapture Class, how to unit test that API?
There is Code for doing unit testing the get/set API's in doTEST() of doTEST() function in this link
I would like to Know, how to run this test case?
If there is Any possible way to add a new test case in this code, and would like to test on that? Also, is there any excel sheet saved for this output of the unit testing.?
My TRY: Making OpenCV_videoio.cpp as startup project and building, running. ocl_test.cpp from openCvCode Reference for initial running runs and shows me in Command Line, that too without my knowledge it closes, as it is finished executing.
So, please let me know how to do this testing in the opencv(unit testing) for an API check? Thanks in Advance...
may be this page will help you :https://github.com/opencv/opencv/wiki/HowToWritePerfTests and https://github.com/opencv/opencv/wiki...
yeah, i have been checking that one also, but how to run the test_accuracy and test_performances in the openCV, i could never get an answer on that?
I've checked this github's
QA Testing
HowToUsePerfTests
HowToWritePerfTests
opencv
Still i couldn't get a specific solution on that?
If it's possible try to be more stepwise instruction on how to do unit testing in c++ for opencv codes? Thanks
A way to learn unit test is to use a debugger. My own experience is only here
unfortunately a pretty broad question, can you be more specific ?
i've edited little bit with some broad explaination, i think this will help you with what problem i'm facing..