🔍

Welcome back

You left off at . Pick up where you were, or start over from the beginning.

Glossary

Subscribe

Billing region
Access
Plan
Questions
Can I cancel anytime?

Yes — cancel anytime from your Account page. Cancellation takes effect immediately.

Do you offer refunds?

We don't offer prorated refunds for the unused portion of a billing period, unless required by law in your billing country. You keep access until you cancel.

What happens if my payment fails?

You keep access during a short grace period while the payment is retried. If it still hasn't succeeded by the end of that period, access stops until you resubscribe.

Report an issue

Sends a message straight to our support inbox — we'll reply to your account email.

AI code review

Account blocked

Your account has been blocked and can no longer sign in. If you believe this is a mistake, please contact support.

Translate this chapter

Translates the workbook's prose only — code, formulas, diagrams, and images/GIFs stay in English. Machine-translated, may be imperfect; refer to the English original for anything technical.

Free Course · Built on swatahVision

Real-Time Vision AI
with swatahVision

Detection, tracking & analytics pipelines you can actually ship.

A hands-on field guide to the open-source swatahVision stack from VisionAI4Bhārat — one Python API across ONNX, OpenVINO, TFLite and RKNN, built directly from the project's own docs and examples. No paywall, no signup required.

🐍 Python 3.12+ ⚡ ONNX · OpenVINO · TFLite · RKNN 📚 12 Chapters · 4 Labs
CH 1–2Foundations & Setup
CH 3–5Detections & Classification
CH 6Runtimes & Hardware
CH 7Annotators
CH 8Tracking (ByteTrack)
CH 9Zone-Counting Lab
CH 10Traffic & Heatmap Lab
CH 11Human-Centric Vision Lab
CH 12Capstone
Built on the open-source swatahVision stack (LGPL-3.0) by VisionAI4Bhārat.
CH 01
Foundations

Why a Unified Vision AI Stack

Every real computer-vision product needs the same six pieces of plumbing before it does anything useful. swatahVision's whole reason for existing is to stop you from rebuilding that plumbing on every project. This chapter maps the pipeline you'll spend the rest of the course filling in.

A vision model isn't "done" when it hits a good mAP number on a benchmark — it's done when it runs at a usable frame rate on the exact device sitting in your product, and someone besides you can read the code six months later.

1.1 · The stack nobody wants to rewrite

Say you want to build something as simple as "count how many people walk past this camera." The actual object-counting logic is maybe ten lines. Everything else is plumbing: loading a model file into some inference engine, decoding a tensor of raw numbers into boxes you can reason about, filtering out the duplicate boxes every detector produces, keeping track of which box in frame 40 is the same person as a box in frame 39, and finally drawing something a human can look at. That plumbing is almost identical whether you're counting people, cars, or boxes on a conveyor belt — yet most teams write it from scratch every time.

swatahVision is VisionAI4Bhārat's open-source answer: a single Python package that owns that plumbing, so your project code can start at the ten interesting lines instead of the two hundred boring ones.

Inference

One Model() wrapper that runs the same way whether the file underneath is ONNX, OpenVINO, TFLite, or RKNN.

Post-processing

YOLO, SSD, and RetinaNet decoders plus NMS/NMM baked in, so raw tensors become a clean Detections object.

Tracking

ByteTrack gives every object a stable tracker_id that survives from frame to frame.

Visualization

Annotators turn boxes, labels, traces, and heatmaps into pixels — no manual OpenCV drawing code.

Trace a Single Frame Through the Stack
Model()
runs inference
→
Detections
decoded + NMS'd
→
ByteTrack
assigns IDs
→
Annotator
draws pixels
→
Your logic
count, alert, log
🌱
Free, and licensed to stay that way

The core package is licensed under LGPL-3.0 — free to use, including commercially, as long as you respect the library-linking terms. Separate commercial add-ons exist for enterprise deployment tooling, but nothing in this course requires them.

Why bake NMS and tracking into the library instead of leaving every project to write its own?
Because they're the same problem every time — "these five overlapping boxes are one object" and "this box in frame 40 is the same object as that box in frame 39" don't change based on what you're detecting. Solving them once, well, and reusing that solution is strictly better than five slightly-different reimplementations across five projects.
Which of these is not something swatahVision does today: (a) decode raw YOLO output into boxes, (b) train a new detection model from scratch, (c) draw a bounding box on a frame?
(b). swatahVision is an inference and deployment stack — it assumes you already have a trained model file (or one from its model zoo) and takes over from there. Training is somebody else's framework's job (PyTorch, TensorFlow, Ultralytics, …).
Exercises · Chapter 1
  1. Before writing any code, sketch on paper the boxes-and-arrows pipeline for a real idea of your own (e.g. "count cars in a parking lot," "alert if someone enters a restricted zone"). Label which boxes are swatahVision's job and which are yours.
  2. List three vision projects where you would not need a tracker at all — only detection or classification. What do they have in common?
🚀 Challenge · Chapter 1
  1. Skim the project's GitHub repo and find one module this course doesn't cover (hint: look under swatahvision/geometry or swatahvision/utils). Write two sentences on what it does.
CH 02
Foundations

Installing swatahVision & Your First Inference

Requires Python 3.12+. Two lines to install, three objects to learn: Model, Engine, and Hardware. Everything in this course builds on getting these three right.

From PyPI (recommended)
pip install swatahVision

Fastest path. Pin a version if you want reproducible installs: pip install swatahVision=="1.1.*".

From source
git clone https://github.com/VisionAI4Bharat/swatahVision.git
cd swatahVision
pip install -e .

Editable install — pulls in the examples/ and model_zoo/ folders alongside the package, useful while working through this course.

2.1 · Your first inference call

Every model in swatahVision, no matter which runtime it's stored as, is loaded and called the same way:

Pythonfirst_inference.py
import swatahVision as sv

model = sv.Model(
    model="yolov8n-640.onnx",
    engine=sv.Engine.ONNX,
    hardware=sv.Hardware.CPU
)

image = sv.Image.load_from_file("street.jpg")
outputs = model(image)

print(type(outputs))
1

Load an image

sv.Image.load_from_file(path) hands back something the model can consume — no manual OpenCV/PIL juggling.

2

Build a Model

Three arguments: the model file, which Engine reads it, which Hardware runs it.

3

Call it

model(image) — the wrapper is callable directly; under the hood it dispatches to the right runtime's infer().

4

Get raw output

What comes back is still just numbers — raw tensors. Chapters 3–5 turn that into Detections or Classification.

Engine memberUnderlying runtime
Engine.ONNXONNX Runtime
Engine.OPENVINOIntel OpenVINO
Engine.TFLITETensorFlow Lite
Engine.RKNNRockchip NPU (RKNN)
Engine.PYTORCHNative PyTorch / remote inference
Hardware memberMeaning
Hardware.CPURun on the local CPU
Hardware.GPURun on a local GPU
Hardware.NPURun on a dedicated neural accelerator
Hardware.REMOTEDispatch inference to a remote server
Build a Model() Call — Pick Engine + Hardware
ENGINE
HARDWARE
Python
model = sv.Model(
    model="yolov8n-640.onnx",
    engine=sv.Engine.ONNX,
    hardware=sv.Hardware.CPU
)
⚠
Not every Engine/Hardware pair is valid

RKNN only makes sense on Rockchip NPUs; OpenVINO's GPU path expects an Intel iGPU. Mismatch them and you'll get a runtime error, not a silent fallback — check Chapter 6 before picking a combination for production.

Quiz: Match the Engine to the Deployment Target
Exercises · Chapter 2
  1. Install swatahVision and run the quickstart above against any small image. Print the raw output's shape.
  2. Swap hardware=sv.Hardware.CPU for sv.Hardware.GPU — what would you expect to happen on a machine with no GPU?
CH 03
Core Data Structures

The Detections Object

Detections is the single data structure nearly every other part of swatahVision consumes or produces. Get comfortable with its shape now and the rest of the course reads much faster.

A Detections object doesn't wrap one detected object — it wraps all of them from one frame, as parallel arrays. Detection i's box is xyxy[i], its confidence is confidence[i], and so on.

FieldDescription
xyxyBounding box coordinates [x1, y1, x2, y2]
confidenceDetection confidence score
class_idPredicted object class
maskSegmentation mask (optional)
tracker_idObject tracking ID (optional, set by a tracker — Chapter 8)
data / metadataAnything else you attach yourself
Pythondetections_basics.py
import numpy as np
import swatahVision as sv

detections = sv.Detections(
    xyxy=np.array([[50, 60, 200, 220]]),
    confidence=np.array([0.89]),
    class_id=np.array([1])
)

print(len(detections))          # 1
print(detections.xyxy[0])     # [50 60 200 220]
Anatomy of One Detection — Click a Field
class_id · conf
Click a field to see what it controls on the box.

Filtering, slicing, and combining

# slice like a list
first_five = detections[0:5]

# filter with a boolean mask
high_conf = detections[detections.confidence > 0.6]
persons   = detections[detections.class_id == 0]

# combine results from two different models
merged = sv.Detections.merge([detections1, detections2])

# the empty case, useful as a safe default
empty = sv.Detections.empty()
empty.is_empty()  # True
📍
Anchor positions

Several tools (zone counting in Chapter 9, for one) don't care about the whole box — just one reference point on it, called its anchor position. get_anchors_coordinates(Position.X) supports CENTER, TOP_LEFT, TOP_RIGHT, BOTTOM_LEFT, BOTTOM_RIGHT, CENTER_LEFT, CENTER_RIGHT, and BOTTOM_CENTER.

You want a zone-counting event to fire when a person's feet cross into a zone, not when their head enters the top of frame. Which anchor position should you trigger on?
Position.BOTTOM_CENTER — the bottom-middle of the box tracks close to where feet actually are. It's exactly why PolygonZone in Chapter 9 defaults to it.
Exercises · Chapter 3
  1. Create three Detections by hand with different confidences. Filter to only those above 0.5.
  2. Merge your three detections with an empty Detections.empty() — confirm the count doesn't change.
CH 04
Core Data Structures

From Raw Tensors to Detections — Decoders, NMS & NMM

A raw model output is just an array of numbers. Turning it into a Detections object — and cleaning up the duplicate boxes every detector produces — is a two-step job.

4.1 · Decoders: raw tensor → Detections

Different model families encode their predictions differently, so each gets its own decoder function:

# YOLO-style output
detections = sv.Detections.from_yolo(outputs, conf_threshold=0.3, nms_threshold=0.5, class_agnostic=False)

# SSD-style output
detections = sv.Detections.from_ssd(outputs, conf_threshold=0.5)

# RetinaNet-style output
detections = sv.Detections.from_retinanet(outputs, conf_threshold=0.5)

4.2 · Why you get duplicates in the first place

Detectors like YOLO evaluate a dense grid of candidate locations, so a single real object almost always triggers several overlapping, slightly-different boxes around it. Non-Maximum Suppression (NMS) throws away all but the highest-confidence box in each overlapping cluster. Non-Maximum Merging (NMM) takes the opposite approach — instead of discarding the overlapping boxes, it fuses them into one combined box.

NMS vs. NMM — Watch the Overlapping Boxes Resolve
0.52
0.65
0.87
0.91
4 overlapping detections
filtered = detections.with_nms(threshold=0.5, class_agnostic=False)
merged   = detections.with_nmm(threshold=0.5)
⚠
Tuning the threshold is a trade-off

Too low, and boxes for two people standing close together get merged into one. Too high, and you keep duplicate boxes for a single object. There's no universal correct value — it depends on how crowded your scenes typically are.

Quiz: Decoders & Cleanup
Exercises · Chapter 4
  1. By hand: four boxes around the same object have confidences 0.91, 0.87, 0.65, 0.52 and all overlap heavily. At an IoU threshold of 0.5, which survive plain NMS?
  2. Describe a scene where NMM's "merge" behavior is more appropriate than NMS's "remove" behavior.
CH 05
Core Data Structures

Classification Outputs

Classification asks a simpler question than detection — "what is the whole image?" rather than "what's in it and where?" The Classification class standardizes that answer across model families.

Whether the underlying model is MobileNet or ResNet, the output always normalizes to the same two arrays: class_id and confidence. Softmax is applied automatically if the model handed back raw logits instead of probabilities — you don't normalize anything yourself.

result = sv.Classification.from_mobilenet(mobilenet_output, top_k=1)
print(result.class_id, result.confidence)   # [5] [0.94]

result = sv.Classification.from_resnet(resnet_output, top_k=3)
print(result.class_id, result.confidence)   # [[3 7 1]] [[0.88 0.07 0.02]]
The Effect of top_k — Click to Filter
Cat
0.62
Dog
0.21
Fox
0.09
Wolf
0.05
Rabbit
0.03
AttributeTypeDescription
class_idnp.ndarrayPredicted class index (or indices, for top-k)
confidencenp.ndarray | NoneProbability score per prediction
What happens if you request top_k=50 but the model only outputs 10 classes?
ValueError: top_k cannot be greater than number of classes — it fails loudly rather than silently padding or wrapping.
What input shape does from_mobilenet/from_resnet expect the raw model output to be?
(B, C) — a batch dimension and a class-score dimension. Anything else raises ValueError: Invalid output shape.
Exercises · Chapter 5
  1. Run the same classification output through top_k=1 and top_k=3 — confirm the top-1 result is always the first entry of the top-3 result.
CH 06
Runtimes

Choosing a Runtime & Hardware

The Model() call never changes shape — only the engine and hardware arguments do. The real skill is picking the pairing that matches where your code will actually run.

EngineTypical hardwareBest for
ONNXCPU, GPUBroadest compatibility — the default most model zoos ship first
OpenVINOIntel CPU / iGPUIntel-based edge boxes and retail hardware
TFLiteMobile / embedded CPUAndroid, iOS, Raspberry Pi
RKNNRockchip NPURockchip single-board computers (e.g. RK3588)
PyTorch / RemoteHardware.REMOTEDelegating inference to a server instead of running locally
Pick Your Deployment Target
# same call, three different targets — only two args change
sv.Model(model="m.onnx",      engine=sv.Engine.ONNX,      hardware=sv.Hardware.GPU)
sv.Model(model="m.xml",       engine=sv.Engine.OPENVINO,  hardware=sv.Hardware.CPU)
sv.Model(model="m.rknn",      engine=sv.Engine.RKNN,      hardware=sv.Hardware.NPU)
⏱
Benchmark on the real device

A synthetic benchmark on your laptop tells you almost nothing about frame rate on the actual edge box your product ships on. Measure on target hardware before you commit to an engine.

🚀 Challenge · Chapter 6
  1. If you have both an .onnx and an OpenVINO .xml/.bin pair for the same model, write a short script that loads both and times 100 inference calls on each with time.perf_counter(). Compare.
CH 07
Visualization

Annotators — Drawing on Reality

A Detections object is still just numbers. Annotators turn those numbers into pixels a human can look at and trust.

One Scene, Five Annotators — Toggle Them
car 0.91
car 0.84
box_annotator   = sv.BoxAnnotator()
label_annotator = sv.LabelAnnotator(color_lookup=sv.ColorLookup.TRACK)
trace_annotator = sv.TraceAnnotator(trace_length=30)
heat_annotator  = sv.HeatMapAnnotator(opacity=0.3, radius=40)

frame = box_annotator.annotate(scene=frame, detections=detections)
frame = label_annotator.annotate(scene=frame, detections=detections, labels=labels)
Color lookupBoxes are colored by…
INDEXPosition in this frame's detection list
CLASSPredicted class — every car is the same color
TRACKTracker ID — a stable color per physical object across frames
⚠
TraceAnnotator needs a tracker first

It reads detections.tracker_id to know which historical points belong to which object. Without running a tracker (Chapter 8) first, it raises ValueError: The tracker_id field is missing.

Which color_lookup strategy keeps a specific car the same color across the whole video, even as other cars enter and leave the frame?
TRACK — because it keys off tracker_id, which is stable per physical object, rather than INDEX (which shifts every frame) or CLASS (which every car of the same type shares).
Exercises · Chapter 7
  1. Chain BoxAnnotator and LabelAnnotator on one frame and save the result with cv2.imwrite.
CH 08
Tracking & Analytics Labs

Multi-Object Tracking with ByteTrack

Detection alone has no memory — it doesn't know that "the car in frame 40" is the same car as "the car in frame 39." ByteTrack adds that memory back, as a stable tracker_id.

1

Detection filtering

Split detections into high- and low-confidence groups.

2

First association

Match high-confidence detections to existing tracks by IoU.

3

Second association

Use the low-confidence leftovers to recover temporarily lost tracks.

4

Track initialization & removal

Unmatched detections start new tracks; tracks lost too long are removed for good.

Track Persistence Across Frames — Watch ID #7
F1
F2
F3
F4
F5
Idle
ParameterDefaultMeaning
track_activation_threshold0.25Minimum confidence to start a track
lost_track_buffer30Frames a track is kept alive after it disappears
minimum_matching_threshold0.8IoU threshold for matching a detection to a track
frame_rate30FPS of the video being processed
minimum_consecutive_frames1Frames an object must persist before being a valid track
tracker = sv.ByteTrack()

for frame in sv.get_video_frames_generator("input.mp4"):
    outputs = model(frame)
    detections = sv.Detections.from_yolo(outputs, conf_threshold=0.3)
    detections = tracker.update_with_detections(detections)

    labels = [f"#{tid}" for tid in detections.tracker_id]
    frame = box_annotator.annotate(scene=frame, detections=detections)
    frame = label_annotator.annotate(scene=frame, detections=detections, labels=labels)
🔁
Reset between videos

tracker.reset() clears tracked/lost/removed state. Call it between separate video files — otherwise IDs from the last clip can bleed into the next one.

You set lost_track_buffer=60 on a 30fps video. What real-world occlusion duration does that tolerate before an object gets a brand-new ID instead of keeping its old one?
2 seconds (60 frames ÷ 30fps). Beyond that, the track is removed and a reappearing object starts a fresh tracker_id.
Exercises · Chapter 8
  1. What would you expect to happen to tracker_id stability if you set minimum_matching_threshold extremely low, e.g. 0.1?
CH 09
Tracking & Analytics Labs

Lab — Counting People in Zones

Your first full lab, adapted directly from the project's own examples/count_people_in_zone script: draw a polygon over part of the frame and count how many people are inside it, right now.

🧭
Hands-on Lab
Zone-based people counter
PolygonZone + PolygonZoneAnnotator + BoxAnnotator, wired to a person detector.
⏱ ~30 min🎯 One or more zones, live count
Simulate a Frame — People Entering the Zone
0
zone_counter/ ├── zone_configuration.json # polygon points for each zone ├── count_people_in_zone.py └── requirements.txt
Pythoncount_people_in_zone.py — adapted from examples/count_people_in_zone
import json
import numpy as np
import swatahVision as sv

def load_zones(path):
    with open(path) as f:
        return [np.array(p, np.int32) for p in json.load(f)["polygons"]]

polygons = load_zones("zone_configuration.json")
zones = [sv.PolygonZone(polygon=p) for p in polygons]
zone_annotators = [sv.PolygonZoneAnnotator(zone=z, color=sv.ColorPalette.DEFAULT.by_idx(i))
                    for i, z in enumerate(zones)]
box_annotator = sv.BoxAnnotator()

def detect_people(frame, model, conf=0.5):
    outputs = model(frame)
    detections = sv.Detections.from_yolo(outputs)
    return detections[(detections.class_id == 0) & (detections.confidence > conf)]

for frame in sv.get_video_frames_generator("input.mp4"):
    detections = detect_people(frame, model)
    for zone, zone_annotator in zip(zones, zone_annotators):
        in_zone = detections[zone.trigger(detections=detections)]
        frame = zone_annotator.annotate(scene=frame)
        frame = box_annotator.annotate(scene=frame, detections=in_zone)
Constructor paramWhereMeaning
polygon, triggering_anchorsPolygonZoneThe zone shape, and which box anchor must fall inside it
display_in_zone_count, opacityPolygonZoneAnnotatorWhether to draw the live count label, and zone fill transparency
📐
Draw zones against a real, paused frame

Polygon coordinates are plain pixel coordinates matching your video's resolution. Pause a frame, read off corner pixel positions, and use those — don't guess.

If you set triggering_anchors=(Position.CENTER,) instead of the default BOTTOM_CENTER, how would a person walking through a doorway register differently?
They'd register as "inside" earlier when approaching (since the box center reaches the zone line before the feet do) and "leave" earlier too — the exact crossing moment shifts by roughly half a body-height either way.
Exercises · Chapter 9
  1. Split one wide zone into two side-by-side polygons (e.g. left half / right half of a hallway) and count each independently.
🚀 Challenge · Chapter 9
  1. Track zone.current_count across an entire video and report the single highest value seen — a "peak occupancy" metric, not just the current-frame count.
CH 10
Tracking & Analytics Labs

Lab — Traffic Analysis, Speed Estimation & Heatmaps

This lab stacks nearly everything so far — detection, ByteTrack, and two annotators — into one traffic-monitoring pipeline, then adds a DIY technique for estimating speed.

🚗
Hands-on Lab
Traffic flow + speed + heatmap
Adapted from examples/traffic_analysis and examples/speed_estimation.
Heatmap Accumulation — Click to Add Detections
0 batches accumulated
Speed Estimation — Two Known Reference Lines
Line A
Line B (20m away)
Waiting…
🧮
There's no sv.SpeedEstimator

Unlike detection or tracking, speed estimation isn't a single library call — it's a pattern you build yourself on top of tracker_id positions and a known real-world distance, exactly like the project's own example script does: timestamp when a tracked object crosses two reference lines a known distance apart, then distance ÷ time.

tracker = sv.ByteTrack()
trace_annotator = sv.TraceAnnotator(trace_length=30)
heat_annotator  = sv.HeatMapAnnotator(opacity=0.25, radius=35, top_hue=0, low_hue=125)

for frame in sv.get_video_frames_generator("traffic.mp4"):
    detections = sv.Detections.from_yolo(model(frame), conf_threshold=0.3)
    detections = tracker.update_with_detections(detections)

    frame = box_annotator.annotate(scene=frame, detections=detections)
    frame = trace_annotator.annotate(scene=frame, detections=detections)
    frame = heat_annotator.annotate(scene=frame, detections=detections)
HeatMapAnnotator paramMeaning
opacityOverlay transparency, 0 (invisible) to 1 (fully opaque)
radiusSize of the heat blob added per detection
top_hue / low_hueHSV hue range mapping activity level to color — defaults give red for high, blue for low
⏳
Heatmaps accumulate forever unless you reset them

A 24-hour retail camera feed averaged into one heatmap tells you almost nothing useful — reset or snapshot it on an hourly cadence instead.

Quiz: Composition & Heatmaps
Exercises · Chapter 10
  1. Given a car crosses Line A at t=12.0s and Line B at t=13.4s, and the lines are 20m apart, compute its speed in km/h by hand.
CH 11
Human-Centric Vision

Lab — Faces, Poses, Age & Gender

Three human-centric tasks from the model zoo, each just a different model file through the exact same Model() API you already know.

🧍
Hands-on Lab
Face detection → pose → age/gender
Adapted from examples/pose_estimation and examples/age_gender_detection.
Pose Estimation — 17 Keypoints (MoveNet)
Click "Detect pose" to run
Pythonage_gender.py — adapted from examples/age_gender_detection
model = sv.Model(model="age-gender-recognition-retail-0013.xml",
                  engine=sv.Engine.OPENVINO, hardware=sv.Hardware.CPU)

image = sv.Image.load_from_file("face_crop.jpg")
gender_blob, age_blob = model(image)[0]

gender = "Male" if int(np.argmax(gender_blob)) == 1 else "Female"
age = int(age_blob[0][0][0][0] * 100)
ModelTaskEngine in model zoo
BlazeFaceFace detectionONNX
MoveNetPose estimation (17 keypoints)ONNX
age-gender-recognition-retail-0013Age & gender classificationOpenVINO
🧩
These retail-* models are OpenVINO format

They ship as an .xml/.bin pair, so remember engine=sv.Engine.OPENVINO — loading them with Engine.ONNX will fail outright.

The age/gender model expects an already-cropped face, not a full street photo. Which chapter's tool would you reach for first, in a real pipeline, to produce that crop?
Face detection (BlazeFace via the same Model() + Detections.from_yolo/appropriate decoder pattern from Chapters 2–4) — detect the face box first, crop the image to it, then classify age/gender on the crop.
Exercises · Chapter 11
  1. Sketch (pseudocode is fine) a two-stage pipeline: detect faces in a full frame, then run age/gender classification on each cropped face box.
CH 12
Capstone

Capstone — Assemble the Full Pipeline

Everything from the last eleven chapters strings together into one loop that runs once per frame. This chapter closes the loop, then hands you a real project brief.

Trace a Full Production Frame
Model()
→
Decode + NMS
→
ByteTrack
→
Annotators
→
Zone / Analytics
→
Your Output
my_vision_pipeline/ ├── main.py ├── config.yaml ├── models/ │   └── yolov8n-640.onnx ├── zones.json └── requirements.txt
≥15
FPS ON TARGET DEVICE
<5%
ID SWITCH RATE
95%+
ZONE COUNT ACCURACY

Targets to aim for in your own project — not published benchmarks of the library itself.

🚀 Final Project
  1. Pick one scenario: retail queue counting, parking-lot occupancy, doorway traffic counter, or a restricted-zone alert.
  2. Build a pipeline using at least: detection, ByteTrack, one annotator, and one analytics module (zone counting or heatmap).
  3. Write a short README explaining your zone/threshold choices and any trade-offs you hit.
Final Recap Quiz
📜
License reminder

swatahVision's core is LGPL-3.0 — free to use, including commercially, as long as you respect the library-linking terms. Enterprise deployment tooling and OEM extensions are offered separately by swatah.ai / NeuralSense AI, but nothing here required them.

Continue learning

  • GitHub repository — source, issues, and contributing guide.
  • Model zoo — pretrained weights across every engine covered in this course.
Chapter 1 of 21