question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Picture auto enhancement

See original GitHub issue

I’m sorry if this question seems silly but I didn’t see anywhere an “auto” mode other than for the rotation function.

What are you trying to achieve? We have a lot of documents arriving in our system that are scanned and often not easily readable, we are looking to auto enhances (if necessary) the picture, the contrast, and the luminosity (like the filter of windows). image

By “if necessary” I mean: that we don’t want to apply a luminosity + 10 on an image already too bright or a - 10 on one already too dark.

Have you searched for similar questions? Yes, but I didn’t found.

Are you able to provide a minimal, standalone code sample that demonstrates this question? An example:

  1. Input: input

  2. Output: output

Are you able to provide a sample image that helps explain the question? (Yes see the two above)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
lovellcommented, Sep 25, 2021

Perhaps try using CLAHE with a smaller local region.

https://en.wikipedia.org/wiki/Adaptive_histogram_equalization

For example using the following code with the above input:

sharp(input)
  .clahe({ width: 21, height: 21 })
  .normalise()
  ...

produces:

0reactions
lovellcommented, Aug 24, 2022

Let’s track this at #200, which is about improving normalise and should help with this kind of scenario.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Auto enhance your photos in seconds - Designify
Automatically Enhance Your Images. If you need an automatic image enhancer to improve your photo in just a few seconds look no further:...
Read more >
Beautify Images Easily With Free Photo Enhancer Tools - 123RF
Make advanced image edits in one click, for free. Use the 123RF Editor to adjust brightness, improve texture and quality, and make color...
Read more >
Autoenhance.ai - Instant photo editing powered by AI
Our easy-to-use AI photo editor speeds up your workflow. Enhanced workflow graphic. Increase sale price by 2%*. We'll enhance your images to a...
Read more >
Photo Enhancer: Enhance Image Quality Online for Free | Fotor
Fotor's AI photo enhancer helps you improve image quality instantly. Free and automatically increase your photo resolution, make your blurry image clear, ...
Read more >
Free Online Image Enhancer | Adobe Express
Enhance images quickly, easily, and for free with Adobe Express. Simply upload your image to our photo quality enhancer then sharpen, adjust, and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found