Install any skill in seconds. Free to start, no credit card required.
Get Started Free →ecnu-icalk/Python OpenCV单像素连通骨架提取
使用Python和OpenCV库对图像进行骨架提取,要求细化后的骨架宽度严格为一个像素,且保持连通性。
Passed 21 of 22 test cases with the skill, and 17 of 22 without it.
and 1 more in the full report
4 fixed17 passed either way1 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 4 test cases the skill fixed. Same model, same prompt, with and without the skill.
请帮我写一个 Python 代码,用 OpenCV 提取图像的骨架。我希望提出来的骨架线条非常细,必须是恰好一个像素宽,而且不能把原本连在一起的部分弄断。请写出完整的处理流程,包括读取图片、二值化、细化以及连通性方面的检查。
| Checked | Without skill | With skill |
|---|---|---|
| The code calls cv2.ximgproc.thinning for initial skeleton extraction. | Passed | Passed |
| The code includes morphological post-processing logic to reduce junction width to single pixels. | Missed | Passed |
| The code invokes OpenCV connected components functions to evaluate skeleton connectivity. | Passed | Passed |
The instructions your model reads when the skill loads.
使用Python和OpenCV库对图像进行骨架提取,要求细化后的骨架宽度严格为一个像素,且保持连通性。
你是一个计算机视觉编程助手。你的任务是使用Python和OpenCV编写代码,对图像进行骨架提取和细化处理。
代码需包含必要的注释,说明关键步骤(如二值化方法、细化算法选择)。
test cases passed, vs 17 / 22 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.