Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Golang wrapper #11

Open
cedricve opened this issue Nov 13, 2020 · 4 comments
Open

Golang wrapper #11

cedricve opened this issue Nov 13, 2020 · 4 comments

Comments

@cedricve
Copy link

Hello @dridri,

We are using you library for a couple of years now in our www.kerberos.io project, and we are moving our architecture from c++ to Golang. Would there be anything on your mind to create a wrapper for Golang?

@dridri
Copy link
Owner

dridri commented Nov 14, 2020

Hello, unfortunately I've never used Go lang and won't be very helpful to create a wrapper apart by using the few techniques that can be found on the web.
But I stay open to any questions or remarks that could help you doing it.

By the way, it looks like that the Raspberry Pi Foundation is slowly moving to the new libcamera stack, but don't know if any golang interfaces are ready..

@cedricve
Copy link
Author

cedricve commented Nov 14, 2020 via email

@dridri
Copy link
Owner

dridri commented Nov 14, 2020

It seems like that the SWIG wrapper would be the best approach between performance cost and development time.
But since I've never used Go, I don't know how to handle things like frame-buffers physical pointers.

Here is their initial blog post about libcamera : https://www.raspberrypi.org/blog/an-open-source-camera-stack-for-raspberry-pi-using-libcamera/
There is also a topic on their forum : https://www.raspberrypi.org/forums/viewtopic.php?f=43&t=273018

@cedricve
Copy link
Author

hey @dridri, I switched to Golang last year, but have to look into it. My level of C++ is not like yours. In my mind we would only have a hig-hlevel Golang API, which connects to your already build functions.

  • Open
  • Read
  • Close

Most people do it like this: https://github.com/dhowden/raspicam. But that is not what we want.

We've been using your library (here: https://github.com/kerberos-io/machinery/blob/master/src/kerberos/capture/RaspiCamera.cpp), and What I was thinking if we could at a high level have something similar like this class, abstracting all your beautiful code.

I really want to help on this as I never did this before, I'm highly motivated to make this work. Not sure if you have the time and motivation as well?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants