Help Center>
Huawei HiLens>
FAQs>
Managing Data>
Can I Record the Images Captured by a HiLens Kit Camera or the Skill Running Result for Storage?
Updated on 2022-02-22 GMT+08:00
Can I Record the Images Captured by a HiLens Kit Camera or the Skill Running Result for Storage?
Yes. You can use OpenCV VideoWriter. Note that the video must be in MJPG format. The reference code is as follows:
camera = hilens.VideoCapture() fps = 20 size = (1280, 720) format = cv2.VideoWriter_fourcc('M','J','P','G') writer = cv2.VideoWriter("output.avi", format, fps, size) count = 0 duration = 100 # Duration of the video while True: input_nv21 = camera.read() input_bgr = cv2.cvtColor(input_nv21, cv2.COLOR_YUV2BGR_NV21) writer.write(input_bgr) if count >= fps * duration: break count += 1 writer.release()
Parent topic: Managing Data
Managing Data FAQs
- Why Is There No HDMI Skill Data on the Data Management Page?
- How Do I Configure the Data Storage Location (OBS Storage Path)?
- Why Does HDMI Black Screen Occur or HDMI Output Stop Working?
- Can I Record the Images Captured by a HiLens Kit Camera or the Skill Running Result for Storage?
- Why Don't the Logs Contain Any Device Data?
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbotmore