From af03144b5e108bbb44926b2aa472c09827c09b0b Mon Sep 17 00:00:00 2001 From: Migushthe2nd Date: Sun, 12 Apr 2020 22:31:52 +0200 Subject: [PATCH] Updated console message --- README.md | 1 + faceit_live.py | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index b018a2d..84479d3 100644 --- a/README.md +++ b/README.md @@ -139,6 +139,7 @@ $ python faceit_live.py --webcam_id 0 --stream_id 1 --gpu_id 0 --system linux ## Key Shortcuts when running ``` +B - cycle previous image in media folder N - cycle next image in media folder C - recenter webcam and create a new base image T - option to alter between 'Relative' and 'Absolute' transformations mode diff --git a/faceit_live.py b/faceit_live.py index 8a87181..02f2f84 100644 --- a/faceit_live.py +++ b/faceit_live.py @@ -121,7 +121,7 @@ def main(): cv2.resizeWindow('Stream', webcam_width,webcam_height) - print("Press C to center Webcam, Press N for next image in media directory, T to alter between relative and absolute transformation, Q to quit") + print("Press C to center Webcam, Press B/N for previous/next image in media directory, T to alter between relative and absolute transformation, Q to quit") x1,y1,x2,y2 = [0,0,0,0] relative = True while True: @@ -171,16 +171,16 @@ def main(): video_capture.release() break elif k==ord('c'): - print("Centering the image") # center + print("Centering the image") reset = True elif k==ord('b'): - # rotate images + # previous image print("Loading previous image") source_image = readpreviousimage() reset = True elif k==ord('n'): - # rotate images + # next image print("Loading next image") source_image = readnextimage() reset = True