Image2schematic icon indicating copy to clipboard operation
Image2schematic copied to clipboard

Updating DetectICsSilk()

Open s39674 opened this issue 2 years ago • 2 comments

The function that finds ICs Silk screen, DetectICsSilk() has a very hard time finding ICs mainly because of a bad mask.

with the new example: Board9.png:

Original_Image_screenshot_

I get this mask:

mask_screenshot

I want the program itself to figure out the best mask based on the amount of ICs it found with each tested mask.

Any ideas?

s39674 avatar May 19 '22 14:05 s39674

@s39674 can you comment about the status of this issue? Thanks

ObaidAshraf avatar Jun 11 '22 08:06 ObaidAshraf

@ObaidAshraf absolutely, thank you for asking.

Currently, I just hard coded a new values for that function, and that works fine for those pictures. But silk screen color is quite different from one pcb to another just based on light setup and even tiny areas that do not get detected can set the program off course. I think the next best step would be to use some sort of shape detection algorithm, and ask the program to "fill" the missing areas according to the cornors of the rectangles.

s39674 avatar Jun 11 '22 18:06 s39674