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

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)

相关文章:

  • 基于 Python 的界面程序复现:标准干涉槽型设计计算及仿真
  • UE 材质基础 第一天
  • WPS JS宏实现去掉文档中的所有空行
  • 数组集合互转问题
  • 星火杯大模型应用创新赛学习笔记——datawhale
  • 深入探讨 Java 17的 Text Blocks
  • V型不锈钢对夹球阀:高性价比工业控制解决方案-耀圣
  • 布隆过滤器和布谷鸟过滤器
  • 关系代数和关系数据库语言(SQL)
  • 202537 |《代码整洁之道》笔记
  • C# 创建线程的方式
  • 基于LLM合成高质量情感数据,提升情感分类能力!!
  • 程序人生-Hello’s P2P
  • C语言| 指针变量的定义
  • c++ 运算符重载
  • 【LINUX操作系统】生产者消费者模型(下):封装、信号量与环形队列
  • 【Spring】Spring的请求处理
  • SVGPlay:一次 CodeBuddy 主动构建的动画工具之旅
  • 融智学视域下的系统性认知增强框架——基于文理工三类AI助理赋能HI四阶跃迁路径
  • Linux调试生成核心存储文件
  • C919上海虹桥-深圳航线开通,东航今年计划再接收10架C919
  • 看展 | 黄永玉新作展,感受赤子般的生命力
  • 茅台总经理到访五粮液:面对白酒行业周期性调整,需要团结一心的合力
  • 视频丨歼-10CE首次实战大放异彩
  • 一条铺过11年时光的科学红毯,丈量上海科创的“长宽高”
  • 六省会共建交通枢纽集群,中部离经济“第五极”有多远?