[SOLVED] Recognise & read text in thunkable

I need to be able to get thunkable to recognise & read text in an image with said text (it’ll also be handwriting so i’m not sure if that’s pushing my luck a little too much)
Then I need the app to read said text out loud (although I think that might not be a problem if I can recognise the text)

PS: is it possible to highlight/select text in the image and/or recognise its color? thanks

1 Like

update: i used a few tutorials on thunkable as reference, but i still can’t seem to figure out how to get the text obtained/detected from the ocr to appear on a label. any help?

1 Like

What OCR service are you using?

Can you show your codes or what you have tried so far?

I’m using free ocr api (the one @jacob1 used in their post about barcode scanners)

I need the app to be able to recognise text from an image then put it on a label- the code I’ve tried so far:

thanks <3

1 Like

According to the OCR site this is the link you need to use to get info

https://api.ocr.space/parse/imageurl?apikey=YourAPIKey&url=http://YourImageFile

You should get the response something like this

{"ParsedResults":[{"TextOverlay":{"Lines":[],"HasOverlay":false,"Message":"Text overlay is not provided as it is not requested"},"TextOrientation":"0","FileParseExitCode":1,"ParsedText":"GAVE AWAY MY BOOK\r\nFREE ON\r\nREACHED TOP OF AMAZON\r\nBESTSELLER\r\n","ErrorMessage":"","ErrorDetails":""}],"OCRExitCode":1,"IsErroredOnProcessing":false,"ProcessingTimeInMilliseconds":"390","SearchablePDFURL":"Searchable PDF not generated as it was not requested."}

You should read ParsedText to get the result of the OCR.

okii! like this?


i added the component but somehow i can’t take photos with the button (the action that activates the code) anymore

1 Like

Check this Demo project

https://x.thunkable.com/projectPage/61d9a805c2bd1000108410a6

See Sample output

3 Likes

It reads null on my device?


I’ve tried both web version (above) and app view (on ipad), it gives the ‘something has gone wrong’ message

update: the blocks work!!! much love, and thanks @muneer <33

3 Likes

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.