@English
I buyed POP2 several days before. It works well when using “Revo Scan” but when I tried get the depth stream through C using Visual Studio 2017, i got the error “camera connect failed(3)”. The ERROR CODE was 3 which means ERROR_DEVICE_NOT_CONNECT i guess. So is the SDK compatible with POP2?
@Chinese
我最近购买了POP2,使用Revo Scan应用的时候它可以正常运行,但是当我试图使用Visual Studio 2017和C语言获取相机的信息流的时候,程序打开相机失败,错误代码是3,我猜是ERROR_DEVICE_NOT_CONNECT。所以请问官方网站下载的SDK适用于POP2相机吗?
@English
Here is the code:
@Chinese
代码如下:
#define _CRT_SECURE_NO_WARNINGS
#include <3DCamera.hpp>
int main() {
printf(“This is test1!\n\n”);
ERROR_CODE ret;
// get camera pointer and connect a valid camera
cs::ICameraPtr camera = cs::getCameraPtr();
while (1)
{
ret = camera->connect();
if (ret != SUCCESS)
{
printf("camera connect failed(%d)!\n", ret);
//return -1;
continue;
}
break;
}
}