You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
441 B
C++
21 lines
441 B
C++
#include "libHvDevice/HvDeviceEx.h"
|
|
#include <stdio.h>
|
|
#include <unistd.h>
|
|
|
|
|
|
int main()
|
|
{
|
|
char chIp[64] = {0};
|
|
printf("please input the camera ip address.\n");
|
|
scanf("%s", chIp);
|
|
getchar();
|
|
HVAPI_HANDLE_EX hCameraHandle = HVAPI_OpenEx(chIp, 0);
|
|
if (hCameraHandle == NULL)
|
|
{
|
|
printf("HVAPI_OpenEx %s failed.\n", chIp);
|
|
return 0;
|
|
}
|
|
printf("HVAPI_OpenEx %s success.\n", chIp);
|
|
return 0;
|
|
|
|
} |