Skip to content

Commit

Permalink
Updated console message
Browse files Browse the repository at this point in the history
  • Loading branch information
Migushthe2nd committed Apr 12, 2020
1 parent 267ca89 commit af03144
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions faceit_live.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit af03144

Please sign in to comment.