image_quality

ImageQuality

imageQuality

get score of image quality


/apitalk/image-quality/

Usage and SDK Samples

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

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

public class ImageQualityApiExample {

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

public class ImageQualityApiExample {

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

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

// 
[apiInstance imageQualityWith:apiecoKey
    file:file
              completionHandler: ^(result output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ImageQuality = require('image_quality');

var api = new ImageQuality.ImageQualityApi()

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

var file = /path/to/file.txt; // {File} your image


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

namespace Example
{
    public class imageQualityExample
    {
        public void main()
        {
            
            var apiInstance = new ImageQualityApi();
            var apiecoKey = apiecoKey_example;  // String | apikey for use API
            var file = new File(); // File | your image

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

$api_instance = new Swagger\Client\Api\ImageQualityApi();
$apiecoKey = apiecoKey_example; // String | apikey for use API
$file = /path/to/file.txt; // File | your image

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

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

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

try: 
    # 
    api_response = api_instance.image_quality(apiecoKey, file)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ImageQualityApi->imageQuality: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
apikey for use API
Required
Form parameters
Name Description
file*
File
your 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