Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Remove old hub page #2785

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 9, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 38 additions & 3 deletions source/_components/image_processing.opencv.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,44 @@ footer: true
logo: opencv.png
ha_category: Image Processing
featured: false
ha_release: 0.44
ha_release: 0.47
---

The `opencv` image processing platform allows you to create a standalone image processor without the linked camera entity as mentioned in the [OpenCV page](https://home-assistant.io/components/opencv).
[OpenCV](http://www.opencv.org) is an open source computer vision image and video processing library.

Please refer to the [component](/components/opencv/) configuration on how to setup the image processor.
Some pre-defined classifiers can be found here: https://github.com/opencv/opencv/tree/master/data

### {% linkable_title Configuration %}

To setup OpenCV with Home Assistant, add the following section to your `configuration.yaml` file:

```yaml
# Example configuration.yaml entry
image_processing:
- platform: opencv
name: Front Door Faces
source:
- entity_id: camera.front_door
classifier:
mom: /path/to/classifier.xml
```

- **name** (*Required*): The name of the OpenCV image processor.
- **source** array (*Required*): List of image sources.
- **entity_id** (*Required*): A camera entity id to get picture from.
- **name** (*Optional*): This parameter allows you to override the name of your `image_processing` entity.
- **classifier** (*Optional*): Dictionary of name to path to the classifier xml file. If this field is not provided, a face classifier will be downloaded from OpenCV's github repo.

**classifier** may also be defined as a dictionary of names to classifier configurations:

```yaml
mom:
file: /path/to/classifier/xml
neighbors: 4
min_size: (40, 40)
scale: 1.1f
```

- **file** (*Required*): The path to the classifier xml file.
- **scale** (*Optional*): The scale to perform when processing, this is a `float` value that must be greater than or equal to `1.0`, default is `1.1`.
- **neighbors** (*Optional*): The minimum number of neighbors required for a match, default is `4`. The higher this number, the more picky the matching will be; lower the number, the more false positives you may experience.
75 changes: 0 additions & 75 deletions source/_components/opencv.markdown

This file was deleted.