今回はOpenCVで読み込んだ画像を「Qt」で作成したウィンドウ上に表示する。公式サイトは以下だが、ざっと概要を見るにはWikipediaのほうがわかりやすい。 OpenCVで読み込んだ「画像オブジェクト(numpy.ndarray)」から「QImageオブジェクト」を作ればよい。なお ...
QLabelは、PyQt6でGUIアプリケーションを作成する際に最も基本的なウィジェットの一つです。ラベルは、テキストや画像を表示するための非常にシンプルなコンポーネントです。ここでは、QLabelの基本的な使い方と、少し工夫を加えた実用的なサンプルコード ...
Example of input() encapsulated in a library (InputUtilities class) that uses the PyQT6 package for the GUI. All the methods are static, so you do not need to create an instance of the class to use ...