Posted: 17th 5月 2018 by 味噌解釈 in 未分類

imagenet
https://github.com/balancap/SSD-Tensorflow

SSD: Single Shot MultiBox Detector 高速リアルタイム物体検出デモをKerasで試す
https://qiita.com/PonDad/items/6f9e6d9397951cadc6be

 

WinPython + opencv
https://qiita.com/Takaki_/items/f1cf8d077836303f2028

opencv windows
https://qiita.com/hitomatagi/items/d5d475a446ec9c73261e

yawn-detector
https://github.com/yogeshchellappa/opencv-yawnDetector

makeblockで動かす
http://learn.makeblock.com/en/software/

mBotをscratchで動かしてみた
https://www.beatrans.co.jp/single-post/2017/05/22/mBot%E3%82%92Scratch%E3%81%A7%E5%8B%95%E3%81%8B%E3%81%97%E3%81%A6%E3%81%BF%E3%81%9F%EF%BC%81

scratchとpythonを繋ぐ
https://www.moyashi-koubou.com/blog/python_scratch_send_val_cmd/

pythonで文字を疑似入力
http://www.lisz-works.com/entry/pyautogui-key

https://note.nkmk.me/python-opencv-face-detection-haar-cascade/

import
cv2 face_cascade_path = '/usr/local/opt/opencv/share/'\ 'OpenCV/haarcascades/haarcascade_frontalface_default.xml' eye_cascade_path = '/usr/local/opt/opencv/share/'\ 'OpenCV/haarcascades/haarcascade_eye.xml' face_cascade = cv2.CascadeClassifier(face_cascade_path) eye_cascade = cv2.CascadeClassifier(eye_cascade_path) cap = cv2.VideoCapture(0) while True: ret, img = cap.read() gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) faces = face_cascade.detectMultiScale(gray, scaleFactor=1.3, minNeighbors=5) for x, y, w, h in faces: cv2.rectangle(img, (x, y), (x + w, y + h), (255, 0, 0), 2) face = img[y: y + h, x: x + w] face_gray = gray[y: y + h, x: x + w] eyes = eye_cascade.detectMultiScale(face_gray) for (ex, ey, ew, eh) in eyes: cv2.rectangle(face, (ex, ey), (ex + ew, ey + eh), (0, 255, 0), 2) cv2.imshow('video image', img) key = cv2.waitKey(10) if key == 27: # ESCキーで終了 break cap.release() cv2.destroyAllWindows()