get_CameraCount

Post Reply
txemi
Posts: 7
Joined: Fri Jun 29, 2007 11:46 am

get_CameraCount

Post by txemi »

Hi.

I have the following problem:

I had modified the pointcloud example adding the following lines of code:

Code: Select all

LONG lNumCamerasDetected;
result = pointCloud->get_CameraCount(&lNumCamerasDetected);
after the call:

Code: Select all

pointCloud.CoCreateInstance(_uuidof(NPPointCloud));
Also I have put the call to the function after the call to Start of Point Cloud.

Code: Select all

pointCloud->Start();
result = pointCloud->get_CameraCount(&lNumCamerasDetected);
The problem is that the result is lNumCamerasDetected == 0

what I am doing wrong?

Thanks.
beckdo
Posts: 520
Joined: Tue Jan 02, 2007 2:02 pm

Re: get_CameraCount

Post by beckdo »

Getting the camera info in the current release is a little difficult. You need wait until point cloud data is being received. So your last attempt is close the only problem is that there is a slight delay before all the camera threads spin up and start producing data.

The next release of the point cloud software is coming very soon and will include a change to allow you to get the camera information as soon as the calibration profile is loaded which will make this much easier.
Post Reply