Ask coding questions

← Back to all posts
Is there any way to do use your webcam on Repl.it or have camera recognition
h
TheWeebMonkey

I was wondering if there was any way to have facial recognition with OpenCV (or cv2 with python) like you would use it on a Raspberry pi (btw I have a raspberry pi but I don't have a camera with it so I was going to use my laptop)

Answered by RYANTADIPARTHI [earned 5 cycles]
View Answer
Voters
ManuelFonseca16
TheWeebMonkey
Comments
hotnewtop
RYANTADIPARTHI

I think there is. Opencv should work properly in repl.it

TheWeebMonkey

@RYANTADIPARTHI it does but I don't know how to use a camera detection with repl since it's on a VM instead of an actual computer and my camera isn't getting access to my code either

RYANTADIPARTHI

@DallasBaker so you are saying that you don't know how to use the camera on repl.it right?

TheWeebMonkey

@RYANTADIPARTHI yes but I know how to use it on windows its self

RYANTADIPARTHI

@DallasBaker ah. search for the opencv-python package in packages. Then once that's installed, import it by saying import opencv. Check this link for more info:

https://stackoverflow.com/questions/54768722/how-to-use-opencv-with-repl-it

TheWeebMonkey

@RYANTADIPARTHI ok thank you

RYANTADIPARTHI
TheWeebMonkey