docker pull mmmz/trwebocr
docker run -d --restart always --name trwebocr -p 8089:8089 mmmz/trwebocr:latest
http://x.x.x.x:8089
php
$url = 'http://x.x.x.x:8089/api/tr-run/';
// $post_data['file'] = curl_file_create($img);
$post_data['img'] = $img;
$post_data['compress'] = 0;
$post_data['is_draw'] = 0;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data);
$data = curl_exec($ch);
curl_close($ch);
Content type
Image
Digest
Size
521.8 MB
Last updated
almost 4 years ago
docker pull adxing/trwebocr