0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

OpenCVで動画を読み込みPyQt6に表示してみた(車輪の再開発) その2

Posted at

OpenCVで動画を読み込みPyQt6で表示

OpenCVで動画を読み込みPyQt5/PyQtに表示してみた(車輪の再開発) をPyQt6 にしました。

PyQt6版(github)

PyQt5->6で定数の定義が変わったけど、その程度。
Github Copilotにやらせたら全部やってくれた。

uv sync
uv run video-player.py -a <hogehoge.mp4>

PyQt6版をCython化してみた

PyQt6+Cython版(github)

引数省略していたところが怒られたけど、ちょっとの修正で対応できた。

uv sync
uv run setup.py build_ext --inplace
uv run video-player.py -a <hogehoge.mp4>

FullHDだと55FPSぐらいだったのが、
Cythonにすると60FPSまで出たり出なかったり。(繰り返すとなぜか遅くなったり・・・)

FullHD×3倍の動画だと、15FPSから20FPSに。
読み込みと描画パラレルにできればもう少し早くなるかもだけど。。。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?