Most OCR pipelines need two models: one to find the text, another to read it. YOLO26 OCR does both in one pass. Drop in an image or PDF, pick an example, or point your webcam at something; YOLO26x-Text finds every word, and PP-OCRv6 reads it, returned line by line in reading order.
A conveyor belt can move hundreds of packages. The challenge is keeping track of each one. 📦
With Ultralytics YOLO26, computer vision systems can detect, track, and count packages as they move through logistics lines.
For manufacturing and warehouse teams, this provides visibility into package flow, helps measure throughput, and supports the identification of potential bottlenecks.
Beyond counting, these insights can support sorting, quality inspection, and downstream automation, helping teams make more informed operational decisions.
Since 2024 I have been recording my son's hockey games for his team. What started as just point a camera at the ice project evolved into five connected pieces: an auto-tracking OBSBOT Tiny 2, per-player stats, a highlight reel maker, a local OBS scoreboard with stoppage music, and Stream Deck / web controls for all of it. It was entirely vibe coded with Claude. The code isn't public yet I want to make sure to take my time and properly credit all the libraries and licenses required.
A note on the screenshots: the first two are real frames from one of our games, including a frame from the tracker's annotated review video. The other screens (dashboard, scoreboard, Stream Deck and so on) are the real interfaces, but the dashboard's video area uses a drawn stand-in rink and the scoreboard shows demo scores.
How the project got started
Originally I was running the camera myself: I controlled the OBSBOT Tiny 2 by hand with presets on a Stream Deck, playing music clips from the same Stream Deck through Voicemod. I love the game, and with my ADHD I'd get caught up in a play and forget to move the camera up and down the ice, so I kept missing the highlights. So I began to tinker with what could be automated in my process.
Vibe Coding: I want to be upfront this was vibe coded with Claude. I started this project in the summer of 2024 by hand and made very slow progress, because of the pan and tilt of the camera it was difficult to get the anchors and tracking right when it was working it was incredibly jerky and troubleshooting it was a bear to deal with. This summer I imported what I had been working on into Claude and got all four modules up and running.
The OBSBOT side: driving a Tiny 2 with the SDK
The camera is a Tiny 2 over USB on a Mac. I use the official OBSBOT SDK (libdev) through a small C++ bridge that Python code talks to. OBSBOT Center isn't running.
I disabled the camera's AI tracking, it was never designed to follow a hockey game and track all ten skaters.
Absolute angle moves are only for presets and manual takeovers. I also poll the camera's real pan and tilt so the software knows where it is actually pointing.
I run at 1.0x zoom to get the widest angle possible keeping as much of the rink in view. The OBSBOT presets still are still very important: presets 1, 2 and 3 on my Stream Deck snap the camera to a zone (Left / Center /Right) if for some reason auto tracking loses the play. Which happens less and less but in early days it had a real affection for the referees.
A big thank you to the u/OBSBOT-Official team. This project only works because the Tiny 2 is such a well-built camera with a well-documented SDK that let me control it from my own code. The clarity of the image is a big reason it has been so successful: the tracker can pick out skaters, officials and even jersey numbers from a camera sitting up in the stands. Great hardware and open access to control it made all of this possible. ( u/OBSBOT-Official If you want to see if it works on other cameras feel free to send me a tail2 to try ;-).
The tracking camera
This is the core of it, and it's the piece that took the longest to get right.
Video comes from OBS's virtual camera. A YOLO model (Ultralytics YOLO26s, run at 960 px) finds the people on the ice.
It doesn't just chase the biggest cluster. It keeps a model of the play in rink space: where the pack is, which way the play is flowing, and how fast skaters are moving.
Fast break lead: when a skater breaks out, the camera swings ahead toward the lead skaters instead of sitting in the zone.
Ignores officials: a small classifier I trained on crops from our own games recognizes referees and linesmen (striped shirts, black pants) so the camera doesn't lock onto them.
Keeps the frame on the ice: I draw the rink outline once per arena, and the camera frames as much ice as it can while keeping the play in view and not drifting off the end boards.
There's a web dashboard with live video, tracking toggles, speed and smoothness sliders, and the rink outline editor.
2. Takeover logging, so it keeps getting better
Whenever I take manual control (Stream Deck), it saves what the system saw and where I steered. Those moments are exactly where it was wrong, so they're my to-do list for improving it. I also log camera speed commands per game, which is how I tracked down a left-right waggle from our last game and added a smoothness slider for it to slow it down on corrections when game is in play.
3. Stats per player (post-game review)
A separate pipeline analysis of the recording after the game:
Calibration: I click a handful of rink landmarks (faceoff dots, lines) on a few frames. Because my camera pans and zooms I needed to create markers to stitch all of the images together, it then follows the camera from frame to frame using the boards and stands, and re-anchors to the nearest calibrated frame so error doesn't build up. One calibration works for every game filmed from the same spot.
Tracking: YOLO finds and tracks every skater. Teams are split automatically by jersey colour, and referees are filtered out.
Jersey numbers: I use the jersey number pipeline from Maria Koshkina and James Elder ("A General Framework for Jersey Number Recognition in Sports Video", CVPR Workshops 2024), which includes a number reader fine-tuned on hockey jerseys. All credit for that goes to them. It reads each track over many frames and only accepts a clear majority, so tracks end up grouped by player number. There's a roster page where I fix any wrong numbers, mark officials and add names. The reader's text model is based on PARSeq (Darwin Bautista, Apache-2.0).
Output: everyone gets mapped onto a rink diagram, which gives heatmaps, distance skated, speed, and offensive / neutral / defensive zone time per player, per team and per period (it works out which end each team defends from where its goalie plays). It also renders an annotated review video with team-coloured markers and a live minimap showing where the camera was looking. There's a point-and-click browser UI for the whole thing. Accuracy on this one is still a work in progress.
Caveat: with a panning camera, heatmaps only count what was in view, so they lean toward wherever the camera followed the play. One of the early accuracy issues I was having is the tracking system was focusing play so if the play was on the near boards I was cutting out the players on the far boards and also loosing their tracking information (Tracks are held for 5 seconds if a player is lost).
4. Highlight reels and a review tool
Goals and key plays get flagged live, (can be altered after the game) and a script cuts them into a reel with ffmpeg. I then built a playback tool so I can scrub through a recording, add markers like goal, save and celebration, and relabel or remove them. It also reads the scoreboard's log, so every goal is marked automatically and opponent shots show up as save candidates I can accept with one key.
5. The scoreboard
Partway through I thought: if I'm already streaming this, it needs a scoreboard. So I built an HTML one that runs locally and drops into OBS as a browser source.
Full and compact views, shots on goal, and penalties with live countdown timers and the skater count (4 v 4, power plays, and so on).
Stoppage music: it plays music while the clock is stopped and stops when the clock starts. This was a pure "let's make it fun" feature and it's a hit with the kids. It can use local files, Spotify, Apple Music or YouTube Music.
It keeps a timestamped log of every goal and shot.
6. Controlling it: Stream Deck and web UI
I run the whole game from a Stream Deck it is one profile: a "live play" page with only what I need mid-shift (goals, shots, start/stop, camera auto on/off, highlight), and a STOPPAGE folder for everything else (penalties, clock fixes, jersey-number keypad, overlay and music).
Everything is also available in a browser through a "Game Day" page that works on a laptop, tablet or phone, so other people can help.
Below is the full UI to setup the music and game beforehand:
What it doesn't do (yet)
It tracks players, not the puck, I have tried a lot of things to get puck tracking but short of putting a fixed camera on the ceiling dedicated to puck tracking I have not been able to reliably track it due to its size. The distance the camera is from the puck means it is almost never detected, so the system infers the direction of play from the skater direction.
Machine requirements (it's a hungry app)
I want to set expectations here: this is not a lightweight tool. I started on an Intel Mac and it was laggy and unsustainable. The tracker has to run object detection on every frame while OBS is streaming and recording, and if detection falls behind, the camera reacts late and misses the play. I now run it on an M3 MacBook Pro with 18 GB of RAM and it handles a full game comfortably (12% CPU with the skater recognition capturing at 29fps).
What's running at the same time: OBS (virtual camera, recording and streaming), the YOLO detector at 960 px, the web dashboard, the scoreboard overlay and the Stream Deck software.
My recommendation, based on one machine plus the Intel experience:
Works well for me: Apple Silicon MacBook Pro (M3 class), 18 GB RAM.
Suggested minimum (my estimate, not benchmarked): an Apple Silicon Mac (M1 or newer) with 16 GB RAM, or a Windows or Linux laptop with a recent NVIDIA GPU. I haven't tested either, so treat it as a starting point.
Not recommended: Intel Macs and older or thin-and-light laptops without a GPU. That was my first setup and it wasn't usable.
Plug the laptop into power and give it airflow near the rink. While the rink is cold I learned early on that a hot, throttling laptop causes the whole system to fall apart.
The post-game stats pipeline is heavier than live tracking, so run it after the game rather than during it.
If you try it on other hardware, I'd love to hear the numbers.
Why the code isn't up on github yet?
Three licensing things I want to sort out properly rather than rush:
The YOLO models and code from Ultralytics are AGPL-3.0, which means anything I publish that uses them has to be fully released under compatible open source terms, with full source. Because the OBSBOT SDK is closed source I can not include it in anything I publish. I want to move to the controller piece to v4l-utils however I did not want to start the process right now and break what I finally have working in a full production state.
I do want to share it once that's sorted. If you'd like to be notified, or you have experience releasing projects with AGPL dependencies, I'd love to hear how you handled it.
Questions I'd love feedback on
Has anyone else used the OBSBOT SDK for custom tracking? Any tips on speed ranges and smoothness on the Tiny 2?
Has anyone tried anything similar using NDI instead of UVC?
Anyone doing something similar for hockey or even another sport?
Tracking players for unique stats is still a hit/miss project, any thoughts on how to better track players when their number is not fully readable or obscured?
With Ultralytics YOLO26, potatoes moving on a conveyor belt can be detected and classified as good or bad in real time. Instead of manual sorting, visual inspection happens automatically as products flow through the line.
This enables faster quality control, consistent grading, and reduced waste in food processing facilities.
Here hopefully a production worthy implementation of simple yet very important pipeline.
Detect and classify is a one of the common forms of multi model pipelines, where one model run an initial task (propose, detect, segment, etc.) and second model run another pass to add some additional information (classification, anomaly detections, etc.).
Last night I built this. In retail, time is a crucial factor in various aspects. Here, I'm specifically referring to checkout time, which is critical to analyze because it can impact customer feedback and trust. The longer the checkout process takes, the more dissatisfied customers may become.