Code Monkey home page Code Monkey logo

Comments (12)

bcba25 avatar bcba25 commented on August 26, 2024 2

@andboson Hi, do you have any code samples on how to do basic face recognition ?

from gocv.

deadprogram avatar deadprogram commented on August 26, 2024 1

Hello @andboson we do not yet have bindings for that module.

It is part of opencv_contrib which is compiled into OpenCV if you follow our instructions, so it should be a matter of adding bindings in the same fashion that we have for other modules.

We would be very glad to accept a PR that added this functionality!

from gocv.

deadprogram avatar deadprogram commented on August 26, 2024 1

OK @andboson I'm working on some code to show how to pass a []Mat as the needed param. More soon!

from gocv.

deadprogram avatar deadprogram commented on August 26, 2024 1

OK, here is how example of how to handle []Mat

The Merge() function takes a slice of Mat as param:
https://github.com/hybridgroup/gocv/blob/dev/core.go#L309

Here is the associated C impl:
https://github.com/hybridgroup/gocv/blob/dev/core.cpp#L148

That should get you going. Please let me know if that is enough, or if there is anything else I can do to help.

from gocv.

deadprogram avatar deadprogram commented on August 26, 2024 1

This is one very easy way to handle http://blog.campoy.cat/2014/03/github-and-go-forking-pull-requests-and.html

from gocv.

deadprogram avatar deadprogram commented on August 26, 2024

In the latest work in the dev branch, I have just added a contrib sub-package. This is where an implementation of the OpenCV contrib face module would go...

from gocv.

andboson avatar andboson commented on August 26, 2024

Hello
I tried to work with C in Go (first time).
Main question is how to pass function parameters from Go to C.
How I can convert slice of Ints to C vector of C.int and slice of Mat to C vector of C.Mat?

from gocv.

deadprogram avatar deadprogram commented on August 26, 2024

Hello @andboson what specifically are you trying to do? Mat typically wraps around all values. Check out here for tests that also show how to reference them:

https://github.com/hybridgroup/gocv/blob/master/core_test.go#L97

from gocv.

andboson avatar andboson commented on August 26, 2024

I need pass slice of Mat`s to Facerecognizer->train(vector, vector,bool)

from gocv.

andboson avatar andboson commented on August 26, 2024

Thank you!
I`ve got the first recognition! ) (used original gocv code)
But how I can run tests (and work) on fork?
I got error on my fork:

drew@drew-Aspire-E1-571G ~/Gopath/src/github.com/andboson/gocv (master) $ go test ./...
can't load package: package github.com/andboson/gocv: code in directory /home/drew/Gopath/src/github.com/andboson/gocv expects import "gocv.io/x/gocv"
can't load package: package github.com/andboson/gocv/pvl: code in directory /home/drew/Gopath/src/github.com/andboson/gocv/pvl expects import "gocv.io/x/gocv/pvl"

from gocv.

andboson avatar andboson commented on August 26, 2024

Big thanks!
Maybe close this issue tread?

ps: but exists errors in my PR...

from gocv.

deadprogram avatar deadprogram commented on August 26, 2024

Thanks for the PR @andboson now closing this issue.

from gocv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.