Skip to content

[BUG] [tracking] Tracking/DistanceAndOverlap.MedianFlow/1 fails on Windows on ARM64 #3933

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
pratham-mcw opened this issue May 12, 2025 · 0 comments

Comments

@pratham-mcw
Copy link

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.

Image

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:

Image

Steps to Reproduce

  1. Clone the opencv repository
  2. Create build folder in opencv root directory
  3. Move to build directory
  4. 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
  5. ninja
  6. 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant