from Hacker News

Ask HN: How to extract product label from a sequence of 306 product images?

by lilouartz on 6/16/24, 10:02 PM with 3 comments

I have 360 pictures of a supplement bottle. I want to extract product label out of those pictures. Is there anything that could do this?

I would imagine the software would need to project series of images onto a cylinder, align them, and then recognize and extract the label.

Feels like I will need to write the solution myself, but figured I will ask before I start tackling the problem.

  • by serf on 6/17/24, 2:24 AM

    stitch the images together (sift,orb) and apply a perspective transform.

    if the images are uniform enough in style you can then probably crop them all at once with mask coordinates.

    opencv/imagemagick will handle all of it.

    if the images aren't uniform enough to crop them all at once, consider the use of a 'lazy susan' style vertical rotisserie, take all the photos from the same plane, easy post-processing.

  • by ahazred8ta on 6/17/24, 12:19 AM

    The keywords seem to be Photogrammetry 3D Model creation ... GIYF