mirror of
https://github.com/opencv/opencv.git
synced 2026-12-03 05:33:03 -06:00
tests: enable disabled perf tests, remove orphaned ml perf files and unused test data generators (#30935)
* tests: re-enable and fix disabled perf tests, remove dead test code Signed-off-by: abhishek-gola <abhishek@opencv.org> * tests: drop OpticalFlowPyrLK_ovx, check RANSAC and multi-encode results, remove stale UPDATE_* hints Signed-off-by: Abhishek Gola <abhishek.gola@bigvisionllc.com> --------- Signed-off-by: abhishek-gola <abhishek@opencv.org> Signed-off-by: Abhishek Gola <abhishek.gola@bigvisionllc.com>
This commit is contained in:
@@ -209,10 +209,10 @@ PERF_TEST_P(Encode, multi, testing::ValuesIn(exts_multi))
|
||||
vec.push_back(vec.back().clone());
|
||||
circle(vec.back(), Point(100, 100), 45, Scalar(0, 0, 255, 0), 2, LINE_AA);
|
||||
vector<uchar> buf;
|
||||
EXPECT_TRUE(imwrite("test" + GetParam(), vec));
|
||||
|
||||
TEST_CYCLE() imencode(GetParam(), vec, buf);
|
||||
|
||||
EXPECT_FALSE(buf.empty());
|
||||
std::cout << " Encoded buffer size: " << buf.size()
|
||||
<< " bytes, Compression ratio: " << std::fixed << std::setprecision(2)
|
||||
<< (static_cast<double>(buf.size()) / (vec[0].total() * vec[0].channels())) * 100.0 << "%" << std::endl;
|
||||
|
||||
Reference in New Issue
Block a user