DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to add your own Python step to a visual pipeline with Image Pipes

Drop your own OpenCV code into a visual pipeline as a node, see its output live, and reuse it as a template.

Short answer: Start Image Pipes with npm run desktop from a clone; then add a custom Python node to the canvas; write def process(image, seed=0): and return an image, for example a grayscale plus Canny edges step. All steps.

Who it is forA computer vision developer whose preprocessing needs one custom step the built-in nodes do not cover.

The problemVisual tools usually lock you into their nodes, so one custom step sends you back to scripts.

The outcomeA reusable custom node with live preview and logs, saved as a script or template.

What you need first

  • Node.js and npm
  • Python for the processing backend

Steps

  1. Start Image Pipes with npm run desktop from a clone
  2. Add a custom Python node to the canvas
  3. Write def process(image, seed=0): and return an image, for example a grayscale plus Canny edges step
  4. Use log(...) inside the function and watch the preview update
  5. Save it as a reusable script or pipeline template

Prompt for your agent

Write an Image Pipes custom node `def process(image, seed=0):` that <operation> and returns a BGR image. Keep it to OpenCV and NumPy, and verify the output shape matches the input.

Caveat. The function must return an image in the format the next node expects; convert grayscale back to BGR as the README example does.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for mrajaeim/image-pipes and "Add your own Python step to a visual pipeline"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer