1.1.1 • Published 10 years ago

opencv-server-socket v1.1.1

Weekly downloads
3
License
MIT
Repository
github
Last release
10 years ago

opencv-server-socket

##Requirement

  • install OpenCv 2.4.*

Install

npm i -g opencv-server-socket

Usage

###launch server

See also : opencv-server-socket-docker

$: opencv-server-socket

###client usage

See also : opencv-react-electron

import socket from 'socket.io-client';

const serverUrl = 'http://localhost:3000';

const socketOptions = {
  transports: ['websocket'],
  'force new connection': true
};

const imageUrl = {url: 'https://pixabay.com/static/uploads/photo/2016/01/09/08/38/india-1129953_960_720.jpg'};
const base64 = {base64: 'kekekdi888'};
const path = {path: '../server/path'};

const client = socket.connect(serverUrl, socketOptions);

client.on('connect', () => {
  console.log('connection to server');
  client.emit('image', imageUrl);
  client.on('faces', faces => console.log(faces));
});

License

MIT © Jérémy Morin

1.1.1

10 years ago

1.1.0

10 years ago

1.0.10

10 years ago

1.0.9

10 years ago

1.0.8

10 years ago

1.0.7

10 years ago

1.0.6

10 years ago

1.0.5

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago