資源簡(jiǎn)介
資源中是官網(wǎng)的Basler工業(yè)相機(jī)二次開發(fā)的SDK,內(nèi)有c,c++,c#三個(gè)版本

代碼片段和文件信息
/*
???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
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件??????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個(gè)文件信息
- 上一篇:OpenGL3D
- 下一篇:c++ primer 第五版 中文版 源代碼
評(píng)論
共有 條評(píng)論