Skip to content

Commit 1a925a9

Browse files
committed
[DOC] make the documentation available on github io
1 parent 98b388f commit 1a925a9

6 files changed

Lines changed: 250 additions & 3 deletions

File tree

.github/workflows/docs.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Deploy Documentation
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- master
8+
9+
permissions:
10+
contents: write
11+
12+
jobs:
13+
deploy:
14+
# Only run this job if the commit message contains [DOC]
15+
if: contains(github.event.head_commit.message, '[DOC]')
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- name: Configure Git Credentials
21+
run: |
22+
git config user.name github-actions[bot]
23+
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
24+
25+
- name: Set up Python
26+
uses: actions/setup-python@v5
27+
with:
28+
python-version: 3.x
29+
30+
- name: Install MkDocs and Material Theme
31+
run: |
32+
pip install mkdocs-material
33+
34+
- name: Deploy to GitHub Pages
35+
run: |
36+
mkdocs gh-deploy --force

TODO.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
TODO :
22
- Remove bad readme
3-
- Make a small documentation using github.io if possible
3+
- [x] Make a small documentation using github.io if possible
44
- Make small gif of what it does
5-
- Make install process easier and simpler
6-
- Have little [I] tooltips for each option to explain briefly what it does
75
- Remove all the hardcoded strings

docs/index.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Welcome to BlobTrack
2+
3+
**BlobTrack** is a computer vision tool designed to create generative visuals from video content. By leveraging the power of OpenCV, it extracts organic shapes and movements from source videos, allowing for real-time manipulation and high-quality export for VJ loops, motion graphics, and creative coding projects.
4+
5+
![BlobTrack Interface]([Insert image of the main application window running here])
6+
7+
---
8+
9+
## 🚀 Key Features
10+
11+
* **Advanced Detection**: Isolate subjects using Edge Detection, Thresholding, or Color Ranges.
12+
* **Dynamic Visuals**: Apply real-time effects like rainbow cycling, breathing colors, and shape smoothing.
13+
* **Real-Time Preview**: What you see is what you get. Tweak parameters instantly.
14+
* **High-Quality Export**: Render your generative art to MP4 files.
15+
16+
## 🏁 Getting Started
17+
18+
If you are new to BlobTrack, we recommend starting with the **[Installation](installation.md)** guide to get the software running on your machine.
19+
20+
Once installed, check out the **[User Guide](usage.md)** to learn how to create your first visual.

docs/installation.md

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
# Installation
2+
3+
BlobTrack is built with Python 3.8+ and uses standard libraries like OpenCV and PyQt6. We provide an automated installer for convenience, but manual installation is also fully supported.
4+
5+
## Prerequisites
6+
7+
Before installing, ensure you have **Python 3.8** or newer installed on your system.
8+
You can download it from [python.org](https://www.python.org/downloads/).
9+
10+
---
11+
12+
## Automatic Installation (Recommended)
13+
14+
We provide a shell script that automates the setup process, including creating a virtual environment and installing dependencies.
15+
16+
**For Windows (Git Bash), macOS, and Linux:**
17+
18+
1. Open your terminal in the `BlobTrackCv` project directory.
19+
2. Run the install script:
20+
21+
```bash
22+
./install.sh
23+
```
24+
25+
3. Once the script completes, you are ready to run the app!
26+
27+
---
28+
29+
## Manual Installation
30+
31+
If you prefer to configure the environment yourself, follow these steps:
32+
33+
### 1. Create a Virtual Environment
34+
35+
It is good practice to run Python applications in isolation.
36+
37+
```bash
38+
python -m venv venv
39+
```
40+
41+
### 2. Activate the Environment
42+
43+
* **Windows (Command Prompt / PowerShell):**
44+
```powershell
45+
.\venv\Scripts\activate
46+
```
47+
48+
* **Windows (Git Bash):**
49+
```bash
50+
source venv/Scripts/activate
51+
```
52+
53+
* **macOS / Linux:**
54+
```bash
55+
source venv/bin/activate
56+
```
57+
58+
### 3. Install Dependencies
59+
60+
Install the required packages from `requirements.txt`:
61+
62+
```bash
63+
pip install -r requirements.txt
64+
```
65+
66+
---
67+
68+
## Running the Application
69+
70+
After installation, you can launch BlobTrack with:
71+
72+
```bash
73+
python main.py
74+
```
75+
76+
!!! tip
77+
Make sure your virtual environment is activated before running the command! You should see `(venv)` in your terminal prompt.

docs/usage.md

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
# User Guide
2+
3+
This guide will walk you through the entire workflow of creating visuals with BlobTrack.
4+
5+
## 1. The Interface
6+
7+
The BlobTrack interface is divided into two main areas: the **Preview Window** on the left and the **Control Panel** on the right.
8+
9+
![Interface Overview]([Insert image of the full interface here])
10+
11+
## 2. Loading a Video
12+
13+
To start, you need a source video file. Ideally, choose footage with good contrast between the subject and background for the best tracking results.
14+
15+
1. Click the **Select Video File** button at the top of the Control Panel.
16+
2. Navigate to your video file (MP4, AVI, MOV, etc.) and open it.
17+
3. The video will begin playing in loop mode automatically.
18+
19+
---
20+
21+
## 3. Detection Settings
22+
23+
The **Detection** tab controls *what* part of the video is turned into blobs.
24+
25+
![Detection Tab]([Insert image of the Detection tab controls here])
26+
27+
### Detection Modes
28+
Select one of the following modes from the dropdown:
29+
30+
* **Threshold**: Uses brightness differences. Good for silhouettes.
31+
* **Canny (Edges)**: Detects outlines and edges. Creates wireframe-like effects.
32+
* **Color**: Isolates a specific color range.
33+
34+
### Refining the Detection
35+
* **Blur**: Smooths out video noise before detection. Increase this if your blobs are too jittery.
36+
* **Min Area**: Removes small specks or noise.
37+
* **Max Area**: Ignores blobs that are too large (e.g., the entire screen).
38+
* **Threshold / Canny Controls**: Adjust these sliders to fine-tune the sensitivity of the detection.
39+
40+
---
41+
42+
## 4. Visual Styles
43+
44+
The **Visuals** tab controls *how* the detected blobs look.
45+
46+
![Visuals Tab]([Insert image of the Visuals tab controls here])
47+
48+
### Shape & Outline
49+
* **Fill Shapes**: Toggles whether blobs are solid or just outlines.
50+
* **Smooth Mesh**: Applies smoothing to the blob contours for a more organic look.
51+
* **Outline Width**: Controls the thickness of the blob borders.
52+
53+
### Color Effects
54+
* **Solid Color**: Uses a single static color (pickable via the color wheel).
55+
* **Rainbow Cycle**: Automatically cycles through colors over time.
56+
* **Breath**: Pulse a single color's brightness up and down.
57+
* **Speed**: Controls how fast the Rainbow or Breath effects animate.
58+
59+
---
60+
61+
## 5. Exporting Your Work
62+
63+
Once you are happy with your visual:
64+
65+
1. Click the **Export Processed Video** button.
66+
2. Choose a destination for your file.
67+
3. The app will process the video frame-by-frame.
68+
* *Note: This might be slower than real-time playback depending on your settings.*
69+
4. Once finished, you will have a high-quality video file of your creation!
70+
71+
![Export Dialog]([Insert image of the export progress or button here])

mkdocs.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
site_name: BlobTrack Documentation
2+
site_description: User documentation for BlobTrack - Real-time organic video visuals.
3+
site_author: BlobTrack Team
4+
5+
theme:
6+
name: material
7+
features:
8+
- navigation.tabs
9+
- navigation.sections
10+
- navigation.expand
11+
- navigation.top
12+
- toc.follow
13+
- content.code.copy
14+
palette:
15+
- scheme: default
16+
primary: indigo
17+
accent: purple
18+
toggle:
19+
icon: material/brightness-7
20+
name: Switch to dark mode
21+
- scheme: slate
22+
primary: indigo
23+
accent: purple
24+
toggle:
25+
icon: material/brightness-4
26+
name: Switch to light mode
27+
28+
nav:
29+
- Home: index.md
30+
- Installation: installation.md
31+
- User Guide: usage.md
32+
33+
markdown_extensions:
34+
- admonition
35+
- pymdownx.details
36+
- pymdownx.superfences
37+
- pymdownx.highlight:
38+
anchor_linenums: true
39+
- pymdownx.inlinehilite
40+
- pymdownx.snippets
41+
- pymdownx.tasklist:
42+
custom_checkbox: true
43+
44+
plugins:
45+
- search

0 commit comments

Comments
 (0)