Jump to content
You must now use your email address to sign in [click for more info] ×

Best way to improve and extract lines from a plan picture


Recommended Posts

Greetings.

New to Affinity and come from a Solidworks CAD background. Often have to deal with pictures/plans, like the attached, and then bring them once processed into Solidworks as background images. Bit like this.

So questions. I normally convert to black and white and then sharpen. New program new ideas, so any tips please to sharpen up the lines? Would it be best to buy Affinity Designer as it has vector capability that could make black lines crisper?

Thank you in anticipation.

Chassis example.jpg

Link to comment
Share on other sites

I would go for Affinity Designer for drawing over images like this.

iMac 27" 2019 Somona 14.3.1, iMac 27" Affinity Designer, Photo & Publisher V1 & V2, Adobe, Inkscape, Vectorstyler, Blender, C4D, Sketchup + more... XP-Pen Artist-22E, - iPad Pro 12.9  
B| (Please refrain from licking the screen while using this forum)

Affinity Help - Affinity Desktop Tutorials - Feedback - FAQ - most asked questions

Link to comment
Share on other sites

Or try vectorize this lines (for example https://www.vectorizer.io and many others), and editing, redraw something,..

Affinity Store (MSI/EXE): Affinity Suite (ADe, APh, APu) 2.4.0.2301
Dell OptiPlex 7060, i5-8500 3.00 GHz, 16 GB, Intel UHD Graphics 630, Dell P2417H 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.3155.
Dell Latitude E5570, i5-6440HQ 2.60 GHz, 8 GB, Intel HD Graphics 530, 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.3155.
Intel NUC5PGYH, Pentium N3700 2.40 GHz, 8 GB, Intel HD Graphics, EIZO EV2456 1920 x 1200, Windows 10 Pro, Version 21H1, Build 19043.2130.

Link to comment
Share on other sites

Hi, _sorted_,

I messed w. trying to get something out of the image last night, just before bed. Posting after some sleep.

To preface, I find working w. this quality of image madening. It is heavily pixelated, and is blurred. Its the sort of heavily compressed stuff I've been working with for years, and have come to the conclusion that most of the time, it is faster to manually trace over the image, guessing at what some of the faint marks might be.

I use Designer a lot more than Photo, and while I suspect Photo would probably give better results if I had more skill, what I was able to get from Designer was about the same.

I decided to start w. a brightness/contrast adjustment. I turned the contrast way down, and found what I expected. Compression artifact debris all over.

ShowingArtifacts.jpg.fd9f9fb348ccbaa7a27a5679578ddc8f.jpg

I applied a threshold adjustment to get a more solid line from the grey mess. It was obvious some detail was being lost. And depending on the threshold setting, some lines were being merged in places.

Threshold.jpg.3cbad8c23e66c3ac08a14e2dcb9fc0c1.jpg

So I started over, fiddled w. levels, added some blur to help reduce the jaggies, repeated the above, and got something I thought might be usable.

WorkedOver.jpg.f2bb0a71e42b93a639ac0d34d0a4bae1.jpg

I opened the results in an inexpensive app called Image Vectorizer, and fiddled w. it bit map preprocessing features to try and clean the image some more. To a few tries, but I got something that looked OK.

Opened the .SVG in Designer, and saw that it was not very good. See the following, which includes a screen grab showing the hundreds of useless nodes that would have to be removed.

Vectorized.jpg.e04fe9e6fcd33854d83870b9062e1204.jpg

Nodes.jpg.af257b7e74cc5b027e42effefdabbfcc.jpg

Just did a quick test. Removing excess nodes in one line to over a minute. Just redrawing w. pen to 7 seconds. And that after at least .5 hr cleaning the pixels up.

Moreover, the processed and vectorized image ends up being less accurate than what I can see from the original .jpg. So, just get handy w. the pen tool's  stroke widths and dash line options. Maybe set up some guides to make snapping easier.

 

iMac 27" Retina, c. 2015: OS X 10.11.5: 3.3 GHz I c-5: 32 Gb,  AMD Radeon R9 M290 2048 Mb

iPad 12.9" Retina, iOS 10, 512 Gb, Apple pencil

Huion WH1409 tablet

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.