Project

General

Profile

Camera Block

How this block appears in a Simulink model?

appearance.PNG

What can be configured?

Configuration Parameter Selectable Option/Value Description
Stream mode to Aimagin Connect--to Matlab--to Target Select whether the camera feed should be streamed to Aimagin Connect, to Matlab Simulink or to Target ESP32.
Camera Module AIMAGIN Camera--Custom Camera Select the camera module.
Camera Pins Enter the camera pin connections.
XCLK frequency (Hz) Enter the clock frequency
LEDC TIMER Enter the LEDC TIMER
LEDC CHANNEL Enter the LEDC CHANNEL
Image Format RGB565--YUV422--GRAYSCALE--JPEG--RGB888--RAW--RGB444--RGB555 Select the image format.
Frame Size QQVGA--QCIF--HQVGA--QVGA--CIF--VGA--SVGA--XGA--SXGA--UXGA--QXGA Select the frame size of the camera feed.
JPEG quality 0 to 63 Enter the required quality of the image.
Number of frame buffers to be allocated Enter the number of buffer frames to be allocated.
Sample time (sec) -1 (inherited) or specify Specify the sample time

When to use this block?

This block can be used to stream the camera feed to,
  • To Aimagin Connect.
  • To Matlab Simulink.
  • To the target ESP32.

How does this block work?

  • Mode: to Aimagin Connect
    A webapp should be created using Aimagin Connect website. Then the exported web-app should be transferred to the SD card connected to the ESP32.
  • Mode: to Matlab Simulink
    In order to stream to Matlab Simulink, ‘esp32_camerablock_receiver’ and ‘esp32_host_setup’ blocks should be used in the model file at the target computer.
  • Mode: to Target ESP32
    In this mode the camera feed can be processed within the ESP32 itself by enabling output ports in the esp32_camerablock.

Demo

Camera demo

Reference

This block is based on the esp32-camera driver by Espressif.

Previous : vTaskDelay Block
Next : Mesh Setup

Also available in: PDF HTML TXT