I have a problem: count boxes from camera. Have multi layeres, each layer has some boxes as image

Which algorithm do I apply for this problem? Canny Edges, Segmentation? I tried it but low accuracy.
Help me!
| 1 | initial version |
I have a problem: count boxes from camera. Have multi layeres, each layer has some boxes as image

Which algorithm do I apply for this problem? Canny Edges, Segmentation? I tried it but low accuracy.
Help me!
| 2 | retagged |
I have a problem: count boxes from camera. Have multi layeres, each layer has some boxes as image

Which algorithm do I apply for this problem? Canny Edges, Segmentation? I tried it but low accuracy.
Help me!
| 3 | retagged |
I have a problem: count boxes from camera. Have multi layeres, each layer has some boxes as image

Which algorithm do I apply for this problem? Canny Edges, Segmentation? I tried it but low accuracy.
Help me!