zeus
40f910e499
|
3 years ago | |
---|---|---|
.. | ||
img | 3 years ago | |
views | 3 years ago | |
LICENSE | 3 years ago | |
README.md | 3 years ago | |
dlib-master.zip | 3 years ago | |
install-npm-opencv.sh | 3 years ago | |
opencv-4.x.zip | 3 years ago | |
opencv_contrib.zip | 3 years ago | |
package.json | 3 years ago | |
server.js | 3 years ago |
README.md
Using opencv4nodejs to stream your webcam with Express, ejs and Socket IO
Medium Blog Link
Follow the steps to stream your webcam with Express and socket io
Link for Socket IO Content Delivery Network which is hosted by cloudflare Link
Step 1:
Open your terminal and git clone with the following command
git clone https://github.com/narenltk/webcam_.git
Step 2:
Since I have given all the dependencies in the package.json all you need to do is give the following command
npm install
This command actually installs all the dependencies given in the package.json file.
Step 3:
Once your done with all the steps given above all you to do is just fire up the server, with the following command and check your localhost
npm start
or
node server.js
or
nodemon server.js
checkout "http://localhost:3030"
I have used the port 3030 and you can change the port to any number you like.
Note
You can also host the application by creating your own SSL certificate and the link for code for that is here Link
Or in any case your lazy like me you can also host the application using ngrok to host in a public server and with the following command
Linux users command:
./ngrok http 3030
windows users command:
ngrok http 3030