Skip to content

Golang wrapper #11

Open
Open

Description

@cedricve

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?

Activity

  1. dridri commented on Nov 14, 2020

    @dridri
    Owner

    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..

  2. cedricve commented on Nov 14, 2020

    @cedricve
    Author
  3. dridri commented on Nov 14, 2020

    @dridri
    Owner

    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

  4. cedricve commented on Nov 20, 2020

    @cedricve
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions