Skip to content

Camera

Control the camera from your app: take a picture without leaving the app and display it in your interface.

Use cases

The Camera component is particularly useful for:

  • Document capture: scan ID cards, receipts, or forms.
  • User-generated content: allow users to share photos within your application.
  • Event photo booth: create photo experiences at events with custom frames.
  • Product catalogs: enable users to photograph items to add them to a list.
  • Inspection and reporting: capture images for inspection or maintenance reports.

Setting up the component

  1. Open the Components panel.
  2. Drag and drop Camera into your screen.

A graphic object is automatically created: this area allows you to display the camera view from your application. If you do not want to display this view, place this component outside the screen.

Component features

Properties

In the Camera component properties, you can customize its behavior:

PropertyDescription
OrientationChoose between Front camera (selfie) or Back camera (main photo).
Camera TypeOn devices with multiple cameras, select Standard, Ultra Wide (wide angle), or Telephoto. By default, the Standard camera is used.
QualitySet the quality of the captured photo: Optimized (quality/performance balance) or Best (maximum quality).

Place the camera graphic object outside the screen if you want to capture photos without showing the preview to the user.

Trigger events

You can use the Camera component to trigger actions. Select your component and open the Actions window. The available triggers are:

  • Photo taken: triggers immediately after a photo is captured.
  • Frame changed: triggers for each new frame captured by the camera in real-time (before taking a photo).

This allows you to trigger any PandaSuite action (change screen, display pop-up, save to variable, etc.).

Real-time Image Recognition

The Frame changed trigger is particularly useful for combining the camera with image recognition. Unlike the classic “Open camera” action from the Recognizer (which forces full screen mode), this approach allows you to design your own interface with custom overlays, targets, and visual indicators.

Associated actions

You can act on the component via the Interact with a component action:

  • Take a picture: triggers photo capture from the selected camera.

Take a photo

To take a picture, select a button and choose the action:

1 Interact with a component
2 Camera
3 Take a picture

Button for photo capture
Add a button to trigger photo capture

Display the captured photo

To display the photo, connect an image source to this component via data binding.

  1. Insert an Image in your interface (it serves as a template and will be automatically replaced).
  2. Select this image, click on Source in the properties.
  3. Set the path:
    1 From a component
    2 Camera
    3 Image
Add data binding to camera
Connect the image source to the Camera component

The photo displays automatically after capture.

Best practices and tips

  • User permissions: ensure your application requests camera access permissions.
  • Image quality: captured photos are optimized for a balance between quality and performance.
  • Visual feedback: add a sound effect, vibration, or animation after capture to confirm the action.
  • Local storage: photos are stored locally in the application. Use the HTTP component to send them to an external service.
  • Compatibility: test on different devices to verify the availability of different camera types (ultra wide, telephoto).

Practical examples

Photo booth with custom frame

  1. Insert the Camera component with Front orientation (selfie).
  2. Add a graphic frame overlay on top of the camera preview.
  3. Create a button with the action:
    1 Interact with a component
    2 Camera
    3 Take a picture
  4. Display the captured photo in a new image with the frame.

Send photo to an external service

Your photo is stored locally in the application, but you can send it to another service via the HTTP component.

Example of sending a photo with HTTP
Send your photos to external services

Steps:

  1. Configure an HTTP component.
  2. Add a data binding from Camera > Image to the HTTP request body field.
  3. Trigger the send after capture:
    1 Photo taken
    2 Interact with a component
    3 HTTP
    4 Send

Image scanner with custom interface

Combine Camera and Image Recognition to create a custom scanning interface (without full-screen mode).

  1. Add the Camera component (back orientation) and the Image Recognition component.
  2. Overlay your graphic interface (frame, target, instructions) on top of the camera view.
  3. Connect them:
    1 Frame changed
    2 Interact with a component
    3 Image Recognition
    4 Detect
  4. Define your reactions: MATCH [image.jpg] → action of your choice.
Performance

The Frame changed trigger activates up to 30 times per second. Favor lightweight actions to avoid slowdowns.

Additional resources