Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   General Forum (http://www.chiefdelphi.com/forums/forumdisplay.php?f=16)
-   -   Initializing the Axis Camera (http://www.chiefdelphi.com/forums/showthread.php?t=105075)

SoyStuff 26-03-2012 16:01

Initializing the Axis Camera
 
How would one go about initializing the axis camera in the 2012 vision sample in C++and get an image? At this point, we've tried two methods.
Our camera is initialized exactly as it was in the 2010 vision sample. Here is how we tried to retrieve an image.
Code:

ColorImage* image;
image = axisCamera.GetImage();

I understand that this returns an HSLImage. Does that matter?

We've also tried this:
Code:

ColorImage* image;
axisCamera.GetImage(image);

This just causes us to lose communication. We don't really know why.

Please, enlighten us.

Thank you.

agartner01 26-03-2012 17:27

Re: Initializing the Axis Camera
 
Are you saying your program crashes, or doesn't compile? Have you tried all of these?

Code:

ColorImage *Image = camera.GetImage();
HSLImage *Image = camera.GetImage();
RGBImage *Image = camera.GetImage();

or perhaps:

RGBImage image;
camera.GEtImage(&image);


SoyStuff 26-03-2012 21:58

Re: Initializing the Axis Camera
 
The crashing was actually a problem that I should have caught before I posted. I forgot that the sample code expects that image has been declared dynamically. I fixed that. We still can't find a target, though.


All times are GMT -5. The time now is 16:59.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi