Open topic with navigation
As the name suggests this example demonstrates how to manipulate the camera in an OpenCV-based Android application. In particular, it changes the camera preview resolution, activates the camera built-in effects, and captures and saves a still picture to file.
Since the predefined OpenCV for Android View class does not allow manipulating the camera, this example defines its own
Tutorial3View class, which extends the predefined
JavaCameraView class. Observe the
Tutorial3View.java file for how to handle camera resolution changes, camera effects, and how to capture still pictures.
Note that this application does not alter the frames from the camera before displaying them. Consequently, the
Tutorial3Activity::onCameraFrame() function simply returns its input frames in RGBA format.
NVIDIA® GameWorks™ Documentation Rev. 1.0.220830 ©2014-2022. NVIDIA Corporation and affiliates. All Rights Reserved.