opencv/modules/python/test
Dmitry Kurtaev ba19416730
Merge pull request #27581 from dkurt:d.kuryaev/dlpack
### Pull Request Readiness Checklist

resolves #16295

```
docker run --gpus 0 -v ~/opencv:/opencv -v ~/opencv_contrib:/opencv_contrib -it nvidia/cuda:12.8.1-cudnn-devel-ubuntu22.04
apt-get update && apt-get install -y cmake python3-dev python3-pip python3-venv &&
python3 -m venv .venv &&
source .venv/bin/activate &&
pip install -U pip &&
pip install -U numpy &&
pip install torch --index-url https://download.pytorch.org/whl/cu128 &&
cmake \
    -DWITH_OPENCL=OFF \
    -DCMAKE_BUILD_TYPE=Release \
    -DBUILD_DOCS=OFF \
    -DWITH_CUDA=ON \
    -DOPENCV_DNN_CUDA=ON \
    -DOPENCV_EXTRA_MODULES_PATH=/opencv_contrib/modules \
    -DBUILD_LIST=ts,cudev,python3 \
    -S /opencv -B /opencv_build &&
cmake --build /opencv_build -j16
export PYTHONPATH=/opencv_build/lib/python3/:$PYTHONPATH
```

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

- [x] I agree to contribute to the project under Apache 2 License.
- [x] To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
- [x] The PR is proposed to the proper branch
- [x] There is a reference to the original bug report and related work
- [x] There is accuracy test, performance test and test data in opencv_extra repository, if applicable
      Patch to opencv_extra has the same branch name.
- [x] The feature is well documented and sample code can be built with the project CMake
2025-08-20 11:43:41 +03:00
..
CMakeLists.txt python: discover tests from module/misc/python/test paths 2019-04-10 18:35:35 +00:00
test_algorithm_rw.py Fix spelling typos 2019-12-27 12:46:53 +00:00
test_async.py core: Async API / AsyncArray 2019-05-18 19:32:23 +00:00
test_camshift.py python: 'cv2.' -> 'cv.' via 'import cv2 as cv' 2017-12-11 13:46:55 +03:00
test_copytomask.py python: replace numpy.full() to support numpy<1.13 2020-10-05 15:15:49 +00:00
test_cuda.py Merge pull request #27581 from dkurt:d.kuryaev/dlpack 2025-08-20 11:43:41 +03:00
test_dft.py python: 'cv2.' -> 'cv.' via 'import cv2 as cv' 2017-12-11 13:46:55 +03:00
test_features2d.py Merge pull request #13415 from alalek:issue_13406 2018-12-12 13:26:31 +03:00
test_filestorage_io.py port base64 encoding from 3.4 2021-07-08 10:42:44 +03:00
test_fitline.py python: 'cv2.' -> 'cv.' via 'import cv2 as cv' 2017-12-11 13:46:55 +03:00
test_fs_cache_dir.py Merge pull request #19668 from asmorkalov:as/filesystem_py 2021-03-04 16:17:57 +00:00
test_gaussian_mix.py python: 'cv2.' -> 'cv.' via 'import cv2 as cv' 2017-12-11 13:46:55 +03:00
test_grabcut.py python: 'cv2.' -> 'cv.' via 'import cv2 as cv' 2017-12-11 13:46:55 +03:00
test_houghcircles.py Merge pull request #27389 from MaximSmolskiy:add_HoughCirclesWithAccumulator_binding 2025-06-02 10:23:17 +03:00
test_houghlines.py Merge pull request #19423 from LaurentBerger:houg_acc 2021-02-01 21:22:10 +00:00
test_imread.py Merge pull request #27499 from vpisarev:image_io_with_metadata 2025-07-01 18:38:22 +03:00
test_kmeans.py python: 'cv2.' -> 'cv.' via 'import cv2 as cv' 2017-12-11 13:46:55 +03:00
test_legacy.py feat: update conversion logic for std::vector<T> in Python bindings 2021-09-01 13:00:21 +03:00
test_mat.py python: cv.Mat wrapper over numpy.ndarray 2021-09-21 04:14:15 +00:00
test_misc.py Merge pull request #25643 from cpoerschke:issue-25635-find-existing-file-tests 2024-08-05 15:28:16 +03:00
test_morphology.py python: 'cv2.' -> 'cv.' via 'import cv2 as cv' 2017-12-11 13:46:55 +03:00
test_mser.py python: 'cv2.' -> 'cv.' via 'import cv2 as cv' 2017-12-11 13:46:55 +03:00
test_norm.py Merge pull request #23691 from dkurt:pycv_float16_fixes 2023-05-26 18:56:21 +03:00
test_pathlike.py Merge pull request #24415 from thewoz:imread 2024-03-29 10:51:19 +03:00
test_persistence.py Fix spelling typos 2019-12-27 12:46:53 +00:00
test_squares.py Update findContours parameter type 2018-09-28 18:42:48 +03:00
test_texture_flow.py python: 'cv2.' -> 'cv.' via 'import cv2 as cv' 2017-12-11 13:46:55 +03:00
test_umat.py Merge pull request #22959 from feuerste:parallel_mertens 2022-12-21 14:10:59 +00:00
test_watershed.py python: 'cv2.' -> 'cv.' via 'import cv2 as cv' 2017-12-11 13:46:55 +03:00
test.py fix python test runner wildcard handling 2021-01-26 19:05:40 +01:00
tests_common.py replace deprecated np.fromstring() by np.frombuffer() 2025-02-21 10:37:11 +05:30
tst_scene_render.py Remove references to deprecated NumPy type aliases. 2022-12-23 13:53:49 +03:00