摘要 |
A number of items present in a substantially linear queue are counted by examining two images of a scene including the queue that are taken from vantage points offset relative to each other. Depth information for portions of the scene is obtained by correlating equal sized patches in the images at a predetermined number of offsets, since closer objects will require more of an offset to align one image relative to the other than objects further away from video cameras creating the two images. A match score is determined at each offset. The best offset and the number of offsets to achieve it are stored for each patch. A plot is then created for offsets versus the number of patches at each offset having the best match. Peaks in the plot indicate the number of objects in the queue. |