CN102213591A - Digital image analysis device - Google Patents
Digital image analysis device Download PDFInfo
- Publication number
- CN102213591A CN102213591A CN2010101419423A CN201010141942A CN102213591A CN 102213591 A CN102213591 A CN 102213591A CN 2010101419423 A CN2010101419423 A CN 2010101419423A CN 201010141942 A CN201010141942 A CN 201010141942A CN 102213591 A CN102213591 A CN 102213591A
- Authority
- CN
- China
- Prior art keywords
- image
- digital image
- lines
- edge
- image analysis
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000011496 digital image analysis Methods 0.000 title claims abstract description 34
- 238000000034 method Methods 0.000 description 31
- 230000008569 process Effects 0.000 description 7
- 238000007689 inspection Methods 0.000 description 6
- 230000001788 irregular Effects 0.000 description 6
- 238000005259 measurement Methods 0.000 description 6
- 238000004458 analytical method Methods 0.000 description 5
- 238000012545 processing Methods 0.000 description 5
- 238000004364 calculation method Methods 0.000 description 4
- 238000004590 computer program Methods 0.000 description 4
- 238000000691 measurement method Methods 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000003908 quality control method Methods 0.000 description 2
- 238000007796 conventional method Methods 0.000 description 1
- 239000013078 crystal Substances 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000002245 particle Substances 0.000 description 1
- 238000012216 screening Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Images
Landscapes
- Image Analysis (AREA)
Abstract
本案提出一种数字影像分析装置,其包含有:用于接收与一数字影像的影像边缘相关的复数个线条设定的装置;以及用于界定该复数个线条与该数字影像的影像边缘相交的复数个影像位置的装置。当计算机执行前述数字影像分析装置中的功能模块进行数字影像辨识时,仅需分析各线条的路径上的像素值,而无须对数字影像中的全部像素进行分析,大幅降低了计算机的处理器所需的运算资源。
The present invention provides a digital image analysis device, which includes: a device for receiving a plurality of line settings related to an image edge of a digital image; and a device for defining a plurality of image positions where the plurality of lines intersect with the image edge of the digital image. When a computer executes the functional modules in the aforementioned digital image analysis device to perform digital image recognition, it only needs to analyze the pixel values on the path of each line, and does not need to analyze all pixels in the digital image, which greatly reduces the computing resources required by the computer's processor.
Description
技术领域technical field
本发明有关对影像进行数字分析的技术,尤指和数字影像辨识、量测相关的方法和数字影像分析装置。The present invention relates to the technique of digitally analyzing images, especially a method related to digital image identification and measurement and a digital image analysis device.
背景技术Background technique
数字影像辨识技术的应用范围很广,例如,在产品检测、显微量测(microscopic measurement)、影像物件辨识等许多应用中,可利用影像辨识技术来判断数字影像中特定部位的边缘、形状等影像特征。Digital image recognition technology has a wide range of applications. For example, in many applications such as product inspection, microscopic measurement, and image object recognition, image recognition technology can be used to judge the edge and shape of specific parts in digital images. image features.
然而,习知的数字影像辨识方法,需要利用计算机的处理器对数字影像的全部像素进行像素值比对和分析,耗费的运算资源很高。因此,习知的数字影像辨识方法不仅处理速度受限于计算机的处理器运算能力,且难以在处理器运算能力较低的装置上执行。However, the conventional digital image recognition method needs to use a computer processor to compare and analyze the pixel values of all the pixels of the digital image, which consumes a lot of computing resources. Therefore, the processing speed of the conventional digital image recognition method is not only limited by the computing power of the processor of the computer, but also difficult to execute on devices with low processor computing power.
除此之外,习知的影像辨识方法也容易因为影像内容(例如影像纹路、影像形状等)的关系,而影响到影像辨识的正确性。In addition, conventional image recognition methods are also likely to affect the accuracy of image recognition due to the relationship between image content (such as image texture, image shape, etc.).
有鉴于此,如何改善或解决以上所述相关领域中的数字影像辨识方法的缺失,实系有待解决的问题。In view of this, how to improve or solve the deficiency of the above-mentioned digital image recognition method in related fields is a problem to be solved.
发明内容Contents of the invention
本说明书提供了一种数字影像分析装置,其包含有:用于接收与一数字影像的影像边缘相关的复数个线条设定的装置;以及用于界定该复数个线条与该数字影像的影像边缘相交的复数个影像位置的装置。This specification provides a digital image analysis device, which includes: a device for receiving a plurality of line settings related to an image edge of a digital image; and a device for defining the plurality of lines and the image edge of the digital image A device for intersecting multiple image positions.
前述数字影像分析装置的优点之一是,计算机的处理器在进行数字影像辨识时,仅需分析各线条的路径上的像素值,而无须对数字影像中的全部像素进行分析,大幅降低了处理器所需的运算资源。One of the advantages of the aforementioned digital image analysis device is that when the processor of the computer performs digital image recognition, it only needs to analyze the pixel values on the path of each line, instead of analyzing all the pixels in the digital image, which greatly reduces the processing time. Computing resources required by the processor.
附图说明Description of drawings
图1为本发明的数字影像分析装置的一实施例简化后的功能方块图。FIG. 1 is a simplified functional block diagram of an embodiment of the digital image analysis device of the present invention.
图2为本发明的数字影像辨识方法的一实施例流程图。FIG. 2 is a flowchart of an embodiment of the digital image recognition method of the present invention.
图3与图4为第1图中的显示器的显示画面的实施例。FIG. 3 and FIG. 4 are examples of display screens of the display in FIG. 1 .
图5为图4中的数字影像的局部放大图。FIG. 5 is a partially enlarged view of the digital image in FIG. 4 .
图6与图7为图1中的显示器的显示画面的实施例。6 and 7 are examples of display screens of the display in FIG. 1 .
图8为本发明的数字影像量测方法的一实施例流程图。FIG. 8 is a flowchart of an embodiment of the digital image measurement method of the present invention.
图9为图1中的显示器的显示画面的实施例。FIG. 9 is an embodiment of a display screen of the display in FIG. 1 .
【主要元件符号说明】[Description of main component symbols]
具体实施方式Detailed ways
以下将配合相关图式来说明本发明的实施例。在这些图式中,相同的标号表示相同或类似的元件。Embodiments of the present invention will be described below in conjunction with related figures. In the drawings, the same reference numerals designate the same or similar elements.
在说明书及后续的权利要求当中使用了某些词汇来指称特定的元件。所属领域中技术人员应可理解,同样的元件可能会用不同的名词来称呼。本说明书及后续的权利要求并不以名称的差异来作为区分元件的方式,而是以元件在功能上的差异来作为区分的基准。在通篇说明书及后续的权项当中所提及的「包含」为一开放式的用语,故应解释成「包含但不限定于...」。Certain terms are used in the specification and following claims to refer to particular elements. Those skilled in the art should understand that the same element may be called by different terms. This description and the subsequent claims do not use the difference in name as the way to distinguish components, but the difference in function of the components as the basis for distinction. "Includes" mentioned throughout the specification and subsequent claims is an open term, so it should be interpreted as "including but not limited to...".
图1所绘示为本发明一实施例的数字影像分析装置100简化后的功能方块图。如图1所示,数字影像分析装置100包含有影像撷取装置110、主机120、显示器130、以及输入接口140。影像撷取装置110、显示器130及输入接口140耦接于主机120。「耦接」一词在说明书及后续的权项当中,包含任何直接及间接的连接手段。因此,影像撷取装置110、显示器130及输入接口140三者皆可直接(包含通过电性连接或无线传输、光学传输等讯号连接方式)连接至主机120,或通过其他装置或连接手段间接地电性或讯号连接至主机120。FIG. 1 is a simplified functional block diagram of a digital
影像撷取装置110是用来感测置放于承载装置150的标的物件102的影像。实施上,影像撷取装置110可以是数字相机、数字摄影机、数字显微镜或任何其他具备影像感测能力的装置。在本实施例中,主机120包含有处理器122及储存模组124。储存模组124可用一或多个储存媒体来实现。The image capturing
数字影像分析装置100可用来进行数字影像辨识或是数字影像量测的作业,以下将搭配图2来进一步说明数字影像分析装置100的运作方式。The digital
图2为本发明的数字影像辨识方法的一实施例流程图200。FIG. 2 is a
在步骤210中,主机120的处理器122会将影像撷取装置110所感测到的标的物件102的数字影像,显示在显示器130上。例如,图3中所绘示的数字影像300是影像撷取装置110所感测到的一电路板的局部影像,其中,标号302代表该电路板上的一个开孔,标号304和306则代表该电路板的两个侧边。In
对于数字影像辨识处理而言,影像边缘的辨识是相当重要的一环。界定出影像边缘的位置后,便能进一步辨识出影像的形状。为了降低数字影像辨识处理所需的运算资源和提升辨识的速度及准确度,数字影像分析装置100在执行数字影像辨识的过程中,会与使用者互动,要求使用者提供有助判断影像边缘及/或形状的辅助信息。以下将以电路板的开孔302的影像辨识过程为例来加以说明。For digital image recognition processing, the recognition of image edges is a very important part. After defining the position of the edge of the image, the shape of the image can be further identified. In order to reduce the computing resources required for digital image recognition processing and improve the speed and accuracy of recognition, the digital
在步骤220中,处理器122会将复数个辨识型样的选项,以文字或图案的形式显示于显示器130上供使用者选择。举例而言,如图3所示,处理器122可将多个辨识型样的选项(如圆形、椭圆形、多边形、不规则形、圆弧、直线、折线等等),用文字按钮的形式群组成选项列310,并显示于显示器130上。每一辨识型样选项都有一相对应的影像边缘计算方式,可用计算机程序的形式储存在储存模组124中。前述辨识型样选项的内容和数目仅为一实施例,并非局限本发明的实际实施方式。实施上,可依设计的需要增加、减少或改变辨识型样的选项和内容。In
在步骤230中,使用者需要从选项列310所呈现的多个辨识型样选项中选择与数字影像300的形状相关的一或多个辨识型样。实施上,使用者可通过输入接口140以游标点选、触控、声控、或其他指令输入方式,来选择一或多个辨识型样。在本实施例中,使用者可选择与电路板开孔302形状最接近的辨识型样「圆形」。In
在步骤240中,主机120会通过输入接口140接收使用者所选择的辨识型样设定,并记录在储存模组124中,以作为处理器122进行影像辨识时的参考依据。In
在步骤250中,使用者需要在数字影像300上粗略地设定复数个简单的线条。使用者可通过输入接口140用游标点选或触控的方式,来设定与数字影像300中欲辨识的开孔302的影像边缘相对应的复数个线条。所需线条的数量与使用者所选择的辨识型样有关。例如,当所选择的辨识型样为「圆形」或「圆弧」时,需要至少3个线条。当所选择的辨识型样为「直线」时,需要至少2个线条。当所选择的辨识型样为「多边形」、「不规则形」时,则需要较多数量的线条。In
各线条只须与欲辨识的影像物件的影像边缘相交即可,亦即,各线条的两端点要分别位于影像边缘的两侧。各线条的长度不拘,形状也不限于直线,亦可以是曲线或不规则线。为降低后续计算的复杂度,各线条最好只与单一影像边缘相交。实施上,可将显示器130与输入接口140整合在一起,例如,可利用触控萤幕来实现显示器130与输入接口140两者的功能。Each line only needs to intersect with the image edge of the image object to be identified, that is, the two ends of each line should be respectively located on both sides of the image edge. The length of each line is not limited, and the shape is not limited to a straight line, and may be a curved line or an irregular line. In order to reduce the complexity of subsequent calculations, each line preferably only intersects with a single image edge. In practice, the
如图4的实施例所示,使用者可在数字影像300上粗略地画出与开孔302的影像边缘相交的三个线条410、420和430。As shown in the embodiment of FIG. 4 , the user can roughly draw three
在步骤260中,主机120会通过输入接口140接收使用者所输入的多个线条的设定数据,并记录在储存模组124中,以作为处理器122进行影像边缘辨识时的参考依据。In
在步骤270中,处理器122会读取记录于储存模组124中的复数个线条的设定数据,并界定出该复数个线条与数字影像300中开孔302的影像边缘相交的复数个影像位置。例如,本实施例中的处理器122会计算出线条410与开孔302的影像边缘相交的影像位置412、线条420与开孔302的影像边缘相交的影像位置422、以及线条430与开孔302的影像边缘相交的影像位置432。In
处理器122计算各线条与开孔302的影像边缘相交的影像位置的方法有很多。在一实施例中,处理器122可计算各线条对应的路径上相邻像素间的像素值差异,并将像素值差异最大的位置设定为该线条与开孔302的影像边缘的相交位置。例如,在影像边缘两侧的像素值有明显差异的应用中,可采用这种影像位置的计算方式。There are many methods for the
请注意,在说明书及后续权项中所称的像素值,实施上可为像素的亮度值(1uminance)或彩度值(chrominance)。Please note that the pixel value referred to in the description and subsequent claims can be implemented as the luminance value (luminance) or chroma value (chrominance) of the pixel.
在另一实施例中,处理器122可在每一线条对应的路径上,沿着一预定方向依序计算相邻像素间的像素值差异,并将像素值差异达到或超过一预定临界值的第一个位置设定为该线条与开孔302的影像边缘的相交位置。例如,在影像边缘两侧的像素值没有显著差异,但影像边缘的像素值与影像边缘两侧的像素值明显有别的应用中,可采用这种影像位置的计算方式。为方便起见,以下以图5所绘示的数字影像300的局部放大图为例做说明。In another embodiment, the
在图5中,像素510、512、514、516、518、520、524、526及528是开孔302的影像边缘上的局部像素。像素530、532、518、516、534、536、538及540是位于线条410的路径上的像素。编号502和504则代表线条410的两个端点。使用者可藉由左右调整线条410其中一端点(例如端点504)的位置的方式,来微调线条410与开孔302的影像边缘的相交位置。这种设定一线条与一影像边缘的相交位置的方式,相较于利用滑鼠(或触控手段)直接选定影像边缘上一特定点的方式而言,能提供使用者更高的选择精度。In FIG. 5 ,
处理器122可延着方向D1,依序计算线条410的路径上两相邻像素间的像素值差异(例如,先计算像素530与532的像素值差异、再计算像素532与518的像素值差异、再计算像素518与516的像素值差异,依此类推),并与该预定临界值进行比较。在本实施例中,像素532与518的像素值差异是第一个超过该预定临界值的像素值差异,因此,处理器122可省略计算后续的像素值差异,并将像素532和像素518的交点位置552设定为线条410与开孔302的影像边缘相交的影像位置412。The
在另一实施例中,处理器122可先计算出线条410的路径上的复数个像素值的中位数或平均值,并将该中位数或平均值设为一临界值。换言之,该临界值的设定可以是动态调整的。接着,处理器122可延着方向D1,依序将线条410路径上的像素值与该临界值进行比较,并将像素值达到或跨越该临界值的第一个位置设定为线条410与开孔302的影像边缘的相交位置。假设像素518是线条410的路径沿着D1的方向上第一个像素值达到该临界值的像素,处理器122可省略比较后续的像素值,并以像素518的中心位置554作为线条410与开孔302的影像边缘相交的影像位置412。In another embodiment, the
假设像素518是线条410的路径沿着D1的方向上第一个像素值跨过该临界值(亦即像素值第一次大于或小于该临界值)的像素,处理器122可省略比较后续的像素值,并将像素518与像素532的交点位置552设定为线条410与开孔302的影像边缘相交的影像位置412。或者,处理器122亦可对像素值512和像素532的像素值进行内插运算,计算出该临界值所对应的位置556,并以位置556作为线条410与开孔302的影像边缘相交的影像位置412。Assuming that the
由前述说明可知,处理器122界定各线条与影像物件的影像边缘的相交位置时的精度(Precision),可达到比一个像素单位还小的程度。It can be seen from the above description that the precision (Precision) when the
接着,在步骤280中,处理器122会依据在步骤230中所选择的辨识型样,连接在步骤270中所获得的复数个影像位置,以辨识出数字影像300的一或多个局部边缘或完整边界。例如,在本实施例中,使用者在步骤230中所选择的辨识型样为「圆形」,故处理器122会依据在步骤270中所界定出的3个影像位置412、422及432来决定出一个圆周,以作为开孔302的影像边缘辨识结果。Next, in
辨识出一影像物件的边界(例如开孔302的圆周)后,处理器122可依需要进一步计算出该影像物件的几何特征(例如开孔302的圆心408)的所在位置。After identifying the boundary of an image object (such as the circumference of the opening 302 ), the
以下再以电路板侧边304的影像辨识过程为例来说明本发明的数字影像辨识方法。Next, the digital image recognition method of the present invention will be described by taking the image recognition process of the
由于电路板侧边304是直线型的侧边,故使用者可在步骤230中选择与电路板侧边304的形状最接近的辨识型样「直线」,并于步骤250中设定与电路板侧边304的影像边缘相交的两个线条440与450。Since the
在步骤270中,处理器122可利用前述的方式之一,界定出线条440与电路板侧边304的影像边缘相交的影像位置442,以及线条450与电路板侧边304的影像边缘相交的影像位置452。In
在步骤280中,由于储存模组124中所记录的辨识型样是「直线」,故处理器122会依据影像位置442与452决定出一直线,以作为电路板侧边304的影像边缘辨识结果。In
在另一实施例中,使用者亦可在步骤230中选择与电路板侧边304及侧边306两者的形状最接近的辨识型样「折线」,并于步骤250中设定与电路板侧边304的影像边缘相交的两个线条440与450、以及与电路板侧边306的影像边缘相交的两个线条460与470。之后,处理器122在步骤270中会界定出线条440与电路板侧边304的影像边缘相交的影像位置442、线条450与电路板侧边304的影像边缘相交的影像位置452、线条460与电路板侧边306的影像边缘相交的影像位置462、以及线条470与电路板侧边306的影像边缘相交的影像位置472。In another embodiment, in
如此一来,处理器122便可于步骤280中依据辨识型样「折线」的指示,将影像位置442、452、462及472连接成一L型折线,作为电路板侧边304及306两者的影像辨识结果。In this way, in
获得开孔302的圆心408的位置,以及电路板侧边304及306的位置后,处理器122便能进一步计算出圆心408至电路板侧边304或306的距离。After obtaining the position of the
由前述说明可知,本发明的数字影像辨识方法仅需分析各线条的路径上的像素值,便能计算出该线条与一特定影像边缘的相交位置,进而达成辨识影像边缘的目的,而无须对数字影像300中的全部像素进行分析,大幅降低了处理器122所需的运算资源。此外,由于处理器122会以使用者所输入的辨识型样设定作为进行影像辨识时的参考依据,故可大幅提升辨识数字影像的边缘或外形时的准确度。As can be seen from the foregoing description, the digital image recognition method of the present invention only needs to analyze the pixel values on the path of each line to calculate the intersection position of the line and a specific image edge, thereby achieving the purpose of identifying the edge of the image without having to All the pixels in the
在应用上,数字影像分析装置100可用来实现产品检验、品管的目的。例如,承载装置150可用生产线上的输送带来实现,用来周期性将待检验的标的物件102(如前述的电路板)送至影像撷取装置110所对准的检测区域。待检测的标的物件之间往往会有许多相似的影像特征,故使用者只需于影像撷取装置110第一次进行影像撷取与辨识时,输入适当的辅助信息(例如影像辨识型样、与影像物件边缘有关的线条等)至主机120,影像撷取装置110便可依据同样的辅助信息自动完成后续标的物件102的影像辨识处理,进而实现良品或不良品的筛选作业。以下将以图6的例子作进一步说明。In terms of application, the digital
在图6中,数字影像600是影像撷取装置110所感测到的另一电路板的局部影像,其中,标号602代表该电路板上的开孔,标号604和606则代表该电路板的两个侧边。一般而言,同一制程下的产品彼此间的差异通常会在有限的范围内。因此,数字影像分析装置100可保留使用者于辨识先前电路板的数字影像300的过程中所输入的辅助线条410、420、430、440、450、460和470,以及辨识型样「圆形」和「折线」(或「直线」)的设定。处理器122可利用前述的数字影像辨识方式之一,自动界定出线条410与开孔602的影像边缘相交的影像位置612、线条420与开孔602的影像边缘相交的影像位置622、以及线条430与开孔602的影像边缘相交的影像位置632。接着,处理器122可依据「圆形」辨识型样的设定,利用影像位置612、622及632这三个位置决定出开孔602的圆周,进而计算出开孔602的圆心608的位置。In FIG. 6 , a
相仿地,处理器122可利用前述的数字影像辨识方式之一,界定出线条440与电路板侧边604的影像边缘相交的影像位置642、线条450与电路板侧边604的影像边缘相交的影像位置652、线条460与电路板侧边606的影像边缘相交的影像位置662、以及线条470与电路板侧边606的影像边缘相交的影像位置672。接着,处理器122可于步骤280中依据辨识型样「折线」的设定,将影像位置642、652、662及672连接成一L型折线,作为电路板侧边604及606的影像辨识结果。Similarly, the
接下来,处理器122可进一步计算出开孔602的圆心608至电路板的侧边604及/或侧边606的距离,以判断开孔602的位置是否符合预设规格,进而决定该电路板是否为合格的电路板。Next, the
由前述说明可知,本发明的数字影像辨识方法应用在产品检测时,仅需使用者简单的涉入(例如,输入影像辨识型样及简单的几个线条等),便能以几乎全自动的方式完成后续产品的检测作业。再者,由于前述影像辨识及产品检验过程所需的运算资源远比习知方式低,故可有效改善品管系统的效率并降低所需的硬体成本。As can be seen from the above description, when the digital image recognition method of the present invention is applied to product inspection, it only needs the simple intervention of the user (for example, inputting the image recognition pattern and a few simple lines, etc.), and it can be almost fully automatic. To complete the testing work of subsequent products. Furthermore, since the aforementioned image recognition and product inspection processes require far less computing resources than conventional methods, the efficiency of the quality control system can be effectively improved and the required hardware costs can be reduced.
除了用来进行产品检验之外,数字影像分析装置100还可将前述的数字影像辨识方法运用在物件定位及对准的应用中。例如,当主机120的处理器122辨识出标的物件102与承载装置150上的特定位置(通常是定位线、定位边、定位角、定位点之类的设计)间的相对位置与距离后,便能控制承载装置150将标的物件102移动及/或旋转至一预定位置,以达成物件定位或对准的目的。In addition to being used for product inspection, the digital
对于呈现内凹状的数字影像而言,前述的数字影像辨识方法依然能成功地辨识出该数字影像的局部边缘或全部边界。例如,对于图7中所绘示的数字影像700而言,使用者可于步骤230中选择与数字影像700的形状接近的辨识型样「多边形」,并于步骤250中设定与数字影像700的影像边缘相交的多个线条720、730、740、750、760、770、780及790。如此一来,处理器122便能依据这些设定进行步骤270,以计算出这些线条与数字影像700的影像边缘相交的影像位置722、732、742、752、762、772、782及792。For a concave digital image, the aforementioned digital image recognition method can still successfully recognize the local edge or the entire boundary of the digital image. For example, for the
另外,使用者可再次执行前述的数字影像辨识方法,但改选辨识型样「圆弧」,并设定与圆弧710的影像边缘相交的线条702、704及706。如此,处理器122便可辨识出线条702、704及706与圆弧710的影像边缘相交的影像位置712、714及716。In addition, the user can perform the aforementioned digital image recognition method again, but instead select the recognition pattern “arc” and set the
获得前述的影像位置712、714、716、722、732、742、752、762、772、782及792后,处理器122便可进一步依据前述的辨识型样「多边形」与「圆弧」的设定进行步骤280,依据这些影像位置决定数字影像700的多个影像边缘位置,进而迅速地辨识出数字影像700的完整形状。After obtaining the aforementioned image positions 712, 714, 716, 722, 732, 742, 752, 762, 772, 782, and 792, the
对于不规则形状的数字影像而言,使用者可选择辨识型样为「不规则形」,并多设定一些与该不规则形的数字影像的影像边缘相交的线条。使用者设定的线条越多,越能提升处理器122对该数字影像的外形辨识的正确性。For the digital image of irregular shape, the user can choose to identify the pattern as "irregular shape" and set more lines intersecting with the edge of the digital image of the irregular shape. The more lines the user sets, the more accurate the
请注意,前述流程图200中各步骤的执行顺序仅为一实施例,而非局限本发明的实施方式。例如,步骤230与步骤250的顺序可以对调。此外,亦可将数字影像分析装置100设计成专门用来辨识相同形状的标的物件的数字影像,此时便可将步骤220、230和240省略。Please note that the execution sequence of the steps in the
数字影像分析装置100可将前述的数字影像辨识方法进一步应用在数字影像量测上。例如,图8所绘示为本发明的数字影像量测方法的一实施例流程图800。流程图800中的步骤210至步骤280与前述流程图200中相同标号的流程相同,为简洁起见,在此不再赘述。The digital
如图8所示,处理器122于步骤270界定出数字影像上的复数个影像位置后,可进一步执行步骤870,依据数字影像的缩放比例尺,将数字影像上两特定影像位置的间距、或多个影像位置的路径总长度,从像素距离换算成实际长度值。As shown in FIG. 8 , after the
另外,处理器122于步骤280辨识出数字影像的局部边缘或全部边界后,还可进行步骤880,依据数字影像的影像边缘辨识结果,量测数字影像的特定影像特征值。以下用图9为例来进一步说明。In addition, after the
图9中的数字影像900是一圆管的截面影像。若要量测的标的是与数字影像900的影像内缘有关的影像特征值,例如内径尺寸、内圈截面积等,则使用者可于步骤230中选择与数字影像900的影像内缘形状接近的辨识型样「圆形」,并于步骤250依照一定的方向来设定与数字影像900的影像内缘相交的复数个线条。例如,在图9的实施例中,以由内向外的方式来设定线条910、920及930。The
之后,处理器122在步骤270中只要依据前述的计算方式,在各线条的路径上沿着各线条的绘制方向进行像素值分析,便能界定出线条910与数字影像900的影像内缘相交的影像位置912、线条920与影像内缘相交的影像位置922、以及线条930与影像内缘相交的影像位置932。亦即,前述的像素值分析运算,在线条910的路径上沿着方向D1进行、在线条920的路径上沿着方向D2进行、而在线条930的路径上则是沿着方向D3进行。Afterwards, in
在步骤280中,处理器122便能利用影像位置912、922及932来决定出与辨识型样「圆形」相对应的一个圆周,以作为数字影像900的影像内缘的辨识结果。In
辨识出数字影像900影像内缘的圆周后,处理器122便可在步骤880中进一步依据数字影像900的缩放比例尺,计算出与数字影像900的影像内缘有关的影像特征值,例如该圆管截面的内径尺寸、该圆管内圈的半径、周长、截面积、平均颜色等等。After identifying the circumference of the inner edge of the
相仿地,若要量测的标的是与数字影像900的影像外缘有关的影像特征值,例如外径尺寸、圆管外圈截面积等,使用者只要于步骤250中依照一定的方向来设定与数字影像900的影像外缘相交的复数个线条。例如,在图9的实施例中,以由外向内的方式设定线条950、960及970。处理器122在步骤270中便会在线条950的路径上沿着方向D5进行像素值分析、在线条960的路径上沿着方向D6进行像素值分析、并在线条970的路径上沿着方向D7进行像素值分析,进而界定出线条950与影像外缘相交的影像位置952、线条960与影像外缘相交的影像位置962、以及线条970与影像外缘相交的影像位置972。Similarly, if the object to be measured is the image feature value related to the image outer edge of the
接着,在步骤280中,处理器122便能利用影像位置952、962及972来辨识出数字影像900的影像外缘的圆周。Then, in
因此,处理器122在步骤880中便可进一步依据数字影像900的缩放比例尺,计算出与数字影像900的影像外缘有关的影像特征值,例如该圆管截面的外径尺寸、该圆管外圈的半径、周长、截面积、平均颜色等等的数据。Therefore, in
利用前述的数字影像量测方法,使用者只需提供少量的辅助信息,数字影像分析装置100便能迅速、正确地量测出影像物件的特定几何特征(Geometrical feature)值,例如,局部边缘长度、弧长、弧度、夹角、圆心角、圆周角、弦切角、影像物件的周长、面积、半径、直径、内径、外径等,或是影像物件的平均颜色、平均亮度等影像特征值。Using the aforementioned digital image measurement method, the user only needs to provide a small amount of auxiliary information, and the digital
实施上,处理器122除了辨识数字影像中特定影像部位的外形外,还可搭配适当的影像辨识机制,进一步辨识并计算该影像部位中所包含的特定影像特征(如颗粒、晶体结构等)的位置及/或数量,让使用者能进行更多的应用。In practice, in addition to identifying the shape of a specific image part in the digital image, the
如前所述,处理器122在界定各线条与影像物件的影像边缘的相交位置时的精度,可达到比一个像素单位还小的程度。因此,当前述的数字影像辨识方法应用在数字影像量测上时,可有效提升影像量测的准确度。As mentioned above, the precision of the
请注意,权利要求书中的装置权利要求中的各组成部分与前述的计算机程序流程的各个步骤对应一致,因此,权利要求书中的装置权利要求应当理解为主要通过说明书记载的计算机程序实现前述解决方案的功能模块架构。Please note that each component in the device claim in the claims corresponds to each step of the aforementioned computer program flow. Therefore, the device claim in the claims should be understood as realizing the aforementioned computer program mainly through the computer program described in the specification. The functional module architecture of the solution.
以上所述仅为本发明的较佳实施例,凡依本发明权利要求所做的均等变化与修饰,皆应属本发明的涵盖范围。The above descriptions are only preferred embodiments of the present invention, and all equivalent changes and modifications made according to the claims of the present invention shall fall within the scope of the present invention.
Claims (15)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201010141942 CN102213591B (en) | 2010-04-01 | 2010-04-01 | Digital Image Analysis Device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201010141942 CN102213591B (en) | 2010-04-01 | 2010-04-01 | Digital Image Analysis Device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102213591A true CN102213591A (en) | 2011-10-12 |
CN102213591B CN102213591B (en) | 2013-10-23 |
Family
ID=44744994
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 201010141942 Active CN102213591B (en) | 2010-04-01 | 2010-04-01 | Digital Image Analysis Device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102213591B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI627561B (en) * | 2017-08-03 | 2018-06-21 | Window frame measuring method |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5134661A (en) * | 1991-03-04 | 1992-07-28 | Reinsch Roger A | Method of capture and analysis of digitized image data |
TW416006B (en) * | 1999-01-04 | 2000-12-21 | Optron Corp | Photoelectric tester and method for a printed circuit board |
CN1080911C (en) * | 1995-05-18 | 2002-03-13 | 欧姆龙公司 | Object observing method and device |
CN1550773A (en) * | 2003-05-07 | 2004-12-01 | ������������ʽ���� | Machine vision inspection system and method having improved operations for increased precision inspection throughput |
WO2008111724A1 (en) * | 2007-03-14 | 2008-09-18 | Daewoo Engineering & Construction Co., Ltd. | Automatic test system and test method for slump flow of concrete using computing device |
CN101334263A (en) * | 2008-07-22 | 2008-12-31 | 东南大学 | Method for locating the center of a circular target |
-
2010
- 2010-04-01 CN CN 201010141942 patent/CN102213591B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5134661A (en) * | 1991-03-04 | 1992-07-28 | Reinsch Roger A | Method of capture and analysis of digitized image data |
CN1080911C (en) * | 1995-05-18 | 2002-03-13 | 欧姆龙公司 | Object observing method and device |
TW416006B (en) * | 1999-01-04 | 2000-12-21 | Optron Corp | Photoelectric tester and method for a printed circuit board |
CN1550773A (en) * | 2003-05-07 | 2004-12-01 | ������������ʽ���� | Machine vision inspection system and method having improved operations for increased precision inspection throughput |
WO2008111724A1 (en) * | 2007-03-14 | 2008-09-18 | Daewoo Engineering & Construction Co., Ltd. | Automatic test system and test method for slump flow of concrete using computing device |
CN101334263A (en) * | 2008-07-22 | 2008-12-31 | 东南大学 | Method for locating the center of a circular target |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI627561B (en) * | 2017-08-03 | 2018-06-21 | Window frame measuring method | |
US10197384B1 (en) | 2017-08-03 | 2019-02-05 | Ching Feng Home Fashions Co., Ltd. | Window frame measuring method |
Also Published As
Publication number | Publication date |
---|---|
CN102213591B (en) | 2013-10-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI471776B (en) | Method and computing device for determining angular contact geometry | |
JP6121425B2 (en) | Measurement of belt wear by edge detection of raster images. | |
CN111640131B (en) | Cell coating detection method, device and electronic equipment | |
TW201621584A (en) | Apparatus and method for inspection of touch panel | |
TWI410880B (en) | Computer program product related to digital image analyzing | |
WO2019100407A1 (en) | Positioning of terminal screen based on transformation relation of coordinates of marking graphic points in pattern | |
EP3904865A1 (en) | Image processing device, image processing method, and image processing program | |
JP5855961B2 (en) | Image processing apparatus and image processing method | |
CN102213591B (en) | Digital Image Analysis Device | |
CN102183206A (en) | Line width measuring method for line on printed circuit board (PCB) | |
CN116703803A (en) | Method, device and system for detecting burrs on the edges of battery pole pieces | |
CN114359179A (en) | Panel detection method, system, electronic device and storage medium | |
CN118624641A (en) | A vision-based multi-hole burr detection method, system and storage medium | |
JP5299196B2 (en) | Marker detection device and program for marker detection device | |
CN116703912B (en) | Mini-host network port integrity visual detection method | |
CN119437049A (en) | Image measurement equipment and programs | |
JP2013140053A (en) | Image processor and image processing method | |
CN110705465A (en) | A Hand Shape Classification Method Based on Image Processing | |
JP2007033126A (en) | Substrate inspection device, parameter adjusting method thereof and parameter adjusting device | |
JP5921190B2 (en) | Image processing apparatus and image processing method | |
CN115937593A (en) | A method for establishing a model method, an object detection method, and related equipment | |
CN114742142A (en) | Liquid crystal display detection method and liquid crystal display detection equipment | |
CN115393305A (en) | Industrial defect detection method, device, electronic equipment and storage medium | |
CN114359177A (en) | Image display method, device, electronic device and storage medium of panel to be inspected | |
CN105930004A (en) | Method and device for identifying terminal usage patterns |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |