webcam-easy icon indicating copy to clipboard operation
webcam-easy copied to clipboard

why in my code "environment" parameter doesn't work to solve reverse problems

Open changfu2021 opened this issue 3 years ago • 2 comments

the code always streaming video reversed, i tried webcam.flip() or set the 'environment' parameter to webcam but doesn't work: const webcam = new Webcam(webcamElement, 'environment', canvasElement);

is anybody solved this problem? 2

changfu2021 avatar Dec 16 '21 08:12 changfu2021

image

changfu2021 avatar Dec 16 '21 08:12 changfu2021

There is a typo in the source code, (enviroment vs environment) https://github.com/bensonruan/webcam-easy/blob/0ebfea62fec456c9b618d5f17c72386124e753b5/src/webcam-easy.js#L78

i made a fork with a bunch changes from unmerged PRs, which inludes fixes for this

MV-GH avatar Dec 23 '21 06:12 MV-GH