Video analytics in production. How artificial intelligence works where humans cannot cope

13 Jan 2022

Problem

A rolling shop cuts hot rolled bars to multiples of the ordered length. The cut is made on the move, so half a second of timing error moves it. Metal also shrinks as it cools, and the coefficient came from GOST tables that miss part of the product range. Bars on the cooling bed were never measured in production. Every miss adds cut-off allowance that goes to remelting: the shop left an extra 1.5 meters per bar.

Example from the article: a 200-meter hot bar cut into 101 and 99 meters instead of two 100-meter halves yields 19 pieces of the ordered length instead of 20.

Solution in brief

Four 4K cameras above the cooling bed film the bars. A U-Net segments each bar, and its ends are converted to a real length using reference markers. The length is measured hot and again cold. The shrinkage goes to the process control system, which corrects the next cut.

Questions this case answers
  • How to measure the length of long objects in a camera stream with centimeter accuracy when contact sensors are too inaccurate and laser meters do not cover every object type
  • How to close a feedback loop between a measured before/after size change and the next cutting decision when the change coefficient is only known approximately
  • How to measure the length of red-hot steel bars on a cooling bed with cameras instead of sensors?
  • How to find the real shrinkage coefficient of a metal profile when reference tables do not cover the whole product range?

Tools and methods

  • U-Net — segmentation of the bar to find its start and end
  • Color-clustering segmentation — fast pass that finds when a bar stops
  • Image stitching — one panorama from neighboring cameras, so any bar length fits
  • OpenCV — preprocessing and geometry
  • PyTorch — U-Net training and inference
  • FFmpeg — video stream capture and decoding
  • TensorRT — considered as a faster alternative to PyTorch inference
Continue reading — it's free

Google or a one-time email code. No password.