VOLUNTEERS
SAVE LIVESNORWICH, CONNECTICUT

VOLUNTEERS SAVE LIVES / COMMUNITY TECH LAB

Fire trucks.
In focus.

A local video. An open-source detector. See what computer vision can find—and recreate the experiment yourself.

01 / SEE IT WORK

Spot the truck.

Large maroon boxes mark the detector’s predictions. Press play to watch the short example.

Recorded output from YOLO-World using the prompt “fire truck.” This page plays the result; detection runs on your computer with the downloadable project.

Compare with the original clipDownload the original clip

02 / RECREATE THE DEMO

From ZIP to
your first detection.

You need 64-bit Python 3.10–3.12. The first setup downloads dependencies; later runs reuse the environment.

  1. Download and extract

    Unzip the project into a folder on your computer. Keep the model and examples folders together. Install Python if needed.

  2. Run the launcher

    Open a terminal in the extracted folder. Choose the command for your system.

    Linux / macOS
    bash run.sh
    Windows
    run.bat
  3. Watch, then try your footage

    The app renders the boxes first, then opens a smooth video preview. Press Q to close or R at the end to replay. To process another local video:

    python run.py --source "/path/to/your-video.mp4"

    On Linux/macOS, use python3 if that is your Python command. On Windows, you can pass these arguments to run.bat.

Setup and saved-video processing were tested on Linux. Windows and macOS launchers are included but untested. Desktop playback needs a graphical session; the README covers Linux packages and a no-display option.

03 / CHANGE THE QUESTION

What else
could it find?

Try an ambulance, a school bus, or another vehicle category. Start with a text prompt before investing in labeled training data.

START HERE · NO TRAINING

Try a different prompt

The included model is prepared for fire trucks. To try other classes, create a separate model with your chosen vocabulary. Its predictions will use those class names.

Show the commands

Run setup first. This optional step needs Git, internet, and a text encoder download. Commands below use Linux/macOS; Windows users substitute .venv\Scripts\python for .venv/bin/python.

python run.py --setup-only
.venv/bin/python -m pip install git+https://github.com/ultralytics/CLIP.git@7ffa84b3bfa40c42ecc1c77147a855e69cb2dd40
.venv/bin/python tools/prepare_model.py --classes "ambulance" "school bus" --output models/custom-world.pt
python run.py --model models/custom-world.pt --source "/path/to/your-video.mp4"

Changing prompts does not fine-tune the model. Keep the original fire truck checkpoint so you can return to this demo.

Read the YOLO-World guide ↗
WHEN YOU NEED MORE ACCURACY

Fine-tune with examples

Collect varied images of the vehicle category. Draw boxes around each target, add ordinary vehicles as negative examples, and reserve separate recordings for testing.

Train from pretrained weights, then check missed vehicles and false alarms on footage the model has never seen. Frames from the same clip belong together in one dataset split.

Explore the training workflow ↗See the labeling format ↗

UNDERSTAND THE RESULT

A prediction.
Not a guarantee.

The detector can miss trucks or mistake other objects for them. It detects a vehicle category; it does not read department lettering, identify people, or establish vehicle ownership. Boxes are refreshed every third frame in the default demo, so they may lag slightly during fast motion.

The included reference video preserves the exact demonstration. Fresh predictions may vary slightly across computers. Your video stays on your computer during inference.

EXPERIMENT / READING THE LETTERING

Can it read
the department?

A separate OCR prototype reads a selected lettering crop. In two frames, the raw readings were TAPTYILE and FTYILLE. Comparing those imperfect strings with four department names produced “Likely Taftville.”

This is a tentative name inferred from OCR, not a verified full-name reading. The crop was selected manually. Automatic lettering location and reliable video tracking are still needed before this can become a department detector.

Selected ladder lettering crop with raw OCR TAPTYILE and candidate Likely Taftville
Actual source frame, selected text region, raw OCR, and tentative known-name match.
Download the OCR experiment ↓

Includes source crops, raw results, and Python code. The separate OCR model downloads on first use. This experiment is not enabled in the main fire truck demo.