Age Classification

No algorithm description given

1. Introduction This algorithm classifies age for any given image. Currently it only supports two genders. (male & female) Input: (Required) Image Data API Url, Web (http/https) Url, binary image or a base64 encoded image. Output: Age range of given image Note: The first call to this algorithm will take a bit longer than sequential calls to due algorithm initialization. All following calls will be significantly faster. 2. Examples Example 1. Parameter 1: Data API Url {
 "image": "data://deeplearning/example_data/prince_george.jpg"
} Output {
 "results":[
 [0.44991478323936474,"(4, 6)"],
 [0.19575946033000946,"(0, 2)"],
 [0.13978956639766693,"(8, 12)"],
 [0.13322344422340393,"(25, 32)"],
 [0.04751389473676683,"(15, 20)"],
 [0.016984449699521065,"(48, 53)"],
 [0.009426743723452091,"(38, 43)"],
 [0.007387671619653703,"(60, 100)"]
 ]
} Example 2. Parameter 1: HTTP Url {
 "image": "https://s3.amazonaws.com/algorithmia-assets/algo_desc_images/deeplearning_AgeClassification/prince_george.jpg"
} Output: {
 "results":[
 [0.44991478323936474,"(4, 6)"],
 [0.19575946033000946,"(0, 2)"],
 [0.13978956639766693,"(8, 12)"],
 [0.13322344422340393,"(25, 32)"],
 [0.04751389473676683,"(15, 20)"],
 [0.016984449699521065,"(48, 53)"],
 [0.009426743723452091,"(38, 43)"],
 [0.007387671619653703,"(60, 100)"]
 ]
} Example 3. Parameter 1: Base64 image {
 "image": "data:image/png;base64....",
} Output; {
 "results":[
 [0.44991478323936474,"(4, 6)"],
 [0.19575946033000946,"(0, 2)"],
 [0.13978956639766693,"(8, 12)"],
 [0.13322344422340393,"(25, 32)"],
 [0.04751389473676683,"(15, 20)"],
 [0.016984449699521065,"(48, 53)"],
 [0.009426743723452091,"(38, 43)"],
 [0.007387671619653703,"(60, 100)"]
 ]
} 3. Credits for more information, please refer to: http://www.openu.ac.il/home/hassner/projects/cnn_agegender/  or  Gil Levi and Tal Hassner, Age and Gender Classification using Convolutional Neural Networks, IEEE Workshop on Analysis and Modeling of Faces and Gestures (AMFG), at the IEEE Conf. on Computer Vision and Pattern Recognition (CVPR), Boston, June 2015 Demo is was taken from: https://en.wikipedia.org/wiki/Main_Page#/media/File:Muhammad_Ali_NYWTS.jpg

Tags
(no tags)

Cost Breakdown

0 cr
royalty per call
1 cr
usage per second
avg duration

Cost Calculator

API call duration (sec)
×
API calls
=
Estimated cost
per calls
for large volume discounts
For additional details on how pricing works, see Algorithmia pricing.

Internet access

This algorithm has Internet access. This is necessary for algorithms that rely on external services, however it also implies that this algorithm is able to send your input data outside of the Algorithmia platform.


To understand more about how algorithm permissions work, see the permissions documentation.

1. Type your input

2. See the result

Running algorithm...

3. Use this algorithm

curl -X POST -d '{{input | formatInput:"curl"}}' -H 'Content-Type: application/json' -H 'Authorization: Simple YOUR_API_KEY' https://api.algorithmia.com/v1/algo/deeplearning/AgeClassification/1.0.2
View cURL Docs
algo auth
# Enter API Key: YOUR_API_KEY
algo run algo://deeplearning/AgeClassification/1.0.2 -d '{{input | formatInput:"cli"}}'
View CLI Docs
import com.algorithmia.*;
import com.algorithmia.algo.*;

String input = "{{input | formatInput:"java"}}";
AlgorithmiaClient client = Algorithmia.client("YOUR_API_KEY");
Algorithm algo = client.algo("algo://deeplearning/AgeClassification/1.0.2");
AlgoResponse result = algo.pipeJson(input);
System.out.println(result.asJsonString());
View Java Docs
import com.algorithmia._
import com.algorithmia.algo._

val input = {{input | formatInput:"scala"}}
val client = Algorithmia.client("YOUR_API_KEY")
val algo = client.algo("algo://deeplearning/AgeClassification/1.0.2")
val result = algo.pipeJson(input)
System.out.println(result.asJsonString)
View Scala Docs
var input = {{input | formatInput:"javascript"}};
Algorithmia.client("YOUR_API_KEY")
           .algo("algo://deeplearning/AgeClassification/1.0.2")
           .pipe(input)
           .then(function(output) {
             console.log(output);
           });
View Javascript Docs
var input = {{input | formatInput:"javascript"}};
Algorithmia.client("YOUR_API_KEY")
           .algo("algo://deeplearning/AgeClassification/1.0.2")
           .pipe(input)
           .then(function(response) {
             console.log(response.get());
           });
View NodeJS Docs
import Algorithmia

input = {{input | formatInput:"python"}}
client = Algorithmia.client('YOUR_API_KEY')
algo = client.algo('deeplearning/AgeClassification/1.0.2')
print algo.pipe(input)
View Python Docs
library(algorithmia)

input <- {{input | formatInput:"r"}}
client <- getAlgorithmiaClient("YOUR_API_KEY")
algo <- client$algo("deeplearning/AgeClassification/1.0.2")
result <- algo$pipe(input)$result
print(result)
View R Docs
require 'algorithmia'

input = {{input | formatInput:"ruby"}}
client = Algorithmia.client('YOUR_API_KEY')
algo = client.algo('deeplearning/AgeClassification/1.0.2')
puts algo.pipe(input).result
View Ruby Docs
use algorithmia::*;

let input = {{input | formatInput:"rust"}};
let client = Algorithmia::client("YOUR_API_KEY");
let algo = client.algo('deeplearning/AgeClassification/1.0.2');
let response = algo.pipe(input);
View Rust Docs
Discussion
  • {{comment.username}}