repo - https://github.com/5shekel/llinescan
the trick is having a 500fps camera (some industrial cameras allow for much higher fps if you choose subset of sensor)
https://www.ivsimaging.com/Products/Cameras/Basler-ruL2048-19gm-Machine-Vision-Line-Scan-GigE-2048pixels-187-kHz-mono