# M0025-1 Hires Camera capture with opencv

Source: https://forum.modalai.com/topic/2180/m0025-1-hires-camera-capture-with-opencv
Category: General Questions (https://forum.modalai.com/category/2/general-questions)
Posted: 2023-05-22 08:52:15 UTC by Philemon Benner
Replies: 3 · Views: 1032

## Philemon Benner · 2023-05-22 08:52:15 UTC

Hey, 
i want to integrate the https://docs.modalai.com/M0025/  Camera from you in my application. I'm currently using opencv to capture video frames.
Is it required that i use the hal3 module used in https://gitlab.com/voxl-public/voxl-sdk/services/voxl-camera-server/-/tree/master/ ?
If yes wich libraries do i have to link to my application in order to use the hal3 module ? 
And can i build these on my own or are these built alongside the system-image ?

Platform: Voxl 1 ap8096

## Reply by Chad Sweet (ModalAI staff) · 2023-05-23 03:23:01 UTC

No, you'll need to use voxl-camera-server which is why voxl-camera-server exists. You can develop a client that uses the simple camera helper to receive hires preview frames which are in the NV12 format. You should be able to use OpenCV to convert NV12 to RGB and continue processing as normal from there.

A google search revealed this as a possible solution https://envyen.com/posts/2020-12-11-opencv-yuv-nv12-to-bgr-conversion/

## Reply by Philemon Benner · 2023-05-23 07:59:11 UTC

Thanks for the fast reply

## Reply by Philemon Benner · 2023-05-23 10:23:35 UTC

@Chad-Sweet what is the reason for using Gralloc allocator on apq8096 for buffer allocation instead of ION memory allocator used in the qrb5165 implementation ?
