Skip Navigation

What cheap setup or technique works for truly flat photos for use in CAD?

I've managed to do reverse engineering of circuit boards using GIMP and rough alignment of layers using images like the one pictured. I want to use images to reverse engineer parts in CAD, but the minor lens distortion of a camera on a phone at ~20cm high on top of a stack of objects to keep it eyeballed flat is not enough. The result is off in multiple planes. There are minor errors in my curves in the transparent CAD part pictured, but the hole pattern is correct. The picture has been calibrated to 20mm against the ruler. Any suggestions on how to make this usable for replicating the ellipse that crosses the holes ±0.05mm?

22 comments
  • i believe you need distance. but you'll loose resolution. the lens distortion will be way less fish-eye'e if you take the picture from meters away instead of centimeters. photo software like darktable also has lens correction for lots of camera-lenses. but not for smartphone lenses i believe. 🤔 not sure though.

  • A scanner would be your best bet.

    But you could go wild and ditch the photo idea.

    The original piece was modeled in CAD. Simply follow the logical path for how it was originally done.

    Measure the outermost dimensions and draw a rectangle as construction geometry. Then play around drawing a couple of circles - chances are that the top and bottom curves are circles and are trimmed and joined with eachother with say blend curve to preserve tangency.

    Also measure the distance of the holes to the rest of the geometry. How far are they from the top and sides. You could measure their distance to eachother crosswise too to narrow down the measurement error.

    The geometry is built around simple measurements, if you can work out the sketch tools and constraints, you can probably match the original with high precision.

    • That is what the purple overlay is already. However there are multiple ellipses that are not the same and very minor variation is important. The original part was likely made using surfacing workflow and not a parametric sketch type workflow. The error really needs to be ±0.05 or better, thus the reason it is worth chasing the picture based reverse engineering.

      • Are you sure the part is as complex as you say? It just looks like lense distortion to me. You can't get an accurate copy from a simple photo. You need special equipment to capture the true proportions

  • If you don't have a flatbed scanner, and the item is flat on the side you want to photograph, you can do a pencil rubbing of it onto a sheet of paper (that you do know the dimensions of), and photograph that instead.

22 comments