# \[SOLVED\] Recognise & read text in thunkable

**URL:** <https://community.thunkable.com/t/solved-recognise-read-text-in-thunkable/1663737>\
**Category:** Questions about Thunkable X\
**Tags:** ocr, webapi\
**Created:** [January 1, 2022, 2:22pm UTC](https://community.thunkable.com/t/solved-recognise-read-text-in-thunkable/1663737 "2022-01-01T14:22:17Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![s191127qo](https://avatars.discourse-cdn.com/v4/letter/s/db5fbb/32.png) [@s191127qo](https://community.thunkable.com/u/s191127qo)\
**Post date:** [January 1, 2022, 2:22pm UTC](https://community.thunkable.com/t/solved-recognise-read-text-in-thunkable/1663737/1 "2022-01-01T14:22:17Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![s191127qo](https://avatars.discourse-cdn.com/v4/letter/s/db5fbb/32.png) [@s191127qo](https://community.thunkable.com/u/s191127qo)\
**Post date:** [January 8, 2022, 1:42pm UTC](https://community.thunkable.com/t/solved-recognise-read-text-in-thunkable/1663737/2 "2022-01-08T13:42:35Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [January 8, 2022, 1:50pm UTC](https://community.thunkable.com/t/solved-recognise-read-text-in-thunkable/1663737/3 "2022-01-08T13:50:40Z")

</div>

What OCR service are you using?

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

---

<div class="post-metadata">

**Author:** ![s191127qo](https://avatars.discourse-cdn.com/v4/letter/s/db5fbb/32.png) [@s191127qo](https://community.thunkable.com/u/s191127qo)\
**Post date:** [January 8, 2022, 2:16pm UTC](https://community.thunkable.com/t/solved-recognise-read-text-in-thunkable/1663737/4 "2022-01-08T14:16:36Z")

</div>

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:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/2/329c047701250384740ec5fcfea9faf8dbecd032.png)

thanks \<3

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [January 8, 2022, 2:32pm UTC](https://community.thunkable.com/t/solved-recognise-read-text-in-thunkable/1663737/5 "2022-01-08T14:32:49Z")

</div>

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

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

```

You should get the response something like this

```auto
{"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.

---

<div class="post-metadata">

**Author:** ![s191127qo](https://avatars.discourse-cdn.com/v4/letter/s/db5fbb/32.png) [@s191127qo](https://community.thunkable.com/u/s191127qo)\
**Post date:** [January 8, 2022, 2:35pm UTC](https://community.thunkable.com/t/solved-recognise-read-text-in-thunkable/1663737/6 "2022-01-08T14:35:35Z")

</div>

okii! like this?

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/f/cf8ecb68c68bfc5d6c9a1f19600bac76b58974f4.png)  
i added the component but somehow i can’t take photos with the button (the action that activates the code) anymore

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [January 8, 2022, 3:29pm UTC](https://community.thunkable.com/t/solved-recognise-read-text-in-thunkable/1663737/7 "2022-01-08T15:29:09Z")

</div>

Check this Demo project

[https://x.thunkable.com/projectPage/61d9a805c2bd1000108410a6](https://x.thunkable.com/projectPage/61d9a805c2bd1000108410a6)

See Sample output

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/9/29cedda84bfe4c55ad6c6f3829e78bc7a9bdcc51.png)

---

<div class="post-metadata">

**Author:** ![s191127qo](https://avatars.discourse-cdn.com/v4/letter/s/db5fbb/32.png) [@s191127qo](https://community.thunkable.com/u/s191127qo)\
**Post date:** [January 9, 2022, 1:22pm UTC](https://community.thunkable.com/t/solved-recognise-read-text-in-thunkable/1663737/8 "2022-01-09T13:22:30Z")

</div>

It reads null on my device?

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/3/5397c92ca30f4d3c6dedfb6c6078660c19553cb9.png)  
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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [April 9, 2022, 1:31pm UTC](https://community.thunkable.com/t/solved-recognise-read-text-in-thunkable/1663737/10 "2022-04-09T13:31:23Z")

</div>

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