-
Notifications
You must be signed in to change notification settings - Fork 858
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
Some additions (examples, libuv, videocapture) #8
Conversation
…trix and implement of libuv for detectobjects
…trix and implement of libuv for detectobjects
This is awesome. Can you repull master? I'm getting merge conflicts and I can't test your branch until I manage to get my opencv install supporting videocapture. Thanks! |
Of course, this night I will merge my fixes with your last code, tomorrow I will send you again a pull request :D. |
talvarez, i can't build on Mac OS X Lion, It's work after i modified Contours.h replaced "vector" with "std::vector". |
@indiejoseph Oh, thanks!, I was using only Linux.. I will add this change and send the pull request (I am working on the merge right now) |
Conflicts: src/Matrix.cc src/Matrix.h
Well, I think that now is merged, try and tell me. |
Thanks for merging! I'm getting a build failure: In file included from ../src/init.cc:6: I can't look into this right now, but perhaps later this week I can help debug? Or if you know what is happening? |
Mmh I will take a look at this, I am using OpenCV-2.2, and Linux. Well, at least I've using your last code (and it's not conflicting in merge), this errors are simple to solve (I think ahaha). |
Hmm, looks like I currently have 2.0 installed on linux, I've been cycling between versions because they each have their own quirks. |
Well, I suppose that certain methods ddn't exist in that version (2.0), in fact C++ API changed a lot since that version. The code is working here with 2.2 version of OpenCV, but the OpenCV that you are using, is old. |
You're right, I wonder if it's possible to wrap the whole contour class in a preprocessor check to see if the opencv version is greater than 2.2? |
Regardless, I'll try and update. |
Ok, first I will download the last (2.4) and fix the code to work with the fixes, I will send you again the pull request. (Maybe is more comfortable a way to chat, cause this messages are slow hahaha) |
I'm planning on possibly doing some contribution to this library as well, and I think it was mentioned in a previous issue, but OpenCV 2.4.1 does not work with it, the latest that works seems to be 2.3.1a. 2.3.1a also fails on some tests on the version in NPM, but works fine on master. @talvarez, I'm getting the same build errors as peterbraden with 2.3.1a, but I haven't taken a good look at the code yet. |
@clarle Ok... I will upgrade to 2.3.1 (the code I proppose for the Pull Request is working perfect with 2.2) and check if it's working. |
Although I'd like the library to work with as many versions of OpenCV as possible, perhaps it would be best if we picked a specific version and worked to that. The test suite is currently using 2.1 with travis CI - if we can update that to a more recent version then maybe we can all get on a single version. |
I propose 2.3.1a, simply because it's the latest one that works with the current master. I'm not sure why the most recent one fails on 2.4, but I don't know if it's worth spending the time to investigate the matter. |
It's ok with 2.3.1 for me, I will upgrade to it in these days |
I'm excited to merge your changes! It's great that we're settling on aversion now, so we can all be on the same page. I'm gonna try and grab some time and change the tests over to that build (if you guys know of any apt packages for that it'd be great!) |
…e vector compile problem
AndHERE IS... the final (I think) merge, is working properly with 2.3.1a. And the proof that is working with 2.3.1 is the ldd command output :P: sebastian@localhost:~/node-opencv$ ldd build/Release/opencv.node |
I haven't got it installed yet, so I'm gonna take your word and just pull this in. This is probably gonna break the travis CI tests, and I'd like to fix them, so if you have any idea how best to install 2.3 in the .travis.yml then please let me know. Thanks for the patch! |
Some additions (examples, libuv, videocapture)
Well, I never used Travis.. and in fact, I am trying now to figure out how Thanks for apply the patch, I will be adding more functions and types for Tell me what do you think. Regards and sorry for my really bad English ahahah, I am from Argentina |
Hm, it builds for me now, but it fails some tests:
|
Erm.. so strange, and the samples of the examples dir? |
All of the examples seem to work. They're very cool by the way. :) I don't know why the old tests are failing though. I'll take a look. |
I have to admit, that I did not remember the test dir, and tested the API [sebastian@myhost node-opencv]$ ldd build/Release/opencv.node So.. is working with 2.4, but.. in my developmente pc (my house) totally |
@talvarez I'd love to keep pulling your stuff in - this is really good. As soon as I can get some time, I'll try and update open-cv and help out. Your English is great! The travis stuff is pretty simple. We just need to get the opencv build steps into a reproducable script in the travis.yml file. |
Awesome work with all of this :-). +1 |
Just wanted to give everyone the heads up that I'm continuing to work on the waf binding, and as the build is fairly machine specific I don't want to break it for everyone. If the build stops working for you please let me know with the error message. Still haven't got the tests running but I'm working on it. |
Ok you will be informed :P, but.. I think that, maybe, we have to join efforts (maybe conversation helps) in order to develop the API faster, and of course become famous AHAHA |
Any of you guys at nodeconf this week? @talvarez we should totally chat some time - you have my gchat right? |
Ehm Nodeconf is in California and.. I live in Buenos Aires, Argentina. I've added you @peterbraden to my GChat.. but, you didn't accepted me :(. |
@talvarez I've not seen the invitation - can you try again? |
I've cloned your code 2 months ago, and added some new features (methods) to your Matrix class:
ConvertGrayscale
ConvertHSVscale
Copy
AddWeighted
Canny contour detector
Dilate
I've created a new class called Contour, which allows you to work with OpenCV contour objects.
I fixed the VideoCapture class, and added the read method, which is async (using libuv), and returns new Matrix object.
Finally, I've added new examples (some of them based on OpenCV 2 Computer Vision Application Programming Cookbook)