584,841 active members*
4,548 visitors online*
Register for free
Login
IndustryArena Forum > CAD Software > Uncategorised CAD Discussion > Little tool to ease the CAD process
Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2023
    Posts
    1

    Little tool to ease the CAD process

    Hey guys, I would like to share a little tool I made. It's use case is very specific, intended to help in reverse engineering (copy parts) or maybe a helper to the CNC operator to not be subjected to the cad guy for simple drawings.

    The app will take a .jpg picture and return a clean .dxf file ready for the CAM software. The DXF will consist on closed loops representing the outlines of the parts you've drawn. I'm working on the recognition of inner holes at the moment, but I tought it's ready to share.

    I'm still working on it, on the algorithm responsible for the detection so if you have suggestions fell free to contact me.

    The critical part is to have a GOOD picture, the algorithm will first look for a nice sharp good looking sheet of paper, if that step succeed it will probably return a good DXF.

    The outline will have some error, but will be well under the oxicut or plasma accuracy. Of course it is not intended for copy things like gears or parts that need a tight fit with each other... FOR NOW.

    Sorry about my english.

    https://imgtodxf.web.app/

  2. #2
    Join Date
    Jun 2015
    Posts
    4131

    Re: Little tool to ease the CAD process

    hy nico, congratulation on your work

    The critical part is to have a GOOD picture
    regardless of image, contours are initally defined within a color range : all pixel colors of rgb+-tolerance are to be selected initially

    for example, take a picture, and select from it all pixels with color between 220 220 220 .. and 230 230 230

    the algorithm will first look for a nice sharp good looking sheet of paper
    look for color range

    The app will take a .jpg picture
    begin with formats that don't loose original colors, like bmp, png; jpg quality varies with it's compresion

    I'm working on the recognition of inner holes at the moment
    let's supose your orignal image is a blue shape inside a red shape; using color range, you can extract each of the 2 separatley, then later on check if one selection is fully inside the other selection; you can do this at raster level, or at dxf level

    checking if the selection is a circle, requies also dealing with pen width, so 1st sugestion is to try images that have 1px pen widht, thus the circle has no width;

    otherwise, once the circle has width, then you should be able to detect it's inner and outside boundary, thus you will end up with 2 entities for each circle, and this will lead you to a larger situation, as for each selection for pixels drawned with >1px pen width, you will end up with 2 entitties

    I'm still working on it, on the algorithm responsible for the detection so if you have suggestions fell free to contact me
    check 1st how other program are working, understand what is doing each one differently, then, if you wish, particulaize it for your self

    Of course it is not intended for copy things like gears or parts that need a tight fit with each othe
    there are inspection machines, that work on the principle or paralel-light ... they get a accurate image, but the software has no clue that the image was accurate or not, only the creation process makes it so

    in other words, if you wish, you could also make your own aporach for gears, etc

    please, feel free to ask anything / kindly
    Ladyhawke - My Delirium, https://www.youtube.com/watch?v=X_bFO1SNRZg

  3. #3
    Join Date
    Apr 2013
    Posts
    1899

    Re: Little tool to ease the CAD process

    Thank you very much. I'll try it out as soon as I have time.

Similar Threads

  1. Process for setting tool length offsets
    By buildyourown in forum Daewoo/Doosan
    Replies: 0
    Last Post: 03-24-2023, 08:39 PM
  2. tool crib process library
    By krloscnc in forum GibbsCAM
    Replies: 0
    Last Post: 12-10-2015, 12:44 AM
  3. Tool Decomp failsafe process
    By kbarnett in forum Fanuc
    Replies: 4
    Last Post: 06-12-2012, 12:00 AM
  4. Ease of use
    By outofsquare in forum BobCad-Cam
    Replies: 18
    Last Post: 11-28-2011, 12:56 PM
  5. New In Process Tool Measurement System
    By kcoste in forum News Announcements
    Replies: 0
    Last Post: 10-09-2009, 05:59 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •