cross-posted from @j4k3@lemmy.world: https://lemmy.world/post/23787115

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?

  • officermike@lemmy.world
    link
    fedilink
    arrow-up
    6
    ·
    edit-2
    6 days ago

    As an engineer who sometimes has to reverse-engineer stuff to integrate with CAD, flatbed is the fastest, easiest way. You don’t even need to scan with a ruler or known scale either. If you scan at a known DPI, and you know the resolution, you can scale the image in CAD to (horizontal resolution/DPI) width by (vertical resolution/DPI) height. I don’t know how FreedCAD works in this regard with sketch pictures, but in SolidWorks it’s important to have an arbitrarily-sized, dimensioned piece of construction geometry in the sketch beforehand to lock in the scale (of there’s no existing sketches or solids). Otherwise, the scale can get fucked really easy with no way to unfuck them without starting over, as sketch picture dimensions entered when placing the image don’t turn into defining dimensions automatically.

    Edit: as for the camera, shooting with a long lens from really far away means the light rays entering the lens are nearly parallel rather than diverging. YouTuber “Stuff Made Here” has a recent video that briefly touches on this. https://youtu.be/aXfTgCCsRSg