- opencv-python
- motion recognition
- Python
- 태양전지
- UART
- 아두이노
- Imitating Arm
- artwork
- PCB Artwork
- 태양광 충전 휴대폰케이스
- 태양광
- Motion Estimation
- 체험지수
- 태양광 충전케이스
- odyssey x86J4105
- pcb
- 태양광 휴대폰케이스
- opencv
- pcb 설계
- 윈도우10
- Canny
- SIOR-TITAN
- JLCPCB
- RQ-TITAN
- EasyEDA
- Video
- 모션제어
- Arduino
- 오디세이 x86
- 태양 충전 케이스
- Today
- Total
목록컴퓨터공학/opencv-python (7)
제너럴공국

파란색으로 얼굴 인식! 노란색으로 웃음 인식! haarcascades를 이용한 얼굴과 웃음인식코드입니다. haarcascades의 학습된 모델파일은 아래 OpenCV github에서 다운받을 수 있습니다. github.com/opencv/opencv/tree/master/data opencv/opencv Open Source Computer Vision Library. Contribute to opencv/opencv development by creating an account on GitHub. github.com 사용 버전은 다음과 같습니다. cv2 3.4.2 numpy 1.18.1 파이썬 3.5.6 import numpy as np import cv2 print("import clear") fac..

#사용 버전 cv2 3.4.2 numpy 1.18.1 파이썬 3.5.6 import cv2 import numpy as np #image 지정 filename = "hy" #image 읽기 + 비율 유지하며 resize img = cv2.imread("img/"+filename+".jpg") ratio = 700.0 / img.shape[1] dim = (700, int(img.shape[0] * ratio)) img = cv2.resize(img, dim, interpolation=cv2.INTER_AREA) #가우스 필터 +Canny edge, 사진별 threshold 지정 필요 img = cv2.GaussianBlur(img, (5, 5), 0) #edge = cv2.Canny(img, 50, 70..

#사용 버전 cv2 3.4.2 numpy 1.18.1 파이썬 3.5.6 #직선 그리기 import cv2 #다각형을 그리려면 numpy 필요 import numpy as np img = cv2.imread('img/helmet3.jpg') img = cv2.resize(img, dsize=(640, 480), interpolation=cv2.INTER_AREA) img_gray = cv2.imread('img/hetmet3.jpg', cv2.IMREAD_GRAYSCALE) img_gray = cv2.resize(img, dsize=(320, 240), interpolation=cv2.INTER_AREA) #글자 작성 cv2.putText(img, "VISION PRACTICE", (320, 240), c..

cv2 3.4.2 numpy 1.18.1 파이썬 3.5.6 가우시안 블러 + 라플라시안 + 캐니 처리하기 import cv2 import numpy as np #카메라 작동하기 cap = cv2.VideoCapture(0) #카메라 작동시키기 while True: _, frame = cap.read() frame = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY) #가우시안 블러 + 라플라시안 + 캐니 처리하기 blurred_frame = cv2.GaussianBlur(frame, (5, 5), 0) laplacian = cv2.Laplacian(blurred_frame, cv2.CV_64F) canny = cv2.Canny(blurred_frame, 100, 150) #사진 띄우..