mage_difference

Base

getScore

get score of image difference


//apitalk/image-difference/score

Usage and SDK Samples

curl -X POST "https://api.apieco.ir//apitalk/image-difference/score"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.BaseApi;

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

public class BaseApiExample {

    public static void main(String[] args) {
        
        BaseApi apiInstance = new BaseApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        File image2 = /path/to/file.txt; // File | send secend image
        File image1 = /path/to/file.txt; // File | send first image
        try {
            score_response result = apiInstance.getScore(apiecoKey, image2, image1);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BaseApi#getScore");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.BaseApi;

public class BaseApiExample {

    public static void main(String[] args) {
        BaseApi apiInstance = new BaseApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        File image2 = /path/to/file.txt; // File | send secend image
        File image1 = /path/to/file.txt; // File | send first image
        try {
            score_response result = apiInstance.getScore(apiecoKey, image2, image1);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BaseApi#getScore");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API
File *image2 = /path/to/file.txt; // send secend image
File *image1 = /path/to/file.txt; // send first image

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

// 
[apiInstance getScoreWith:apiecoKey
    image2:image2
    image1:image1
              completionHandler: ^(score_response output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var MageDifference = require('mage_difference');

var api = new MageDifference.BaseApi()

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

var image2 = /path/to/file.txt; // {File} send secend image

var image1 = /path/to/file.txt; // {File} send first image


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

namespace Example
{
    public class getScoreExample
    {
        public void main()
        {
            
            var apiInstance = new BaseApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API
            var image2 = new File(); // File | send secend image
            var image1 = new File(); // File | send first image

            try
            {
                // 
                score_response result = apiInstance.getScore(apiecoKey, image2, image1);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling BaseApi.getScore: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\BaseApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$image2 = /path/to/file.txt; // File | send secend image
$image1 = /path/to/file.txt; // File | send first image

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

my $api_instance = WWW::SwaggerClient::BaseApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $image2 = /path/to/file.txt; # File | send secend image
my $image1 = /path/to/file.txt; # File | send first image

eval { 
    my $result = $api_instance->getScore(apiecoKey => $apiecoKey, image2 => $image2, image1 => $image1);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling BaseApi->getScore: $@\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.BaseApi()
apiecoKey = apiecoKey_example # String | apikey for use API
image2 = /path/to/file.txt # File | send secend image
image1 = /path/to/file.txt # File | send first image

try: 
    # 
    api_response = api_instance.get_score(apiecoKey, image2, image1)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BaseApi->getScore: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
Form parameters
Name Description
image2*
File
send secend image
Required
image1*
File
send first image
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


imageDifference

get image difference


//apitalk/image-difference/image

Usage and SDK Samples

curl -X POST "https://api.apieco.ir//apitalk/image-difference/image"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.BaseApi;

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

public class BaseApiExample {

    public static void main(String[] args) {
        
        BaseApi apiInstance = new BaseApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        File image2 = /path/to/file.txt; // File | send secend image
        File image1 = /path/to/file.txt; // File | send first image
        try {
            apiInstance.imageDifference(apiecoKey, image2, image1);
        } catch (ApiException e) {
            System.err.println("Exception when calling BaseApi#imageDifference");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.BaseApi;

public class BaseApiExample {

    public static void main(String[] args) {
        BaseApi apiInstance = new BaseApi();
        String apiecoKey = apiecoKey_example; // String | apikey for use API
        File image2 = /path/to/file.txt; // File | send secend image
        File image1 = /path/to/file.txt; // File | send first image
        try {
            apiInstance.imageDifference(apiecoKey, image2, image1);
        } catch (ApiException e) {
            System.err.println("Exception when calling BaseApi#imageDifference");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // apikey for use API
File *image2 = /path/to/file.txt; // send secend image
File *image1 = /path/to/file.txt; // send first image

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

// 
[apiInstance imageDifferenceWith:apiecoKey
    image2:image2
    image1:image1
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var MageDifference = require('mage_difference');

var api = new MageDifference.BaseApi()

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

var image2 = /path/to/file.txt; // {File} send secend image

var image1 = /path/to/file.txt; // {File} send first image


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

namespace Example
{
    public class imageDifferenceExample
    {
        public void main()
        {
            
            var apiInstance = new BaseApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API
            var image2 = new File(); // File | send secend image
            var image1 = new File(); // File | send first image

            try
            {
                // 
                apiInstance.imageDifference(apiecoKey, image2, image1);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling BaseApi.imageDifference: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\BaseApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$image2 = /path/to/file.txt; // File | send secend image
$image1 = /path/to/file.txt; // File | send first image

try {
    $api_instance->imageDifference($apiecoKey, $image2, $image1);
} catch (Exception $e) {
    echo 'Exception when calling BaseApi->imageDifference: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::BaseApi;

my $api_instance = WWW::SwaggerClient::BaseApi->new();
my $apiecoKey = apiecoKey_example; # String | apikey for use API
my $image2 = /path/to/file.txt; # File | send secend image
my $image1 = /path/to/file.txt; # File | send first image

eval { 
    $api_instance->imageDifference(apiecoKey => $apiecoKey, image2 => $image2, image1 => $image1);
};
if ($@) {
    warn "Exception when calling BaseApi->imageDifference: $@\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.BaseApi()
apiecoKey = apiecoKey_example # String | apikey for use API
image2 = /path/to/file.txt # File | send secend image
image1 = /path/to/file.txt # File | send first image

try: 
    # 
    api_instance.image_difference(apiecoKey, image2, image1)
except ApiException as e:
    print("Exception when calling BaseApi->imageDifference: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
Form parameters
Name Description
image2*
File
send secend image
Required
image1*
File
send first image
Required

Responses

Status: 200 - get an image

Status: 202 - Not Valid Url

Status: 400 - Bad Request

Status: 404 - Not Found

Status: 405 - Method Not Allowed

Status: 500 - Internal Server Error