Ai
-
Machine Learning with Python - IntroData Science 2022. 8. 18. 17:50
Python libraries for machine learning Numpy, Pandas, Scikit-learn Scikit-learnd의 기능: preprocessing, model_selection, building classifier, fitting the model, confusion_matrix (결과 출력) Supervised vs Unsupervised learning(지도학습 vs 비지도학습) Supervised model: how to teach? by labeling the dataset Unsupervised learning techniques: Dimension reduction / Density estimation / market basket analysis / Cluster..
-
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) # 코너 검출. 코너 품..