0
0

More than 1 year has passed since last update.

OpenCVでpython wrapper関係のテスト

Last updated at Posted at 2023-07-29

TL;DR

Python Testの動かし方

PYTHONPATH=/home/kmtr/work/opencv/modules/python/test ./setup_vars.sh python /home/kmtr/work/opencv/modules/python/test/test_misc.py

課題

  • Python wrapper周りの修正コードを書いた。
  • あれ?テストコードってどう書いたらいいのかな?
  • ソースコードは、opencv/modules/python/test にあるけど
  • キックする方法がよく分からない・・・

結論

このあたりに書いてた。公式ドキュメントは、あとで見つかったら書いておこう。

Opencvをbuildしていたフォルダで、こんな感じのコマンドを実行。

PYTHONPATH=/home/kmtr/work/opencv/modules/python/test ./setup_vars.sh python /home/kmtr/work/opencv/modules/python/test/test_misc.py

今回は、テストマクロは、test_misc.pyに追加する形としたので、ファイル追加は考慮していない。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0