Skip to content

JS - adds a tutorial about running opencv.js in Node.js - #15425

Merged
alalek merged 8 commits into
opencv:3.4from
cancerberoSgx:nodejs
Nov 13, 2019
Merged

alalek merged 8 commits into
opencv:3.4from
cancerberoSgx:nodejs

Conversation

@cancerberoSgx

@cancerberoSgx cancerberoSgx commented Aug 31, 2019 •

Copy link
Copy Markdown
Contributor
  • only documentation
  • no Node.js experience assumed
  • starts with a minimal example
  • example of using a node.s library (jimp) to read/write images
  • example of using jsdom and node-canvas to support opencv.js utilities like cv.imread and cv.imshow

Doubts

  • is the location of the tutorial is correct?, or should be in a separate section?
  • should it be splitted into separate tutorials or it is fine as a single document ?
  • should I include the code in doc/js_tutorials/js_assets ?
  • if so should I reference/include the code from markdown instead of embedding the code ?

TODO:

  • load training models from filesystem like face recognition (WIP)
force_builders_only=Docs
build_image:Docs=docs-js

@asmorkalov

Copy link
Copy Markdown
Contributor

@cancerberoSgx Thanks for the contribution. CI bot found trailing white spaces in your patch. Could you look at it and fix: https://pullrequest.opencv.org/buildbot/builders/precommit_docs/builds/22315

@alalek

alalek commented Nov 6, 2019

Copy link
Copy Markdown
Member

Please fix whitespace issues and rebase this patch onto 3.4 branch. We will merge changes from 3.4 into master regularly (weekly/bi-weekly).

So, please:

  • change "base" branch of this PR: master => 3.4 (use "Edit" button near PR title)
  • rebase your commits from master onto 3.4 branch. For example:
    git rebase -i --onto upstream/3.4 upstream/master
    (check list of your commits, save and quit (Esc + "wq" + Enter)
    where upstream is configured by following this GitHub guide and fetched (git fetch upstream).
  • push rebased commits into source branch of your fork (with --force option)

Note: no needs to re-open PR, apply changes "inplace".

@alalek alalek left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you 👍

@alalek
alalek merged commit b48959f into opencv:3.4 Nov 13, 2019
@alalek alalek mentioned this pull request Nov 17, 2019
SavyaSanchi-Sharma pushed a commit to SavyaSanchi-Sharma/opencv that referenced this pull request Jul 30, 2026
JS - adds a tutorial about running opencv.js in Node.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants