Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- Linux
- #Linux
- #landmark
- #gpu training
- #pytorch
- #torchvision
- #activation function
- #annotation
- #선형
- #Anaconda
- pytorch
- #Jetson nano
- #비선형
- #object detection
Archives
- Today
- Total
Wooks_learning
face landmark print on image 본문
import cv2
import numpy as np
pts = 'pts file 경로'
pts = np.loadtxt(pts)
image = cv2.imread('image file 경로')
for i in range(70):
cv2.circle(image, center = (int(pts[i][0]), int(pts[i][1])), radius = 1, color = (0,0,255), thickness = 2)
cv2.putText(image, str(i), (int(pts[i][0]), int(pts[i][1])), cv2.FONT_HERSHEY_PLAIN, 0.6, (255,0,0), 1, cv2.LINE_AA)
cv2.imshow('pts on image', image)
cv2.waitKey(0)
'딥러닝 > 기타 코드' 카테고리의 다른 글
check corrupt JPEG data (0) | 2021.11.24 |
---|---|
check the training data (0) | 2021.10.19 |
Comments