Help Center/ Huawei HiLens/ SDK Reference/ Video Input/ Reading Video Frames from Cameras
Updated on 2023-06-15 GMT+08:00

Reading Video Frames from Cameras

This section describes how to read video frames. If an error occurs during camera reading, the exception message std::runtime_error will be displayed.

API Calling

virtual cv::Mat hilens::VideoCapture::Read()

Return Value

If the camera is an IPC or a local camera, YUV_NV21 data is returned. If the camera is a UVC camera, BGR data is returned.