Halcon 学 习 之二:摄像头获取图像和相关参数 1、close_all_framegrabbers ( : : : ) 关闭所有图像采集设备。 2、close_framegrabber ( : : AcqHandle : ) 关闭 Handle 为 AcqHandle 的图像采集设备。 3、open_framegrabber ( : : Name, HorizontalResolution, VerticalResolution, ImageWidth, ImageHeight, StartRow, StartColumn, Field, BitsPerChannel, ColorSpace, Generic, ExternalTrigger, CameraType, Device, Port, LineIn : AcqHandle ) 打开图像采集设备 参数信息: Name:图像采集设备的名称 HorizontalResolution 和 VerticalResolution:分别指预期的图像采集接口的水平分辨率和垂直分辨率 ImageWidth 和 ImageHeight:指预期图像的宽度部分和高度部分。 StartRow 和 StartColumn:指显示预期图像的开始坐标 Field:预期图像是一半的图像或者是完整图像 BitsPerChannel:每像素比特数和图像通道 ColorSpace:输出的色彩格式的抓住图像{gray、raw、rgb、yuv、default} Generic:通用参数与设备细节部分的具体意义。 ExternalTrigger:是否有外部触发 CameraType:使用相机的类型 Device: 图 像 获 取 设 别 连 接 到 的 设 备 Port: 图 像 获 取 设 别 连 接 到 的 端 口 LineIn :相 机 输 入 的 多 路 转 接 器 AcqHandle:图 像 获 取 设 备 的 Handle 4、 grab_image ( : Image : AcqHandle : ) 获 取 AcqHandle 的 图 像 采 集 设 备 的 Image。 5、 get_framegrabber_param ( : : AcqHandle, Param : Value ) 查 询 AcqHandle 的 图 像 采 集 设 备 的 特 殊 参 数 Param∈{name、 port、 revision、 bits_per_channel, camera_type、color_space、 device、 Ield、 generic、 external_trigger、 grab_timeout、horizontal_resolution、 image_available、 image_height、 image_width、line_in、 start_column、 start_row、 volatile、 vertical_resolution、continuous_grabbing、 } 6、 info_framegrabber ( : : Name, Query : Information, ValueList ) 查 询 指定的 图 像 采 集 接 口 的 信息。 Name 为图 像 采 集 设 备 的 名称 Query 为需要查 询 的 参 数 名称 Information 是指输 ...