diplib

Medial Axis Transform/Skeletonization on morphological for calculating numbers of component

Medial Axis Transform/Skeletonization on morphological for calculating numbers of component Question: I’m trying to calculate the number components on opencv library "connectedComponentsWithStats" in python, but my skeletonization result seems not do well, cause the number of component return incorrect result. Here my original image to convert to skeleton. input And here’s my code as below, …

Total answers: 1

How to accurately measure the contact ear orientation on a flat battery using diplib

How to accurately measure the contact ear orientation on a flat battery using diplib Question: Our production line want to automate the fabrication of flat battery, I want to accurately measure the contact ear orientation of the flat battery and send the center of the battery coordinate plus the ear orientation degrees to linuxCNC motion …

Total answers: 1

How to detect pits on smart card contact pins using diplib

How to detect pits on smart card contact pins using diplib Question: During the smart card manufacture process, a probe stucks could leave pits on contact pins. I try to use dip.tophat and dip.HysteresisThreshold to extract the pits, this works but found more local height outside or near the edge of the contact pins. How …

Total answers: 2

package get installed under the include folder and not under site-packages

package get installed under the include folder and not under site-packages Question: I am trying to install a package (more specifically diplib) with conda install -c conda-forge diplib but for some reason nothing is added to envs/env_name/lib/site-packages. The command runs fine, no warnings/error at all. Everything looks normal but I am still getting ‘ModuleNotFoundError: No …

Total answers: 1

How to measure average thickness of segmented image using DipLib

How to measure average thickness of segmented image using DipLib Question: I am trying to measure average thickness of segmented and labeled image. Since I was not successful to make this work with opencv, per suggestion by @CrisLuengo, I switch to using diplib. I found a good example of measuring thickness of part here Measuring …

Total answers: 1

Measuring the distance between two lines using DipLib (PyDIP)

Measuring the distance between two lines using DipLib (PyDIP) Question: I am currently working on a measurement system that uses quantitative image analysis to find the diameter of plastic filament. Below are the original image and the processed binary image, using DipLib (PyDIP variant) to do so. The Problem Okay so that looks great, in …

Total answers: 3