Coder Social home page Coder Social logo

kerikun11 / triggeye Goto Github PK

View Code? Open in Web Editor NEW

This project forked from takjg/triggeye

0.0 1.0 0.0 235 KB

When looking at the webcam, TriggEye executes the specified command.

Home Page: https://qiita.com/takjg/items/afc6348ceed67868d41f

License: Apache License 2.0

Python 24.08% Shell 22.99% Dockerfile 52.93%

triggeye's Introduction

TriggEye

When looking at the webcam, TriggEye executes the specified command. Overview Example

  • Usage: triggeye COMMAND_TO_BE_EXECUTED_WHEN_LOOKING_AT_THE_WEBCAM
  • Example: triggeye say OK Google
  • Supported OS: Windows10, Mac, Linux

Features

  • High Performance: Detects gaze wherever you are in the room. (Performance of TriggEye)
  • Light Weight: Runs on a low-end computer with a regular webcam. (System Requirements)
  • Secure: No internet connection required, so you don't have to worry about video leaking from your webcam.

Installation

Prerequisites (Only for Windows10)

TriggEye requires WSL (Windows subsystem for Linux). This allows it to be handled in the same way as Linux or Mac.

Building

  1. Clone the GitHub repository of TriggEye.
    % git clone https://github.com/takjg/TriggEye.git
    
  2. Install OpenFace in the TriggEye directory. (See also OpenFace License)

Operation Check

Connect a webcam to your computer and execute:

% cd PATH/TO/TriggEye
% ./triggeye echo OK

It is a success if OK is displayed every time you look at the webcam.

When failed:

  • Use the option -d to specify the webcam device ID:
    ./triggeye -d 3 echo OK
    
  • Use the options -w and -h to specify the width and height of the webcam resolution:
    .triggeye -w 640 -h 480 echo OK
    
  • Make sure the path of OpenFace is directly under TriggEye

Options

Option Unit Default
-d camera ID id 0
-w camera width pixels 1920
-h camera height pixels 1080
-i minimum trigger interval seconds 1.0
-m margin for error millimeters 150

Example

Wake up a smart speaker without a wake word

The sample audio files ok_google.wav and alexa.wav were created by Open JTalk.

Mechanism and implementation

See Mechanism and implementation of TriggEye

License

Released under the Apache License, Version 2.0

You have to respect OpenFace, dlib, OpenBLAS, and OpenCV licenses.

Copyright (c) 2019 Tak Jaga

triggeye's People

Contributors

takjg avatar kerikun11 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.