sam3.cpp provides a lightweight C/C++ library for running advanced AI models to segment objects in images and videos using text prompts, points, or boxes on CPU or Apple hardware.
How It Works
You find sam3.cpp, a simple program that lets you automatically cut out people, animals, or objects from photos and videos right on your computer.
Download the ready-to-use files from the project page to your computer.
Follow the friendly guide to prepare everything on your Mac or PC so it's ready to go.
Pick a lightweight model file that teaches the program to recognize everyday objects and download it.
Load your picture and start selecting objects.
Open your video and follow moving objects frame by frame.
Click points on objects, draw boxes, or type words like 'cat' to magically outline and separate them perfectly.
Save clean cutouts or tracked masks to use in your projects, edits, or fun creations.
Star Growth
Repurpose is a Pro feature
Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.
Unlock RepurposeSimilar repos coming soon.