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:
- Real-time camera feed will be displayed on the screen.
- A 3D animated panda model will be rendered.
- UI displays current camera status (e.g., resolution, FPS).
- Click the
Loop Sizebutton to cycle through supported output frame resolutions. - Click the
Flash Torchbutton to turn off/on the flashlight. - Click
HorizontalFlipto toggle mirror display of the current view. - Click
CaptureImageto toggle whether the model captures the current environment as its own texture. - Click
CameraImageto toggle the display of the current camera feed. - Click
Camerato turn off/on the current camera. The view will freeze when turned off. - Use the
NextCamerabutton 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.