From c790a02a21a9a2a75025da41dee36c819b4eff3d Mon Sep 17 00:00:00 2001 From: Daniel Nouri Date: Mon, 17 Oct 2016 11:20:15 -0400 Subject: [PATCH] Flip webcam image to make it a mirror --- webcam_demo.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/webcam_demo.lua b/webcam_demo.lua index 6a98741..0debeb4 100644 --- a/webcam_demo.lua +++ b/webcam_demo.lua @@ -74,6 +74,7 @@ local function main() while true do -- Grab a frame from the webcam local img = cam:forward() + img = image.flip(img, 3) -- Preprocess the frame local H, W = img:size(2), img:size(3)