1.1.1 • Published 8 years ago

opencv-server-socket v1.1.1

Weekly downloads
3
License
MIT
Repository
github
Last release
8 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

8 years ago

1.1.0

8 years ago

1.0.10

8 years ago

1.0.9

8 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago