머신러닝/영상인식 7

영상인식 응용 resize, read, hsv, mask, morphology operation, hough, arctan2

#Steps#1. Reading and Resizing the Video#2. Convert Colors from BGR to HSV color space#3. Detecting the Pool Table Boundary#4. Cleaning Up the Mask - Morphogical Operations#5. Detecting Lines#6. Classifying Lines#7. Finding Table Corners#8. Defining Regions of Interest#9. Creating a Mask#10. Detecting Balls#11. Detecting and Marking Patterns#12. Analyzing Circle Positions and Cue Line#13. Collis..

영상인식 기초, 기존 모델 가져와서 적용, ball detection, interpolate(), get()

ball_tracker.py앞 포스팅의 player_tracker과 아주 유사하나, 커스텀한 모델을 사용했다. 박스와 텍스트 색깔을 연두색으로 바꿔주었다.from ultralytics import YOLOimport cv2import pickleclass BallTracker: def __init__(self, model_path): self.model = YOLO(model_path) def detect_frame(self, frame): results = self.model.predict(frame, conf=0.15)[0] # class_names = results.names ball_dict = {} for box in re..

영상인식 기초, pickle 저장하기, yolo11x.pt, player검출하기, __init__.py 역할

오늘은 yolo11x.pt를 가지고 테니스 코트의 player을 검출하는 방법을 알아본다. 해당 글에서는 사실 player는 아니고 사람은 전부다 검출한다. pickle을 이용해서 훈련시간을 줄인다. 저장하고 저장한 것을 활용하는 방법을 소개한다.   play_trackers.py from ultralytics import YOLOimport cv2import pickleclass PlayerTracker: def __init__(self, model_path): self.model = YOLO(model_path) def detect_frame(self, frame): results = self.model.track(frame, persist=True)[0] ..

영상인식 기초 욜로 파이토치 CNN 학습시키기 Resnet50

오늘은 아래의 깃헙에서 테니스코트의 포인트지점을 학습하는 cnn만들기를 학습해본다. GitHub - yastrebksv/TennisCourtDetector: Deep learning network for detecting tennis court GitHub - yastrebksv/TennisCourtDetector: Deep learning network for detecting tennis courtDeep learning network for detecting tennis court. Contribute to yastrebksv/TennisCourtDetector development by creating an account on GitHub.github.com  1. gdown 할 때올바른 URL형..

영상인식, roboflow, 데이터라벨링, 가지고 있는 데이터를 이용해 모델 만들기

https://app.roboflow.com/ Sign in to RoboflowEven if you're not a machine learning expert, you can use Roboflow train a custom, state-of-the-art computer vision model on your own data.app.roboflow.com  roboflow에서 회원가입 후, 프로젝트 만들기 roboflow에 프로젝트 만들기 라벨링  1) roboflow에서 모델 학습 해당 모델로 테스트한 결과  2) colab에서 모델 학습!pip install roboflowfrom roboflow import Roboflowrf = Roboflow(api_key="API KEY넣기!!")#URL보면..