实例介绍
在windous系统下Python实现海康相机登入、预览、抓图、光学变倍、相机激活、区域聚焦、区域曝光功能;linux系统下载相应的海康SDK,并将lib文件更换为相对应的库文件,同时将HCNetSDKCom文件夹拷贝出来(与lib文件夹同一级别)
【实例截图】
【核心代码】
HKCamer
└── HKCamer(区域聚焦)
├── doc
│ └── 设备网络SDK使用手册.chm
├── incCn
│ ├── DataType.h
│ ├── DecodeCardSdk.h
│ ├── HCNetSDK.h
│ └── plaympeg4.h
├── lib
│ └── win64
│ ├── AudioRender.dll
│ ├── D3DCompiler_43.dll
│ ├── d3dx9_43.dll
│ ├── EagleEyeRender.dll
│ ├── GdiPlus.dll
│ ├── GdiPlus.lib
│ ├── HCCore.dll
│ ├── HCCore.lib
│ ├── HCNetSDKCom
│ │ ├── AnalyzeData.dll
│ │ ├── AudioIntercom.dll
│ │ ├── HCAlarm.dll
│ │ ├── HCAlarm.lib
│ │ ├── HCCoreDevCfg.dll
│ │ ├── HCDisplay.dll
│ │ ├── HCGeneralCfgMgr.dll
│ │ ├── HCGeneralCfgMgr.lib
│ │ ├── HCIndustry.dll
│ │ ├── HCPlayBack.dll
│ │ ├── HCPreview.dll
│ │ ├── HCPreview.lib
│ │ ├── HCVoiceTalk.dll
│ │ ├── libiconv2.dll
│ │ ├── OpenAL32.dll
│ │ ├── StreamTransClient.dll
│ │ └── SystemTransform.dll
│ ├── HCNetSDK.dll
│ ├── HCNetSDK.lib
│ ├── HWDecode.dll
│ ├── libmmd.dll
│ ├── LocalXml.zip
│ ├── MP_Render.dll
│ ├── PlayCtrl.dll
│ ├── PlayCtrl.lib
│ ├── SuperRender.dll
│ └── YUVProcess.dll
├── OpenCam.py
├── pytest.jpg
├── readme.txt
└── venv
├── Lib
│ ├── site-packages
│ │ ├── easy-install.pth
│ │ ├── pip-10.0.1-py3.5.egg
│ │ │ ├── EGG-INFO
│ │ │ │ ├── dependency_links.txt
│ │ │ │ ├── entry_points.txt
│ │ │ │ ├── not-zip-safe
│ │ │ │ ├── PKG-INFO
│ │ │ │ ├── requires.txt
│ │ │ │ ├── SOURCES.txt
│ │ │ │ └── top_level.txt
│ │ │ └── pip
│ │ │ ├── __init__.py
│ │ │ ├── _internal
│ │ │ │ ├── basecommand.py
│ │ │ │ ├── baseparser.py
│ │ │ │ ├── build_env.py
│ │ │ │ ├── cache.py
│ │ │ │ ├── cmdoptions.py
│ │ │ │ ├── commands
│ │ │ │ │ ├── check.py
│ │ │ │ │ ├── completion.py
│ │ │ │ │ ├── configuration.py
│ │ │ │ │ ├── download.py
│ │ │ │ │ ├── freeze.py
│ │ │ │ │ ├── hash.py
│ │ │ │ │ ├── help.py
│ │ │ │ │ ├── __init__.py
│ │ │ │ │ ├── install.py
│ │ │ │ │ ├── list.py
│ │ │ │ │ ├── search.py
│ │ │ │ │ ├── show.py
│ │ │ │ │ ├── uninstall.py
│ │ │ │ │ └── wheel.py
│ │ │ │ ├── compat.py
│ │ │ │ ├── configuration.py
│ │ │ │ ├── download.py
│ │ │ │ ├── exceptions.py
│ │ │ │ ├── index.py
│ │ │ │ ├── __init__.py
│ │ │ │ ├── locations.py
│ │ │ │ ├── models
│ │ │ │ │ ├── index.py
│ │ │ │ │ └── __init__.py
│ │ │ │ ├── operations
│ │ │ │ │ ├── check.py
│ │ │ │ │ ├── freeze.py
│ │ │ │ │ ├── __init__.py
│ │ │ │ │ └── prepare.py
│ │ │ │ ├── pep425tags.py
│ │ │ │ ├── req
│ │ │ │ │ ├── __init__.py
│ │ │ │ │ ├── req_file.py
│ │ │ │ │ ├── req_install.py
│ │ │ │ │ ├── req_set.py
│ │ │ │ │ └── req_uninstall.py
│ │ │ │ ├── resolve.py
│ │ │ │ ├── status_codes.py
│ │ │ │ ├── utils
│ │ │ │ │ ├── appdirs.py
│ │ │ │ │ ├── deprecation.py
│ │ │ │ │ ├── encoding.py
│ │ │ │ │ ├── filesystem.py
│ │ │ │ │ ├── glibc.py
│ │ │ │ │ ├── hashes.py
│ │ │ │ │ ├── __init__.py
│ │ │ │ │ ├── logging.py
│ │ │ │ │ ├── misc.py
│ │ │ │ │ ├── outdated.py
│ │ │ │ │ ├── packaging.py
│ │ │ │ │ ├── setuptools_build.py
│ │ │ │ │ ├── temp_dir.py
│ │ │ │ │ ├── typing.py
│ │ │ │ │ └── ui.py
│ │ │ │ ├── vcs
│ │ │ │ │ ├── bazaar.py
│ │ │ │ │ ├── git.py
│ │ │ │ │ ├── __init__.py
│ │ │ │ │ ├── mercurial.py
│ │ │ │ │ └── subversion.py
│ │ │ │ └── wheel.py
│ │ │ ├── __main__.py
│ │ │ └── _vendor
│ │ │ ├── appdirs.py
│ │ │ ├── cachecontrol
│ │ │ │ ├── adapter.py
│ │ │ │ ├── cache.py
│ │ │ │ ├── caches
│ │ │ │ │ ├── file_cache.py
│ │ │ │ │ ├── __init__.py
│ │ │ │ │ └── redis_cache.py
│ │ │ │ ├── _cmd.py
│ │ │ │ ├── compat.py
│ │ │ │ ├── controller.py
│ │ │ │ ├── filewrapper.py
│ │ │ │ ├── heuristics.py
│ │ │ │ ├── __init__.py
│ │ │ │ ├── serialize.py
│ │ │ │ └── wrapper.py
│ │ │ ├── certifi
│ │ │ │ ├── cacert.pem
│ │ │ │ ├── core.py
│ │ │ │ ├── __init__.py
│ │ │ │ └── __main__.py
│ │ │ ├── chardet
│ │ │ │ ├── big5freq.py
│ │ │ │ ├── big5prober.py
│ │ │ │ ├── chardistribution.py
│ │ │ │ ├── charsetgroupprober.py
│ │ │ │ ├── charsetprober.py
│ │ │ │ ├── cli
│ │ │ │ │ ├── chardetect.py
│ │ │ │ │ └── __init__.py
│ │ │ │ ├── codingstatemachine.py
│ │ │ │ ├── compat.py
│ │ │ │ ├── cp949prober.py
│ │ │ │ ├── enums.py
│ │ │ │ ├── escprober.py
│ │ │ │ ├── escsm.py
│ │ │ │ ├── eucjpprober.py
│ │ │ │ ├── euckrfreq.py
│ │ │ │ ├── euckrprober.py
│ │ │ │ ├── euctwfreq.py
│ │ │ │ ├── euctwprober.py
│ │ │ │ ├── gb2312freq.py
│ │ │ │ ├── gb2312prober.py
│ │ │ │ ├── hebrewprober.py
│ │ │ │ ├── __init__.py
│ │ │ │ ├── jisfreq.py
│ │ │ │ ├── jpcntx.py
│ │ │ │ ├── langbulgarianmodel.py
│ │ │ │ ├── langcyrillicmodel.py
│ │ │ │ ├── langgreekmodel.py
│ │ │ │ ├── langhebrewmodel.py
│ │ │ │ ├── langhungarianmodel.py
│ │ │ │ ├── langthaimodel.py
│ │ │ │ ├── langturkishmodel.py
│ │ │ │ ├── latin1prober.py
│ │ │ │ ├── mbcharsetprober.py
│ │ │ │ ├── mbcsgroupprober.py
│ │ │ │ ├── mbcssm.py
│ │ │ │ ├── sbcharsetprober.py
│ │ │ │ ├── sbcsgroupprober.py
│ │ │ │ ├── sjisprober.py
│ │ │ │ ├── universaldetector.py
│ │ │ │ ├── utf8prober.py
│ │ │ │ └── version.py
│ │ │ ├── colorama
│ │ │ │ ├── ansi.py
│ │ │ │ ├── ansitowin32.py
│ │ │ │ ├── initialise.py
│ │ │ │ ├── __init__.py
│ │ │ │ ├── win32.py
│ │ │ │ └── winterm.py
│ │ │ ├── distlib
│ │ │ │ ├── _backport
│ │ │ │ │ ├── __init__.py
│ │ │ │ │ ├── misc.py
│ │ │ │ │ ├── shutil.py
│ │ │ │ │ ├── sysconfig.cfg
│ │ │ │ │ ├── sysconfig.py
│ │ │ │ │ └── tarfile.py
│ │ │ │ ├── compat.py
│ │ │ │ ├── database.py
│ │ │ │ ├── index.py
│ │ │ │ ├── __init__.py
│ │ │ │ ├── locators.py
│ │ │ │ ├── manifest.py
│ │ │ │ ├── markers.py
│ │ │ │ ├── metadata.py
│ │ │ │ ├── resources.py
│ │ │ │ ├── scripts.py
│ │ │ │ ├── t32.exe
│ │ │ │ ├── t64.exe
│ │ │ │ ├── util.py
│ │ │ │ ├── version.py
│ │ │ │ ├── w32.exe
│ │ │ │ ├── w64.exe
│ │ │ │ └── wheel.py
│ │ │ ├── distro.py
│ │ │ ├── html5lib
│ │ │ │ ├── constants.py
│ │ │ │ ├── filters
│ │ │ │ │ ├── alphabeticalattributes.py
│ │ │ │ │ ├── base.py
│ │ │ │ │ ├── __init__.py
│ │ │ │ │ ├── inject_meta_charset.py
│ │ │ │ │ ├── lint.py
│ │ │ │ │ ├── optionaltags.py
│ │ │ │ │ ├── sanitizer.py
│ │ │ │ │ └── whitespace.py
│ │ │ │ ├── html5parser.py
│ │ │ │ ├── _ihatexml.py
│ │ │ │ ├── __init__.py
│ │ │ │ ├── _inputstream.py
│ │ │ │ ├── serializer.py
│ │ │ │ ├── _tokenizer.py
│ │ │ │ ├── treeadapters
│ │ │ │ │ ├── genshi.py
│ │ │ │ │ ├── __init__.py
│ │ │ │ │ └── sax.py
│ │ │ │ ├── treebuilders
│ │ │ │ │ ├── base.py
│ │ │ │ │ ├── dom.py
│ │ │ │ │ ├── etree_lxml.py
│ │ │ │ │ ├── etree.py
│ │ │ │ │ └── __init__.py
│ │ │ │ ├── treewalkers
│ │ │ │ │ ├── base.py
│ │ │ │ │ ├── dom.py
│ │ │ │ │ ├── etree_lxml.py
│ │ │ │ │ ├── etree.py
│ │ │ │ │ ├── genshi.py
│ │ │ │ │ └── __init__.py
│ │ │ │ ├── _trie
│ │ │ │ │ ├── _base.py
│ │ │ │ │ ├── datrie.py
│ │ │ │ │ ├── __init__.py
│ │ │ │ │ └── py.py
│ │ │ │ └── _utils.py
│ │ │ ├── idna
│ │ │ │ ├── codec.py
│ │ │ │ ├── compat.py
│ │ │ │ ├── core.py
│ │ │ │ ├── idnadata.py
│ │ │ │ ├── __init__.py
│ │ │ │ ├── intranges.py
│ │ │ │ ├── package_data.py
│ │ │ │ └── uts46data.py
│ │ │ ├── __init__.py
│ │ │ ├── ipaddress.py
│ │ │ ├── lockfile
│ │ │ │ ├── __init__.py
│ │ │ │ ├── linklockfile.py
│ │ │ │ ├── mkdirlockfile.py
│ │ │ │ ├── pidlockfile.py
│ │ │ │ ├── sqlitelockfile.py
│ │ │ │ └── symlinklockfile.py
│ │ │ ├── msgpack
│ │ │ │ ├── exceptions.py
│ │ │ │ ├── fallback.py
│ │ │ │ ├── __init__.py
│ │ │ │ └── _version.py
│ │ │ ├── packaging
│ │ │ │ ├── __about__.py
│ │ │ │ ├── _compat.py
│ │ │ │ ├── __init__.py
│ │ │ │ ├── markers.py
│ │ │ │ ├── requirements.py
│ │ │ │ ├── specifiers.py
│ │ │ │ ├── _structures.py
│ │ │ │ ├── utils.py
│ │ │ │ └── version.py
│ │ │ ├── pkg_resources
│ │ │ │ ├── __init__.py
│ │ │ │ └── py31compat.py
│ │ │ ├── progress
│ │ │ │ ├── bar.py
│ │ │ │ ├── counter.py
│ │ │ │ ├── helpers.py
│ │ │ │ ├── __init__.py
│ │ │ │ └── spinner.py
│ │ │ ├── pyparsing.py
│ │ │ ├── pytoml
│ │ │ │ ├── core.py
│ │ │ │ ├── __init__.py
│ │ │ │ ├── parser.py
│ │ │ │ └── writer.py
│ │ │ ├── requests
│ │ │ │ ├── adapters.py
│ │ │ │ ├── api.py
│ │ │ │ ├── auth.py
│ │ │ │ ├── certs.py
│ │ │ │ ├── compat.py
│ │ │ │ ├── cookies.py
│ │ │ │ ├── exceptions.py
│ │ │ │ ├── help.py
│ │ │ │ ├── hooks.py
│ │ │ │ ├── __init__.py
│ │ │ │ ├── _internal_utils.py
│ │ │ │ ├── models.py
│ │ │ │ ├── packages.py
│ │ │ │ ├── sessions.py
│ │ │ │ ├── status_codes.py
│ │ │ │ ├── structures.py
│ │ │ │ ├── utils.py
│ │ │ │ └── __version__.py
│ │ │ ├── retrying.py
│ │ │ ├── six.py
│ │ │ ├── urllib3
│ │ │ │ ├── _collections.py
│ │ │ │ ├── connectionpool.py
│ │ │ │ ├── connection.py
│ │ │ │ ├── contrib
│ │ │ │ │ ├── appengine.py
│ │ │ │ │ ├── __init__.py
│ │ │ │ │ ├── ntlmpool.py
│ │ │ │ │ ├── pyopenssl.py
│ │ │ │ │ ├── _securetransport
│ │ │ │ │ │ ├── bindings.py
│ │ │ │ │ │ ├── __init__.py
│ │ │ │ │ │ └── low_level.py
│ │ │ │ │ ├── securetransport.py
│ │ │ │ │ └── socks.py
│ │ │ │ ├── exceptions.py
│ │ │ │ ├── fields.py
│ │ │ │ ├── filepost.py
│ │ │ │ ├── __init__.py
│ │ │ │ ├── packages
│ │ │ │ │ ├── backports
│ │ │ │ │ │ ├── __init__.py
│ │ │ │ │ │ └── makefile.py
│ │ │ │ │ ├── __init__.py
│ │ │ │ │ ├── ordered_dict.py
│ │ │ │ │ ├── six.py
│ │ │ │ │ └── ssl_match_hostname
│ │ │ │ │ ├── _implementation.py
│ │ │ │ │ └── __init__.py
│ │ │ │ ├── poolmanager.py
│ │ │ │ ├── request.py
│ │ │ │ ├── response.py
│ │ │ │ └── util
│ │ │ │ ├── connection.py
│ │ │ │ ├── __init__.py
│ │ │ │ ├── request.py
│ │ │ │ ├── response.py
│ │ │ │ ├── retry.py
│ │ │ │ ├── selectors.py
│ │ │ │ ├── ssl_.py
│ │ │ │ ├── timeout.py
│ │ │ │ ├── url.py
│ │ │ │ └── wait.py
│ │ │ └── webencodings
│ │ │ ├── __init__.py
│ │ │ ├── labels.py
│ │ │ ├── mklabels.py
│ │ │ ├── tests.py
│ │ │ └── x_user_defined.py
│ │ ├── setuptools-39.1.0-py3.5.egg
│ │ └── setuptools.pth
│ └── tcl8.5
│ └── init.tcl
├── pyvenv.cfg
└── Scripts
├── activate.bat
├── Activate.ps1
├── api-ms-win-core-console-l1-1-0.dll
├── api-ms-win-core-datetime-l1-1-0.dll
├── api-ms-win-core-debug-l1-1-0.dll
├── api-ms-win-core-errorhandling-l1-1-0.dll
├── api-ms-win-core-file-l1-1-0.dll
├── api-ms-win-core-file-l1-2-0.dll
├── api-ms-win-core-file-l2-1-0.dll
├── api-ms-win-core-handle-l1-1-0.dll
├── api-ms-win-core-heap-l1-1-0.dll
├── api-ms-win-core-interlocked-l1-1-0.dll
├── api-ms-win-core-libraryloader-l1-1-0.dll
├── api-ms-win-core-localization-l1-2-0.dll
├── api-ms-win-core-memory-l1-1-0.dll
├── api-ms-win-core-namedpipe-l1-1-0.dll
├── api-ms-win-core-processenvironment-l1-1-0.dll
├── api-ms-win-core-processthreads-l1-1-0.dll
├── api-ms-win-core-processthreads-l1-1-1.dll
├── api-ms-win-core-profile-l1-1-0.dll
├── api-ms-win-core-rtlsupport-l1-1-0.dll
├── api-ms-win-core-string-l1-1-0.dll
├── api-ms-win-core-synch-l1-1-0.dll
├── api-ms-win-core-synch-l1-2-0.dll
├── api-ms-win-core-sysinfo-l1-1-0.dll
├── api-ms-win-core-timezone-l1-1-0.dll
├── api-ms-win-core-util-l1-1-0.dll
├── api-ms-win-crt-conio-l1-1-0.dll
├── api-ms-win-crt-convert-l1-1-0.dll
├── api-ms-win-crt-environment-l1-1-0.dll
├── api-ms-win-crt-filesystem-l1-1-0.dll
├── api-ms-win-crt-heap-l1-1-0.dll
├── api-ms-win-crt-locale-l1-1-0.dll
├── api-ms-win-crt-math-l1-1-0.dll
├── api-ms-win-crt-multibyte-l1-1-0.dll
├── api-ms-win-crt-private-l1-1-0.dll
├── api-ms-win-crt-process-l1-1-0.dll
├── api-ms-win-crt-runtime-l1-1-0.dll
├── api-ms-win-crt-stdio-l1-1-0.dll
├── api-ms-win-crt-string-l1-1-0.dll
├── api-ms-win-crt-time-l1-1-0.dll
├── api-ms-win-crt-utility-l1-1-0.dll
├── _bz2.pyd
├── concrt140.dll
├── _ctypes.pyd
├── _ctypes_test.pyd
├── deactivate.bat
├── _decimal.pyd
├── easy_install-3.5.exe
├── easy_install-3.5-script.py
├── easy_install.exe
├── easy_install-script.py
├── _elementtree.pyd
├── _hashlib.pyd
├── _lzma.pyd
├── _msi.pyd
├── msvcp140.dll
├── _multiprocessing.pyd
├── opencv_ffmpeg341_64.dll
├── _overlapped.pyd
├── pip3.5.exe
├── pip3.5-script.py
├── pip3.exe
├── pip3-script.py
├── pip.exe
├── pip-script.py
├── pyexpat.pyd
├── python35.dll
├── python.exe
├── pythonw.exe
├── select.pyd
├── _socket.pyd
├── sqlite3.dll
├── _sqlite3.pyd
├── _ssl.pyd
├── tcl86t.dll
├── _testbuffer.pyd
├── _testcapi.pyd
├── _testimportmultiple.pyd
├── _testmultiphase.pyd
├── tk86t.dll
├── _tkinter.pyd
├── ucrtbase.dll
├── unicodedata.pyd
├── vccorlib140.dll
├── vcomp140.dll
├── vcruntime140.dll
├── winsound.pyd
├── xlwings32.dll
└── xlwings64.dll
52 directories, 433 files
标签:
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论