Giter Club home page Giter Club logo

stackvideofirefly's Introduction

Firefly Light Accumulation (Video -> photo stacking -> Video)

Description

This simple Python project is designed to quickly complete the stacking task by capturing the faint light emitted by fireflies. The project focuses on the image stacking function itself, avoiding the high price you pay for a computer that supports intense video processing and unnecessary professional photo post-processing tools. (Money, time and unnecessary software features. When I built this project, I spent 5$ on "professional camera software" at the Apple Store. However, to this day, I still don't understand how it works.) . The application collects key frames from the video of the light emitted by each individual firefly. Then by stacking the images, it eventually blends them into a single photo that represents the collective glow of the fireflies. Theoretically, you can also take it to any fixed-camera video footage.(There have been significant changes to the project and the instructions for use have not been updated at this time.)

Features

  • Firefly Chapture: Finding the video keyframes of the behavior of fireflies and their light emission
  • Light Accumulation: Collects and accumulates the light emitted by each firefly
  • Data Visualization: Provides visualizations to showcase the accumulated light over time

Installation

  1. Clone the repository:
git clone https://github.com/5418XR/StackVideoFirefly.git
  1. Navigate into the cloned repository:
cd StackVideoFirefly
  1. Install the necessary Python dependencies:
pip install -r requirements.txt

Usage

To use the application, run the main script with Python:

python readData.py

This will help you to extract the keyframes from the video into the folder "output_frames" (which will be created if there is no such folder). And store all the keyframes in a new folder in the format "keyframe_photoNumber.png".

python newPhoto.py

This will extract the photos you have stored in the folder "output_frames". You can adjust the range of keyframes and how many frames are extracted at a time to your liking.

Note:

Ensure that you have Python 3 installed on your machine before running the application.

Contribution

Contributions, issues, and feature requests are welcome! Feel free to check issues page if you want to contribute.

License

This project is licensed under the terms of the MIT license. See the LICENSE file for details.

Contact

If you have any questions, please feel free to contact me. You can also raise an issue for any suggestions or improvements.

Happy Coding! d9c037f6f35838b1d14a042d2433b76final1

firefly.mp4

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.