LI01 / linux_camera_tool

Sample code for Leopard USB3.0 Camera Linux Camera Tool
GNU General Public License v3.0
67 stars 38 forks source link

Question about python :) #11

Open Ninic0c0 opened 4 years ago

Ninic0c0 commented 4 years ago

Hi,

Do you think about make a python wrapper ? o.0

Cheers

danyu9394 commented 4 years ago

Hi,

I wasn't planning to do that since using python will probably be really slow. Which parts(functionalities) are you most interested in to add in your application, uvc_extension_unit or isp_ctrl? You can try to build individual dynamic libraries to be able to use the library in your application. (I am currently in vocation back home. I will take a look on the implementation once I come back:D)

Ninic0c0 commented 4 years ago

Hi,

Enjoy your vacation ! In fact I have an OV2311 camera (b&w RAW 10bit) and I have extracted some pieces of your code. Maybe you could take a look here: https://github.com/ArduCAM/MIPI_Camera/tree/master/RPI or https://github.com/ArduCAM/ArduCAM_USB_Camera_Shield

I understand that it could be difficult to manage C and Python code in the same time, so it's maybe possible to build a shared library with basic access (open cam, set/get register...) in order to be able to use your code inside projects :)

Cheers, Nicolas.