본문 바로가기
반응형

Python9

[소리 시각화 시키기 1일차] Sound 3D Volume plots in python with go.Volume A volume plot with go.Volume shows several partially transparent isosurfaces for volume rendering. The API of go.Volume is close to the one of go.Isosurface. However, whereas isosurface plots show all surfaces with the same opacity, tweaking the opacityscale parameter of go.Volume results in a depth effect and better volume rendering. go.Volume볼륨 렌더링을 위해 부분적으로 투명한 몇 가지 등가 곡면 이 표시된 볼륨 플롯입니다 . 의 A.. 2021. 2. 25.
수화 인식 프로젝트 - [7일차] 5일차 + convex Defects (openCV) 5일차를 합치는 이유 : 배경 전체를 검사하고 인식하는 방법은 비효율적이고 배경의 영역이 더 클 경우 결과가 잘 나오지 않는 문제 발생. 이를 해결하기 위해, 손을 놔둘 부분만 잘라서 검사하고자 함. Cv2. selectROI를 이용하여 특정 영역 지정. 5일차랑 합친 부분에 대한 결과물 : https://youtu.be/A_2Aeo579z8 YouTube www.youtube.com 현 문제점 : 손가락을 접어도 손가락으로 인식이 됨. 손의 중심을 구해야함. 이를 해결하기 위해, convex Defects를 이용하고자 함. 이에 대한 결과물 : 현재 수정한 코드 : import cv2 as cv import numpy as np from PIL import Image import os import ti.. 2020. 3. 9.
수화 인식 프로젝트 - [6일차] 다시 정리하기 (openCV) 기존 코드 : import numpy as np import cv2 from PIL import Image def backSubtraction(): try: cap=cv2.VideoCapture(0) except: print('camera_errro1') return while True: ret, frame = cap.read() cv2.imshow("VideoFrame", frame) if not ret: print('camera_error2') break dst = frame.copy() test = cv2.cvtColor(frame, cv2.COLOR_BGR2YCrCb) mask_hand = cv2.inRange(test, np.array([0,133,77]),np.array([255,173,127.. 2020. 3. 6.
수화 인식 프로젝트 - [5일차] 웹캠 특정 영역 잘라내기(openCV) 전체 화면을 하니 너무 많은 부분에서 살색 부분들이 잡혀서 그런 부분들을 좀 줄이고자 손을 놓을 부분을 정해 그 부분만 잘라서 검사하고자 추가하였습니다. 원하는 부분을 잘라내기 위해서 openCV selectROI를 사용하였습니다. import cv2 def on_mouse(event, x, y, flags, param): if event == cv2.EVENT_LBUTTONDOWN: points.append([x, y]) points = list() try: cap=cv2.VideoCapture(0) except: print('camera_errro1') ret, img = cap.read() rect = cv2.selectROI('Select Window', img, fromCenter = False.. 2020. 3. 6.
반응형