I am trying to find an easy to use vision library for C ++. Here is my situation: I have a camera connected to a computer (for simplicity, however, we can simply assume that the image files exist on the computer), and that is how the images will look:

The idea is that three objects vertically stacked will have very contrasting colors. I need to determine the location of objects, so the vision library must either find the edges of objects, or determine their center of mass.
, , , OpenCV . , , ?
!