---
title: "Discussion on \"Counting Pipes: Automation with Computer Vision\" | Hashnode"
description: "Discussion on \"Counting Pipes: Automation with Computer Vision\". While looking at the OpenCV documentation and samples online, I found that there are several techniques to identify geometric shapes from an image."
url: "https://hashnode.com/posts/counting-pipes-automation-with-computer-vision/626f6dc0238a6ff3d7dc77f7"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Counting Pipes: Automation with Computer Vision](https://www.doczamora.com/counting-pipes-automation-with-computer-vision?utm_source=hashnode&utm_medium=feed)

While looking at the OpenCV documentation and samples online, I found that there are several techniques to identify geometric shapes from an image.

May 2, 2022 · 5 min read · doczamora.com  
Read the article

-   [#computer-science](https://hashnode.com/tag/computer-science)
-   [#computer-vision](https://hashnode.com/tag/computer-vision)
-   [#tutorial](https://hashnode.com/tag/tutorial)
-   [#automation](https://hashnode.com/tag/automation)
-   [#opencv](https://hashnode.com/tag/opencv)

## Written by

[Dr. Juan Zamora-Mora](https://hashnode.com/@doczamora)

@doczamora · San Jose, Costa Rica

  
[View profile](https://hashnode.com/@doczamora)

Machine Learning and AI is what I love

Doctor in Computer Sciences. Researcher Professor.

## Responses 1

Markdown supported · ⌘↵ to post

[ROSHAN GEORGE](https://hashnode.com/@roshangeo)

[Apr 29, 2025](https://hashnode.com/posts/counting-pipes-automation-with-computer-vision/626f6dc0238a6ff3d7dc77f7/comment/6810a66885606a5873ee4781)

Hi I recently came across your work and I have to say — I’m really impressed by what you’ve built! It’s clean, effective, and aligns closely with something I’ve been exploring as well.

I’m currently working on a similar concept, but applied to a more complex problem involving highly irregular arrangements of pipes. As you can see, the bundle contains nested and differently sized pipes, which adds layers of complexity to the counting and analysis process.

I’d love to hear your thoughts on how you might approach a setup like this, and whether any of your existing tools or logic could be extended to handle such cases.

Looking forward to hearing from you!

Best regards, Roshan George

[Dr. Juan Zamora-Mora](https://hashnode.com/@doczamora)

[May 5, 2025](https://hashnode.com/posts/counting-pipes-automation-with-computer-vision/626f6dc0238a6ff3d7dc77f7/comment/6810a66885606a5873ee4781#reply-681850b430c324779d571e50)

In this example all pipes are circles so thats why I used cv.HoughCircles. Now there are some pipes that are squares or rectangle-like so you might want to also add a check for cv.findContours() and cv.approxPolyDP() which can help to identify objects of different shapes.
