Ask Your Question

Gopi Krishnan's profile - activity

2018-04-13 07:34:20 -0600 received badge  Popular Question (source)
2016-06-29 17:50:43 -0600 received badge  Taxonomist
2015-04-20 02:26:09 -0600 commented answer How to generate python wrapper using gen2.py

Yes Sure!!, thanks will try it.

2015-04-08 01:18:33 -0600 asked a question How to generate java wrapper for my C++ using gen_java.py?

I am trying to generate java wrapper for my c++ code using the default opencv java wrapper mechanism.

I found the "gen_java.py" file from the location: opencv-3.0.0-beta/modules/java/generator

Then ,try to give the input's to the gen_java.py ,Facing issues in conversion.

Any one can Provide a steps to do the conversion.Thanks in advance

2015-04-01 10:56:28 -0600 commented answer How Python API is generated?

i found the gen2.py and tried to generate the python wrappers,but having issues. Please see the LINK

2015-04-01 10:48:01 -0600 commented question How to handle the wrappers generated by SWIG?

@berak , i found the gen2.py and tried to generate the python wrappers,but having issues. Please see the link

2015-04-01 10:39:50 -0600 asked a question How to generate python wrapper using gen2.py

In the OpenCV build location

opencv\sources\modules\python\src2 found gen2.py

Then ,try to generate python wrapper for the function "int sample(cv::Mat image,cv::Mat &out);" . It creates python object for "Mat" Datatypes in the wrappers,But can't convert python object to Mat for my called c++ source file.

Source Language - C++

/example.cpp/

#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <iostream>

using namespace cv;
using namespace std;

int sample(Mat image,Mat &out)
{
   cv::Mat thresh; 

    if(! image.data )                              
   {
       cout <<  "Could not open or find the image" << std::endl ;


   }
  cvtColor(image, out,COLOR_BGR2GRAY);// Wait for a keystroke in the window
    return 0;
}

This my Method ,It is possible to genearte Python Wrapper for below function using the gen2.py

int sample(cv::Mat image,cv::Mat &out);

Let me know the Possiblities ? and Results?

2015-03-31 05:08:45 -0600 commented question How to handle the wrappers generated by SWIG?

Thank you berak.. Let me just walk through it.. Is there any documented source to start up quickly or to understand it in a better way?...

2015-03-31 00:56:51 -0600 commented question How to write Pyhton wrapper

Thanks, I am planning to have a common C++ development and would like to build a wrappers for other languages like Python, Java(Desktop/android), C#... Do you know how OpenCV automates the Wrapper Generation?

2015-03-31 00:53:47 -0600 commented question How to handle the wrappers generated by SWIG?

Thanks for your answer. Can you also send me the tutorials or any related documents to know how OpenCV automates the wrapper generation for java(desktop and android), C# ? If possible, can you please let us know the reason for dropping the SWIG?

2015-03-30 11:45:46 -0600 asked a question How to handle the wrappers generated by SWIG?

My intension is to generate wrappers or bindings on top of C++ , for languages like java desktop,java andriod,python,c# and ios.

I found the tool called SWIG and tried. However, its hard to work with it for non-primitive data types.

I know that OpenCV community is automating the wrappers generation using either tools like SWIG or through some scripts exclusively written.

So far, from my analysis, i got to know that there are some scripts for C++ -> Python Bindings.

Can anyone help me to know the how opencv community handles wrapper generation?

Any help with tutorials, Source Codes would be great.

2015-03-09 10:42:57 -0600 asked a question How to write Pyhton wrapper

I have no idea to create a python wrapper file for my source code, Any one of the expert can provide me a solution

#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <iostream>

using namespace cv;
using namespace std;

int my(Mat image)
{
   cv::Mat out; 
   int z1=10;
    if(! image.data )                                          // Check for invalid input
   {
       cout <<  "Could not open or find the image" << std::endl ;  
   }
  cvtColor(image, out,COLOR_BGR2GRAY);
  imshow( "Display window", out);                   // Show our image inside it.
  waitKey(0);                                                // Wait for a keystroke in the window
    return z1;
}
2015-01-09 03:30:33 -0600 received badge  Enthusiast
2015-01-08 00:24:26 -0600 asked a question architecture x86_64 error,While using c++ code in flandmark detection on mac osX

While build my OpenCV project in the netbeans IDE also using dlibc++,I am struggle to clear the following errors.

ld: file too small (length=8) file '../build-dlib/libdlib.a' for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [dist/Debug/GNU-MacOSX/dlibsample] Error 1
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2

Any One can explain the issue in which side netbeans/mac osX/ dlibc++ library

2015-01-06 08:47:39 -0600 commented question facelandmark Detection

thnx berak!!

2015-01-06 08:37:26 -0600 commented question facelandmark Detection

berak i am new to this forum, can you more specific about your comment to closed the question,pls

2015-01-06 08:11:31 -0600 asked a question facelandmark Detection

I tried to implement the flandmark detection for my project in opencv . I followed the sourcecode link. When i build the project and compile got the following errors

 "flandmark_free(model_struct*)", referenced from:
      _main in lmd.o
  "flandmark_init(char const*)", referenced from:
      _main in lmd.o
  "flandmark_detect(_IplImage*, int*, model_struct*, double*, int*)", referenced from:
      detectFaceInImage(_IplImage*, _IplImage*, CvHaarClassifierCascade*, model_struct*, int*, double*) in lmd.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [dist/Debug/GNU-MacOSX/landmarkdetection] Error 1
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2

Anyone can Provide suggestion to clear my issues

2015-01-06 08:03:52 -0600 received badge  Critic (source)
2015-01-06 07:50:12 -0600 commented question facelandmark Detection error

surfed it in google can't able to run the code successfully

2015-01-06 07:48:42 -0600 asked a question facelandmark Detection error

I tried to implement the flandmark detection in OpenCV and followed the below Steps:

  1. Downloaded the source code from :Link

  2. Use this code in OpenCV and added the Respective Headers and Libraries to the Project

  3. I got the following errors: (I am Using netbeans in Mac OSX Yosemitte)

    Undefined symbols for architecture x86_64: "flandmark_free(model_struct)", referenced from: _main in lmd.o "flandmark_init(char const)", referenced from: _main in lmd.o "flandmark_detect(_IplImage, int, model_struct, double, int)", referenced from: detectFaceInImage(_IplImage, _IplImage, CvHaarClassifierCascade, model_struct, int, double) in lmd.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make[2]: [dist/Debug/GNU-MacOSX/landmarkdetection] Error 1 make[1]: [.build-conf] Error 2 make: ** [.build-impl] Error 2

2015-01-06 03:38:51 -0600 asked a question Adding Boost C++ Libraries to OpenCV - Error

I test the sample program by using BOOST C++ Library , On Compiling the sample Program shows following error log.

Sample Program : main.cpp

#include <iostream>
#include <boost/thread/thread.hpp>
#include <boost/thread/mutex.hpp>
#include <boost/bind.hpp>

boost::mutex io_mutex;

void count(int id) 
{
    for (int i = 0; i < 10; ++i) 
{
        boost::mutex::scoped_lock lock(io_mutex);
        std::cout << id << ": " << i << std::endl;
    }
}

int main(int argc, char* argv[])
{
    boost::thread thrd1(boost::bind(&count, 1));
    boost::thread thrd2(boost::bind(&count, 2));
    thrd1.join();
    thrd2.join();
    return 0;
}

Error Log:

CLEAN SUCCESSFUL (total time: 788ms)
"/Applications/Xcode.app/Contents/Developer/usr/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
"/Applications/Xcode.app/Contents/Developer/usr/bin/make"  -f nbproject/Makefile-Debug.mk dist/Debug/GNU-MacOSX/boosttest
mkdir -p build/Debug/GNU-MacOSX
rm -f "build/Debug/GNU-MacOSX/main.o.d"
g++    -c -g -I/usr/local/include -I/usr/local/include/opencv -I/usr/local/include/opencv2 -I../boost-master -MMD -MP -MF "build/Debug/GNU-MacOSX/main.o.d" -o build/Debug/GNU-MacOSX/main.o main.cpp
mkdir -p dist/Debug/GNU-MacOSX
g++     -o dist/Debug/GNU-MacOSX/boosttest build/Debug/GNU-MacOSX/main.o -L/usr/local/lib -L../boost-master/libs /usr/local/lib/libopencv_calib3d.2.4.9.dylib /usr/local/lib/libopencv_calib3d.2.4.dylib /usr/local/lib/libopencv_calib3d.dylib /usr/local/lib/libopencv_contrib.2.4.9.dylib /usr/local/lib/libopencv_contrib.2.4.dylib /usr/local/lib/libopencv_contrib.dylib /usr/local/lib/libopencv_core.2.4.9.dylib /usr/local/lib/libopencv_core.2.4.dylib /usr/local/lib/libopencv_core.dylib /usr/local/lib/libopencv_features2d.2.4.9.dylib /usr/local/lib/libopencv_features2d.2.4.dylib /usr/local/lib/libopencv_features2d.dylib /usr/local/lib/libopencv_flann.2.4.9.dylib /usr/local/lib/libopencv_flann.2.4.dylib /usr/local/lib/libopencv_flann.dylib /usr/local/lib/libopencv_gpu.2.4.9.dylib /usr/local/lib/libopencv_gpu.2.4.dylib /usr/local/lib/libopencv_gpu.dylib /usr/local/lib/libopencv_highgui.2.4.9.dylib /usr/local/lib/libopencv_highgui.2.4.dylib /usr/local/lib/libopencv_highgui.dylib /usr/local/lib/libopencv_imgproc.2.4.9.dylib /usr/local/lib/libopencv_imgproc.2.4.dylib /usr/local/lib/libopencv_imgproc.dylib /usr/local/lib/libopencv_legacy.2.4.9.dylib /usr/local/lib/libopencv_legacy.2.4.dylib /usr/local/lib/libopencv_legacy.dylib /usr/local/lib/libopencv_ml.2.4.9.dylib /usr/local/lib/libopencv_ml.2.4.dylib /usr/local/lib/libopencv_ml.dylib /usr/local/lib/libopencv_nonfree.2.4.9.dylib /usr/local/lib/libopencv_nonfree.2.4.dylib /usr/local/lib/libopencv_nonfree.dylib /usr/local/lib/libopencv_objdetect.2.4.9.dylib /usr/local/lib/libopencv_objdetect.2.4.dylib /usr/local/lib/libopencv_objdetect.dylib /usr/local/lib/libopencv_ocl.2.4.9.dylib /usr/local/lib/libopencv_ocl.2.4.dylib /usr/local/lib/libopencv_ocl.dylib /usr/local/lib/libopencv_photo.2.4.9.dylib /usr/local/lib/libopencv_photo.2.4.dylib /usr/local/lib/libopencv_photo.dylib /usr/local/lib/libopencv_stitching.2.4.9.dylib /usr/local/lib/libopencv_stitching.2.4.dylib /usr/local/lib/libopencv_stitching.dylib ...
(more)
2015-01-05 09:05:07 -0600 commented question Undefined symbols for architecture x86_64 ,While using c and c++ code in my Project

No, Berak ,In the source link also they mentioned to include the two .cpp files to the project.But some issues is happening

2015-01-05 06:43:39 -0600 commented question Undefined symbols for architecture x86_64 ,While using c and c++ code in my Project

I added that Libraries too beark.

2015-01-05 06:40:09 -0600 received badge  Supporter (source)
2015-01-05 05:58:33 -0600 commented question Undefined symbols for architecture x86_64 ,While using c and c++ code in my Project

CLEAN SUCCESSFUL (total time: 568ms) "/Applications/Xcode.app/Contents/Developer/usr/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf "/Applications/Xcode.app/Contents/Developer/usr/bin/make" -f nbproject/Makefile-Debug.mk dist/Debug/GNU-MacOSX/landmarkdetection mkdir -p build/Debug/GNU-MacOSX rm -f "build/Debug/GNU-MacOSX/lmd.o.d" g++ -c -g -I/usr/local/include -I/usr/local/include/opencv -I/usr/local/include/opencv2 -MMD -MP -MF "build/Debug/GNU-MacOSX/lmd.o.d" -o build/Debug/GNU-MacOSX/lmd.o lmd.cpp mkdir -p dist/Debug/GNU-MacOSX g++ -o dist/Debug/GNU-MacOSX/landmarkdetection build/Debug/GNU-MacOSX/lmd.o -L/usr/local/lib -lopencv_calib3d.2.4.9 -lopencv_calib3d.2.4 -lopencv_calib3d -lopencv_contrib.2.4.9 -lopencv_contrib.2.4 -lopencv_contrib -lopencv_core.

2015-01-05 05:56:46 -0600 commented question Undefined symbols for architecture x86_64 ,While using c and c++ code in my Project

CLEAN SUCCESSFUL (total time: 568ms) "/Applications/Xcode.app/Contents/Developer/usr/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf "/Applications/Xcode.app/Contents/Developer/usr/bin/make" -f nbproject/Makefile-Debug.mk dist/Debug/GNU-MacOSX/landmarkdetection mkdir -p build/Debug/GNU-MacOSX rm -f "build/Debug/GNU-MacOSX/lmd.o.d" g++ -c -g -I/usr/local/include -I/usr/local/include/opencv -I/usr/local/include/opencv2 -MMD -MP -MF "build/Debug/GNU-MacOSX/lmd.o.d" -o build/Debug/GNU-MacOSX/lmd.o lmd.cpp mkdir -p dist/Debug/GNU-MacOSX g++ -o dist/Debug/GNU-MacOSX/landmarkdetection build/Debug/GNU-MacOSX/lmd.o -L/usr/local/lib -lopencv_calib3d.2.4.9 -lopencv_calib3d.2.4 -lopencv_calib3d -lopencv_contrib.2.4.9 -lopencv_contrib.2.4 -lopencv_contrib -lopencv_core.

2015-01-05 04:24:09 -0600 received badge  Editor (source)
2015-01-05 04:20:17 -0600 asked a question Undefined symbols for architecture x86_64 ,While using c and c++ code in my Project

I tried to implement the Face landmark detection code,I added the all dependency header files for my Project.When i build the project it shows the errors as:

Undefined symbols for architecture x86_64: "flandmark_free(model_struct)", referenced from: _main in lmd.o "flandmark_init(char const)", referenced from: _main in lmd.o "flandmark_detect(_IplImage, int, model_struct, double, int)", referenced from: detectFaceInImage(_IplImage, _IplImage, CvHaarClassifierCascade, model_struct, int, double) in lmd.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make[2]: [dist/Debug/GNU-MacOSX/landmarkdetection] Error 1 make[1]: [.build-conf] Error 2 make: ** [.build-impl] Error 2](http://)

Any one can give ideas to resolve the issue?

2015-01-02 04:26:59 -0600 asked a question While Predicting the faces from webcam,getting negative value,Anyone provide the reason

While Predicting the faces from webcam,getting negative value.Using NU_SVR (Support Vector Regression).I used the following Parameters in my code: params.svm_type = SVM::NU_SVR; params.kernel_type = SVM::LINEAR; params.term_crit.type = CV_TERMCRIT_ITER ; params.p=1.0; params.nu=0.2; params.term_crit.max_iter = 1000; params.term_crit.epsilon = 1e-6;

2015-01-02 04:21:37 -0600 commented question How to Build OpenCV 3.0 beta with minGW

Thnx a lot

2014-12-01 00:36:22 -0600 asked a question How to Build OpenCV 3.0 beta with minGW

Any one can tried the OpenCV 3.0 with minGW in netbeans 7.3.1.Provide the build instructions to try the beta version of OpenCV

2014-11-27 23:56:53 -0600 asked a question OpenCV 3.0 beta build error with MinGW

While Building the OpenCV 3.0.0 Beta version with MinGW 4.8.9 it shows cross compilation error ( CMake fails to determine the bitness of target platform.)