Denoise and sharpen

Image can be enhanced in few ways, it can be denoised and it can be sharpened (deblurred).

EnhancementDescription

denoise

Reduces the image noise

deblur

Sharpen the image

clean

Cleans the image without changing resolution

face_enhance

light

color

white_balance

Version of model for denoise or deblur can be parametrized.

There are two models: v1 and v2. v2 which is newer, handles better heavily blurry and noisy pictures. By default v1 is used.

It is not recommended to use that for good quality pictures though.

"denoise_parameters": {
    "type": "v2"
}
"deblur_parameters": {
    "type": "v2"
}

Let's check some examples.

Noise removal

{
    "enhancements": ["denoise"],
    "denoise_parameters": {
        "type": "v2"
    }
}
curl --request POST \
     --url https://deep-image.ai/rest_api/process_result \
     --header 'content-type: application/json' \
     --header 'x-api-key: API_KEY' \
     --data '{
         "url": "https://deep-image.ai/api-example.png",
         "enhancements": ["denoise"],
         "denoise_parameters": {
           "type": "v2"
         }
      }'

Out of focus blur reduction

We can also make sharper blurry image like this:

{
    "enhancements": ["deblur"]
}
curl --request POST \
     --url https://deep-image.ai/rest_api/process_result \
     --header 'content-type: application/json' \
     --header 'x-api-key: API_KEY' \
     --data '{
         "url": "https://deep-image.ai/api-example.png",
         "enhancements": ["deblur"]
      }'

Those two options can be specified together.

Let's check the results on that image:

{
    "enhancements": ["deblur", "denoise"]
}
curl --request POST \
     --url https://deep-image.ai/rest_api/process_result \
     --header 'content-type: application/json' \
     --header 'x-api-key: API_KEY' \
     --data '{
         "url": "https://deep-image.ai/api-example.png",
         "enhancements": ["deblur", "denoise"]
      }'

Cleaning the image

Image can also be "cleaned" from artifacts and previously poorly upscaled image.

"enhancements": ["clean"]
curl --request POST \
     --url https://deep-image.ai/rest_api/process_result \
     --header 'content-type: application/json' \
     --header 'x-api-key: API_KEY' \
     --data '{
         "url": "https://deep-image.ai/api-example.png",
         "enhancements": ["clean"]
      }'

Resolution of the image remains the same but image should be in better quality.

Last updated