ComputerVision
-
Computer Vision: 객체 트래킹Data Science 2022. 11. 13. 18:24
객체 트래킹 vs 객체 감지 Object Tracking Object detection Shorter time since it's reusing the data (object detection is already completed) longer time to detect since it has to be executed from scratch, frame by frame without reusing data Can be difficult if the object change poses drastically since it only detects an object at the first frame) In every frame, it detects the object again 객체 트래킹 두 가지 알고리즘..
-
goodFeaturesToTrack method 이용해 코너 검출시 Can't parse 'center'. Sequence item with index 0 has a wrong type 에러Data Science 2022. 8. 14. 14:47
OpenCV - 코너 검출 공부중 다음과 같은 에러가 떴다. 코너 검출은 코너점들이 영상이나 이미지에서 고유한 특징을 갖고 있을 경우 변별력을 두기 위해서다. 이미지 인식 등에 쓰인다. 기존 코드 # 23강 - 코너 검출 import cv2 import numpy as np src = cv2.imread("cup.webp") dst = src.copy() gray = cv2.cvtColor(src, cv2.COLOR_RGB2GRAY) # 하얀색 객체 검출, 배경은 검은색, 검출하려는 물체는 하얀색으로 변형 corners = cv2.goodFeaturesToTrack(gray, 100, 0.01, 5, blockSize=3, useHarrisDetector=True, k=0.03) # 코너 검출. 코너 품..