B4J Question XOCR Class library using ocrengine=2 Problem

Theera

Expert
Licensed User
Longtime User
Refer to this I'm studying Blueforcer's code about OCR technology. and I got the message for the owner's ocr as attached file.
My code is still mistake coding,I don't know how to code as following attached manual code.

B4X:
    'job.PostMultipart("https://api.ocr.space/Parse/Image",m,img) 'for English language

    job.PostMultipart("https://api.ocr.space/Parse/Image"&"ocrengine=2",m,img) 'for Thai language

attached manual code is belows
B4X:
const apiUrl = https://api.ocr.space/parse/imageurl?apikey=${apiKey}&url=${encodeURIComponent(imageUrl)}&language='tha';

to

const apiUrl = https://api.ocr.space/parse/imageurl?apikey=${apiKey}&url=${encodeURIComponent(imageUrl)}&ocrengine=2&language='tha'
 
Last edited:
Top