Motion Detector with Websocket, OpenCV, Golang, Python
Dependencies:
Golang:
- gorilla/websocket
Python:
- websocket-client
- opencv
Protobuf
How to run:
-
Under the server folder, run the server with
go run server.go
-
Then go to the client folder, run the client
python client.py
-
I used opencv built-in method to connect the webcamera, and if motion is detected, it will save the image file in result folder, with timestamp in the file name.