face_gender_detection

Detection

detection

send one pics for detection


/gender-detection/predictModel/

Usage and SDK Samples

curl -X POST "https://api.apitalk.ir/gender-detection/predictModel/"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DetectionApi;

import java.io.File;
import java.util.*;

public class DetectionApiExample {

    public static void main(String[] args) {
        
        DetectionApi apiInstance = new DetectionApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        File file = /path/to/file.txt; // File | The uploaded file data
        try {
            response result = apiInstance.detection(apiecoKey, file);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DetectionApi#detection");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DetectionApi;

public class DetectionApiExample {

    public static void main(String[] args) {
        DetectionApi apiInstance = new DetectionApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        File file = /path/to/file.txt; // File | The uploaded file data
        try {
            response result = apiInstance.detection(apiecoKey, file);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DetectionApi#detection");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API
File *file = /path/to/file.txt; // The uploaded file data

DetectionApi *apiInstance = [[DetectionApi alloc] init];

// send one pics for detection
[apiInstance detectionWith:apiecoKey
    file:file
              completionHandler: ^(response output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var FaceGenderDetection = require('face_gender_detection');

var api = new FaceGenderDetection.DetectionApi()

var apiecoKey = apiecoKey_example; // {String} apikey for use API

var file = /path/to/file.txt; // {File} The uploaded file data


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.detection(apiecoKey, file, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class detectionExample
    {
        public void main()
        {
            
            var apiInstance = new DetectionApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API
            var file = new File(); // File | The uploaded file data

            try
            {
                // send one pics for detection
                response result = apiInstance.detection(apiecoKey, file);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DetectionApi.detection: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DetectionApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$file = /path/to/file.txt; // File | The uploaded file data

try {
    $result = $api_instance->detection($apiecoKey, $file);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DetectionApi->detection: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DetectionApi;

my $api_instance = WWW::SwaggerClient::DetectionApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $file = /path/to/file.txt; # File | The uploaded file data

eval { 
    my $result = $api_instance->detection(apiecoKey => $apiecoKey, file => $file);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DetectionApi->detection: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DetectionApi()
apiecoKey = apiecoKey_example # String | apikey for use API
file = /path/to/file.txt # File | The uploaded file data

try: 
    # send one pics for detection
    api_response = api_instance.detection(apiecoKey, file)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DetectionApi->detection: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
Form parameters
Name Description
file*
File
The uploaded file data
Required

Responses

Status: 200 - This REST API return HTTP responses in JSON formats:

Status: 202 - Not Valid Url

Status: 400 - Bad Request

Status: 404 - Not Found

Status: 405 - Method Not Allowed

Status: 500 - Internal Server Error