Skip to content

Instantly share code, notes, and snippets.

@romichi
Created May 21, 2012 08:47
Show Gist options
  • Save romichi/2761247 to your computer and use it in GitHub Desktop.
Save romichi/2761247 to your computer and use it in GitHub Desktop.
openCVで画像を表示する
# -*- coding:utf-8 -*-
import cv2
img = cv2.imread('test.png') #画像の読み込み
cv2.namedWindow('test') #windowの生成
cv2.imshow('test', img) #画像の表示
cv2.waitKey(0) #待機
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment