Black Friday Sale - Up to 40% Off

手書き削除
API

1回のAPI呼び出しで任意の画像の手書きを削除

API 紹介

手書き削除に特化した人工知能技術は、RemoveHandwriting.com APIを使用することで、これまで以上に簡単になりました。わずか数行のコードで、この技術をアプリケーションに組み込むことができます。

1

パッケージを購入

API専用のパッケージを購入

2

AppCodeを取得

service@removehandwriting.comにメールを送信して、専用のAppCodeを取得

3

コードサンプルを使用

以下のコードサンプルを使用してすぐに始める

4

パラメータを調整

パラメータリファレンスに戻ってリクエストを調整

認証

特別なAPIキー(またはApp Code)を使用してユーザーを認証します。ここで簡単に取得できます。APIキーは一意で、他のものとは大きく異なります。セキュリティ上の理由から、App Codeを公開しないでください。

APIエンドポイント

POST https://api.removehandwriting.com/sjccup

ヘッダー

Authorization:
APPCODE YourAppCode
Content-Type:
application/json; charset=UTF-8

コード例

コードサンプルで素早く始める

public static void main(String[] args) {
    String host = "https://api.removehandwriting.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();
    }
}

リクエストパラメータ

これらのパラメータでAPIリクエストを設定

パラメータタイプ説明
media_idstring画像のBase64エンコード値、最長辺が4000pxを超えないこと;プレフィックス data:image/png;base64 を削除
keep_distortionbooleanfalse – 歪みを自動補正、true – 補正を無効化
keep_oribooleanfalse – 画像は正しい向きに回転されます、true – アップロード時の向きを保持

エラーコード

API応答コードのリファレンス

エラーコードエラーメッセージ説明
0successSuccess
1000body errorRequest body error
1001param errorRequest parameter error
1002content type errorContent-Type error
1003image not existsImage file not found
1004image size errorImage size error
1005image format errorImage format error
1006invalid signatureInvalid signature
1007body size errorBody size error
1008no authorizationAuthorization failed
2000server unknown errorServer unknown error
2001server timeoutServer timeout
2003no content recognitionNo content recognized
2004validate data errorValidation data error
3000remote server errorRemote server error
4000base server errorBase server error

API料金プラン

以下のプランはAPI専用です

ベーシック

$499$0.10 / クレジット
5,000クレジット
6ヶ月有効
リスクフリー:7日間返金保証
最も人気

人気

$799$0.08 / クレジット
10,000クレジット
6ヶ月有効
リスクフリー:7日間返金保証
エクスクルーシブ

エクスクルーシブ

$3999$0.04 / クレジット
100,000クレジット
1年有効
リスクフリー:7日間返金保証

100%返金保証!

安心して購入してください。このツールがあなたのニーズを満たさないことがわかった場合、7日間の無条件返金保証を提供します。自信を持って支払いを行うことができます。支払いの安全性を確保するための返金ポリシーがあります。

手書き削除API – AIで手書き文字を削除