Find a reference product on a shelf
This example supplies an image of a cereal package, then asks whether a matching package is visible in a shelf video. It asks for temporal evidence and permits an uncertain answer when packaging details cannot be read clearly. Visibility in this recording does not establish a store’s current inventory. Install theperceptron>=0.4.0 Python package and set PERCEPTRON_API_KEY before running:
0; the query video is asset 1. Temporal annotations must therefore select asset 1. This is an illustrative matching interval, not measured output for the sample video:
Make the comparison precise
- State whether you want the same class, the same product design, or the same individual object. Those are different matching tasks.
- Use a reference where the distinguishing features are visible. If it contains several objects, identify the intended one with a reviewed box, as in image in-context learning.
- For several reference concepts, label each one and request separate evidence for each. Do not assume every reference has a match in the query video.
- Treat a missed or obscured match as uncertainty about the supplied footage. Selected frames do not show every instant of the source video.