0

I tried to convert a model drawing to vector format (dxf) automatically with programs such as CorelDRAW, AutoCAD, etc. but it fails due to gray tones near to black lines.

I thought if I used Photoshop to try and remove the grays on picture and try auto convert again, maybe the conversion would work. Could anyone help me on this issue? Moreover, any recommendations for a tool that will successfully convert this drawing?

Example image (Google Drive)

  • 2
    Unforunately, this is the sort of stuff i get paid to do. We charge 2000 euros for these and people happily pay it. But The tracing software allready does the grayscale treshold. – joojaa May 12 at 14:22
  • Even with a levels adjustment to the original and playing with tracing options for a bit, the best I could achieve is still rather "muddy" overall. I'd say that redrawing is honestly the best option. Tracing is merely going to be insufficient if you want clean line work. – Scott May 12 at 18:32
  • Hi. Welcome to GDSE. Auto tracing will probably not give you the results you want - generally it's inferior in comparison to an original drawing. You'd be better redrawing it from scratch using proper CAD software. – Billy Kerr May 12 at 19:28
  • 2
    @joojaa i.imgur.com/OxBi1Sx.jpg (meme) – Joonas May 14 at 9:39
1

Your not going to get the kind of quality your looking after with automated tracing. The image below is absolutely the best result you can expect with common tracing tools. You can be slightly better results with higher end cad tracing software but not much. Certainly not to justify the cost of the package.

enter image description here

Redrawing it takes about 8 hours.

| improve this answer | |
1

The image has been in some phase a JPG, it does not at all help that you have saved it as PNG. It's full of JPG compression noise. I guess you have got it from publisher's PDF which is mentioned in another answer.

The JPG noise and too low resolution for image this dense make automatic tracing a hopeless case. See this snapshot:

enter image description here

Only an engineer who knows what there should be could redraw those details where the space between the lines is filled with grey and black mud.

Image adjustments in Photoshop or other bitmap image software can fade some of the grey noise, but the loss of details where areas are unwantedly filled become even stronger:

enter image description here

The image has got resolution increase to 400% with ON1 Resize which has quite succesfully guessed sharp lines. Photoshop's Image Size scaling is useless. The grey JPG noise is reduced well with contrast increase with curves.

In this phase I must reveal that I have legacy hardware and software which probably would crash with full images, so I had only a small, about 800 x 600 px snippet of your original image. The enlargened version is 3200 px high.

Vectorizing this with Illustrator's Live trace gives quite the same result as the bitmap version if the tracing mode is grayscale:

enter image description here

Trying to find a good treshold for good strict BW tracing is waste of time. The greys here and there are essential for human recognition.

BW tracing gives a possibility to trace curves and lines as strokes. I did not find good settings for it. The dense areas become unreadable mess:

enter image description here

There seems to be plenty of details but it's impossible to decipher what mechanical parts they present. The grayscale version shows with fill color "no exact details available here" In addition Illustrator guesses easily wrong in crossings and generates obscure extra twists. They become very obvious if the stroke width is set constant:

enter image description here

I tried also the demo version of Vextractor which has centerline tracing option. the result is different than tracing as strokes in Illustrator, but the bitmap image is too poor for high quality results.

enter image description here

Conclusion: If it must be vector, trace it as grayscale image. Use Image enlargener and contrast adjustmet before tracing for less unreadable results. If it must look perfect, let an engineer to redraw it or try to purchase the original.

| improve this answer | |
  • You dont even need fancy resizing. Photoshops resize works well enough. But really redrawing does not take that much time. Interestingly the old tracing code in illustrator cc5.5 seems to do better than the cc version i used in my answer and it works rather well even without enlarging. – joojaa May 14 at 11:18
0

Just for the fun of the project, I downloaded your file. Using a raster editor, I busted up the main image into smaller pieces. Such a large image file can bog things down on some computers.

With the smaller images in hand, an easy import to Inkscape with Path, Trace Bitmap, Edge Detection and a vector file was created.

No surprise at the results, because every traced bitmap results in two paths (or more) for every line of the drawing. Unfortunately there is no working version of centerline trace for Inkscape.

bitmap trace

As suggested in the comments, starting from the ground up may be your best bet. If you can tolerate imprecise results that still might look okay, you could manually trace over the tracing, since the images are so large.

I found the source for your drawings, directly from Pilatus in PDF format. It's unfortunate that they are PDFs of bitmaps, as it would be infinitely more useful if the PDF was vector.

| improve this answer | |
  • This is entirely deliberate the technical drawing have value. But unfortunately do not have copyright because they werent drawn by a architect. – joojaa May 13 at 7:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.