warmshao / FasterLivePortrait

Bring portraits to life in Real Time!onnx/tensorrt support!实时肖像驱动!
507 stars 48 forks source link

Need to be able to flip the camera [feature request] #32

Closed LuckyNES closed 3 months ago

LuckyNES commented 3 months ago

I noticed when I look a certain direction it looks the opposite way. Can we add a command line attribute to camera.bat to allow me to flip horizontally? Thank you. Update: To be clear, I want to flip horizontally the input from my camera that controls the output.

warmshao commented 3 months ago

You can add the following line of code yourself below the line at this link: run.py#L60, which is frame = cv2.flip(frame, 1).

LuckyNES commented 3 months ago

Thank you!

warmshao commented 3 months ago

you are welcome