当前位置: 首页 > ds >正文

QT调用Halcon查询所有摄像头名称

QT软件中的测试代码

//获取当前连接的所有设备信息实例HTuple hv_general, hv_ValueList;InfoFramegrabber("DirectShow", "device", &hv_general, &hv_ValueList);qDebug()<<QString::fromUtf8(hv_general.S().Text());//Value list for device parameter (name of the capture device).qDebug()<<QString::fromUtf8(hv_ValueList.S().Text());//[0] USB Camera

Halcon软件中的测试代码


*本机摄像头连接参数实例*打开摄像头
open_framegrabber('DirectShow', 1, 1, 0, 0, 0, 0, 'default', 8, 'rgb', -1, 'false', 'default', '[0] USB Camera', 0, -1, AcqHandle)*Halcon查询指定的图像采集接口的信息算子info_framegrabber用法
*Name:图像采集设备的名称
*Query:需要查询的参数名称
*Information:输出的文本信息
*ValueList:图像采集接口的参数值*其它Query参数实例
info_framegrabber('DirectShow', 'bits_per_channel', info, valList)
info_framegrabber('DirectShow', 'camera_type', info, valList)
info_framegrabber('DirectShow', 'color_space', info, valList)
info_framegrabber('DirectShow', 'defaults', info, valList)
info_framegrabber('DirectShow', 'device', info, valList)
info_framegrabber('DirectShow', 'revision', info, valList)
info_framegrabber('DirectShow', 'field', info, valList)
info_framegrabber('DirectShow', 'general', info, valList)
info_framegrabber('DirectShow', 'generic', info, valList)
info_framegrabber('DirectShow', 'external_trigger', info, valList)
info_framegrabber('DirectShow', 'horizontal_resolution', info, valList)
info_framegrabber('DirectShow', 'image_height', info, valList)
info_framegrabber('DirectShow', 'image_width', info, valList)
info_framegrabber('DirectShow', 'info_boards', info, valList)
info_framegrabber('DirectShow', 'line_in', info, valList)
info_framegrabber('DirectShow', 'start_column', info, valList)
info_framegrabber('DirectShow', 'start_row', info, valList)
info_framegrabber('DirectShow', 'vertical_resolution', info, valList)*不可运行项目
*info_framegrabber('DirectShow', 'grab_timeout', info, valList)
*info_framegrabber('DirectShow', 'name', info, valList)*其它Information参数实例
info_framegrabber('DirectShow', 'device', defaults, ValueList)
info_framegrabber('DirectShow', 'device', info, valList)
info_framegrabber('DirectShow', 'device', info_boards, ValueList)
info_framegrabber('DirectShow', 'device', parameters, ValueList)
info_framegrabber('DirectShow', 'device', filed, ValueList)
info_framegrabber('DirectShow', 'device', generic, ValueList)
info_framegrabber('DirectShow', 'device', parameters_readonly, ValueList)
info_framegrabber('DirectShow', 'device', parameters_writeonly, ValueList)
info_framegrabber('DirectShow', 'device', vertical_resolution, ValueList)
info_framegrabber('DirectShow', 'device', port, ValueList)
info_framegrabber('DirectShow', 'device', bits_per_channel, ValueList)
info_framegrabber('DirectShow', 'device', camera_type, ValueList)
info_framegrabber('DirectShow', 'device', color_space, ValueList)
info_framegrabber('DirectShow', 'device', device, ValueList)
info_framegrabber('DirectShow', 'device', external_trigger, ValueList)
info_framegrabber('DirectShow', 'device', horizontal_resolution, ValueList)
info_framegrabber('DirectShow', 'device', image_height, ValueList)
info_framegrabber('DirectShow', 'device', image_width, ValueList)
info_framegrabber('DirectShow', 'device', start_row, ValueList)
info_framegrabber('DirectShow', 'device', start_column, ValueList)
info_framegrabber('DirectShow', 'device', revision, ValueList)
info_framegrabber('DirectShow', 'device', info, valList)

http://www.xdnf.cn/news/6954.html

相关文章:

  • 遨游科普:三防平板是什么?有什么功能?
  • Linux安全篇 --firewalld
  • Windows系统永久暂停更新操作步骤
  • 微软家各种copilot的AI产品:Github copilot、Microsoft copilot
  • 什么是PMBus
  • 18-总线IIC
  • 大模型在腰椎间盘突出症预测与治疗方案制定中的应用研究
  • LeetCode 热题 100_寻找重复数(100_287_中等_C++)(技巧)(暴力解法;哈希集合;二分查找)
  • 字节2025实习/校招/社招 内推码:R9SZ7Y1
  • 车载以太网驱动智能化:域控架构设计与开发实践
  • 【Ubuntu】Waydroid-Linux安卓模拟器安装
  • 【数据结构】线性表--队列
  • 自动化脚本开发:Python调用云手机API实现TikTok批量内容发布
  • 卷积神经网络中的二维卷积与三维卷积详解
  • 山东大学计算机图形学期末复习10——CG12下
  • Redis设计与实现——分布式Redis
  • 共享内存【Linux操作系统】
  • Go语言语法---输入控制
  • Node.js 源码架构详解
  • [system-design] ByteByteGo_Note Summary
  • 如何开发专业小模型
  • 强化学习赋能医疗大模型:构建闭环检索-反馈-优化系统提升推理能力
  • 数据库实验报告 数据定义操作 3
  • 【leetcode】逐层探索:BFS求解最短路的原理与实践
  • 使用Python和Selenium打造一个全网页截图工具
  • CSS- 4.1 浮动(Float)
  • Echart地图数据源获取
  • hysAnalyser 从MPEG-TS导出ES功能说明
  • 【C++详解】string各种接口如何使用保姆级攻略
  • Kotlin变量与数据类型详解