Rimozione Calligrafia
API
Rimuovi la Calligrafia da qualsiasi immagine con 1 chiamata API
Introduzione all'API
La tecnologia di Intelligenza Artificiale specializzata nella rimozione della Calligrafia è stata resa più facile che mai utilizzando l'API di MosaicRemoval.com. Con poche righe di codice, puoi portare questa tecnologia nella tua applicazione.
Acquista Pacchetto
Acquista un pacchetto dedicato all'API
Usa Esempi di Codice
Usa i seguenti esempi di codice per iniziare rapidamente
Regola Parametri
Torna al riferimento dei parametri per regolare la richiesta
Autenticazione
Autentichiamo gli utenti utilizzando una Chiave API speciale (o App Code). Che può essere facilmente acquisita qui. La Chiave API è unica e molto diversa dalle altre. Per motivi di sicurezza, ti preghiamo di non pubblicare il tuo App Code.
Endpoint API
Intestazioni
Esempi di Codice
Inizia rapidamente con i nostri esempi di codice
public static void main(String[] args) {
    String host = "https://api.mosaicremoval.com";
    String path = "/sjccup";
    String method = "POST";
    String appcode = "YourAppCode";
    Map<String, String> headers = new HashMap<String, String>();
    // The final format in the header (with a space in between) is Authorization:APPCODE 83359fd73fe94948385f570e3c139105
    headers.put("Authorization", "APPCODE " + appcode);
    // Define the corresponding Content-Type according to API requirements
    headers.put("Content-Type", "application/json; charset=UTF-8");
    Map<String, String> querys = new HashMap<String, String>();
    String bodys = "{\"media_id\":\"Base64 encoded image value, with the longest side not exceeding 4000px; remove the prefix data:image/png;base64\",\"keep_distortion\":boolean type, false - auto-corrects distortion, true - disables correction\",\"keep_ori\":boolean type, false - the image will be rotated to the correct orientation, true - retains the orientation when uploaded}";
    try {
        HttpResponse response = HttpUtils.doPost(host, path, method, headers, querys, bodys);
        System.out.println(response.toString());
        // Get the body of the response
        // System.out.println(EntityUtils.toString(response.getEntity()));
    } catch (Exception e) {
        e.printStackTrace();
    }
}Parametri della Richiesta
Configura le tue richieste API con questi parametri
| Parametro | Tipo | Descrizione | 
|---|---|---|
| media_id | string | Valore dell'immagine codificato in Base64, con il lato più lungo non superiore a 4000px; rimuovi il prefisso data:image/png;base64 | 
| keep_distortion | boolean | false – corregge automaticamente la distorsione, true – disabilita la correzione | 
| keep_ori | boolean | false – l'immagine verrà ruotata nell'orientamento corretto, true – mantiene l'orientamento al momento del caricamento | 
Codici di Errore
Riferimento per i codici di risposta dell'API
| Codice di Errore | Messaggio di Errore | Descrizione | 
|---|---|---|
| 0 | success | Success | 
| 1000 | body error | Request body error | 
| 1001 | param error | Request parameter error | 
| 1002 | content type error | Content-Type error | 
| 1003 | image not exists | Image file not found | 
| 1004 | image size error | Image size error | 
| 1005 | image format error | Image format error | 
| 1006 | invalid signature | Invalid signature | 
| 1007 | body size error | Body size error | 
| 1008 | no authorization | Authorization failed | 
| 2000 | server unknown error | Server unknown error | 
| 2001 | server timeout | Server timeout | 
| 2003 | no content recognition | No content recognized | 
| 2004 | validate data error | Validation data error | 
| 3000 | remote server error | Remote server error | 
| 4000 | base server error | Base server error | 
Piani Tariffari API
I seguenti piani sono esclusivi per l'API
Base
Popolare
Esclusivo
Garanzia di Rimborso al 100%!
Acquista in tutta tranquillità. Se scopri che questo strumento non soddisfa le tue esigenze, offriamo una garanzia di rimborso di 7 giorni senza domande. Puoi effettuare il pagamento con fiducia. Abbiamo una politica di rimborso per garantire la sicurezza del tuo pagamento.