Table of Contents

Workflow_FrameSource_CameraDevice sample detailed explanation

Workflow_FrameSource_CameraDevice is a sample scene focused on low-level control of Frame Source, demonstrating how to use CameraDeviceFrameSource to obtain raw image streams from cameras and perform basic controls.

How to use

1. Open the scene

In the Unity Editor, open the Workflow_FrameSource_CameraDevice scene located in the Assets/ directory.

2. Build and run

  • Click Play in the editor to view the effect on PC (some features are limited).
  • Must build to a real device to fully experience the basic camera control capabilities.

The application will automatically open the rear camera after launch.

Expected effect

When the camera is aimed at the surrounding environment:

  1. Real-time camera feed will be displayed on the screen.
  2. A 3D animated panda model will be rendered.
  3. UI displays current camera status (e.g., resolution, FPS).
  4. Click the Loop Size button to cycle through supported output frame resolutions.
  5. Click the Flash Torch button to turn off/on the flashlight.
  6. Click HorizontalFlip to toggle mirror display of the current view.
  7. Click CaptureImage to toggle whether the model captures the current environment as its own texture.
  8. Click CameraImage to toggle the display of the current camera feed.
  9. Click Camera to turn off/on the current camera. The view will freeze when turned off.
  10. Use the NextCamera button to dynamically switch between front/rear cameras.

Tip

For more FrameSource details, refer to:

Through Workflow_FrameSource_CameraDevice, you can master EasyAR's low-level camera control capabilities, laying a solid foundation for building high-performance, highly customizable AR applications.