r/computervision • u/Formal_Funny8770 • 4d ago
Help: Project Best approach to instance segmentation of thousands of hand-drawn tattoo flash sheets? Classical CV vs. fine-tuning SAM or YOLO
I'm a professional tattoo artist, rather than a computer vision engineer, and I've been working on a personal project to digitize and organize many years' worth of my original artwork.
I've already identified over 4,000 unique Procreate documents across several storage devices, with another 90 GB of artwork still on my iPad.
Many of these canvases contain anywhere from one to 40 individual tattoo designs. My goal is to automatically isolate each design, preserve its original pixels, generate accurate segmentation masks, and build a searchable library of individual designs.
What makes this challenging:
- Individual designs often contain disconnected linework, dots, sparkles and shading.
- Adjacent designs can be extremely close together or physically overlapping.
- Some sheets contain titles, handwritten notes, decorative borders and reference images.
- The archive contains everything from rough sketches and fine line drawings to fully rendered color paintings.
What I've tried so far:
- Classical image processing: Using Python, NumPy, SciPy and Pillow, I've developed an AI-assisted implementation using thresholding, connected components, morphological operations, distance transforms and Voronoi-based mask partitioning. This has performed surprisingly well, particularly on clean flash sheets.
- Vision-language models: I've experimented with agents that visually analyze individual canvases, generate segmentation coordinates and independently verify the results. A recent 300-canvas run produced 690 candidate designs. The results were generally excellent, but processing time and model usage limits make scaling expensive.
- SAM and Grounding SAM: I've experimented with automatic and manually prompted segmentation using X-AnyLabeling. The results have been inconsistent on drawings, particularly when disconnected strokes belong to the same design.
- Human verification: I've also built a desktop application, with AI coding assistance, to review segmentation results, correct masks, compare duplicates and organize different versions of the same artwork.
I'm currently considering a hybrid pipeline where classical CV handles straightforward images, with more difficult cases routed to a specialized segmentation model.
I'd really appreciate some advice from people with experience in computer vision:
- Are there established approaches or research papers specifically addressing instance segmentation of hand-drawn illustrations or line art?
- How would you approach grouping disconnected strokes that semantically belong to one illustration?
- Would fine-tuning SAM or training a YOLO segmentation model on a carefully annotated dataset be worthwhile for this particular domain?
- Are there other architectures or classical CV techniques that might be better suited to this problem?
My priority is segmentation accuracy and preservation of the original artwork, rather than image generation.
I'm happy to invest time into creating a high-quality annotated dataset if it would significantly improve the results.
Any suggestions, criticism, research references or alternative approaches would be greatly appreciated.



3
u/TheRealCpnObvious 4d ago
I'm specifically addressing the latter points in your question as my experience is mostly with those:
• Your first two parts of the pipeline can be connected together to yield a self-distillation harness where the SAM model proposals are used as a reference bank to teach the YOLO model. Look up autodistill, with the caveat that it might no longer have support for the most SOTA VLMs for this problem.
• If canvases are nicely gridded like the examples you showed, you might get success working out the grid pattern and using this to tile your inference (look up SAHI, which is what YOLO tiled inference is based on). You can also refine the tile borders based on where the borders clip existing lines. This could also be how you work out whether strokes can be claimed by one design over another (effectively drawing a literal decision boundary between strokes between your designs).
Good luck!