A collection of computer vision examples in JavaScript for the browser.
This repo contains a collection of computer vision examples for p5.js and JavaScript.
You can preview the examples here.
Clone this repository or download the zip, then run the p5 Editor. In the p5 Editor, click
File > Openand navigate to
cv-examples/and select
index.html. Click the play button, and this should launch the browser with links to each of the sketches.
Another way to run the examples is by starting a web server on
localhostat the root directory. Usually you need an
https://server to access the camera, but for
localhostthere is usually an exception. For example:
$ cd cv-examples $ python -m SimpleHTTPServer 8000
Then navigate to
https://localhost:8000/in your browser.