I would like to use the digital output from a linear array of photodiodes to provide object measurement information. My application is an In-Line device to weigh Blueberries for packaging. The berries pass between a light source and a linear array of photodiodes. The digital output from the array "reads" the light attenuation ( shadow area) of the berries as they pass. This value (attenuated light subtracted from saturation light) is proportional to the mass of the passing objects, and is added to a total. When the target value is reached, a signal is output to a diverting device, to direct the flow of berries into packages. My question is : Can I use OpenCV to process the high speed output signals from such a photosensor to archive the desired result?