GithubHelp home page GithubHelp logo

xiaoyunge / door_detect Goto Github PK

View Code? Open in Web Editor NEW

This project forked from twstokes/door_detect

0.0 1.0 0.0 337 KB

Detecting a garage door's status with a Foscam camera and OpenCV - written in Python

Python 100.00%

door_detect's Introduction

door_detect

Detecting a garage door's status with a Foscam camera and OpenCV - written in Python

Video Demo

The goal of this project is to provide feedback to a user on whether a door is detected open or closed. It uses OpenCV to scan images for expected objects, and determines the physical orientation.

Currently it only supports network-attached Foscam cameras.

Process:
  1. Load image from the camera
  2. Look for certain objects in the image
  3. If the objects are all detected the door is closed, if not it's open
  4. Give feedback to the user on the door's state
What it takes to get it running:
  • Python, opencv-python, numpy
  • Networked Foscam (though it should be evident in the code how easy it is to replace the image data with any other source)
  • Printed shapes placed on a door
  • Template files of the shapes in the source image

Notes:

If you see the following in stdout: "Corrupt JPEG data: 2 extraneous bytes before marker 0xd9", it appears to be a known issue with a library OpenCV uses. Since we're just using it for outputting the status, it's not a big deal.

door_detect's People

Contributors

twstokes avatar

Watchers

James Cloos 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.