资源简介
资源中是官网的Basler工业相机二次开发的SDK,内有c,c++,c#三个版本
代码片段和文件信息
/*
This sample illustrates how to grab images
using a GigE Vision action command to trigger multiple cameras.
At least 2 connected GigE cameras are required for this sample.
*/
#ifndef _WIN32_WINNT
# define _WIN32_WINNT 0x0400
#endif
#include
#include
#include
#include
#include
#include
/* Limits the amount of cameras used for grabbing.
It is important to manage the available bandwidth when grabbing with multiple
cameras. This applies for instance if two GigE cameras are connected to the
same network adapter via a switch. To manage the bandwidth the GevSCPD
interpacket delay parameter and the GevSCFTD transmission delay parameter can
be set for each GigE camera device. The “Controlling Packet Transmission Timing
with the Interpacket and frame Transmission Delays on Basler GigE Vision Cameras“
Application Note (AW000649xx000) provides more information about this topic. */
#define MAX_NUM_DEVICES 4
#define GIGE_PACKET_SIZE 1500 /* Size of one Ethernet packet. */
#define GIGE_PROTOCOL_OVERHEAD 36 /* Total number of bytes of protocol overhead. */
#define CHECK( errc ) if ( GENAPI_E_OK != errc ) printErrorAndExit( errc )
const uint32_t AllGroupMask = 0xffffffff;
/* This function can be used to wait for user input at the end of the sample program. */
void pressEnterToExit(void);
/* This method demonstrates how to retrieve the error message for the last failed function call. */
void printErrorAndExit( GENAPIC_RESULT errc );
int main(void)
{
GENAPIC_RESULT res; /* Return value of pylon methods. */
size_t i; /* Generic loop variable */
size_t numDevicesEnumerated; /* Number of available devices. */
size_t numDevicesToUse; /* Number of usable devices. */
_Bool isAvail; /* Used for checking feature availability. */
size_t enumeratedDeviceIndex; /* Index of device when accessing the enumeration result. */
size_t deviceIndex; /* Index of device used in this sample. */
PYLON_WAITobjectS_HANDLE wos = NULL; /* Wait objects. */
uint32_t DeviceKey; /* Random device key used in this session. It will be initialized below. */
uint32_t GroupKey; /* Group key for the devices. In this sample all devices will be in the same group. */
/* These are camera-specific variables. */
PYLON_DEVICE_HANDLE hDev[MAX_NUM_DEVICES]; /* Handle for the pylon device. */
PYLON_STREAMGRABBER_HANDLE hGrabber[MAX_NUM_DEVICES]; /* Handle for the pylon stream grabber. */
unsigned char *buffers[MAX_NUM_DEVICES]; /* Buffers used for grab
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 21660 2018-04-03 12:20 Samples\C\ActionCommands\ActionCommands.c
文件 10928 2018-04-03 12:20 Samples\C\ActionCommands\ActionCommands.vcproj
文件 724 2018-03-13 18:14 Samples\C\ActionCommands\debug.mak
文件 150 2018-03-13 18:14 Samples\C\ActionCommands\makefile
文件 701 2018-03-13 18:14 Samples\C\ActionCommands\release.mak
文件 184 2018-03-13 18:14 Samples\C\buildall.cmd
文件 26399 2018-04-03 12:20 Samples\C\Chunks\Chunks.c
文件 8592 2018-04-03 12:20 Samples\C\Chunks\Chunks.vcproj
文件 716 2018-03-13 18:14 Samples\C\Chunks\debug.mak
文件 150 2018-03-13 18:14 Samples\C\Chunks\makefile
文件 693 2018-03-13 18:14 Samples\C\Chunks\release.mak
文件 716 2018-03-13 18:14 Samples\C\Events\debug.mak
文件 26538 2018-04-03 12:20 Samples\C\Events\Events.c
文件 8592 2018-04-03 12:20 Samples\C\Events\Events.vcproj
文件 150 2018-03-13 18:14 Samples\C\Events\makefile
文件 684 2018-03-13 18:14 Samples\C\Events\release.mak
文件 721 2018-03-13 18:14 Samples\C\GenApiParam\debug.mak
文件 34309 2018-04-03 12:20 Samples\C\GenApiParam\GenApiParam.c
文件 8607 2018-04-03 12:20 Samples\C\GenApiParam\GenApiParam.vcproj
文件 150 2018-03-13 18:14 Samples\C\GenApiParam\makefile
文件 698 2018-03-13 18:14 Samples\C\GenApiParam\release.mak
文件 724 2018-03-13 18:14 Samples\C\GrabTwoCameras\debug.mak
文件 24956 2018-04-03 12:20 Samples\C\GrabTwoCameras\GrabTwoCameras.c
文件 8616 2018-04-03 12:20 Samples\C\GrabTwoCameras\GrabTwoCameras.vcproj
文件 150 2018-03-13 18:14 Samples\C\GrabTwoCameras\makefile
文件 701 2018-03-13 18:14 Samples\C\GrabTwoCameras\release.mak
文件 852 2018-03-13 18:14 Samples\C\HowToBuildSamples.txt
文件 724 2018-03-13 18:14 Samples\C\OverlappedGrab\debug.mak
文件 150 2018-03-13 18:14 Samples\C\OverlappedGrab\makefile
文件 17869 2018-04-03 12:20 Samples\C\OverlappedGrab\OverlappedGrab.c
............此处省略401个文件信息
- 上一篇:OpenGL3D
- 下一篇:c++ primer 第五版 中文版 源代码
相关资源
- 完善版TreeTwo.rar
- platformSDK
-
Jli
nkARM SDK 部分API接口 - DirectX 9.0 SDK
- GDI+SDK
- OneNET平台EDP协议C语言SDK
- SDK入门(用C和C++来调用WindowsAPI)
- 扫雷vc++sdk
- VC++开发基于Microsoft Speech SDK的TTS软件
- HIKVISION工业相机SDK的VS与C++开发
- 基于 Foxit_PDF_SDK_DLL_3.1 破解版 实现的
- 易语言海康SDK类模块,包含修改ip和获
- windows8.1 sdk离线包
- opc da client sdk c++ 源码(开源)
- ESP8266红外遥控基安信可sdk
- 实现图像实时采集(使用BaslerSDK)-
- CVR100UD身份证阅读器二次开发SDK开发说
- nRF52 BLE配置(main.c)
- HCNetSDK 海康 NVR 回放
- C语言 Basler相机开发包
- Ezcad sdk金橙子打标卡
- basler相机SDK类C++
- VC++蓝牙SDK源码
评论
共有 条评论