/playground-typescript-opencv-notebooks

This repository is a sample project of OpenCV.js coded in TypeScript in a Jupyter notebook

Primary LanguageJupyter NotebookMIT LicenseMIT

playground-typescript-opencv-notebooks

This repository is a sample project of OpenCV.js coded in TypeScript in a Jupyter notebook.

Initialization

sudo apt install -y jupyter

Install tslab.

npm install -g tslab
tslab install

If tslab is recognized as the kernel of Jupyter, you will see the following.

$ jupyter kernelspec list
Available kernels:
  jslab      /home/node/.local/share/jupyter/kernels/jslab
  tslab      /home/node/.local/share/jupyter/kernels/tslab
  python3    /usr/share/jupyter/kernels/python3

Install the dependent npm package.

npm install

Start notebook server

Start the Notebook server.

jupyter notebook

Once started, access the URL displayed in the console with a browser. You should be able to create and run a TypeScript notebook.

notebook editor

There are several samples in the notebooks directory for your reference.

Reference