Skip to content

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.

License

Notifications You must be signed in to change notification settings

anime-shed/image-inspector-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Image Analyzer

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.

Features

  • 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)

Prerequisites

  • Go 1.16 or higher
  • Docker (optional, for containerization)

Installation

  1. Clone the repository:

    git clone https://github.com/anime-shed/image-inspector-go.git
    cd image-inspector-go
  2. Build the application:

    go build -o image-inspector-go ./cmd/api

Usage

  1. Set the necessary environment variables:

    export SERVER_ADDRESS=:8080
  2. Run the application:

    ./image-inspector-go
  3. The server will start and listen on the specified address. You can interact with the API using tools like curl or Postman.

Configuration

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).

API Endpoints

  • GET /inspect?url={image_url}: Fetch and analyze the image from the specified URL.

Contributing

Contributions are welcome! Please open an issue or submit a pull request.

License

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.

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages