3228

Better PCB Photos - Avoid Stuttering

 
Overview

Screenshot 2022-01-16 201423.png

Actual effect (refer to another project of mine: PCIE to MXM adapter card )

IMG_20220120_172634.jpg

hint

0. This project has nothing to do with the PCB photo_included generation script , but if you like, you can regard it as an upgraded version of that project.

1. Windows compiled program: Baidu network disk  extraction code: LCNB

If you feel that Baidu Netdisk is too slow, you can download the volume compressed package in the project attachment. Note: Both files must be downloaded at the same time, placed in a directory and then decompressed! ! !

2. The source code will be made public after it is compiled.

3. When the image is too large (such as 1000.000mm @ 1200DPI), the automatic calculation threshold will fail. Please set it manually. Of course, for normal conversions it should be fine.

Screenshot 2022-01-16 185027.png

(First you have to consider whether the computer can handle it)

4. If you think it’s good, please give it a like and leave. Thank you!

Modify records

2022.2.8-v0.2: Slightly optimized running speed and memory usage, added support for more image formats; fixed a BUG that may cause crashes

Detail comparison

1.png

Use two programs to convert the same picture (the line width of the comparison program is set to 1, and the DPI of this program is set to 300), and the lower area is for comparison.

As you can see, the results are not much different.

Software operation

Let's take a picture as an example.

1. Image processing and conversion

Open the program and use File --> Open Image or Ctrl + O to select the image (Chinese paths are supported).

Screenshot 2022-01-16 202006.png

After the picture is imported, it will be displayed in the preview window on the left in grayscale mode by default. Use the scroll wheel to zoom in and out of the picture, and drag the left button to move the picture.

Screenshot 2022-01-16 202047.png

Check "Automatic Processing", and the program will automatically enhance the edges and overlap them with the original image. Changing the stroke width will change the thickness of the edges, and changing the noise reduction level will change the size of the noise.

Usually the preset values ​​can meet the needs of most pictures.

Screenshot 2022-01-16 202156.png

Set the remaining parameters:

DPI: Control the fineness of the image (recommended 300-600)

Maximum size: in mm (range 1.000-1000.000), accurate to three decimal places. Choose one width/height, and the program will scale the image proportionally.

After the setting is completed, click "Auto Set" and the program will automatically calculate a threshold. If you are not satisfied, you can manually adjust it.

Screenshot 2022-01-16 202439.png

After the threshold is set, you can choose to check Invert or Mirror.

After filling in the parameters, click "Start Conversion" and select the location to save the file.

Screenshot 2022-01-16 203103.png

Usually the conversion will be completed within 1s (under i9-11900K).

Screenshot 2022-01-16 203147.png

In addition, processed pictures can be exported at any time.

Screenshot 2022-01-16 202931.png

2. Import into LCEDA

File-->Open-->EDA, select the file just saved.

There is only one image primitive in the converted package, and the origin is located in the upper left corner.

Screenshot 2022-01-16 203436.png

Create a new PCB file and drag the package to the appropriate location.

Screenshot 2022-01-17 134229.png

Open the 3D preview and enjoy it!

Screenshot 2022-01-17 134805.png

参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2025-06-02 20:04:27

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
community

Robot
development
community

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号