Simple web-based tool for creating HSV (Hue, Saturation, Value) color masks for image processing. Built with Next.js and OpenCV.js.
Try Live Demo
The tool allows you to:
- Upload images and apply HSV color range filtering in real-time
- Adjust HSV values with interactive sliders
- Export code snippets for Python, JavaScript, and C++
- Node.js (v18 or newer)
- npm or yarn
-
Clone the repository:
git clone https://github.com/alexandr-gnrk/hsv-mask.git cd hsv-mask
-
Install dependencies:
npm install
-
Start the development server:
npm run dev
-
Open http://localhost:3000/hsv-mask in your browser
- Click the "Choose File" button to upload an image
- Adjust the HSV sliders to create a mask that isolates the colors you want
- The preview will update in real-time, showing the resulting mask
- Once you've created your desired mask, you can copy the HSV values or export code snippets
This project is licensed under the MIT License - see the LICENSE file for details.
Contributions are welcome! Feel free to open issues or submit pull requests.