# Image recognition component is not working

**URL:** https://community.thunkable.com/t/image-recognition-component-is-not-working/475479
**Category:** Questions about Thunkable X
**Created:** [February 20, 2020, 4:49pm UTC](https://community.thunkable.com/t/image-recognition-component-is-not-working/475479 "2020-02-20T16:49:37Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![jilanihumraek6r57](https://avatars.discourse-cdn.com/v4/letter/j/90ced4/32.png) [@jilanihumraek6r57](https://community.thunkable.com/u/jilanihumraek6r57)
#### Post date: [February 20, 2020, 4:49pm UTC](https://community.thunkable.com/t/image-recognition-component-is-not-working/475479/1 "2020-02-20T16:49:37Z")

</div>

The image recognition component is not working in thunkable x. i copied the exact code from the tutorial. I tried it few months back and it was not working then also. plz guide and help.

---

<div class="post-metadata">

### Author: ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)
#### Post date: [February 20, 2020, 6:15pm UTC](https://community.thunkable.com/t/image-recognition-component-is-not-working/475479/2 "2020-02-20T18:15:46Z")

</div>

Hi @jilanihumraek6r57. Welcome to the community! 👐

Can you please post a screenshot of the blocks you are using to build this app?

---

<div class="post-metadata">

### Author: ![marcoiacovone239x3u](https://avatars.discourse-cdn.com/v4/letter/m/7cd45c/32.png) [@marcoiacovone239x3u](https://community.thunkable.com/u/marcoiacovone239x3u)
#### Post date: [February 20, 2020, 7:59pm UTC](https://community.thunkable.com/t/image-recognition-component-is-not-working/475479/3 "2020-02-20T19:59:41Z")

</div>

Accordingly you didn’t forgot anything in the blocks, the code works. I remember you that “image recognizer” doesn’t work as google image looks-like finder but it gives you a description of what you capture with your camera. Tested 1 minute ago.  
 ![2020-02-20_204644](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/2/c250df54636ed0d1a7e47fb818f442f6cf2ee2d8.png)

---

<div class="post-metadata">

### Author: ![jilanihumraek6r57](https://avatars.discourse-cdn.com/v4/letter/j/90ced4/32.png) [@jilanihumraek6r57](https://community.thunkable.com/u/jilanihumraek6r57)
#### Post date: [February 22, 2020, 6:34am UTC](https://community.thunkable.com/t/image-recognition-component-is-not-working/475479/5 "2020-02-22T06:34:52Z")

</div>

![imagerecognition code](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/c/1c7771738b65917febf186b8e30ec2e0abeb39c8.png)

---

<div class="post-metadata">

### Author: ![Chris](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/chris/32/78883_2.png) [@Chris](https://community.thunkable.com/u/Chris)
#### Post date: [February 22, 2020, 8:33am UTC](https://community.thunkable.com/t/image-recognition-component-is-not-working/475479/6 "2020-02-22T08:33:48Z")

</div>

I tried it yesterday and the label that I wanted to show the description result of the image taken & uploaded just became blank 🤔 What happens in your project when testing @jilanihumraek6r57?

---

<div class="post-metadata">

### Author: ![jilanihumraek6r57](https://avatars.discourse-cdn.com/v4/letter/j/90ced4/32.png) [@jilanihumraek6r57](https://community.thunkable.com/u/jilanihumraek6r57)
#### Post date: [February 22, 2020, 7:58pm UTC](https://community.thunkable.com/t/image-recognition-component-is-not-working/475479/7 "2020-02-22T19:58:03Z")

</div>

for me also, the label simply displayed the initial text that was given to it.

---

<div class="post-metadata">

### Author: ![rollke](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/rollke/32/14413_2.png) [@rollke](https://community.thunkable.com/u/rollke)
#### Post date: [February 22, 2020, 9:30pm UTC](https://community.thunkable.com/t/image-recognition-component-is-not-working/475479/8 "2020-02-22T21:30:16Z")

</div>

in my apps there is a big delay and after that it sometimes works and sometimes not.

---

<div class="post-metadata">

### Author: ![lmczk](https://avatars.discourse-cdn.com/v4/letter/l/97f17d/32.png) [@lmczk](https://community.thunkable.com/u/lmczk)
#### Post date: [May 15, 2020, 6:46am UTC](https://community.thunkable.com/t/image-recognition-component-is-not-working/475479/9 "2020-05-15T06:46:55Z")

</div>

Me too. It worked in yesterday but it just give a blank screen in my lesson after the image was captured by the camera. All of my students got the the result today.

---

<div class="post-metadata">

### Author: ![lmczk](https://avatars.discourse-cdn.com/v4/letter/l/97f17d/32.png) [@lmczk](https://community.thunkable.com/u/lmczk)
#### Post date: [May 17, 2020, 2:34pm UTC](https://community.thunkable.com/t/image-recognition-component-is-not-working/475479/10 "2020-05-17T14:34:34Z")

</div>

I finally found out the reason.

It is because I have not put the image\_recognizer block inside the camera block. The variable Photo is actually a local variable that would be out of scope of the camera block. So the image\_recognizer block must be inside the camera block so that the variable Photo is still in the scope.

The correct answer should be like this.

 ![Screenshot 2020-05-17 at 22.30.14](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/c/fcde8d53d17ebcc7942ab6bd36dd5e85b02fcf97.png)

---

<div class="post-metadata">

### Author: ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)
#### Post date: [November 8, 2024, 11:29am UTC](https://community.thunkable.com/t/image-recognition-component-is-not-working/475479/11 "2024-11-08T11:29:11Z")

</div>


