Wooks_learning

face landmark print on image 본문

딥러닝/기타 코드

face landmark print on image

Wooks_ 2021. 9. 27. 14:23
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