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
|