{
 "schema_version": 1,
 "generated": "2026-11-09",
 "id": "mrajaeim-image-pipes--add-custom-python-node",
 "repo": "mrajaeim/image-pipes",
 "repo_url": "https://github.com/mrajaeim/image-pipes",
 "repo_slug": "mrajaeim-image-pipes",
 "title": "Add your own Python step to a visual pipeline",
 "page_title": "How to add your own Python step to a visual pipeline with Image Pipes",
 "summary": "Drop your own OpenCV code into a visual pipeline as a node, see its output live, and reuse it as a template.",
 "who": "A computer vision developer whose preprocessing needs one custom step the built-in nodes do not cover.",
 "problem": "Visual tools usually lock you into their nodes, so one custom step sends you back to scripts.",
 "outcome": "A reusable custom node with live preview and logs, saved as a script or template.",
 "steps": [
  "Start Image Pipes with `npm run desktop` from a clone",
  "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",
  "Use log(...) inside the function and watch the preview update",
  "Save it as a reusable script or pipeline template"
 ],
 "agent_prompt": "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.",
 "agents": [
  "any"
 ],
 "difficulty": "Intermediate",
 "time": "15 minutes",
 "basis": "readme",
 "caveat": "The function must return an image in the format the next node expects; convert grayscale back to BGR as the README example does.",
 "category": "Data and analytics",
 "tags": [
  "Data and analytics"
 ],
 "lang": "python",
 "requirements": [
  "Node.js and npm",
  "Python for the processing backend"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.8,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/mrajaeim-image-pipes/add-custom-python-node/",
 "md": "https://dedupedai.com/use-cases/mrajaeim-image-pipes/add-custom-python-node/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/mrajaeim-image-pipes--add-custom-python-node.json",
 "api_version": "v1"
}
