CNCzone.com-The Largest Machinist Community on the net!



Home Page Mark Forums Read Today's Posts My Replies Classifieds Reviews Photo Gallery Web Links Share Files Advertise With Us Ad List
Go Back   CNCzone.com-The Largest Machinist Community on the net! > CAM Software > General CAM Discussion


General CAM Discussion Discuss CAD/CAM software and Design software methods here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 07-12-2009, 10:13 AM
revwarguy's Avatar  
Join Date: Feb 2009
Location: USA
Posts: 369
revwarguy is on a distinguished road
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,
Reply With Quote

  #2  
Old 07-12-2009, 10:39 AM
ger21's Avatar
Community Moderator
 
Join Date: Mar 2003
Location: Shelby Twp, MI....USA
Posts: 20,453
ger21 is on a distinguished road
Buy me a Beer?

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

Mach3 2010 Screenset
http://home.comcast.net/~cncwoodworker/2010.html

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

  #3   Ban this user!
Old 07-13-2009, 05:56 AM
revwarguy's Avatar  
Join Date: Feb 2009
Location: USA
Posts: 369
revwarguy is on a distinguished road

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!
Reply With Quote

  #4   Ban this user!
Old 07-13-2009, 02:03 PM
 
Join Date: Jul 2005
Location: USA
Posts: 1,877
Torchhead is on a distinguished road

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.
Reply With Quote

  #5   Ban this user!
Old 07-14-2009, 09:46 PM
revwarguy's Avatar  
Join Date: Feb 2009
Location: USA
Posts: 369
revwarguy is on a distinguished road

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.
Reply With Quote

Sponsored Links
  #6  
Old 07-14-2009, 10:07 PM
ger21's Avatar
Community Moderator
 
Join Date: Mar 2003
Location: Shelby Twp, MI....USA
Posts: 20,453
ger21 is on a distinguished road
Buy me a Beer?

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

Mach3 2010 Screenset
http://home.comcast.net/~cncwoodworker/2010.html

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

  #7   Ban this user!
Old 07-15-2009, 04:34 PM
revwarguy's Avatar  
Join Date: Feb 2009
Location: USA
Posts: 369
revwarguy is on a distinguished road

"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!
Reply With Quote

  #8  
Old 07-15-2009, 04:39 PM
ger21's Avatar
Community Moderator
 
Join Date: Mar 2003
Location: Shelby Twp, MI....USA
Posts: 20,453
ger21 is on a distinguished road
Buy me a Beer?

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

Mach3 2010 Screenset
http://home.comcast.net/~cncwoodworker/2010.html

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

  #9   Ban this user!
Old 07-15-2009, 05:14 PM
 
Join Date: Jul 2008
Location: usa
Posts: 14
iamstink2k is on a distinguished road

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)
Reply With Quote

  #10   Ban this user!
Old 07-16-2009, 11:38 AM
revwarguy's Avatar  
Join Date: Feb 2009
Location: USA
Posts: 369
revwarguy is on a distinguished road

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.


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.
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 06-03-2010, 12:50 AM
 
Join Date: Nov 2008
Location: USA
Posts: 11
notselrach is on a distinguished road
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
Reply With Quote

  #12   Ban this user!
Old 06-03-2010, 08:33 AM
 
Join Date: Feb 2009
Location: USA
Posts: 1,475
mcphill is on a distinguished road
Buy me a Beer?

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.
Reply With Quote

Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
david 3d scan software roll_tide Digitizing and Laser Digitizing 2 01-07-2009 02:54 PM
I need someone who can scan parts to cad seanreit General Metal Working Machines 7 10-08-2008 02:04 AM
Scan into CAD program recomendations?? metalworkz General CAM Discussion 5 04-27-2008 10:25 PM
Scan to G-code 9lrac9 Mach Software (ArtSoft software) 1 06-22-2007 09:41 PM
Model or Scan? robinsoncr Rhino 3D 8 02-27-2007 09:54 AM




All times are GMT -5. The time now is 06:15 PM.





Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO
Template-Modifications by TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361