Ask Your Question

kaushal's profile - activity

2015-11-13 11:56:05 -0600 received badge  Famous Question (source)
2015-01-28 23:13:39 -0600 received badge  Notable Question (source)
2014-10-03 16:15:13 -0600 received badge  Popular Question (source)
2014-01-13 23:23:02 -0600 answered a question How do I get Prosilica / Allied Vision Camera (PVAPI) working with OpenCV 2.4?

hello there,

please share, information how do i interface Procellica camera GC2450C under Ubuntu 12.04 LTS ..?

2014-01-13 21:54:50 -0600 answered a question DCT Coeficient Removing In OpenCV

i hope initially coefficients are in 8 bit,

first multiply each coefficients with 2048, before any processing and convert them to an integer, then do your processing after that divide each process data by 2048.

2014-01-13 04:37:12 -0600 asked a question how to set environment variable path on ubuntu 12.04 lts for OpenCV

how to set environment variable path on ubuntu 12.04 lts for OpenCV based application like image display or video play.

----------------------------------------------------- my sample code--------

include "stdio.h"

include "/home/kaushal/OpenCV/opencv-2.4.7/include/highgui.h"

int main( int argc, char** argv )

{ IplImage* img = 0; if( argc < 2 ) {printf( "Usage: Accepts one image as argument\n" ); exit( EXIT_SUCCESS );

}

img = cvLoadImage( argv[1] );

if( !img ) { printf( "Error loading image file %s\n", argv[1]); exit( EXIT_SUCCESS );

}

cvNamedWindow( "Example1", CV_WINDOW_AUTOSIZE ) cvMoveWindow( "Example1", 100, 100 ); cvShowImage( "Example1", img ); cvWaitKey( 0 ); cvReleaseImage( &img ); cvDestroyWindow( "Example1" ); return EXIT_SUCCESS;

}

//---------------------and the Output is------------

kaushal@Ubuntu12:~/Desktop/OpenCV/test3$ g++ test3.cpp -o test3 -lopencv_core -lopencv_imgproc -lopencv_highgui -lopencv_objdetect

test3.cpp:2:64: fatal error: /home/kaushal/OpenCV/opencv-2.4.7/include/highgui.h: No such file or directory compilation terminated.

2013-12-30 23:32:46 -0600 answered a question How to Capture Color Video From GC2450C GigE Cam.

Hello Friend's

Got the solution.

by doing following changes you will have color video out.

define CH_COLOR 3

IplImage *rgbImage = cvCreateImage(cvSize((int)width, (int)height), IPL_DEPTH_8U, CH_COLOR);
rgbImage->widthStep = (int)width * 3;

regards

2013-12-28 03:12:01 -0600 received badge  Necromancer (source)
2013-12-26 05:30:45 -0600 answered a question Using GigE Cams with OpenCv

plz follow the link below,

http://answers.opencv.org/question/25497/how-do-i-get-allied-vision-camera-gc2450c-working/

camera Used GigE GC2450C and capture video is Monochrome.

2013-12-26 05:23:31 -0600 asked a question How to Capture Color Video From GC2450C GigE Cam.

Hello Friend's

This is with respect to my previous post

How do I get Allied Vision Camera (GC2450C) working with OpenCV 2.4?

I am able to capture Monochrome Video, now how do i make this capture video a color Video ??

Regards

Kaushal

2013-12-19 22:50:45 -0600 commented answer How do I get Allied Vision Camera (GC2450C) working with OpenCV 2.4?

Hello Friends,

So my GigE Camera GC2450C along with OpenCV2.4.7 is start capturing mon Video.

Thanking you for your kind support.

now working on How to make it color video format...?

Regards

kaushal

2013-12-19 00:34:25 -0600 commented question What is the meaning of CvCaptureQueueFrame return value: 5

Hello Friends,

my function PvCaptureQueueFrame(), now it start returning 0 mean Function successful as mantioned in AVT/Prosilica PvAPI Manula Page 51 return Value

i have do the following

while((errCode = PvCaptureWaitForFrameDone((myCamera.Handle,&(myCamera.Frame[i]),2000)) == ePvErrTimeOut)

cout<<"Waiting for Frame to return to HOST"<<endl

and the Code Output is always:

Waiting for Frame to return to HOST

Waiting for Frame to return to HOST

Waiting for Frame to return to HOST Waiting for Frame to return to HOST

Waiting for Frame to return to HOST

Waiting for Frame to return to HOST

Guide me in this case what should i do.

Regards

kaushal

2013-12-18 22:50:45 -0600 received badge  Editor (source)
2013-12-18 22:50:10 -0600 asked a question What is the meaning of CvCaptureQueueFrame return value: 5

Hello Friends,

my maxframeCounter = 100,000;

my ErrCode = CvCaptureQueueFrame((myCamera.handle),&(myCamera.Frame),NULL);

The Return Value of ErrCode = 5;

What is the meaning of this return Value = 5, and what precaution should i take to overcome from this value from the document the return value of ErrCode Supposed to any one from:

  1. ePvErrSucess

2.ePvErrUnplugged

3.ePvErrBadSequence

4.ePvErrQueueFull

From The Document AVT/Prosilica PvAPI Manual

http://www.alliedvisiontec.com/fileadmin/content/PDF/Software/Prosilica_software/Prosilica_software_doc/PvAPI_SDK_Manual.pdf

PageNo. 51

Regards Kaushal

2013-12-17 22:28:35 -0600 commented answer How do I get Allied Vision Camera (GC2450C) working with OpenCV 2.4?

Hello Friends,

Finally some Positive signal start coming. probably i am using corrupt PvAPI.dll, now code start working and saying //----------------------------------------------------------

Frame capturing configured, starting the actual capture

numcams = 1 Camera ID = 137937 Frame Size = 50184000 Frame Width = 2448 Frame Height = 2050

Start the acquisition 0

It Stuck at PvCaptureQueueFrame(myCamera.Handle,&(myCamera.Frame),NULL)

Line No:128

if(!PvCaptureQueueFrame(myCamera.Handle, &(myCamera.Frame), NULL))

Please guide me

regards

2013-12-17 22:03:51 -0600 commented answer How do I get Allied Vision Camera (GC2450C) working with OpenCV 2.4?

I am able to compile my GigE code along with openCV libraries without any error.

but it ask for PvAPI.dll though i have PvAPI.dll but I just wanted to know where to put "PvAPI.dll",

as each time i run my code it ask about PvAPI.dll saying that

PvAPI.dll is missing from your computer, try reinstalling the program to fixm this problem

if i put this dll in my OpnCV dll's,during run time it says

"The application was unable to start correctly (0XC000007b.)"

Regards

2013-12-17 11:38:56 -0600 received badge  Student (source)
2013-12-17 03:44:42 -0600 commented answer How do I get Allied Vision Camera (GC2450C) working with OpenCV 2.4?

As you have suggest, the error is because i am trying to link old version of opencv, now i have remove this file along with other file have "210d.lib", and also configure C/C++ and Linker as mentioned below 1. C/C++ --> Additional Include Directories: "C:\Program Files \Allied Vision Technologies\GigESDK\lib-pc" 2. C/C++ --> Additional Include Directories: "C:\Program Files \Allied Vision Technologies\GigESDK\inc-pc"

3.Linker->Additional Library Directories "C:\Program Files \Allied Vision Technologies\GigESDK\lib-pc" then all error gone and new error come Like:

Error 2 error LNK2005: __initp_misc_invarg already defined in LIBCMTD.lib(invarg.obj) C:\Program Files\Allied Vision Technologies\GigESDK\examples\App5 - Snap O

2013-12-17 01:09:14 -0600 commented question How do I get Allied Vision Camera (GC2450C) working with OpenCV 2.4?

after getting sdk http://www.alliedvisiontec.com/apac/products/legacy.html, how do i connect this SDK during opencv rebuild process

2013-12-17 01:01:25 -0600 commented answer How do I get Allied Vision Camera (GC2450C) working with OpenCV 2.4?

Hello There, Thanking you for your reply.

  1. I have download and install the AVT PvAPI http://www.alliedvisiontec.com/apac/products/legacy.html

  2. I have already compiled and installed OpenCV 2.4.7, and currently using it with VS2010

  3. I have got the sample Code from allied Vision "http://www.alliedvisiontec.com/emea/support/knowledge-base.html?tx_nawavtknowledgebase_piList[uid]=119&tx_nawavtknowledgebase_piList[mode]=single" but it was written in VS6 and i have convert it in VS10 and then compiled it generate an error saying

error LNK 1104:cannot open file 'cv210d.lib'

2013-12-16 04:57:08 -0600 asked a question How do I get Allied Vision Camera (GC2450C) working with OpenCV 2.4?

I start exploring OpenCV few days back, and successfully able to grab video/image from iBall webCam.

I have GC2450C Allied Vision Camera and my OS is windows-7, how do i read this GigE Camera Image/Video Through OpenCV.

my OpenCV directory structure show that i have cap_pvapi.cpp file is available (dono what is this but every time i start googling these key word CV_CAP_PVAPI visible on monitor)

c:\OpenCV\opencv\source\modules\highgui\cap_pvapi.cpp