Camera Blocks

Overview

The camera blocks provide functionalities to interact with the device's camera. These blocks enable users to capture images or record videos directly within the app.

Advanced Blocks

Each block in the camera blocks drawer has a regular and advanced block. To access the advanced version of a block:

  1. Add the block to your workspace.

  2. Right-click on it.

  3. Select Show advanced block.

Outputs

The advanced blocks return an "error" output block. If there is an error when executing the block, the error block will return an error message. If not, the error block will return a null value.

Photo from Camera

The "photo from camera" block opens the device's camera and allows the user to take a photo. The photo can then be used in the app.

Regular Block

Advanced Block

Video Tutorial

How to Use the Device’s Camera in a Thunkable App

In this tutorial, you’ll use Thunkable camera app features to create an app that takes a photo with the device's camera.

Image Recognition

The "description of image from" block generates a description of a given image. This block requires internet access.

This component is powered by Microsoft Azure. You can get your own server URL and subscription key for Microsoft Azure here. You can add these details to your app in the Project Settings panel, which you can access by clicking on your app icon.

Regular Block

Advanced Block

Video Tutorial

How to Create an Image Recognition App with Thunkable

In this tutorial, you’ll use Thunkable camera app features to create an app that takes a photo with the device's camera and utilizes image recognition functionality to identify the photo’s content.

Barcode or QR Code Scanner

The "barcode scanned using camera" block scans a barcode or QR code and returns its value.

Regular Block

Advanced Block

Video Tutorial

How to Use the Device’s Camera as a QR or Barcode Scanner in a Thunkable App

In this tutorial, we’ll add the functionality to scan a barcode or QR code with the device's camera.

Template App

  1. Click Copy Project in the upper right.

Record Timed Video

The "video file from [5] second recording using [back] camera" block opens the device's camera and films from the selected camera for the chosen amount of time and then returns the video file.

Regular Block

Advanced Block

Record Untimed Video

The "video file from recording using [back] camera" block opens the device's camera and films from the selected camera until the user ends the recording using the controls on the device's camera. It returns the video file.

Regular Block

Advanced Block

Video Tutorial

How to Use the Device’s Video Camera in a Thunkable App

In this tutorial, you’ll use Thunkable camera app features to create an app that records a video with the device's camera.

Last updated