HALCON示例程序measure_metal_part_extended.hdev金属零件尺寸测量

HALCON示例程序measure_metal_part_extended.hdev金属零件尺寸测量

示例程序源码(加注释)

  • 关于显示类函数解释
    dev_update_off ()
    read_image (Image, ‘metal-parts/metal-parts-01’)
    init_visualization (Image, 3, ‘white’, ‘margin’, Width, Height, WindowID)
init_visualization函数内部代码:
get_image_size (Image, Width, Height)
dev_close_window ()
dev_open_window (0, 0, Width, Height, 'light gray', WindowID)
dev_set_part (0, 0, Height - 1, Width - 1)
dev_set_line_width (LineWidth)
dev_set_color (Color)
dev_set_draw (DrawMode)
dev_display (Image)
return ()

set_display_font (WindowID, 16, ‘mono’, ‘true’, ‘false’)
disp_continue_message (WindowID, ‘black’, ‘true’)
stop ()
dev_set_draw (‘fill’)
count_seconds (T1)

  • 二值化
    threshold (Image, Region, 100, 255)
  • 求中心与面积
    area_center (Region, AreaRegion, RowCenterRegion, ColumnCenterRegion)
  • 通过拟合椭圆求解区域角度
    orientation_region (Region, OrientationRegion)
    count_seconds (T2)
    dev_display (Region)
set_tposition (WindowID, 10, 10)
write_string (WindowID, 'Region Processing')
set_tposition (WindowID, 10, 300)
write_string (WindowID, 'Time: ' + ((T2 - T1) * 1000)$'.2' + ' ms')
set_tposition (WindowID, 50, 10)
write_string (WindowID, 'Center Row: ' + RowCenterRegion$'.5')
set_tposition (WindowID, 50, 300)
write_string (WindowID, 'Center Column: ' + ColumnCenterRegion$'.5')
set_tposition (WindowID, 80, 10)
write_string (WindowID, 'Area: ' + AreaRegion + ' pixels')
set_tposition (WindowID, 80, 300)
write_string (WindowID, 'Orientation: ' + OrientationRegion$'.3' + ' rad')
dev_set_color ('gray')
disp_cross (WindowID, RowCenterRegion, ColumnCenterRegion, 10, 0)
* 求最小外接矩形
smallest_rectangle2 (Region, Row_Region, Column_Region, Phi_Region, Length1_Region, Length2_Region)
* 绘制最小外接矩形
gen_rectangle2 (Rectangle, Row_Region, Column_Region, Phi_Region, Length1_Region, Length2_Region)
disp_continue_message (WindowID, 'black', 'true')
stop ()

count_seconds (T3)

  • 二值化、求边界、膨胀、减少定义域、求边界
    threshold (Image, Region, 100, 255)
    boundary (Region, RegionBorder, ‘inner’)
    dilation_circle (RegionBorder, RegionDilation, 1.5)
    reduce_domain (Image, RegionDilation, ImageReduced)
    edges_sub_pix (ImageReduced, Edges, ‘lanser2’, 0.5, 40, 90)
  • 求取xld轮廓面积与位置
    area_center_xld (Edges, AreaContours, RowCenterContours, ColumnCenterContours, PointOrderContours)
    AreaOfRegionByContours := AreaContours[0] - AreaContours[1] - AreaContours[2] - AreaContours[3]
  • 求取轮廓方向
    orientation_xld (Edges, OrientationContours)
    count_seconds (T4)
    dev_set_color (‘light gray’)
    dev_display (Edges)
set_tposition (WindowID, 330, 10)
write_string (WindowID, 'Contour Processing')
set_tposition (WindowID, 330, 300)
write_string (WindowID, 'Time: ' + ((T4 - T3) * 1000)$'.3' + ' ms')
set_tposition (WindowID, 370, 10)
write_string (WindowID, 'Center Row: ' + RowCenterContours[0]$'.4')
set_tposition (WindowID, 370, 300)
write_string (WindowID, 'Center Column: ' + ColumnCenterContours[0]$'.4')
set_tposition (WindowID, 400, 10)
write_string (WindowID, 'Area: ' + AreaOfRegionByContours[0] + ' pixels')
set_tposition (WindowID, 400, 300)
write_string (WindowID, 'Orientation: ' + OrientationContours[0]$'.3' + ' rad')
disp_cross (WindowID, RowCenterContours, ColumnCenterContours, 6, 0)
disp_cross (WindowID, RowCenterContours[0], ColumnCenterContours[0], 10, 0)
smallest_rectangle2_xld (Edges, Row_Contours, Column_Contours, Phi_Contours, Length1_Contours, Length2_Contours)
disp_continue_message (WindowID, 'black', 'true')
stop ()
  • 使用圆形与直线分割XLD轮廓
    segment_contours_xld (Edges, ContoursSplit, ‘lines_circles’, 6, 4, 4)
  • 对XLD轮廓进行排序
    sort_contours_xld (ContoursSplit, SortedContours, ‘upper_left’, ‘true’, ‘column’)
    dev_clear_window ()
    dev_set_colored (12)
    dev_display (SortedContours)
    stop ()
    open_zoom_window (0, round(Width / 2), 115, 225, 395, 535, 2, WindowHandleZoom)
    set_display_font (WindowHandleZoom, 14, ‘mono’, ‘true’, ‘false’)
    count_obj (SortedContours, NumSegments)
    dev_display (Image)
    NumCircles := 0
    NumLines := 0
    gen_empty_obj (Lines)
    RowsBegin := []
    ColsBegin := []
    RowsEnd := []
    ColsEnd := []
    dev_set_color (‘white’)
    set_tposition (WindowHandleZoom, 120, 230)
    write_string (WindowHandleZoom, 'Line lengths and circle radii: ')
for i := 1 to NumSegments by 1select_obj (SortedContours, SingleSegment, i)* 获得XLD轮廓的属性值get_contour_global_attrib_xld (SingleSegment, 'cont_approx', Attrib)if (Attrib == 1)NumCircles := NumCircles + 1* 拟合圆形fit_circle_contour_xld (SingleSegment, 'atukey', -1, 2, 0, 5, 2, Row, Column, Radius, StartPhi, EndPhi, PointOrder)* 创建椭圆XLD轮廓gen_ellipse_contour_xld (ContEllipse, Row, Column, 0, Radius, Radius, 0, rad(360), 'positive', 1.0)dev_set_color ('white')dev_display (ContEllipse)* 计算轮廓到椭圆的距离。dist_ellipse_contour_xld (SingleSegment, 'algebraic', -1, 0, Row, Column, 0, Radius, Radius, MinDist, MaxDist, AvgDist, SigmaDist)set_tposition (WindowHandleZoom, Row - Radius - 10, Column)write_string (WindowHandleZoom, 'C' + NumCircles)ResultText := 'C' + NumCircles + ': Radius = ' + Radius$'.3' + ' / MaxDeviation: ' + MaxDist$'.3'elseNumLines := NumLines + 1* 拟合直线fit_line_contour_xld (SingleSegment, 'tukey', -1, 0, 5, 2, RowBegin, ColBegin, RowEnd, ColEnd, Nr, Nc, Dist)* 由点生成多边形XLD轮廓gen_contour_polygon_xld (Line, [RowBegin,RowEnd], [ColBegin,ColEnd])dev_set_color ('yellow')dev_display (Line)* 计算点到点的距离distance_pp (RowBegin, ColBegin, RowEnd, ColEnd, Length)set_tposition (WindowHandleZoom, (RowBegin + RowEnd) / 2 - Nr * 10, (ColBegin + ColEnd) / 2)write_string (WindowHandleZoom, 'L' + NumLines)ResultText := 'L' + NumLines + ': Length = ' + Length$'.4'concat_obj (Lines, Line, Lines)RowsBegin := [RowsBegin,RowBegin]ColsBegin := [ColsBegin,ColBegin]RowsEnd := [RowsEnd,RowEnd]ColsEnd := [ColsEnd,ColEnd]endifset_tposition (WindowHandleZoom, 275 + i * 10, 230)write_string (WindowHandleZoom, ResultText)
endfor
disp_continue_message (WindowHandleZoom, 'black', 'true')
stop ()

dev_display (Image)
dev_set_color (‘white’)

  • 使用foerstner检测特征点
    points_foerstner (Image, 1, 2, 3, 200, 0.3, ‘gauss’, ‘false’, RowJunctions, ColJunctions, CoRRJunctions, CoRCJunctions, CoCCJunctions, RowArea, ColArea, CoRRArea, CoRCArea, CoCCArea)
  • 绘制十字线
    gen_cross_contour_xld (CrossFoerstner, RowJunctions, ColJunctions, 10, 0)
    dev_display (CrossFoerstner)
    set_tposition (WindowHandleZoom, RowJunctions[0] - 10, ColJunctions[0] + 10)
    write_string (WindowHandleZoom, ‘P2’)
    set_tposition (WindowHandleZoom, RowJunctions[1] - 10, ColJunctions[1] + 10)
    write_string (WindowHandleZoom, ‘P1’)
    set_tposition (WindowHandleZoom, 120, 230)
    write_string (WindowHandleZoom, ‘Foerstner Points’)
    disp_continue_message (WindowHandleZoom, ‘black’, ‘true’)
    stop ()
    dev_set_color (‘yellow’)
    write_string (WindowHandleZoom, ’ vs. intersection_l_l: ')
  • 求线段交点
    intersection_lines (RowsBegin[0], ColsBegin[0], RowsEnd[0], ColsEnd[0], RowsBegin[1], ColsBegin[1], RowsEnd[1], ColsEnd[1], RowIntersect1, ColumnIntersect1, IsOverlapping1)
  • 绘制十字线
    gen_cross_contour_xld (CrossIntersection1, RowIntersect1, ColumnIntersect1, 10, 0.785398)
    dev_display (CrossIntersection1)
    dev_set_color (‘white’)
    distance_pp (RowJunctions[1], ColJunctions[1], RowIntersect1, ColumnIntersect1, Distance1)
    set_tposition (WindowHandleZoom, 325, 230)
    write_string (WindowHandleZoom, ‘Distance between Foerstner points and’)
    set_tposition (WindowHandleZoom, 335, 230)
    write_string (WindowHandleZoom, ‘points obtained by intersection_ll:’)
    set_tposition (WindowHandleZoom, 355, 230)
    write_string (WindowHandleZoom, ‘in P1: ’ + Distance1′.3′+′pixels′)devsetcolor(′yellow′)intersectionlines(RowsBegin[0],ColsBegin[0],RowsEnd[0],ColsEnd[0],RowsBegin[2],ColsBegin[2],RowsEnd[2],ColsEnd[2],RowIntersect2,ColumnIntersect2,IsOverlapping2)distancepp(RowJunctions[0],ColJunctions[0],RowIntersect2,ColumnIntersect2,Distance2)gencrosscontourxld(CrossIntersection2,RowIntersect2,ColumnIntersect2,10,0.785398)devdisplay(CrossIntersection2)devsetcolor(′white′)settposition(WindowHandleZoom,370,230)writestring(WindowHandleZoom,′inP2:′+Distance2'.3' + ' pixels') dev_set_color ('yellow') intersection_lines (RowsBegin[0], ColsBegin[0], RowsEnd[0], ColsEnd[0], RowsBegin[2], ColsBegin[2], RowsEnd[2], ColsEnd[2], RowIntersect2, ColumnIntersect2, IsOverlapping2) distance_pp (RowJunctions[0], ColJunctions[0], RowIntersect2, ColumnIntersect2, Distance2) gen_cross_contour_xld (CrossIntersection2, RowIntersect2, ColumnIntersect2, 10, 0.785398) dev_display (CrossIntersection2) dev_set_color ('white') set_tposition (WindowHandleZoom, 370, 230) write_string (WindowHandleZoom, 'in P2: ' + Distance2.3+pixels)devsetcolor(yellow)intersectionlines(RowsBegin[0],ColsBegin[0],RowsEnd[0],ColsEnd[0],RowsBegin[2],ColsBegin[2],RowsEnd[2],ColsEnd[2],RowIntersect2,ColumnIntersect2,IsOverlapping2)distancepp(RowJunctions[0],ColJunctions[0],RowIntersect2,ColumnIntersect2,Distance2)gencrosscontourxld(CrossIntersection2,RowIntersect2,ColumnIntersect2,10,0.785398)devdisplay(CrossIntersection2)devsetcolor(white)settposition(WindowHandleZoom,370,230)writestring(WindowHandleZoom,inP2:+Distance2’.3’ + ’ pixels’)
    disp_continue_message (WindowHandleZoom, ‘black’, ‘true’)
    stop ()
    dev_display (Image)
  • 计算两条线之间的角度。
    angle_ll (RowsBegin[0], ColsBegin[0], RowsEnd[0], ColsEnd[0], RowsBegin[1], ColsBegin[1], RowsEnd[1], ColsEnd[1], Angle1)
    set_tposition (WindowHandleZoom, RowsBegin[0] - 10, ColsBegin[0] + 10)
    write_string (WindowHandleZoom, ‘P2’)
    set_tposition (WindowHandleZoom, RowsEnd[0] - 10, ColsEnd[0] + 10)
    write_string (WindowHandleZoom, ‘P1’)
    set_tposition (WindowHandleZoom, 120, 230)
    write_string (WindowHandleZoom, ‘Angle in P1: ’ + deg(Angle1)′.3′+′degrees′)disparrow(WindowHandleZoom,RowsEnd[0],ColsEnd[0],RowsBegin[0],ColsBegin[0],1)disparrow(WindowHandleZoom,RowsBegin[1],ColsBegin[1],RowsEnd[1],ColsEnd[1],1)dispcontinuemessage(WindowHandleZoom,′black′,′true′)stop()devdisplay(Image)anglell(RowsBegin[0],ColsBegin[0],RowsEnd[0],ColsEnd[0],RowsBegin[2],ColsBegin[2],RowsEnd[2],ColsEnd[2],Angle2)settposition(WindowHandleZoom,RowsBegin[0]−10,ColsBegin[0]+10)writestring(WindowHandleZoom,′P2′)settposition(WindowHandleZoom,RowsEnd[0]−10,ColsEnd[0]+10)writestring(WindowHandleZoom,′P1′)settposition(WindowHandleZoom,120,230)writestring(WindowHandleZoom,′AngleinP2:′+deg(Angle2)'.3' + ' degrees') disp_arrow (WindowHandleZoom, RowsEnd[0], ColsEnd[0], RowsBegin[0], ColsBegin[0], 1) disp_arrow (WindowHandleZoom, RowsBegin[1], ColsBegin[1], RowsEnd[1], ColsEnd[1], 1) disp_continue_message (WindowHandleZoom, 'black', 'true') stop () dev_display (Image) angle_ll (RowsBegin[0], ColsBegin[0], RowsEnd[0], ColsEnd[0], RowsBegin[2], ColsBegin[2], RowsEnd[2], ColsEnd[2], Angle2) set_tposition (WindowHandleZoom, RowsBegin[0] - 10, ColsBegin[0] + 10) write_string (WindowHandleZoom, 'P2') set_tposition (WindowHandleZoom, RowsEnd[0] - 10, ColsEnd[0] + 10) write_string (WindowHandleZoom, 'P1') set_tposition (WindowHandleZoom, 120, 230) write_string (WindowHandleZoom, 'Angle in P2: ' + deg(Angle2).3+degrees)disparrow(WindowHandleZoom,RowsEnd[0],ColsEnd[0],RowsBegin[0],ColsBegin[0],1)disparrow(WindowHandleZoom,RowsBegin[1],ColsBegin[1],RowsEnd[1],ColsEnd[1],1)dispcontinuemessage(WindowHandleZoom,black,true)stop()devdisplay(Image)anglell(RowsBegin[0],ColsBegin[0],RowsEnd[0],ColsEnd[0],RowsBegin[2],ColsBegin[2],RowsEnd[2],ColsEnd[2],Angle2)settposition(WindowHandleZoom,RowsBegin[0]10,ColsBegin[0]+10)writestring(WindowHandleZoom,P2)settposition(WindowHandleZoom,RowsEnd[0]10,ColsEnd[0]+10)writestring(WindowHandleZoom,P1)settposition(WindowHandleZoom,120,230)writestring(WindowHandleZoom,AngleinP2:+deg(Angle2)’.3’ + ’ degrees’)
    disp_arrow (WindowHandleZoom, RowsBegin[0], ColsBegin[0], RowsEnd[0], ColsEnd[0], 1)
    disp_arrow (WindowHandleZoom, RowsEnd[2], ColsEnd[2], RowsBegin[2], ColsBegin[2], 1)
    disp_continue_message (WindowHandleZoom, ‘black’, ‘true’)
    stop ()
  • 生成多边形的XLD轮廓。
    gen_polygons_xld (ContoursSplit, Polygons, ‘ramer’, 2)
  • 提取平行多边形XLD轮廓
    gen_parallels_xld (Polygons, Parallels, 80, 75, 0.15, ‘true’)
    count_obj (Parallels, NumberParallels)
    dev_display (Image)
for i := 1 to NumberParallels by 1dev_set_color ('white')select_obj (Parallels, SelectedParallel, i)dev_display (SelectedParallel)* 得到XLD边缘平行数据get_parallels_xld (SelectedParallel, Row1Parallels, Col1Parallels, Length1Parallels, Phi1Parallels, Row2Parallels, Col2Parallels, Length2Parallels, Phi2Parallels)distance_pp (Row1Parallels[0], Col1Parallels[0], Row2Parallels[1], Col2Parallels[1], Distance2)distance_pp (Row1Parallels[1], Col1Parallels[1], Row2Parallels[0], Col2Parallels[0], Distance1)set_tposition (WindowHandleZoom, 120, 230)write_string (WindowHandleZoom, 'Distance BC: ' + Distance1$'.4' + ' pixels')set_tposition (WindowHandleZoom, 140, 230)write_string (WindowHandleZoom, 'Distance AD: ' + Distance2$'.4' + ' pixels')set_tposition (WindowHandleZoom, 340, 230)write_string (WindowHandleZoom, 'Orientation AB: ' + deg(Phi1Parallels)$'.3' + ' degrees')set_tposition (WindowHandleZoom, 360, 230)write_string (WindowHandleZoom, 'Orientation DC: ' + deg(Phi2Parallels)$'.3' + ' degrees')set_tposition (WindowHandleZoom, Row1Parallels[0] + 10, Col1Parallels[0])write_string (WindowHandleZoom, 'A')set_tposition (WindowHandleZoom, Row1Parallels[1] + 10, Col1Parallels[1])write_string (WindowHandleZoom, 'B')set_tposition (WindowHandleZoom, Row2Parallels[0] + 10, Col2Parallels[0])write_string (WindowHandleZoom, 'C')set_tposition (WindowHandleZoom, Row2Parallels[1] + 10, Col2Parallels[1])write_string (WindowHandleZoom, 'D')* dev_set_color ('yellow')disp_line (WindowHandleZoom, Row1Parallels[0], Col1Parallels[0], Row2Parallels[1], Col2Parallels[1])disp_line (WindowHandleZoom, Row1Parallels[1], Col1Parallels[1], Row2Parallels[0], Col2Parallels[0])disp_continue_message (WindowHandleZoom, 'black', 'true')stop ()
endfor

dev_set_color (‘white’)
dev_set_draw (‘margin’)
dev_display (Image)
dev_display (Rectangle)
set_tposition (WindowHandleZoom, 120, 230)
write_string (WindowHandleZoom, ‘Lenght / Width of smallest enclosing rectangle:’)
set_tposition (WindowHandleZoom, 140, 230)
write_string (WindowHandleZoom, (2 * Length1_Region)′.4′+′/′+(2∗Length2Region)'.4' + ' / ' + (2 * Length2_Region).4+/+(2Length2Region)’.4’ + ’ pixels’)
disp_continue_message (WindowHandleZoom, ‘black’, ‘true’)
stop ()
dev_set_window (WindowHandleZoom)
dev_close_window ()

处理思路

这个例子是主要讲解了xld轮廓拟合进行尺寸测量的例子。其中展示了几种方法:使用区域与xld边缘进行区域的中心提取;使用不同的方式求取两条直线的交点。

后记

大家有什么问题可以向我提问哈,我看到了第一时间回复,希望在学习的路上多多结交良师益友。

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/254978.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

双目匹配与视差计算

立体匹配主要是通过找出每对图像间的对应关系,根据三角测量原理,得到视差图;在获得了视差信息后,根据投影模型很容易地可以得到原始图像的深度信息和三维信息。立体匹配技术被普遍认为是立体视觉中最困难也是最关键的问题&#xf…

JavaEE 银联支付之网站支付-消费类交易

以银联网站支付 - 消费类交易 为例 0. 大致逻辑 前端request->后台封装参数->后台进行签名->生成跳转页面(包含表单提交内容)->响应前端(将生成的html写到浏览器中完成自动跳转打开银联支付页面) 复制代码1.acp_sdk.p…

react 开发知识准备

react react使用教程 babel babel 可用于ES6转换为ES5,jsx转换为原生js。 ES6 ES6 语法 webpack webpack打包工具,它把不同的、相互依赖的静态资源都视作模块,并且打包成我们想要的静态资源。让代码组织更清晰,一个文件就是一个模…

Linux多线程编程(不限Linux)

——本文一个例子展开,介绍Linux下面线程的操作、多线程的同步和互斥。 前言 线程?为什么有了进程还需要线程呢,他们有什么区别?使用线程有什么优势呢?还有多线程编程的一些细节问题,如线程之间怎样同步、…

概率论与数理统计-ch8-假设检验

1、假设检验 在总体的分布函数未知或只知其形式、不知其参数的情况下,为了推断总体的某些未知特性,提出关于总体的假设,然后根据样本数据对提出的假设做出接受或拒绝的决策。 步骤: 提出原假设--确定建立在样本基础上的检验统计量…

HALCON示例程序measure_metal_part_first_example.hdev通过拟合边缘进行尺寸测量

HALCON示例程序measure_metal_part_first_example.hdev通过拟合边缘进行尺寸测量 示例程序源码(加注释) 关于显示类函数解释 dev_update_off () read_image (Image, ‘metal-parts/metal-parts-01’) get_image_size (Image, Width, Height) dev_close…

简单实现仿某宝地址选择三级联动样式

内容简单介绍实现步骤第一步 找准方向第二步 开干总结还是题外话内容简单介绍 简单看一下须要实现的效果,如图: 实现步骤 第一步 找准方向 事实上就是想好要用recyclerview而不是listview。假设要问我recyclerview是什么的话。。 第二步 开干 首先须要先…

opencv双目测距实现

虽然最近注意力已经不可遏制地被神经科学、大脑记忆机制和各种毕业活动吸引过去了,但是还是觉得有必要把这段时间双目视觉方面的进展总结一下。毕竟从上一篇博文发表之后,很多同仁发E-mail来与我讨论,很多原来的疑团,也在讨论和一…

logback高级特性使用-异步记录日志

注意:该功能需要高版本才能支持,如1.0.11。AsyncAppender,异步记录日志。 工作原理: 当Logging Event进入AsyncAppender后,AsyncAppender会调用appender方法,append方法中在将event填入Buffer(这里选用的数…

Linux下c开发 之 线程通信(转)

1.Linux“线程”进程与线程之间是有区别的,不过Linux内核只提供了轻量进程的支持,未实现线程模型。Linux是一种“多进程单线程”的操作系统。Linux本身只有进程的概念,而其所谓的“线程”本质上在内核里仍然是进程。大家知道,进程…

HDU 1028 Ignatius and the Princess III

//强行递推。 xx[i][j]表示i数中第j个开头的组合种类。 /* 最终结果[i]为 sum of(xx[i][j]) (j from 1 to i); xx[i][j]sum of (xx[i-j][k]) (k from 1 to j); 例如 xx[10][4]xx[6][1]xx[6][2]xx[6][3]xx[6][4]; xx[6][1] 1; 6111111; xx[6][2]3; 6222, 62211, 621111; xx[…

HALCON示例程序measure_metal_part_id.hdev使用xld边缘拟合检测零件加工是否合格

HALCON示例程序measure_metal_part_id.hdev使用xld边缘拟合检测零件加工是否合格 示例程序源码(加注释) 关于显示类函数解释 dev_update_off () Imagefiles : [‘metal-parts/metal-part-model-01’,‘metal-parts/metal-parts-01’,‘metal-parts/meta…

编写批处理文件-------基础

第一、Windows bat 批处理文件 编写 如何编写批处理文件 批处理文件(batch file)包含一系列 DOS命令,通常用于自动执行重复性任务。 用户只需双击批处理文件便可执行任务,而无需重复输入相同指令。编写批处理文件非常简单&#xf…

主控芯片

主控芯片: 主控芯片里有310,320,3288,288,318,333,345,7501, 其中310是中星微发展比较早,比较成熟的芯片。在现在一般应用在水晶夹子之类的低端产品上。 3288也是低端芯片,318&…

MPEG2、H.263、H.264协议效率对比

[摘录]1.1 MPEG2、H.263、H.264协议效率对比ITUT中定义的双向视频通信协议族包括:H.320、H.323,这两个协议族中,包含了很多子协议,例如音频编码协议、视频编码协议等,其中视频编码包括:H.261、H.263、H.264…

WebService SOAP、Restful和HTTP(post/get)请求区别

web service(SOAP) Webservice的一个最基本的目的就是提供在各个不同平台的不同应用系统的协同工作能力。 Web service 就是一个应用程序,它向外界暴露出一个能够通过Web进行调用的API。 SOAP是一种简单基于xml的轻量协议,用户web…

Block的循环引用详解

1.首先我们创建了一个网络请求工具类 然后storyboard里面去创建了一个导航控制器 并且把它设置为初始控制器 然后拖入一个bar button --show--到自带的控制器 这个时候运行代码的结果是 x 显然这个时候没有造成循环引用 为什…

HALCON示例程序measure_pump.hdev螺纹孔位置与尺寸测量

HALCON示例程序measure_pump.hdev螺纹孔位置与尺寸测量 示例程序源码(加注释) 关于显示类函数解释 dev_update_var (‘off’) dev_update_off () read_image (Image, ‘pumpe’) get_image_size (Image, Width, Height) dev_close_window () dev_open_…

计算机视觉和图形学中的摄像机内参数矩阵详解

在计算机视觉和图形学中都有“摄像机内参数矩阵”这个概念,其含义大致相同,但在实际使用过程中,这两个矩阵却相差甚远。在增强现实中,为了使计算机绘制的虚拟物体和真实环境图像对其,需要令虚拟摄像机的内参数和真实摄…

c#和html方法互调

具体见连接:https://www.cnblogs.com/zeroLove/p/3912460.html转载于:https://www.cnblogs.com/gaara-zhang/p/8746403.html