# opencv-server-socket

> Simple opencv server who emit faces position

Latest version **1.1.1** (published 2016-03-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install opencv-server-socket
pnpm add opencv-server-socket
yarn add opencv-server-socket
bun add opencv-server-socket
```

Provides the command `opencv-server-socket`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2016-03-04 |
| First published | 2016-03-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Known vulnerabilities | 0 (+5 in 3 direct dependencies) |
| Install scripts | no |
| Author | Jérémy Morin |
| Maintainers | jermorin |
| Keywords | socket opencv node |

## Links

- npm: https://www.npmjs.com/package/opencv-server-socket
- Repository: https://github.com/Jermorin/opencv-server-socket
- Homepage: https://github.com/Jermorin/opencv-server-socket#readme
- Issues: https://github.com/Jermorin/opencv-server-socket/issues
- npm.io page: https://npm.io/package/opencv-server-socket

## Dependencies (5)

- [chai](https://npm.io/package/chai.md) ^3.5.0
- [mocha](https://npm.io/package/mocha.md) ^2.4.5
- [opencv](https://npm.io/package/opencv.md) ^5.0.0
- [request](https://npm.io/package/request.md) ^2.69.0
- [socket.io](https://npm.io/package/socket.io.md) ^1.4.5

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 1.1.1 (latest) — 2016-03-04
- 1.1.0 — 2016-03-02
- 1.0.10 — 2016-03-02
- 1.0.9 — 2016-03-02
- 1.0.8 — 2016-03-02
- 1.0.7 — 2016-03-02
- 1.0.6 — 2016-03-02
- 1.0.5 — 2016-03-02
- 1.0.4 — 2016-03-02
- 1.0.3 — 2016-03-02
- 1.0.2 — 2016-03-02
- 1.0.1 — 2016-03-02
- 1.0.0 — 2016-03-01
- 0.0.3 — 2016-03-01
- 0.0.2 — 2016-03-01

## README

<big><h1 align="center">opencv-server-socket</h1></big>

<p align="center">
  <a href="https://npmjs.org/package/opencv-server-socket">
    <img src="https://img.shields.io/npm/v/opencv-server-socket.svg?style=flat-square"
         alt="NPM Version">
  </a>

  <a href="https://coveralls.io/r/Jermorin/opencv-server-socket">
    <img src="https://img.shields.io/coveralls/Jermorin/opencv-server-socket.svg?style=flat-square"
         alt="Coverage Status">
  </a>

  <a href="https://travis-ci.org/Jermorin/opencv-server-socket">
    <img src="https://img.shields.io/travis/Jermorin/opencv-server-socket.svg?style=flat-square"
         alt="Build Status">
  </a>

  <a href="https://npmjs.org/package/opencv-server-socket">
    <img src="http://img.shields.io/npm/dm/opencv-server-socket.svg?style=flat-square"
         alt="Downloads">
  </a>

  <a href="https://david-dm.org/Jermorin/opencv-server-socket.svg">
    <img src="https://david-dm.org/Jermorin/opencv-server-socket.svg?style=flat-square"
         alt="Dependency Status">
  </a>

  <a href="https://github.com/Jermorin/opencv-server-socket/blob/master/LICENSE">
    <img src="https://img.shields.io/npm/l/opencv-server-socket.svg?style=flat-square"
         alt="License">
  </a>
</p>
<p align="center">
  <a href="https://www.bithound.io/github/Jermorin/opencv-server-socket">
    <img src="https://www.bithound.io/github/Jermorin/opencv-server-socket/badges/score.svg"
         alt="bitHound Overall Score">
  </a>

  <a href="https://www.bithound.io/github/Jermorin/opencv-server-socket/master/dependencies/npm">
    <img src="https://www.bithound.io/github/Jermorin/opencv-server-socket/badges/dependencies.svg"
         alt="bitHound Dependencies">
  </a>

  <a href="https://www.bithound.io/github/Jermorin/opencv-server-socket/master/dependencies/npm">
    <img src="https://www.bithound.io/github/Jermorin/opencv-server-socket/badges/devDependencies.svg"
         alt="bitHound Dev Dependencies">
  </a>

  <a href="https://www.bithound.io/github/Jermorin/opencv-server-socket">
    <img src="https://www.bithound.io/github/Jermorin/opencv-server-socket/badges/code.svg"
         alt="bitHound Code">
  </a>
</p>

<p align="center">
  <big>
    Simple opencv server who emit faces position
  </big>
</p>

##Requirement

- install `OpenCv 2.4.*`

## Install

```sh
npm i -g opencv-server-socket
```

## Usage

###launch server

See also : [opencv-server-socket-docker](https://github.com/Jermorin/opencv-server-socket-docker)

```js
$: opencv-server-socket
```

###client usage

See also : [opencv-react-electron](https://github.com/Jermorin/opencv-react-electron)

```js
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](http://jermor.in)

---
_Source: https://npm.io/package/opencv-server-socket · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
