deeplearning

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

ParameterDescriptionRequiredDefault Value
imageImage URLYes---
phoneType of DSLR phone cameraYes---
save_locDataAPI save locationNodata://.algo/deeplearning/PhotoQualityEnhancement/temp/enhanced.png

Output

ParameterDescription
enhanced_imageEnhanced image
original_imageOriginal image

Types of Phones

Types of phones are: iphone, sony and blackberry. Camera models are in the table below:

PhoneCorresponding Model
iphoneiPhone 3GS Camera
sonySony Xperia Z
blackberryBlackBerry 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