You might try find_line_segments. Each cuke should show a segment for each side. You can filter to length, etc. In sunshine, you’ll get the shadow too, but maybe you can shade the place where the camera is looking.
You’ll have to figure out the timing, so you get a unique set of cukes for each snapshot and don’t miss any. Good luck.