Giter Site home page Giter Site logo

hass_espcam_component's Introduction

Home Assistant ESPCAM Component

Description

This is a Home Assistant custom component for ESP32CAM camera. This compoenent assumes that ESP32CAM is running a webserver with a GET interface that serves image data. The component will poll the ESP32CAM for image data, performs OCR on the image and displays the result in the Home Assistant UI.

Installation

HACS (Recommended)

  1. Add this repository as a custom repository in HACS.
  2. Install the component from HACS.

Manual Installation

  1. Clone this repository.
  2. Copy the hass_espcam folder to your custom_components folder.

Configuration

Add the following to your configuration.yaml file:

camera:
  - platform: espcam
    snapshot_url: <URL_TO_ESPCAM_WEB>
    roi_x: <COORDINATES_OF_ROI>
    roi_y:
    roi_width:
    roi_height:
    debug: <True/False>
    decimals: <DECIMALS_FROM_RIGHT>
  1. Restart Home Assistant.
  2. Add the ESPCAM Entity to your Lovelace UI.

Remarks

  • User must provide the URL to the ESP32CAM webserver. The webserver must be running on the ESP32CAM and must serve image data on a GET request.
  • User must provide coordinates for the Region of Interest (ROI) on the image. The ROI is the area of the image that will be used for OCR. The coordinates are relative to the image size. For example, if the image is 640x480, then the ROI coordinates are 0-640 for x and 0-480 for y.
  • User can enable debug mode. This will save the image that is used for OCR in .homeassistant folder
  • User can set decimals to determine how many decimals to the right of the decimal point to display. For example, if the OCR result is 123456, then setting decimals to 2 will display 1234.56
  • User can set the polling interval. The default is 5 seconds.

Authors

  • Juho Hong
  • Jeongeon Lee

hass_espcam_component's People

Contributors

bryanjuho avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.