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?

VisualStudio2022でOpenCVを使う(Python編)

Last updated at Posted at 2023-11-07

仕事中にVisualStudio2022+Python+OpenCVの環境が必要になったのでメモ

1.Pythonプロジェクトを作成する

①.今回は「Pythonアプリケーション」でプロジェクトを作成
image.png

②.プロジェクト名と保存場所を決定し「作成」を押す
68747470733a2f2f71696974612d696d6167652d73746f72652e73332e61702d6e6f727468656173742d312e616d617a6f6e6177732e636f6d2f302f333631363532322f38626332356363662d643163342d663961622d333738632d3832616132316237643162382e706e6.png

2.OpenCVのパッケージをインストール

①画面左の「ソリューションエクスプローラー」から「Python環境」を右クリックして「すべてのPython環境を表示」をクリック」
image.png

②Pythonライブラリのインストール画面が出てくるので検索ボックスから「opencv-contrib-Python」を見つけてクリックする
image.png

③このようなポップアップが表示されますので「今すぐ昇格」を選択して管理者権限でインストールします
image.png

④インストールが完了し、画面下の出力画面に以下のようなログが出れば成功です
image.png

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?