GithubHelp home page GithubHelp logo

brighter's Introduction

Brighter

Input / Output / Manually brightened input image

imgs/test_result.png

Sometimes there's something wrong with the image. Let's call these images 'low quality'. (For example watermark on the image, blurry images, red eyes, black and white photos etc)

If I can convert the good images to low-quality images then I can reverse the process and improve the low-quality photos.

To archive this I created a custom loss function which incorporates feature loss (also known as perceptual loss), along with gram loss.

Goal

  1. Improve dark image quality
  2. Improve OCR from the dark image

Data

From this list I choosed MSRA Text Detection 500 Database (MSRA-TD500).

I ignored text boundix boxes and resized images to 512px.

Lower the images quality

With python Pillow I changed the image resolution, brightness, contrast, sharpness and quality. Samples are in /imgs/ directory.

Then I combined all the changes and made 2 datasets

Crappy quality vs normal

Results

Disclaimer: I trained it less than an hour and the whole project took 4 hours to make.

Notebook

Whats next?

Try to detect text from the crappy images, manually improved images, images improved with ML and original images. Compare the results and conclude if its something to invest more time in.

brighter's People

Contributors

korjusk avatar

Stargazers

Taivo Pungas 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.