The problem: damage is found too late

At the unloading dock, a receiving clerk counts cartons by eye, writes the number on paper and signs for the driver. If a torn carton slips past them, it is found days later on the shelf, and by then it is hard to prove it arrived that way from the supplier.

The idea behind Rakaiz Raseef: a camera counts the cartons coming off, an inspection station catches the damaged ones, and the result is recorded on the goods receipt with photos. It is the link between Rakaiz Manfath at the gate and Rakaiz Fatoora for invoices.

The test: real video and photos

We used two real, free-to-use clips from Pexels of workers unloading delivery vans, and five photos of cartons, some intact and some torn with foam packing spilling out. We used Ultralytics' official YOLOE model, which looks for objects from a text description or from an example in a photo.

1. The small model could not see the cartons

Both clips are shot in dim, cinematic light. The small model with the description "cardboard box" did not find a single carton in a frame full of them. The large model with the simpler description "box" found 12. The difference is not just the word; it is model size meeting real footage that is harder than lab photos.

2. Count paths, not appearances

One carton appears in hundreds of frames, and the cartons stacked in the van appear for the whole clip. So we do not count what appears; we track each carton and count it only when its path starts inside the van door and ends in the dock area. In the first clip the worker moved two cartons, the system counted two, and none of the cartons stacked in the van were counted.

3. The fence broke the count

In the second clip the camera was behind a metal fence. The worker moved one small carton, but the fence bars cut across it as it was carried, so its track broke and it was not counted. The lesson is clear: camera placement matters more than the model. In a real installation the camera is mounted high above the dock door, with nothing in the way.

4. A text description does not understand damage

We tried describing damage in words: "damaged box", "dented box", "ripped cardboard". The result was poor: the model called two perfectly intact cartons "damaged" with 85% confidence. We also tried the version that recognises thousands of objects without a description, and it called the torn carton a "paper bag".

5. One example worked

Instead of a description, we marked the torn area with foam spilling out in one photo and asked the model to look for similar damage. It found the tear in two other photos of a torn carton, and raised no alarm on a photo of two intact cartons or on video frames full of intact cartons.

This result has limits, and we state them plainly. The three torn photos come from one photo shoot of a similar carton, so the test is optimistic. An open carton with cut tape was not caught, because it is not a tear. When we tried a second example for open cartons, it started flagging intact ones, so we did not adopt it. Each type of damage needs its own example, tested on the client's own warehouse photos before going live.

The numbers

  • Counting: 2 of 2 cartons in the first clip, and 0 of 1 in the second because of the fence
  • Inspection: 2 of 2 tears caught, no false alarms on intact cartons, and the open carton missed
  • Time on an ordinary processor: 1.3 seconds per frame for tracking, and about 2 seconds per inspection photo. A real installation uses a GPU device next to the camera

What we learned

  • Count paths, not appearances: a carton is counted only when it moves from the truck to the dock
  • The camera comes before the model: one fence broke the count for a whole clip
  • Damage is taught by example: a text description mixes up intact and damaged; one example tells them apart
  • Each damage type needs its example: a tear is not a wet carton or an open lid

Receiving trucks every day?

See Rakaiz Raseef, or the rest of the bundle: Rakaiz Manfath and Rakaiz Fatoora, or get in touch and we will try the system on a clip from your dock.