deeplearning / PhotoQualityEnhancement / 0.1.3
README.md
Introduction
Image enhancement is performed using a 12-layer Residual Convolutional Neural Network that takes phone photo as an input and is trained to reproduce the corresponding image from DSLR camera.
Usage
Input
Parameter | Description | Required | Default Value |
---|---|---|---|
image | Image URL | Yes | --- |
phone | Type of DSLR phone camera | Yes | --- |
save_loc | DataAPI save location | No | data://.algo/deeplearning/PhotoQualityEnhancement/temp/enhanced.png |
Output
Parameter | Description |
---|---|
enhanced_image | Enhanced image |
original_image | Original image |
Types of Phones
Types of phones are: iphone, sony and blackberry. Camera models are in the table below:
Phone | Corresponding Model |
---|---|
iphone | iPhone 3GS Camera |
sony | Sony Xperia Z |
blackberry | BlackBerry Passport Camera |
Examples
Example 1.
- Parameter 1: Sample Image URL
- Parameter 2: iPhone Phone type
Input:
{
"image": "https://upload.wikimedia.org/wikipedia/commons/9/96/Bill_Nye%2C_Barack_Obama_and_Neil_deGrasse_Tyson_selfie_2014.jpg",
"phone": "iphone"
}
Output:
{
"enhanced_image": "data://.algo/util/SmartImageDownloader/temp/db8cc0c8-bcfd-4892-8702-5f4cb20e5966.png",
"original_image": "https://upload.wikimedia.org/wikipedia/commons/9/96/Bill_Nye%2C_Barack_Obama_and_Neil_deGrasse_Tyson_selfie_2014.jpg"
}
Example 2.
- Parameter 1: Sample Image URL
- Parameter 2: Sony Phone type
- Parameter 3: Output image save location
Input:
{
"image": "https://upload.wikimedia.org/wikipedia/commons/9/96/Bill_Nye%2C_Barack_Obama_and_Neil_deGrasse_Tyson_selfie_2014.jpg",
"phone": "sony",
"save_loc": "data://.my/temp/output.png"
}
Output:
{
"enhanced_image": "data://.my/temp/output.png",
"original_image": "https://upload.wikimedia.org/wikipedia/commons/9/96/Bill_Nye%2C_Barack_Obama_and_Neil_deGrasse_Tyson_selfie_2014.jpg"
}
Example 3.
- Parameter 1: Sample Image URL
- Parameter 2: Blackberry Phone type
- Parameter 3: Output image save location
Input:
{
"image": "https://upload.wikimedia.org/wikipedia/commons/9/96/Bill_Nye%2C_Barack_Obama_and_Neil_deGrasse_Tyson_selfie_2014.jpg",
"phone": "blackberry",
"save_loc": "data://.algo/temp/output.png"
}
Output:
{
"enhanced_image": "data://.algo/temp/output.png",
"original_image": "https://upload.wikimedia.org/wikipedia/commons/9/96/Bill_Nye%2C_Barack_Obama_and_Neil_deGrasse_Tyson_selfie_2014.jpg"
}
Credits
Algorithm is based on DSLR-Quality Photos on Mobile Devices with Deep Convolutional Networks
Contents