Python cv2.FONT_HERSHEY_SCRIPT_SIMPLEX Examples
The following are 8
code examples of cv2.FONT_HERSHEY_SCRIPT_SIMPLEX().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
cv2
, or try the search function
.
Example #1
Source File: faceswap.py From faceai with MIT License | 5 votes |
def annotate_landmarks(im, landmarks): im = im.copy() for idx, point in enumerate(landmarks): pos = (point[0, 0], point[0, 1]) cv2.putText( im, str(idx), pos, fontFace=cv2.FONT_HERSHEY_SCRIPT_SIMPLEX, fontScale=0.4, color=(0, 0, 255)) cv2.circle(im, pos, 3, color=(0, 255, 255)) return im
Example #2
Source File: Intermediate_MicroExpFuseNet.py From micro-expression-recognition with MIT License | 5 votes |
def annotate_landmarks(img, landmarks, font_scale = 0.4): for idx, point in enumerate(landmarks): pos = (point[0, 0], point[0, 1]) cv2.putText(img, str(idx), pos, fontFace=cv2.FONT_HERSHEY_SCRIPT_SIMPLEX, fontScale=font_scale, color=(0, 0, 255)) cv2.circle(img, pos, 3, color=(0, 255, 255)) return img
Example #3
Source File: Late_MicroExpFuseNet.py From micro-expression-recognition with MIT License | 5 votes |
def annotate_landmarks(img, landmarks, font_scale = 0.4): for idx, point in enumerate(landmarks): pos = (point[0, 0], point[0, 1]) cv2.putText(img, str(idx), pos, fontFace=cv2.FONT_HERSHEY_SCRIPT_SIMPLEX, fontScale=font_scale, color=(0, 0, 255)) cv2.circle(img, pos, 3, color=(0, 255, 255)) return img
Example #4
Source File: Intermediate_MicroFuseNet.py From micro-expression-recognition with MIT License | 5 votes |
def annotate_landmarks(img, landmarks, font_scale = 0.4): for idx, point in enumerate(landmarks): pos = (point[0, 0], point[0, 1]) cv2.putText(img, str(idx), pos, fontFace=cv2.FONT_HERSHEY_SCRIPT_SIMPLEX, fontScale=font_scale, color=(0, 0, 255)) cv2.circle(img, pos, 3, color=(0, 255, 255)) return img
Example #5
Source File: Late_MicroFuseNet.py From micro-expression-recognition with MIT License | 5 votes |
def annotate_landmarks(img, landmarks, font_scale = 0.4): for idx, point in enumerate(landmarks): pos = (point[0, 0], point[0, 1]) cv2.putText(img, str(idx), pos, fontFace=cv2.FONT_HERSHEY_SCRIPT_SIMPLEX, fontScale=font_scale, color=(0, 0, 255)) cv2.circle(img, pos, 3, color=(0, 255, 255)) return img
Example #6
Source File: faceswap.py From faceswap with MIT License | 5 votes |
def annotate_landmarks(im, landmarks): im = im.copy() for idx, point in enumerate(landmarks): pos = (point[0, 0], point[0, 1]) cv2.putText(im, str(idx), pos, fontFace=cv2.FONT_HERSHEY_SCRIPT_SIMPLEX, fontScale=0.4, color=(0, 0, 255)) cv2.circle(im, pos, 3, color=(0, 255, 255)) return im
Example #7
Source File: faceswap.py From mica-race-from-face with MIT License | 5 votes |
def annotate_landmarks(im, landmarks): im = im.copy() for idx, point in enumerate(landmarks): pos = (point[0, 0], point[0, 1]) cv2.putText(im, str(idx), pos, fontFace=cv2.FONT_HERSHEY_SCRIPT_SIMPLEX, fontScale=0.4, color=(0, 0, 255)) cv2.circle(im, pos, 3, color=(0, 255, 255)) return im
Example #8
Source File: face_swap.py From average_portrait with MIT License | 5 votes |
def annotate_landmarks(im, landmarks): im = im.copy() for idx, point in enumerate(landmarks): pos = (point[0, 0], point[0, 1]) cv2.putText(im, str(idx), pos, fontFace=cv2.FONT_HERSHEY_SCRIPT_SIMPLEX, fontScale=0.4, color=(0, 0, 255)) cv2.circle(im, pos, 3, color=(0, 255, 255)) return im