dongraobei6719 2014-10-02 15:36
浏览 63
已采纳

尝试在Go中使用C包装器吗?

I must be missing something but I'm trying to use the Leptonica C library in Go using a C wrapper that was made for that purpose:

https://github.com/GeertJohan/go.leptonica/blob/master/leptonica.go

But I don't understand... it allows me to import files but then how do I actually invoke the Leptonica functions? (Specifically I want to detect the deskew of the image using Leptonica.)

I don't see any function in the Go wrapper that allows me to send a command like this. How do I talk to it?

  • 写回答

1条回答 默认 最新

  • dongli564510 2014-10-02 15:39
    关注

    go.leptonica simply hasn't implemented that. You'll have to call the C functions yourself.

    Use leptonica.go as a starting point, and write your own wrapper.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?