Git Product home page Git Product logo

creepy_face_oakd_clip's Introduction

Halloween 2022 Creepy Face: Follows You and Guesses Your Costume

Link to Youtube video: https://www.youtube.com/watch?v=4xLwqETWKOY


This repo contains all the code used to run the creepy face from that video. It is based on a sample script for person detection with depth estimation, in the Luxonis DepthAI-Python Repository.

Sample costume identification result

The key features are:

  • Mostly unaltered person detection from Luxonis repo, using Mobilenet for person detection, with stereo depth for determining the closest person and their distance.
  • Added a separate thread to do all the management of servos, eye brightness, and responding to the pressure plate activity for the costume-ID sequence
  • It tries to keep the (approx) eye location of the closest person within the center of the image by pulsing the servos to move the face/camera towards the detection.
  • For costume ID it saves the most recent image from the camera, base64-encodes it, and sends it to a REST server on the local network.
  • The costume ID server is running CLIP, which is an extremely powerful zero-shot classifier from OpenAI. It reads the list of costumes from costumes.txt, and computes embeddings for each one plugged into this statement: "A kid wearing a X costume".
  • When a costume request is received, it encodes the image, and finds the closest text embedding. That is the returned costume.
  • It also generates some cool output to show you the top 5 results.

creepy_face_oakd_clip's People

Contributors

etotheipi avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

creepy_face_oakd_clip's Issues

Servo jittering

So I implemented the code into my project which only features an X axis JX Ecoboost servo. I modified the code to pin 25 and removed the audio configuration and modules. I ran the code and the facial detection and noise map were working fine as well as the coordinate calculation. But the servo would just move back and forth and jitter without actually following my face.

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.