A web application that uses OpenCV.js to analyze and measure the sharpness of uploaded images.
Try the application online: https://cs-util-com.github.io/OpenCvJsDemo/
- Drag-and-drop interface for easy image uploading
- Real-time sharpness analysis using Laplacian variance method
- Side-by-side display of original and processed grayscale images
- Numerical sharpness score calculation
- Responsive design built with Tailwind CSS
- The application loads OpenCV.js from the official CDN
- Users upload images via drag-and-drop or file selection
- The uploaded image is processed using the following algorithm:
- Convert the image to grayscale
- Apply Laplacian operator to detect edges
- Calculate the variance of the Laplacian (a measure of sharpness)
- Display the sharpness score (higher values indicate sharper images)
- Built with pure JavaScript and HTML
- Uses OpenCV.js 4.9.0 for image processing
- Styled with Tailwind CSS
- No server-side processing (all computation happens in the browser)
Works in modern browsers that support:
- WebAssembly (for OpenCV.js)
- HTML5 File API
- ES6+ JavaScript
See the LICENSE file for details.