实例介绍
利用QT Creator调用海康SDK,采用接口的方式实例化相机对应,采集图像,其中相机SDK中包含常用的设置功能如设置触发模式、触发源、曝光时间、ROI尺寸、心跳时间、帧率控制等。添加线程功能,实现单张和连续图像采集。
【实例截图】
【核心代码】
6aebdfc4a319614baf4d6442db6e708d.rar
└── StudyQT
├── camerainterface.cpp
├── camerainterface.h
├── Hik_Includes
│ ├── CameraParams.h
│ ├── GenICam
│ │ ├── Base
│ │ │ ├── GCArray.h
│ │ │ ├── GCBase.h
│ │ │ ├── GCError.h
│ │ │ ├── GCException.h
│ │ │ ├── GCLinkage.h
│ │ │ ├── GCNamespace.h
│ │ │ ├── GCRTSSUtilities.h
│ │ │ ├── GCString.h
│ │ │ ├── GCStringVector.h
│ │ │ ├── GCSynch.h
│ │ │ ├── GCTypes.h
│ │ │ └── GCUtilities.h
│ │ ├── CLProtocol
│ │ │ ├── CLAllAdapter.h
│ │ │ ├── ClAllSerial.h
│ │ │ ├── CLAutoBuffer.h
│ │ │ ├── CLException.h
│ │ │ ├── CLPort.h
│ │ │ ├── ClProtocol.def
│ │ │ ├── CLProtocol.h
│ │ │ ├── CLProtocolLinkage.h
│ │ │ ├── ClSerial.def
│ │ │ ├── ClSerial.h
│ │ │ ├── ClSerialTypes.h
│ │ │ ├── CVersion.h
│ │ │ ├── DeviceID.h
│ │ │ ├── ISerialAdapterCStyle.h
│ │ │ ├── ISerialAdapter.h
│ │ │ ├── ISerial.h
│ │ │ └── XMLID.h
│ │ ├── GenApi
│ │ │ ├── Autovector.h
│ │ │ ├── ChunkAdapterDcam.h
│ │ │ ├── ChunkAdapterGeneric.h
│ │ │ ├── ChunkAdapterGEV.h
│ │ │ ├── ChunkAdapter.h
│ │ │ ├── ChunkAdapterU3V.h
│ │ │ ├── ChunkPort.h
│ │ │ ├── Compatibility.h
│ │ │ ├── Container.h
│ │ │ ├── Counter.h
│ │ │ ├── DLLLoad.h
│ │ │ ├── EnumClasses.h
│ │ │ ├── EventAdapter1394.h
│ │ │ ├── EventAdapterCL.h
│ │ │ ├── EventAdapterGeneric.h
│ │ │ ├── EventAdapterGEV.h
│ │ │ ├── EventAdapter.h
│ │ │ ├── EventAdapterU3V.h
│ │ │ ├── EventPort.h
│ │ │ ├── Filestream.h
│ │ │ ├── GenApiDll.h
│ │ │ ├── GenApi.h
│ │ │ ├── GenApiLinkage.h
│ │ │ ├── GenApiNamespace.h
│ │ │ ├── GenApiTutorial
│ │ │ │ ├── GettingStarted_StaticUseCase.h
│ │ │ │ └── GettingStarted_StaticUseCaseParams.h
│ │ │ ├── GenApiVersion.h
│ │ │ ├── IBase.h
│ │ │ ├── IBoolean.h
│ │ │ ├── ICategory.h
│ │ │ ├── IChunkPort.h
│ │ │ ├── ICommand.h
│ │ │ ├── IDestroy.h
│ │ │ ├── IDeviceInfo.h
│ │ │ ├── IEnumEntry.h
│ │ │ ├── IEnumeration.h
│ │ │ ├── IEnumerationT.h
│ │ │ ├── IFloat.h
│ │ │ ├── IInteger.h
│ │ │ ├── INode.h
│ │ │ ├── INodeMapDyn.h
│ │ │ ├── INodeMap.h
│ │ │ ├── IPortConstruct.h
│ │ │ ├── IPort.h
│ │ │ ├── IPortRecorder.h
│ │ │ ├── IRegister.h
│ │ │ ├── ISelectorDigit.h
│ │ │ ├── ISelector.h
│ │ │ ├── IString.h
│ │ │ ├── IUserData.h
│ │ │ ├── IValue.h
│ │ │ ├── NodeCallback.h
│ │ │ ├── NodeMapFactory.h
│ │ │ ├── NodeMapRef.h
│ │ │ ├── Persistence.h
│ │ │ ├── Pointer.h
│ │ │ ├── PortImpl.h
│ │ │ ├── PortWriteList.h
│ │ │ ├── Reference.h
│ │ │ ├── RegisterSetHelper.h
│ │ │ ├── SelectorSet.h
│ │ │ ├── SnipperTest
│ │ │ │ ├── PostprocessingTest_TestStatic.h
│ │ │ │ ├── PostprocessingTest_TestStaticParams.h
│ │ │ │ ├── XMLExtractionTest_TestGenICamSupport_FloatingInt.h
│ │ │ │ └── XMLExtractionTest_TestGenICamSupport_FloatingIntParams.h
│ │ │ ├── StructPort.h
│ │ │ ├── Synch.h
│ │ │ └── Types.h
│ │ ├── GenCP
│ │ │ └── gencp_defines.h
│ │ ├── GenICamFwd.h
│ │ ├── GenICam.h
│ │ ├── _GenICamVersion.h
│ │ ├── GenICamVersion.h
│ │ ├── Log
│ │ │ ├── CLog.h
│ │ │ └── LogDll.h
│ │ └── log4cpp
│ │ ├── AbortAppender.hh
│ │ ├── Appender.hh
│ │ ├── AppendersFactory.hh
│ │ ├── AppenderSkeleton.hh
│ │ ├── BasicConfigurator.hh
│ │ ├── BasicLayout.hh
│ │ ├── BufferingAppender.hh
│ │ ├── Category.hh
│ │ ├── CategoryStream.hh
│ │ ├── config.h
│ │ ├── config-openvms.h
│ │ ├── Configurator.hh
│ │ ├── config-win32.h
│ │ ├── convenience.h
│ │ ├── Export.hh
│ │ ├── Extensions
│ │ │ ├── RTSSUtilities.h
│ │ │ └── Utilities.h
│ │ ├── FactoryParams.hh
│ │ ├── FileAppender.hh
│ │ ├── Filter.hh
│ │ ├── FixedContextCategory.hh
│ │ ├── HierarchyMaintainer.hh
│ │ ├── IdsaAppender.hh
│ │ ├── LayoutAppender.hh
│ │ ├── Layout.hh
│ │ ├── LayoutsFactory.hh
│ │ ├── LevelEvaluator.hh
│ │ ├── LoggingEvent.hh
│ │ ├── Manipulator.hh
│ │ ├── NDC.hh
│ │ ├── NTEventLogAppender.hh
│ │ ├── OstreamAppender.hh
│ │ ├── PassThroughLayout.hh
│ │ ├── PatternLayout.hh
│ │ ├── Portability.hh
│ │ ├── Priority.hh
│ │ ├── PropertyConfigurator.hh
│ │ ├── RemoteSyslogAppender.hh
│ │ ├── RollingFileAppender.hh
│ │ ├── SimpleConfigurator.hh
│ │ ├── SimpleLayout.hh
│ │ ├── StringQueueAppender.hh
│ │ ├── SyslogAppender.hh
│ │ ├── threading
│ │ │ ├── BoostThreads.hh
│ │ │ ├── DummyThreads.hh
│ │ │ ├── MSThreads.hh
│ │ │ ├── OmniThreads.hh
│ │ │ ├── PThreads.hh
│ │ │ └── Threading.hh
│ │ ├── TimeStamp.hh
│ │ ├── TriggeringEventEvaluatorFactory.hh
│ │ ├── TriggeringEventEvaluator.hh
│ │ ├── Win32DebugAppender.hh
│ │ └── Wrapper.hh
│ ├── MvCameraControl.h
│ ├── MvDeviceBase.h
│ ├── MvErrorDefine.h
│ ├── MvGigEDevice.h
│ ├── MvInclude.h
│ ├── MvSdkExport.h
│ ├── MvUsb3VDevice.h
│ ├── PixelType.h
│ └── TlFactory.h
├── Hik_Libs
│ └── MvCameraControl.lib
├── hikvisionsdk.cpp
├── hikvisionsdk.h
├── lib
│ ├── opencv_calib3d300d.lib
│ ├── opencv_calib3d300.lib
│ ├── OpenCVConfig.cmake
│ ├── opencv_core300d.lib
│ ├── opencv_core300.lib
│ ├── opencv_features2d300d.lib
│ ├── opencv_features2d300.lib
│ ├── opencv_flann300d.lib
│ ├── opencv_flann300.lib
│ ├── opencv_hal300d.lib
│ ├── opencv_hal300.lib
│ ├── opencv_highgui300d.lib
│ ├── opencv_highgui300.lib
│ ├── opencv_imgcodecs300d.lib
│ ├── opencv_imgcodecs300.lib
│ ├── opencv_imgproc300d.lib
│ ├── opencv_imgproc300.lib
│ ├── opencv_ml300d.lib
│ ├── opencv_ml300.lib
│ ├── OpenCVModules.cmake
│ ├── OpenCVModules-debug.cmake
│ ├── OpenCVModules-release.cmake
│ ├── opencv_objdetect300d.lib
│ ├── opencv_objdetect300.lib
│ ├── opencv_photo300d.lib
│ ├── opencv_photo300.lib
│ ├── opencv_shape300d.lib
│ ├── opencv_shape300.lib
│ ├── opencv_stitching300d.lib
│ ├── opencv_stitching300.lib
│ ├── opencv_superres300d.lib
│ ├── opencv_superres300.lib
│ ├── opencv_ts300d.lib
│ ├── opencv_ts300.lib
│ ├── opencv_video300d.lib
│ ├── opencv_video300.lib
│ ├── opencv_videoio300d.lib
│ ├── opencv_videoio300.lib
│ ├── opencv_videostab300d.lib
│ └── opencv_videostab300.lib
├── main.cpp
├── mainwindow.cpp
├── mainwindow.cpp.autosave
├── mainwindow.h
├── mainwindow.ui
├── mythread.cpp
├── mythread.h
├── StudyQT.pro
└── StudyQT.pro.user
15 directories, 222 files
标签:
相关软件
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论