Help Center/ Huawei HiLens/ SDK Reference/ Output/ Outputting a Frame of Image
Updated on 2023-06-15 GMT+08:00

Outputting a Frame of Image

This section describes how to output a frame of image. When the following API is called for the first time, the output module sets the video size based on the input image size. In the subsequent calling, the skill must ensure that the input image size is the same as the previous one.

API Calling

virtual HiLensEC hilens::Display::Show(const cv::Mat & frame)

Parameter Description

Table 1 Parameters

Parameter

Description

frame

Image to be displayed. The image must be in the NV21 format.

Return Value

If the return value is 0, the operation is successful. Otherwise, the operation fails. Refer to Error Codes for details about the failure response parameters.