Help Center/ Huawei HiLens/ Developer Guide/ Video Input Module/ Reading Video Frames from Cameras
Updated on 2022-02-22 GMT+08:00

Reading Video Frames from Cameras

This API is used to read a video frame. Note that the IP camera and MP4 video return the YUV_NV21 color data, while the UV camera returns the BGR color data.

  • API calling

    hilens.VideoCapture.read()

  • Return Value

    One frame of video data. The parameter type is NumPy array (dtype is uint8), which is compatible with CV2.