I am working on a project to measure lengths of the black objects and distance between them using computer vision (Shown below in the fig.). These objects are moving on a conveyor shown in the blue color. The speed of the conveyor belt is known(0-1m/s) at every instance.Due to limited field of view of the camera, its not possible to have complete object length in a single frame , how can I measure the object lengths in this case? As I have very little knowledge of computer vision, I am finding it difficult to search the algorithms relevant for solving this problem. Any help with keywords, algorithms, resources is appreciated.
My first instinct is to use line detection algorithms for detecting object edges and calculate distance between them, based on speed and time.Also, how difficult is it to stitch multiple images based on speed to get a complete object?