Scanning the bar code on boxes place on a conveyor belt

Hello there, I want to scan the barcode present on the boxes place on the conveyor belt. The problem I facing cannot scan the barcode on the moving object. Is there any solution for this?

I’m using openmv cam h7+ r4.

You need to use the global shutter sensor. It can handle the motion. The rolling shutter sensor cannot.