Comments (12)
@andboson Hi, do you have any code samples on how to do basic face recognition ?
from gocv.
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.
OK @andboson I'm working on some code to show how to pass a []Mat
as the needed param. More soon!
from gocv.
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.
This is one very easy way to handle http://blog.campoy.cat/2014/03/github-and-go-forking-pull-requests-and.html
from gocv.
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.
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.
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.
I need pass slice of Mat`s to Facerecognizer->train(vector, vector,bool)
from gocv.
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.
Big thanks!
Maybe close this issue tread?
ps: but exists errors in my PR...
from gocv.
Thanks for the PR @andboson now closing this issue.
from gocv.
Related Issues (20)
- Missing ArUco when installing OpenCV Debian Repository HOT 2
- building a static binary with ` gocv/opencv:4.9.0-static` fails HOT 4
- Not able to run simple example HOT 1
- Skew Correction
- Unable to complete install with CUDA (make install_cuda) HOT 3
- make install BUILD_SHARED_LIBS=OFF fails on Ubuntu 22.04 HOT 1
- windows error: invalid cast from type 'pthread_t' {aka 'ptw32_handle_t'} to type 'void* HOT 1
- How does the gocv project run on someone else's computer HOT 3
- Unable to locate package libdc1394-22-dev on Ubuntu 24.04 LTS HOT 1
- building a static binary Lost Quirc HOT 11
- Cannot build docker image on mac M1
- Apple Silicon Backend/Target
- want the program to be less fragile HOT 1
- Support waitKeyEx HOT 3
- Missing Aruco with 4.10.0 and gocv 0.37 HOT 2
- rotatedrect enhance HOT 3
- memory leak
- gocv code memory leak HOT 15
- 请求一个yoloV8的使用案例,我已经折腾了很久,但是不知道解决方案,麻烦参考我代码,请求指引
- Error converting `*gocv.NativeByteBuffer` to `string` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gocv.