• Stars
    star
    144
  • Rank 255,590 (Top 6 %)
  • Language
    HTML
  • License
    MIT License
  • Created about 7 years ago
  • Updated almost 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Example for using opencv4nodejs with electron.

opencv-electron

This is an example of how to use opencv4nodejs with electron to build cross-platform desktop apps.

opencv-electron

Note that there is an additional npm script to rebuild the package for electron, which is called from the install script:

"electron-rebuild": "electron-rebuild -w opencv4nodejs"

plain-js

This example shows how to use opencv4nodejs with electron and plain HTML + Javascript without any bundler.

Running this example:

Set up opencv4nodejs, electron and rebuild the module for electron:

npm install

Run:

npm start

webpack-reactjs

This example shows how to use opencv4nodejs with webpack and react, requires node-loader to load the native addon.

npm i node-loader

On windows

If you are using the autobuild on windows, you have to append the path to the binaries to the path env of main process manually as follows (in main.js):

if (process.platform === 'win32' && !process.env.OPENCV4NODEJS_DISABLE_AUTOBUILD) {
  process.env.path += ';' + require('../renderer/node_modules/opencv-build').opencvBinDir
}

Running this example:

In the root directory:

npm install
npm start

In another terminal cd into ./renderer and run the dev server:

npm install
npm start

Known issues

If you are receiving the following error on windows during electron-rebuild:

AttributeError: 'MSVSProject' object has no attribute 'iteritems'

Delete fsevents from your node_modules folder and rerun:

npm run electron-rebuild

More Repositories

1

face-api.js

JavaScript API for face detection and face recognition in the browser and nodejs with tensorflow.js
TypeScript
16,478
star
2

opencv4nodejs

Nodejs bindings to OpenCV 3 and OpenCV 4
C++
4,943
star
3

face-recognition.js

Simple Node.js package for robust face detection and face recognition. JavaScript and TypeScript API.
JavaScript
1,901
star
4

websocket-chat

Websocket based group chat app built with socket.io and react.
JavaScript
785
star
5

tfjs-tiny-yolov2

Tiny YOLO v2 object detection with tensorflow.js.
TypeScript
141
star
6

opencv-express

Template for using opencv-3.4.1 + opencv-contrib with express.js and docker
JavaScript
68
star
7

node-addon-tutorial

A simple tutorial for creating native c++ addons for nodejs using Nan.
C++
67
star
8

face-api.js-models

46
star
9

npm-opencv-build

A simple script to auto build recent OpenCV + contrib version via npm
JavaScript
44
star
10

twitter-greet-followers-bot

A simple twitter bot to send your new followers a nice greeting message.
JavaScript
27
star
11

tfjs-image-recognition-base

A shared codebase for face-api.js and tfjs-tiny-yolov2.
TypeScript
21
star
12

opencv4nodejs-docker-images

Just some scripts to generate docker images for opencv and opencv with nodejs.
Dockerfile
20
star
13

face-api.js-github.io

https://justadudewhohacks.github.io/face-api.js/
HTML
18
star
14

google-image-downloader

Query google images and download images in original size.
TypeScript
16
star
15

typescript-react-redux-electron

Because the world hasn't seen enough boilerplates yet.
TypeScript
10
star
16

native-node-utils

C++
6
star
17

macro-inferno

A header library with various helpers for native node.js addon development.
C++
6
star
18

inflatable-unicorns

Fancy things need fancy names.
HTML
5
star
19

npm-dlib-build

A simple script to auto build dlib via npm
C#
4
star
20

image-augment.js

image augmentation using opencv4nodejs
JavaScript
4
star
21

face-recognition-classifiers

TypeScript
3
star
22

facedb-maker

Scripts to scrape and extract face images and their face descriptors from google images.
TypeScript
3
star
23

tfjs-tensor-size-memoryleak-issue

TypeScript
2
star
24

face-recognition.js-as-a-function

JavaScript
2
star
25

image_augment.py

Python
2
star
26

just-logging-stuff

TypeScript
1
star
27

colabsnippets

Python
1
star
28

the-next-big-thing

Just the opencv4nodejs webpage build with next.js.
JavaScript
1
star
29

electron-node-buffer-issue

JavaScript
1
star