opencv_contrib
opencv_contrib copied to clipboard
[BUG] [tracking] Tracking/DistanceAndOverlap.MedianFlow/1 fails on Windows on ARM64
Description The test Tracking/DistanceAndOverlap.MedianFlow/1 fails Windows on ARM64 when running OpenCV test suite using the run.py script. I added debug statements in modules\video\test\test_trackers.impl.hpp.
Upon running test script in x64 vs ARM64 I got different values of frame.
x64: startFrame = 1 [110, 110, 110] [110, 110, 110] [110, 110, 110] [109, 109, 109] [111, 111, 111] [117, 117, 117] [126, 126, 126] [124, 124, 124] [124, 124, 124] [123, 123, 123] [124, 124, 124] [124, 124, 124] [121, 121, 121] [122, 122, 122] [122, 122, 122] [117, 117, 117] [121, 121, 121] [124, 124, 124] [123, 123, 123] [122, 122, 122] [102, 102, 102] [102, 102, 102] [102, 102, 102] [102, 102, 102] [102, 102, 102] [102, 102, 102] [104, 104, 104] [107, 107, 107] [109, 109, 109] [114, 114, 114] [121, 121, 121] [119, 119, 119] [114, 114, 114] [109, 109, 109] [111, 111, 111] [121, 121, 121] [131, 131, 131] [132, 132, 132] [126, 126, 126] [126, 126, 126]
ARM64: startFrame = 1 [111, 111, 111] [111, 111, 111] [111, 111, 111] [110, 110, 110] [112, 112, 112] [118, 118, 118] [127, 127, 127] [125, 125, 125] [125, 125, 125] [124, 124, 124] [125, 125, 125] [125, 125, 125] [121, 121, 121] [123, 123, 123] [123, 123, 123] [118, 118, 118] [121, 121, 121] [125, 125, 125] [124, 124, 124] [123, 123, 123] [103, 103, 103] [103, 103, 103] [103, 103, 103] [103, 103, 103] [103, 103, 103] [103, 103, 103] [105, 105, 105] [107, 107, 107] [110, 110, 110] [114, 114, 114] [121, 121, 121] [120, 120, 120] [114, 114, 114] [110, 110, 110] [112, 112, 112] [121, 121, 121] [132, 132, 132] [133, 133, 133] [127, 127, 127] [127, 127, 127]
Error in Windows on ARM64:
Steps to Reproduce
- Clone the opencv repository
- Create build folder in opencv root directory
- Move to build directory
- Run this command from opencv/build directory -->
cmake -S .. -B . -G "Ninja" -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_BUILD_TYPE=Release -DBUILD_opencv_world=ON -DBUILD_TESTS=ON -DBUILD_PERF_TESTS=ON -DWITH_ITT=OFF -DWITH_OPENCL=OFF -DWITH_OPENCLAMDBLAS=OFF -DWITH_OPENCLAMDFFT=OFF -DWITH_OPENCL_D3D11_NV=OFF -DWITH_DIRECTML=OFF -DWITH_DIRECTX=OFF -DWITH_ADE=OFF -DWITH_CAROTENE=OFF -DOPENCV_EXTRA_MODULES_PATH=<path to dir>/opencv_contrib/modules - ninja
- ninja install
Run the test using python script: python \clang_opencv\modules\ts\misc\run.py \clang_opencv\build --accuracy -t tracking --gtest_filter=Tracking/DistanceAndOverlap.MedianFlow/1