tamerthamoqa / facenet-realtime-face-recognition

A small-scale flask server facial recognition system, using a pre-trained facenet model with real-time web camera face recognition functionality, and a pre-trained Multi-Task Cascading Convolutional Neural Network (MTCNN) for face detection and cropping.
MIT License
98 stars 29 forks source link

Can i change the source from webcam to RTSP IP camera? #24

Open htaufik opened 3 years ago

htaufik commented 3 years ago

When i change cap = WebcamVideoStream(src=0).start() to cap = cv2.VideoCapture("rtsp://192.168.150.79:11083") and run the code, it says src is not a numerical tuple ERROR:flask.app:Exception on /live [GET]

what should i do?

tamerthamoqa commented 3 years ago

Hello htaufik,

I am not sure to be honest, does cap = WebcamVideoStream(src="rtsp://192.168.150.79:11083").start() work?

htaufik commented 3 years ago

It works, but the frame size is too large. I'm trying to edit the next line in cv2.resize but doesn't give effect