Git Product home page Git Product logo

hummingbird-experiment's Introduction

Hummingbird-experiment

This is the code for outdoor hummingbird experiments with 3D printed flowers. There are three processes, the main process and two child processes: webcam detection of presence or absence of the animal, and the data collection process which collect analog signal from the accelerometer and infrared emitter-detector.

Main process

User needs to specify the serial ports used to communicate between the computer and the two Arduino boards ("COM3" and "COM6" was default setting). Then user needs to specify the flowr morphology under testing. After the program starts, you can enter anything on the keyboard to exit the program. And at the end of the program, it will prompt to ask for some parameters, like the temperature, humidity, etc. The usage of the program is python Hummingbird-experiment.py

Video detection

The video detection process will read input from a webcam at a frame rate of 10 fps. The reference image will be obtained when initiating this process. Every new frame will be used to compare with the reference image to infer whether animal is present or not. Once it detect the presence of animal, it will then start compare each subsequent frame to make sure that the signal is not false positive. If continuous false postive signal is generated, it will recalculate the reference image. The video file will be written in avi format and the information of presence/absence of animal along time will also be written into a csv file.

flower controller

This child process does a lot of things: making a new directory for the new experiment trial, writing the analog input from serial port into disc, analyzing and comparing the nectar level information and making the decision of whether to refill the nectar.

hummingbird-experiment's People

Contributors

foenpeng avatar jgsuw avatar

Watchers

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