Go Image Analyzer is a web server application written in Go that fetches images from specified URLs, analyzes them for properties such as overexposure, oversaturation, incorrect white balance, and blurriness, and provides the results through an HTTP API.
- Fetch images from specified URLs
- Analyze images for:
- Overexposure
- Oversaturation
- Incorrect white balance
- Blurriness
- Laplacian variance (measure of sharpness)
- Average luminance
- Average saturation
- Channel balance (red, green, blue)
-
Clone the repository:
git clone https://github.com/anime-shed/image-inspector-go.git cd image-inspector-go
-
Build the application:
go build -o image-inspector-go ./cmd/api
-
Set the necessary environment variables:
export SERVER_ADDRESS=:8080
-
Run the application:
./image-inspector-go
-
The server will start and listen on the specified address. You can interact with the API using tools like
curl
or Postman.
The application can be configured using environment variables. The following variables are available:
SERVER_ADDRESS
: The address on which the server will listen (e.g.,:8080
).
GET /inspect?url={image_url}
: Fetch and analyze the image from the specified URL.
Contributions are welcome! Please open an issue or submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.
Feel free to copy and use this as your project's README.