HandWriting Removal API
$curl -i -k -X POST ‘https://api.removehandwriting.com/sjccup’ \
-H ‘Authorization:APPCODE YourAppCode’ \
–data ‘{“media_id”:”Base64 encoded value of the image, 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}’ \
-H ‘Content-Type:application/json; charset=UTF-8’

API Introduction
The Artificial Intelligence technology specialized in Handwriting removal has been made easier than ever before using RemoveHandwriting.com API. With just a few lines of code, you can bring this technology into your application.
Getting started
Step 1: Purchase a package dedicated to the API,View Pricing.
Step 2: Email service@removehandwriting.com to get your dedicated AppCode.
Step 3: Use the following code samples to get started quickly.
Step 4: Getting back to the parameters reference to adjust the request.
Authentication
We authenticate users using special API Key (or App Code). Which can be easily acquired here. The API Key is unique and very different from the others. For security reasons, please do not publish your App Code.
public static void main(String[] args) {
String host = "https://api.removehandwriting.com";
String path = "/sjccup";
String method = "POST";
String appcode = "YourAppCode";
Map headers = new HashMap();
// 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 querys = new HashMap();
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();
}
}
import urllib, urllib2, sys
import ssl
host = 'https://api.removehandwriting.com'
path = '/sjccup'
method = 'POST'
appcode = 'YourAppCode'
querys = ''
bodys = {}
url = host + path
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}"
post_data = bodys['']
request = urllib2.Request(url, post_data)
request.add_header('Authorization', 'APPCODE ' + appcode)
# Define the corresponding Content-Type according to API requirements
request.add_header('Content-Type', 'application/json; charset=UTF-8')
ctx = ssl.create_default_context()
ctx.check_hostname = False
ctx.verify_mode = ssl.CERT_NONE
response = urllib2.urlopen(request, context=ctx)
content = response.read()
if (content):
print(content)
NSString *appcode = @"YourAppCode";
NSString *host = @"https://api.removehandwriting.com";
NSString *path = @"/sjccup";
NSString *method = @"POST";
NSString *querys = @"";
NSString *url = [NSString stringWithFormat:@"%@%@%@", host, path, querys];
NSString *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}";
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString: url] cachePolicy:1 timeoutInterval:5];
request.HTTPMethod = method;
[request addValue:[NSString stringWithFormat:@"APPCODE %@", appcode] forHTTPHeaderField:@"Authorization"];
// Define the corresponding Content-Type according to API requirements
[request addValue:@"application/json; charset=UTF-8" forHTTPHeaderField:@"Content-Type"];
NSData *data = [bodys dataUsingEncoding:NSUTF8StringEncoding];
[request setHTTPBody:data];
NSURLSession *requestSession = [NSURLSession sessionWithConfiguration:[NSURLSessionConfiguration defaultSessionConfiguration]];
NSURLSessionDataTask *task = [requestSession dataTaskWithRequest:request
completionHandler:^(NSData * _Nullable body, NSURLResponse * _Nullable response, NSError * _Nullable error) {
NSLog(@"Response object: %@", response);
NSString *bodyString = [[NSString alloc] initWithData:body encoding:NSUTF8StringEncoding];
// Print the body of the response
NSLog(@"Response body: %@", bodyString);
}];
[task resume];
Error Code | Error Message | Description |
---|---|---|
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 |
The following plans are API-exclusive
100% Money Back Guarantee!
Purchase with peace of mind. If you find out that this tool does not meet your needs, we offer a 7-day no-questions-asked money-back guarantee.You can make the payment with confidence. We have a refund policy to ensure the safety of your payment.