Skip to content

Instantly share code, notes, and snippets.

@kjunichi
Last active December 31, 2015 16:39
Show Gist options
  • Save kjunichi/8015351 to your computer and use it in GitHub Desktop.
Save kjunichi/8015351 to your computer and use it in GitHub Desktop.

OpenCVをPythonから使う

画像ファイルを読み込むには

ファイルを指定

import cv2
import numpy as np
 
img = cv2.imread('test1.jpg')
cv2.imshow('result', img)
 
cv2.waitKey(0)
cv2.destroyAllWindows()     

ダイアログで対話的に

T100TAのカメラが動かない件

sleep入れてみる

import time

time.sleep(2)

関連Gist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment