nanodevice_flakedetect_detect

Detect and segment graphite, graphene, and hBN layers from microscopy images.

32|6|Updated Mar 8, 2026
One-click install
npx skills add https://github.com/caidish/KlayoutClaw --skill nanodevice-flakedetect-detect
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nanodevice_flakedetect_detect
Source: https://github.com/caidish/KlayoutClaw/tree/main/skills/nanodevice_flakedetect_detect
Command: npx skills add https://github.com/caidish/KlayoutClaw --skill nanodevice-flakedetect-detect

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires opencv-python, numpy, scikit-learn, scikit-image, and includes scripts (resource) components.

What problem does it solve?

Detect and segment graphite, graphene, bottom hBN, and top hBN from microscopy images using automated detectors.

Core Features & Use Cases

  • Independent detectors for four van der Waals materials, producing masks and contours.
  • Outputs include per-material masks, contours, and sidecar JSONs for downstream processing and alignment.
  • Use case: analyze a stack image to extract all four materials and feed into a fabrication pipeline.

Quick Start

Run the detectors on your bottom_part, top_part, and full_stack images to generate masks and contours for graphite, graphene, bottom hBN, and top hBN.

Frequently Asked Questions about nanodevice_flakedetect_detect

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect and segment van der Waals materials like graphene and hBN from microscopy images?

To detect and segment vdW materials from microscopy images, automated detectors apply adaptive clustering, multi-threshold sweeps, and region-growing with morphology kernels. This process isolates graphite, graphene, bottom hBN, and top hBN, generating per-material masks, contours, and sidecar JSONs for fabrication pipelines.

What is the best way to automate flake detection for vdW stack images?

Automating flake detection for vdW stack images is best achieved by running independent material detectors across bottom_part and top_part inputs. The system applies adaptive clustering and multi-threshold sweeps to extract per-material masks, contours, and sidecar JSONs for downstream alignment.

Do I need OpenCV and scikit-image to run automated vdW material segmentation?

Yes, you need OpenCV, scikit-image, numpy, and scikit-learn within a Python 3.x environment to run automated vdW material segmentation. These dependencies provide the required computer vision and machine learning frameworks for adaptive clustering and morphology operations.

Can I use automated detectors to extract both top and bottom hBN layers from the same stack image?

Yes, you can extract both top and bottom hBN layers using independent detectors designed for vdW stack images. The system supports per-stack workflows across bottom_part and top_part inputs, generating distinct masks, contours, and sidecar JSONs for each hBN layer.

Why does my graphite and graphene segmentation output sidecar JSON files?

Graphite and graphene segmentation outputs sidecar JSON files to provide structured metadata for downstream alignment and fabrication pipelines. These JSON files accompany the generated masks and contours, ensuring accurate layer registration and processing within the vdW stack workflow.

What are the limitations of using adaptive clustering for hBN flake detection?

Limitations of using adaptive clustering for hBN flake detection include its reliance on multi-threshold sweeps and region-growing with morphology kernels, which require specific image input conditions. The system is specifically tuned for graphite, graphene, bottom hBN, and top hBN, potentially limiting broader material applicability.