603,844 active members*
3,894 visitors online*
Register for free
Login
Results 1 to 18 of 18
  1. #1
    Join Date
    Feb 2009
    Posts
    499

    Scan to machine?

    I need to be able to quickly take a part outline, cut in black cardboard to the correct dimensions, place it on a scanner, and have the computer scan in the image and create the gcode to cut out that part at the same scale. Can sheetcam do this? If it can't talk to a scanner directly, can it import a jpg from a scanner and do this? Ideally, it should have some controls over how much fuzziness to accept or reject in its line detection.

    The idea here is to go from a scan to a cut part with few steps involved, especially avoiding making a dxf.

    If not sheetcam, who does do this?

    TIA,

  2. #2
    Join Date
    Mar 2003
    Posts
    35494
    Quote Originally Posted by revwarguy View Post

    If not sheetcam, who does do this?

    TIA,
    No one that I'm aware of. I don't believe that SheetCAM does raster to vector conversion.

    You can import a scan into V-Carve Pro, and then you can convert it to vectors and create toolpaths, but I think you'd need to scale it to the correct size, as I don't think the image contains any size info. Some formats do, but I don't think that V Carve would use that info. Also, the raster to vector conversion may change the sizes slightly.

    Imo, drawing a .dxf involves fewer steps than you're talking about. You need to lay out your design, cut it, scan it, convert to vectors, then create toolpaths. For me, I'd draw it, and then create toolpaths. Most likely I could have it drawn before you can have it cut. Unless, you're talking about complex freeform shapes. But even then, how are you laying out the esign to be cut? Ther must be some drawing involved? Or are they just cut freehand?

    There is another option. MeshCAM can load an image and create a 3D part. The image should preferably be 2 colors (white background). In MeshCAM, you can use the pencil toolpath option to try to just cut the perimeter of the part. This may work, but I would NOT recommend it, as it's not what the software was designed for.
    Gerry

    UCCNC 2017 Screenset
    http://www.thecncwoodworker.com/2017.html

    Mach3 2010 Screenset
    http://www.thecncwoodworker.com/2010.html

    JointCAM - CNC Dovetails & Box Joints
    http://www.g-forcecnc.com/jointcam.html

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)

  3. #3
    Join Date
    Feb 2009
    Posts
    499
    Thanks, Gerry for the response.

    My situation is that there already exists a bunch (hundreds) of part templates, cut from full scale drawings, for airplane part fixtures. Some are simple shapes, to be sure, but many are free form, complex shapes. Most of them will later be combined to form 3d fixtures. The idea of drawing them all in a .dxf is pretty daunting.

    Thing is, I know I saw a guy do this once for use on a plasma CNC, back when I wasn't really sure just what I was seeing. I was so mesmerized by what was happening, you know - thinking of the possibilities, feeling overwhelmed by considering my own applications - just getting plain ole "hooked" on this CNC stuff - that I didn't notice exactly which steps were being taken. He's long gone, so I am still trying to find out what he used.

    I do find it surprising that since there exists so many paper scaled drawings of things that haven't been e-drawn that this capability is rare! Not to mention the ability to just lay an actual 2D part on the scanner and reproduce it!

  4. #4
    Join Date
    Jul 2005
    Posts
    2415
    You have to understand the difference between a scanned image/photo/bitmap and what CNC machines cut. It may look like a smooth line when you draw it but blow it up in a paint program look at all the jaggies! When you get outside the "normal" size of scanners (typically 8 1/2 X 14) you are talking about a lot more bucks. I assume all these patterns are not that small. Bitmaps are thousands of dots that are individual objects. Regardless of what you see in the slick marketing of some vendors, very few items can be just simply scanned and cut. Usually the cleanup of the auto-trace (CorelDraw and Inkscape have built in auto-tracing programs) takes as long as if you were to just draw it.

    One shortcut way we have used for years is to scan or photograph a shape (it can be as complex as you want) and import it into CorelDraw and put a layer over it and hand trace the shape using the vector drawing tools in Corel to get nice smooth curves and round circles. It's easy once you have it vector (line format) to measure the actual part and scale the drawing to any size you want. About the only thing that works pretty good for autotrace is simple high contrast B & W (line drawings to begin with).

    The downside of the hand trace is it's slow going until you learn how to use the tools to "digitize the image".

    It's not that the capability is rare but the results are often not equal to the time and money you put into the programs.

    I'll bet you can find someone in your area with the skillset to do it on a contact basis for a reasonable price. It's an easy function once you know how to do it. The up side is you will get dimensionally correct results because you can size the vector (or change parts of it) at you leasure

    A lot of users have been pulled in by the marketing of "just scan it and cut it...simple" only to find that is like the concept of the "Easy" button.

    There are probing programs (MACH has one) than will go all around an object and over several hours give you a very accurate 3D model (which you can flatten into a 2D) There are also some lower cost laser scanner devices that will do the samd thing but they are pretty limited in what size they will scan.

  5. #5
    Join Date
    Feb 2009
    Posts
    499
    Well, I thank you for the reply, but I suspect I do have a fairly good handle on the difference between bitmap image files and gcode ASCII files, having written software that uncompresses, rotates, does some edge detection using several different image formats.

    My cheapie scanner easily does 9600 dpi scanning, allowing each pixel to easily represent a point along an edge within a thousandth. As I mentioned earlier, it is a black and white situation, so the color depth can be small and contrast thresholds can be high. As long as we don't use a image format that allows non-idempotent compression (i.e., don't use jpeg - did you know that just opening a jpeg, and saving it without making any overt modifications alone causes a loss of image fidelity! You can save yourself much of the "clean-up" from tracing by just not using a compressed image, and not "blowing it up.") we should have a good full scale representation of the part in the image file.

    There are several image processing applications that easily does threshold edge detection that yields a clean line in this case, averaged by a radius of just a few pixels, so we know it can be done, just not by most CAM programs, I guess. And yes, the parts all fit on my scanner.

    I believe placing a high contrast object on a scanner to produce a gcode file (or, as an option, an intermediate .dxf if modifications are needed) that reproduces this part to scale would be useful, and I haven't heard any argument that would prevent such software from working, as well as I think I saw it in action once, but just wish I had been paying better attention.

  6. #6
    Join Date
    Mar 2003
    Posts
    35494
    Quote Originally Posted by revwarguy View Post
    My cheapie scanner easily does 9600 dpi scanning, allowing each pixel to easily represent a point along an edge within a thousandth.
    The problem is converting those "points" into lines and arcs. You really don't want a gcode file made up of .001 moves.



    There are several image processing applications that easily does threshold edge detection that yields a clean line in this case, averaged by a radius of just a few pixels
    Can you post a .dxf of what you consider a good raster to vector conversion?
    Gerry

    UCCNC 2017 Screenset
    http://www.thecncwoodworker.com/2017.html

    Mach3 2010 Screenset
    http://www.thecncwoodworker.com/2010.html

    JointCAM - CNC Dovetails & Box Joints
    http://www.g-forcecnc.com/jointcam.html

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)

  7. #7
    Join Date
    Feb 2009
    Posts
    499
    "The problem is converting those "points" into lines and arcs. You really don't want a gcode file made up of .001 moves. "

    Of course we don't. As mentioned earlier, it's a bit more involved than just connect the dots. Averaging, among other techniques, is used to make up the edge, or line. For instance, if there is a straight edge to the part, the "points" would either fall on or off the line by a few points in either direction (say five or six). However, if the software detects that there is this slight variation over an inch (say five or six over about 10,000 points - one inch's worth) then they are averaged, and you get a one inch straight line vector that is very close to the original, not a series of vectors made up of .001, .002 or .003 etc. moves. Non linear edges also have several published curve fitting techniques to do the same thing for more complicated shapes. Sharp corners can be off a bit more, but we are still talking only by a few thousandths.

    "Can you post a .dxf of what you consider a good raster to vector conversion?"

    I'm writing this away from my usual haunts right now, but I will keep my eye out for something. In general, though a resultant .dxf shouldn't be that much different than one drawn by hand, except the dimensions would be subject to the rounding and averaging techniques above. In any case we are still talking about a resolution error less than or close to what many CNC machines can cut. Complex curves may be comprised of a few more vectors than one might have done by hand, i.e., if you recognized that one curve was a perfect hyperbolic form and hand specified it, but so what? Multiple vector curves might complicate the toolpath a bit and increase cutting time on the machine a bit, but that's why I built a robot - to save my time over its time.

    The above techniques tend to worsen as the image resolution gets less [which is why many find the process wanting - they weren't using enough dots, or they started from an image with 65,000 levels of contrast instead of a just a few, or they started with an image with lots of induced noise from compression - like jpegs!] or as the features on the parts get small. For instance, I wouldn't consider this for doing PC board layouts unless the original is *much* larger than the end part. For many parts, having things like notches that are 10-50 thou on a side are pretty rare, and tracing would probably fall down there.

    What's the difference between using a scanner, which uses steppers to position a detector to see a change in light edges, or using steppers to position a probing switch to follow an edge around a part - except that the scanner is much more accurate and tremendously faster?

    PS - good discussion!

  8. #8
    Join Date
    Mar 2003
    Posts
    35494
    Quote Originally Posted by revwarguy View Post
    In general, though a resultant .dxf shouldn't be that much different than one drawn by hand,
    From my experience, they're usually not even close. I guess with more primitive shapes I may have seen some halfway decent results, but not good enough for me. That's why I requested a sample.
    Gerry

    UCCNC 2017 Screenset
    http://www.thecncwoodworker.com/2017.html

    Mach3 2010 Screenset
    http://www.thecncwoodworker.com/2010.html

    JointCAM - CNC Dovetails & Box Joints
    http://www.g-forcecnc.com/jointcam.html

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)

  9. #9
    Join Date
    Jul 2008
    Posts
    14
    adobe illustrator can take a scanned image and create a vector image.
    you can set parameters to set the quality of the vector, to what you need.

    then you can save as a dwg. and clean it up with a cad prog then create a toolpath (g-code)

  10. #10
    Join Date
    Feb 2009
    Posts
    499
    adobe illustrator can take a scanned image and create a vector image.
    you can set parameters to set the quality of the vector, to what you need.


    Yes, it sure can. I was hoping a CAD program could as well. Some try, but the general opinion is that the results are poor.

    (wrong)
    Gerry, this discussion has nothing to do with Sheetcam now, but I am interested in pursuing it and posting some examples. Can you suggest a better forum and explain what is needed to move it? It will be a few weeks before I am back at my workstation to do this, however.

  11. #11
    Join Date
    Nov 2008
    Posts
    16

    Frustrated!

    I am building a jig for bending the sides of a ukulele. I traced the uke on a piece of white paper, took it to fedex and had it reduced by 50% so I could work with on my scanner at home. Once scanned I used photoshop to clean up the image and saved it as a .bmp I used the same resolution at all stages 300 dpi. I vectorized it with Win Topo and saved it as a dxf. When I used Cut2D to route out the shape it was not the same. I don't understand what part of the process has possibly changed resolution or dimension? I don't know what to change to make a more accurate result. Any help would be appreciated.....Thanks, BC

  12. #12
    Join Date
    Feb 2009
    Posts
    2143
    Can you post one of your scans? I have a couple programs that convert bitmaps to vectors, and by tweaking the parameters it can smooth it more or less.

    Though "tedious" the best way I find to do this work is to import the bitmap, and use drawing tools to recreate the part. Splines work great on the "organic" shapes, and circles and straight lines are "guaranteed" to be circles and straight lines. The importance of the accuracy of what you need will dictate how precise you will need to be, as you are fully aware.

    Anyway, if you can post one of your parts, we can all "try" to convert it in to something usable to you, and you can determine if any of those options will work for you.

  13. #13
    Join Date
    Jan 2008
    Posts
    2247
    PlasmaCam software does a decent job scanning line drawings and converting to their .pcm format, which also can be saved as a .dxf file. When I have more complex drawings or photos to convert into a file for plasma cutting I use Arbor Image....more expensive but works very well.

    The PlasmaCam software comes with PlasmaCam cnc machines....to purchase the software only is rather pricey.

    Jim Colt

  14. #14
    Join Date
    Jul 2005
    Posts
    2415
    Quote Originally Posted by notselrach View Post
    I am building a jig for bending the sides of a ukulele. I traced the uke on a piece of white paper, took it to fedex and had it reduced by 50% so I could work with on my scanner at home. Once scanned I used photoshop to clean up the image and saved it as a .bmp I used the same resolution at all stages 300 dpi. I vectorized it with Win Topo and saved it as a dxf. When I used Cut2D to route out the shape it was not the same. I don't understand what part of the process has possibly changed resolution or dimension? I don't know what to change to make a more accurate result. Any help would be appreciated.....Thanks, BC

    At best an auto trace is an approximation of a bitmap. Think about a drawing scanned at something like 300 DPI (300 Dots per linear inch). Put it on your screen and enlarge it until you can see the individual dots. Notice how they are square? notice how on a line that is not perfectly horz or vertical that you get a stair step effect? Remember the kids books with the trace by number puzzles? The dots look close together from far away but in rear terms they are fairly widely spaced. The software you use to auto trace has to try and decide where the edge really is. If the scan is grayscale (more complex than a simple B&W scan) then it gets harder for the software because to make the photo or scan more pleasing to the eye, it dithers the edges filling in the squares with other lighter shades of squares. Even the width of a pencil line and the varying intensity can be a challenge. Some auto trace programs will do a process called "center line" tracing where it tries to find the middle of the darkest connected lines and trace down the middle. Sometimes it works good, sometimes not so. There are various settings to tell the software how aggressive to trace a path or how much to "smooth" (average from center you can drift). None of the software can do as good as a human that can draw with the vector based tools.

    The photo reduction process is not precise. Add the two errors together and you start to see why the dimensions can be off.

    If you need dimensionally correct cut files you either need to draw it dimensionally correct in a CAD or drawing program (even CorelDraw will work to 5 decimal places (3 by default). If you need a shape and it's two complex to draw with the tools in the vector package then the next option is to hand trace the scan (to get the lines exactly where YOU want them) and then size it so it is exact at 1:1. You can move shapes, lines and curves around to snap to construction lines set at exact spots.

    The final file for CNC has to be vector and it's easier in the long run to draw it in vector to begin with rather than scan, convert, resize and clean up the curves and numerous nodes the tracing software will put in. There is a misconception that you have to be an "artist" to draw with the computer. It helps if you have some basic drafting skills and have (some) hand-eye coordination for using a mouse and screen, but it's amazing what you can find to trace and modify if you just learn the vector editing tools in the computer drawing packages. With computer features like line snap, node snap, node ID (shows you the edges and center of objects) and having access to hundreds of fonts and thousands of canned vector clipart files, your art skills need not be at a high level to produce really professional results.

    Okay, I'll shut up (chair)

    TOM caudle
    www.CandCNC.com

  15. #15
    Join Date
    Sep 2004
    Posts
    149
    Sorry for horning in on this thread, but some might find my techniques here interesting:

    http://opensourcedesigntools.blogspo...nned-logo.html

    I think a lot of this could be strung together with some scripting.

    I found that my resulting gcode for this one was around 900 lines, which I thought was very reasonable.

    Dan

  16. #16
    Join Date
    Mar 2010
    Posts
    170
    Quote Originally Posted by notselrach View Post
    I am building a jig for bending the sides of a ukulele. I traced the uke on a piece of white paper, took it to fedex and had it reduced by 50% so I could work with on my scanner at home. Once scanned I used photoshop to clean up the image and saved it as a .bmp I used the same resolution at all stages 300 dpi. I vectorized it with Win Topo and saved it as a dxf. When I used Cut2D to route out the shape it was not the same. I don't understand what part of the process has possibly changed resolution or dimension? I don't know what to change to make a more accurate result. Any help would be appreciated.....Thanks, BC
    I'd be happy to do the graphics work for you, if you could share some uke side bending plans I can use to cut out on my cnc. I've scanned my uke mold to get the shape, and it's dimensionally accurate. I've also designed several uke shapes on my own. One of the first things I want to make with my cnc (coming in the next couple of weeks) is a Fox style bender for uke sides.

  17. #17
    Join Date
    Jul 2014
    Posts
    28
    That is great advice. Not trying to high jack this thread. QUOTE=Torchhead;638186]You have to understand the difference between a scanned image/photo/bitmap and what CNC machines cut. It may look like a smooth line when you draw it but blow it up in a paint program look at all the jaggies! When you get outside the "normal" size of scanners (typically 8 1/2 X 14) you are talking about a lot more bucks. I assume all these patterns are not that small. Bitmaps are thousands of dots that are individual objects. Regardless of what you see in the slick marketing of some vendors, very few items can be just simply scanned and cut. Usually the cleanup of the auto-trace (CorelDraw and Inkscape have built in auto-tracing programs) takes as long as if you were to just draw it.

    One shortcut way we have used for years is to scan or photograph a shape (it can be as complex as you want) and import it into CorelDraw and put a layer over it and hand trace the shape using the vector drawing tools in Corel to get nice smooth curves and round circles. It's easy once you have it vector (line format) to measure the actual part and scale the drawing to any size you want. About the only thing that works pretty good for autotrace is simple high contrast B & W (line drawings to begin with).

    The downside of the hand trace is it's slow going until you learn how to use the tools to "digitize the image".

    It's not that the capability is rare but the results are often not equal to the time and money you put into the programs.

    I'll bet you can find someone in your area with the skillset to do it on a contact basis for a reasonable price. It's an easy function once you know how to do it. The up side is you will get dimensionally correct results because you can size the vector (or change parts of it) at you leasure

    A lot of users have been pulled in by the marketing of "just scan it and cut it...simple" only to find that is like the concept of the "Easy" button.

    There are probing programs (MACH has one) than will go all around an object and over several hours give you a very accurate 3D model (which you can flatten into a 2D) There are also some lower cost laser scanner devices that will do the samd thing but they are pretty limited in what size they will scan.[/QUOTE]

  18. #18
    Join Date
    Dec 2003
    Posts
    1347

    Re: Scan to machine?

    You can do much of that with Inkscape,which is absolutely free.It is also the most illogical piece of software I have ever attempted to use.In recent times you can also bring an image into Freecad and specify the size that it needs to be,and then trace round it,with all the fun that such an operation provides.Freecad is the second most exasperating program I have tried to get to grips with.

Similar Threads

  1. Head scan
    By Hugo Shen in forum 3D Printing / Scanning Software and Hardware
    Replies: 0
    Last Post: 06-27-2011, 04:01 AM
  2. Scan is reversed with tormach scan software
    By jeffrey001 in forum Tormach Personal CNC Mill
    Replies: 5
    Last Post: 01-24-2011, 10:49 AM
  3. Tormach's Scan Cad
    By 2_many_hobbies in forum Benchtop Machines
    Replies: 3
    Last Post: 07-13-2010, 06:47 PM
  4. 2D Scan to 3D Image?
    By astainless in forum OpenSource Software
    Replies: 6
    Last Post: 03-09-2010, 01:58 PM
  5. I need someone who can scan parts to cad
    By seanreit in forum Uncategorised MetalWorking Machines
    Replies: 7
    Last Post: 10-08-2008, 08:04 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
  •