Ask Your Question

mat_pier's profile - activity

2013-08-05 19:23:21 -0500 asked a question making effective pull requests

I've been using OpenCV over the past 3+ years. I've been an enthusiastic user, now trying to be a contributor to the project.

I'm also an newbie on Git. I know how to clone, fork, commit, push code to Github from my PC, edit code on Github. I panic when I have to do complex stuff (I just google in that case).

I have the following questions after doing pull request to the OpenCV project.

  1. What do I do if pull requests shows that my code has certain warnings. Will that be fixed by the person by who is supposed to handle my pull request?
  2. What do I do if there are errors. How to make a new request after fixing errors?

I both cases, do I delete my old fork, make a new fork of project, make changes again, make sure that there are no errors and request a new pull?

2013-08-04 17:32:09 -0500 asked a question adding new features to opencv headers

I'm trying to contribute my first code to OpenCV. For the newly contributed code, I included a function prototype in the respective header file (ml.hpp in my case). My code builds without a problem.

I also wrote my documentation for the included features in the .rst file. Added the reference to the new documentation file in the appropriate page.

However, I'm not able to decode the following error message which says function was included in rst file but not found in OpenCV headers

/home/user/slave/builds/precommit_docs/src/opencv/modules/ml/doc/filename.rst:136 error 011: C++ function train is documented but is not found in OpenCV headers. It is documented as:

Is it the problem with rst file or header files?

2013-08-04 06:04:54 -0500 received badge  Scholar (source)
2013-07-22 21:51:38 -0500 commented answer How do I install the old cv not cv2?! Python

@berak: I think the above code doesn't work in the new version anymore.

2013-07-22 21:46:33 -0500 received badge  Student (source)
2013-07-22 21:42:59 -0500 asked a question add a new test file to OpenCV source

I'm trying to contribute to the source code. I have written a new feature. It got compiled properly and is working as expected (after I run make; sudo make install).

I wrote a test file in opencv/modules/module_name/test/test_abc.cpp

I also enabled BUILD_TESTS before running make.

However, when I run make the new test file doesn't get included.

What am I missing? Where do I tweak settings so that the my test file is included?

2013-06-11 08:56:08 -0500 answered a question How do I install the old cv not cv2?! Python

Looks like they removed the support. I'm not sure how to load yaml/xml files in OpenCV Python API. I just moved to the older version (2.4.1).

2013-06-03 08:21:26 -0500 asked a question Usage of CV_CALL when contributing source code

This question is for the OpenCV source code contributors out there.

Is it necessary to write all OpenCV function calls inside source code of OpenCV using CV_CALL(< function name >). For example, a simple assignment statement was written as

        CV_CALL(sum[cls]              = cvCreateMat( 1, var_count, CV_64FC1 ));
2013-05-04 14:53:28 -0500 commented question build opencv project from source

When I run a $sudo make install I get the following error CMake Error at modules/python/cmake_install.cmake:56 (FILE): file INSTALL cannot find "path_to_project/opencv/modules/python/src2/cv.py". Call Stack (most recent call first): modules/cmake_install.cmake:77 (INCLUDE) cmake_install.cmake:57 (INCLUDE)

make: * [install] Error 1

2013-05-04 07:29:41 -0500 commented question build opencv project from source

I have not. The main purpose for my fork was to make changes, request a pull from my changes to source code. I'm not very good at git. I don't know if it is appropriate to make a fork of older version, make changes and request them to pull my changes (made on older one). Let me if I'm missing something.

2013-05-03 22:11:00 -0500 asked a question build opencv project from source

I forked the OpenCV project from git://github.com/Itseez/opencv.git yesterday and wanted to make some changes to the source. Before making any changes, I wanted to test it by building the project.

I tried to build it from the source using:

$mkdir build
$cd build
$cmake .. 
$make

All the above commands run fine. But when I run

$sudo make install

I get an error saying cv.py file is missing and the build fails. I was wondering if anyone else have this issue.

2013-05-02 09:54:52 -0500 answered a question Control PTZ

This question is more device specific.

Every PTZ camera has its own way of handling controls (some use custom API with socket programming in C++, some could be controlled by requests over HTTP).

You will need to customize this appropriate to your application. AFAIK there is no single API that is common for all PTZ cameras.

Look into the developer manual for that specific manufacturer and model number. Looks like they have an SDK and you could use it with your Visual C++ code.

2013-05-02 09:33:04 -0500 received badge  Supporter (source)