GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - NEAR-the-future/airpulse_compositor: Turn flapping-wing robot footage into a single flight composite with automatic pose detection, adjustable opacity, and PNG export.

BranchesTags
Open more actions menu

Latest commit

 

History

1 Commit
1 Commit

Folders and files

NameName
Last commit message
Last commit date
AirPulse_example_project.json
AirPulse_example_project.json
 
 
README.md
README.md
 
 
app.js
app.js
 
 
compositor.py
compositor.py
 
 
index.html
index.html
 
 
style.css
style.css
 
 

Repository files navigation

Flight Compositor

Create a still image showing a robot at several recorded positions. The tool keeps the original frame coordinates, lets you replace parts of the background with pixels from other frames, and increases the opacity of successive appearances. It opens a GUI in your browser and runs locally.

Run on Windows, macOS, or Ubuntu

Install Python 3.9 or newer and FFmpeg, including ffprobe. Check that ffmpeg -version and ffprobe -version both work from your terminal. No Python packages or browser extensions are required.

Platform FFmpeg setup Run from the extracted folder
Windows Install an FFmpeg build and add its bin directory to PATH. Open a new PowerShell window afterward. py -3 compositor.py
macOS With Homebrew, run brew install ffmpeg. python3 compositor.py
Ubuntu Run sudo apt install ffmpeg. python3 compositor.py

The launcher opens your default browser. If it does not open automatically, paste the printed http://127.0.0.1:… address into a recent Chrome, Edge, Firefox, or Safari window. Keep the terminal open while working. Press Ctrl+C when finished.

macOS reports a missing Homebrew library

If ffprobe reports Library not loaded for a path such as /opt/homebrew/opt/x265/lib/libx265.212.dylib, reinstall FFmpeg so Homebrew can install a build linked against the current dependencies.

brew reinstall ffmpeg
ffprobe -version && ffmpeg -version

When both version checks pass, restart the compositor from that terminal. If the error persists, run type -a ffprobe ffmpeg and brew linkage --test ffmpeg to check which tools the shell is using and whether Homebrew still reports a broken link. Keep the original MP4 and project JSON.

If Homebrew cannot download a dependency such as libvpx, the compositor can use a separate pair of FFmpeg binaries. For Apple Silicon, download the FFmpeg (ZIP) and FFprobe (ZIP) release builds from Martin Riedl's build server under macOS (Apple Silicon/arm64). Extract both archives and put the ffmpeg and ffprobe executables side by side in a folder named ffmpeg-arm64 in your home directory. From the compositor folder, run:

python3 compositor.py --ffmpeg-dir "$HOME/ffmpeg-arm64"

The launcher prints the exact binary paths and checks both before starting. If you extracted the binaries to another location, pass that folder instead. The folder must contain the executables directly. You can check them separately with "$HOME/ffmpeg-arm64/ffprobe" -version and "$HOME/ffmpeg-arm64/ffmpeg" -version.

Recreate the AirPulse example

  1. Click Open video and choose your original VID20261124172700.mp4. The source video is separate from this package.
  2. Click Load project and select AirPulse_example_project.json.
  3. The Composite preview shows seven poses. The outline is traced from the detected foreground mask, so it may differ slightly from the original hand-traced outline.
  4. Adjust the settings or click Export PNG to export at 1600 × 1100 pixels.

Make a composite from a new clip

  1. Generate. Open your video, set the start, end, and interval in seconds, then click Generate composite. Each sample uses the nearest source frame. Blue wings is the default for AirPulse. For robots with other colors, try Background difference, preferably with a shared search area around the flight path.
  2. Refine the search if needed. Set shared search area constrains detection for every unboxed pose. Click a frame row and choose Box this pose to override a single detection. You can also add or remove individual frames. Generate again to use the edited selection. Changing the timing settings resamples the clip the next time you generate.
  3. Refine the background and style. The initial background is a pixel-wise median of several frames. Inspect it with Clean background. If the median leaves a person or a ghost image, choose Use current as background on a clearer frame, use Add clean patch to copy a clear region from another frame, or use Set output crop. Adjust the opacity endpoints, threshold, brightness, saturation, and blur in the Composite preview.
  4. Save. Export PNG downloads the composite. An output width of 0 uses the crop's native width. Save project downloads your frame selections, boxes, background patches, crop, and style settings. Open the same source video before reopening the saved project.

A stationary camera works best. Aligning a moving camera and identifying people automatically are outside this workflow. A person who never moves out of a region needs to be cropped out, or you need a separate recording of the room with the same framing. Since there is no reference-image import, a clean frame needs to be part of the same input clip to use it as a patch. A short clip around the flight gives faster preview updates. Videos up to 1 GiB can be selected, and interval sampling is capped at 100 times to keep memory use manageable.

The video is copied to a temporary folder on your computer during processing. The server binds to the local loopback address, and preview pixels and exported images are processed in your browser.

About

Turn flapping-wing robot footage into a single flight composite with automatic pose detection, adjustable opacity, and PNG export.

Resources

Readme
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.