A Next.js application that converts images to G-code for CNC machines using OpenCV.js vectorization.
- Node.js (v18 or higher)
- npm or yarn
git clone <repository-url>
cd image-to-gcode-next
npm installnpm run devOpen http://localhost:3000 in your browser.
- Color Region Vectorization: Converts images to distinct color regions
- Centerline Extraction: Extracts centerlines from line art
- Hatching Patterns: Generates crosshatch patterns for filled areas
- Path Optimization: Optimizes tool paths for efficient machining
- G-code Export: Exports ready-to-use G-code files
- Upload an image file
- Select vectorization mode
- Adjust parameters (scale, colors, spacing, etc.)
- Process the image
- Download the generated G-code file
npm run build- Next.js 15
- React 19
- TypeScript
- Tailwind CSS
- OpenCV.js
- Radix UI components