# (Practice 1) Camera Capture

{% hint style="success" %}
**The resolution of the HUENIT AI CAMERA is 320x240.**
{% endhint %}

### Example Code

#### **(Example) Camera Capture**

**(Description)** This is an example where the built-in camera of the HUENIT AI CAMERA captures an image and displays it on the screen.

* The captured image data is stored in the **"img"** variable using the \[Get value of Cam Sensor] block.
* Then, the \[Display ( ) Image] block is used to display the data stored in the **"img"** variable on the screen.

<figure><img src="https://1881188396-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FauX5vWu2xzL5b4Cvif21%2Fuploads%2Fz7r4vLFiSUAycZZIavNx%2Fimage.png?alt=media&#x26;token=1308ac65-bf9a-49a9-be3a-3f6ce9c58ac0" alt=""><figcaption></figcaption></figure>

***

### :bell: Block Description

#### **1.\[Get value of Cam Sensor] Block**

* A block that retrieves image data from the camera sensor.

<figure><img src="https://1881188396-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FauX5vWu2xzL5b4Cvif21%2Fuploads%2FOJoiIDyucEJ8aSaGPym4%2Fimage.png?alt=media&#x26;token=0de1a6c9-c251-480e-be16-a6715d60f65d" alt="" width="315"><figcaption><p>[Get value of Cam Sensor] Block</p></figcaption></figure>

#### 2. \[Display ( ) Image] Block

* A block used to display the desired information on the screen.

<figure><img src="https://1881188396-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FauX5vWu2xzL5b4Cvif21%2Fuploads%2FuXtxATZaYPi1Lsw5bP5Z%2Fimage.png?alt=media&#x26;token=dd08fa57-2f7c-4c04-88ad-3cae48693046" alt="" width="279"><figcaption><p>[Display ( ) Image] Block</p></figcaption></figure>
