GithubHelp home page GithubHelp logo

houyizheng / image-quality Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ocampor/image-quality

0.0 1.0 0.0 13.03 MB

Image quality is an open source software library for Image Quality Assessment (IQA).

License: Apache License 2.0

Python 89.21% Dockerfile 2.73% Makefile 3.37% Shell 4.70%

image-quality's Introduction

Travis_ PyPi_

Image Quality

Description

Image quality is an open source software library for Automatic Image Quality Assessment (IQA).

Dependencies

  • Python 3.8
  • (Development) Docker

Installation

The package is public and is hosted in PyPi repository. To install it in your machine run

pip install image-quality

Example

After installing image-quality package, you can test that it was successfully installed running the following commands in a python terminal.

>>> import imquality.brisque as brisque
>>> import PIL.Image

>>> path = 'path/to/image'
>>> img = PIL.Image.open(path)
>>> brisque.score(img)
4.9541572815704455

Development

In case of adding a new tensorflow dataset or modifying the location of a zip file, it is necessary to update the url checksums. You can find the instructions in the following tensorflow documentation.

The steps to create the url checksums are the following:

1. Take the file with the dataset configuration (e.g. live_iqa.py) an place it in the tensorflow_datasets folder. The folder is commonly placed in ${HOME}/.local/lib/python3.8/site-packages if you install the python packages using the user flag.

2. Modify the __init__.py of the tensorflow_datasets to import your new dataset. For example from .image.live_iqa import LiveIQA at the top of the file.

3. In your terminal run the commands: :

touch url_checksums/live_iqa.txt
python -m tensorflow_datasets.scripts.download_and_prepare  \
   --register_checksums  \
   --datasets=live_iqa

4. The file live_iqa.txt is going to contain the checksum. Now you can copy and paste it to your project's url_checksums folder.

Sponsor

image

Maintainer

image-quality's People

Contributors

ocampor avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.