CN108961212A - A kind of position finding and detection method of product, device and electronic equipment - Google Patents
A kind of position finding and detection method of product, device and electronic equipment Download PDFInfo
- Publication number
- CN108961212A CN108961212A CN201810528893.5A CN201810528893A CN108961212A CN 108961212 A CN108961212 A CN 108961212A CN 201810528893 A CN201810528893 A CN 201810528893A CN 108961212 A CN108961212 A CN 108961212A
- Authority
- CN
- China
- Prior art keywords
- product
- minimum
- distance
- minimum circumscribed
- point
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/0002—Inspection of images, e.g. flaw detection
- G06T7/0004—Industrial image inspection
- G06T7/0008—Industrial image inspection checking presence/absence
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/60—Analysis of geometric attributes
- G06T7/66—Analysis of geometric attributes of image moments or centre of gravity
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/70—Determining position or orientation of objects or cameras
- G06T7/73—Determining position or orientation of objects or cameras using feature-based methods
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10004—Still image; Photographic image
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Computer Vision & Pattern Recognition (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Geometry (AREA)
- Image Analysis (AREA)
- Length Measuring Devices By Optical Means (AREA)
Abstract
本发明公开了一种产品的定位检测方法、装置及电子设备,该定位检测方法包括:控制相机采集待定位产品的图像;确定图像中待定位产品的最小外接形状;根据最小外接形状的中心点,判断待定位产品是否定位准确。这样,通过本发明的定位检测方法,可以检测出待定位产品的边缘残缺、或者吸嘴在吸取待定位产品的过程中露出吸嘴的问题。可以提高产品定位的准确性,可以提高产品的生产良率。进一步地,可以节省成本,提高产品的使用率。
The invention discloses a product positioning detection method, device and electronic equipment. The positioning detection method includes: controlling a camera to collect an image of a product to be positioned; determining the minimum circumscribed shape of the product to be positioned in the image; , to determine whether the positioning of the product to be positioned is accurate. In this way, through the positioning detection method of the present invention, it is possible to detect the problem that the edge of the product to be positioned is incomplete, or the suction nozzle is exposed during the process of sucking the product to be positioned. The accuracy of product positioning can be improved, and the production yield of products can be improved. Further, the cost can be saved and the utilization rate of the product can be improved.
Description
技术领域technical field
本发明涉及产品的定位检测技术领域,更具体地,本发明涉及一种产品的定位检测方法、装置及电子设备。The present invention relates to the technical field of product positioning detection, and more specifically, the present invention relates to a product positioning detection method, device and electronic equipment.
背景技术Background technique
3C产品就是计算机(Computer)、通信(Communication)和消费类电子产品(Consumer Electronics)三者结合,通常指的是电脑、平板电脑、移动电话、数码相机、随身听、电子辞典、影音播放之硬件设备或数字音频播放器。3C products are the combination of computer (Computer), communication (Communication) and consumer electronics (Consumer Electronics), usually referring to the hardware of computers, tablet computers, mobile phones, digital cameras, walkmans, electronic dictionaries, and audio-visual players device or digital audio player.
在3C产品的电子组件生产过程中,产品同心度对性能的影响非常大,粘接设备越来越广泛的使用相机引导定位。影响产品贴合的精度有很多,例如产品边缘残缺、吸产品定位的时候露吸嘴导致错误定位。In the production process of electronic components of 3C products, the concentricity of the product has a great influence on the performance, and the bonding equipment is more and more widely used to guide the positioning of the camera. There are many factors that affect the accuracy of product fit, such as incomplete edges of the product, and incorrect positioning caused by the exposure of the suction nozzle when the product is positioned.
在定位产品的同时,传统的定位检测方法只是检测产品的中心,而没有检测定位边是否是产品的真正边缘,因此,无法检测到产品是否有残缺和露吸嘴的情况导致定位错误的问题。这样,测试人员不知道定位是否准确,如果出现粘接不良的情况时排查问题非常麻烦。While positioning the product, the traditional positioning detection method only detects the center of the product, but does not detect whether the positioning edge is the real edge of the product. Therefore, it is impossible to detect whether the product is incomplete or the nozzle is exposed, which leads to positioning errors. In this way, the tester does not know whether the positioning is accurate, and it is very troublesome to troubleshoot the problem if there is a bad bonding.
发明内容Contents of the invention
本发明的一个目的是提供一种能够测试无刷电机可靠性的测试系统。An object of the present invention is to provide a test system capable of testing the reliability of a brushless motor.
根据本发明的第一方面,提供了一种产品的定位检测方法,包括:According to a first aspect of the present invention, a product positioning detection method is provided, including:
控制相机采集待定位产品的图像;Control the camera to collect the image of the product to be positioned;
确定所述图像中所述待定位产品的最小外接形状;determining the minimum circumscribed shape of the product to be positioned in the image;
根据所述最小外接形状的中心点,判断所述待定位产品是否定位准确。According to the central point of the smallest circumscribed shape, it is judged whether the positioning of the product to be positioned is accurate.
可选的是,所述待定位产品为矩形,所述最小外接形状为最小外接矩形,所述根据所述最小外接形状的中心点,判断所述待定位产品是否定位准确包括:Optionally, the product to be positioned is a rectangle, the minimum circumscribed shape is a minimum circumscribed rectangle, and the determining whether the product to be positioned is accurately positioned according to the center point of the minimum circumscribed shape includes:
确定平行于所述最小外接矩形长度方向且通过所述最小外接矩形中心的第一轴线、及平行于所述最小外接矩形宽度方向且通过所述最小外接矩形中心的第二轴线;determining a first axis parallel to the length direction of the minimum circumscribed rectangle and passing through the center of the minimum circumscribed rectangle, and a second axis parallel to the width direction of the minimum circumscribed rectangle and passing through the center of the minimum circumscribed rectangle;
计算所述待定位产品的长度方向边缘上的N个点到所述第一轴线的距离、及所述待定位产品的宽度方向边缘上的M个点到所述第二轴线的距离,其中,N和M为大于1的整数;Calculating distances from N points on the edge of the product to be positioned in the length direction to the first axis, and distances from M points on the edge of the product to be positioned in the width direction to the second axis, wherein, N and M are integers greater than 1;
判断所述N个点到所述第一轴线的距离的最大值与最小值的差是否超过预先设定的第一阈值,或者,所述M个点到所述第二轴线的距离的最大值和最小值的差是否超过预先设定的第二阈值;如是,则:Judging whether the difference between the maximum value and minimum value of the distances between the N points and the first axis exceeds a preset first threshold, or the maximum value of the distances between the M points and the second axis Whether the difference with the minimum value exceeds the preset second threshold; if so, then:
判定所述待定位产品定位错误。It is determined that the positioning of the product to be positioned is wrong.
可选的是,所述待定位产品为圆形,所述最小外接形状为最小外接圆形,所述根据所述最小外接形状的中心点,判断所述待定位产品是否定位准确包括:Optionally, the product to be positioned is a circle, the minimum circumscribed shape is a minimum circumscribed circle, and judging whether the product to be positioned is accurately positioned according to the center point of the minimum circumscribed shape includes:
计算所述待定位产品的边缘上的L个点到所述最小外接圆形的中心点的距离,其中,L为大于1的整数;Calculate the distance from L points on the edge of the product to be positioned to the center point of the smallest circumscribed circle, where L is an integer greater than 1;
判断所述L个点到所述最小外接圆形的中心点的距离的最大值和最小值的差是否超过预先设定的第三阈值,如是,则:Judging whether the difference between the maximum value and the minimum value of the distance between the L points and the center point of the smallest circumscribed circle exceeds a preset third threshold, if so, then:
判定所述待定位产品定位错误。It is determined that the positioning of the product to be positioned is wrong.
可选的是,所述定位检测方法还包括:Optionally, the location detection method also includes:
在判定所述待定位产品定位错误的情况下,控制吸取所述待定位产品的吸嘴重新吸取其他产品。When it is determined that the positioning of the product to be positioned is wrong, the suction nozzle that sucks the product to be positioned is controlled to pick up another product again.
根据本发明的第二方面,提供了一种产品的定位检测装置,包括:According to a second aspect of the present invention, a product positioning detection device is provided, comprising:
采集模块,用于控制相机采集待定位产品的图像;The collection module is used to control the camera to collect the image of the product to be positioned;
形状确定模块,用于确定所述图像中所述待定位产品的最小外接形状;a shape determination module, configured to determine the minimum circumscribed shape of the product to be positioned in the image;
定位判断模块,用于根据所述最小外接形状的中心点,判断所述待定位产品是否定位准确。The positioning judging module is used to judge whether the positioning of the product to be positioned is accurate according to the center point of the minimum circumscribed shape.
可选的是,所述待定位产品为矩形,所述最小外接形状为最小外接矩形,所述定位判断模块包括:Optionally, the product to be positioned is a rectangle, the minimum circumscribed shape is a minimum circumscribed rectangle, and the positioning judgment module includes:
轴线确定单元,用于确定平行于所述最小外接矩形长度方向且通过所述最小外接矩形中心的第一轴线、及平行于所述最小外接矩形宽度方向且通过所述最小外接矩形中心的第二轴线;An axis determining unit, configured to determine a first axis parallel to the length direction of the minimum circumscribed rectangle and passing through the center of the minimum circumscribed rectangle, and a second axis parallel to the width direction of the minimum circumscribed rectangle and passing through the center of the minimum circumscribed rectangle axis;
第一距离计算单元,用于计算所述待定位产品的长度方向边缘上的N个点到所述第一轴线的距离、及所述待定位产品的宽度方向边缘上的M个点到所述第二轴线的距离,其中,N和M为大于1的整数;The first distance calculation unit is used to calculate the distance from N points on the edge of the length direction of the product to be positioned to the first axis, and the distance from M points on the edge of the width direction of the product to be positioned to the The distance of the second axis, wherein, N and M are integers greater than 1;
第一判断单元,用于判断所述N个点到所述第一轴线的距离的最大值与最小值的差是否超过预先设定的第一阈值,或者,所述M个点到所述第二轴线的距离的最大值和最小值的差是否超过预先设定的第二阈值;The first judging unit is configured to judge whether the difference between the maximum value and the minimum value of the distances between the N points and the first axis exceeds a preset first threshold, or whether the distance between the M points and the first axis is greater than a preset first threshold. Whether the difference between the maximum value and the minimum value of the distance between the two axes exceeds a preset second threshold;
第一判定单元,用于在所述第一判断单元的判断结果为是的情况下,判定所述待定位产品定位错误。A first judging unit, configured to judge that the positioning of the product to be positioned is wrong when the judging result of the first judging unit is yes.
可选的是,所述待定位产品为圆形,所述最小外接形状为最小外接圆形,所述根据所述最小外接形状的中心点,所述定位判断模块包括:Optionally, the product to be positioned is a circle, the minimum circumscribed shape is a minimum circumscribed circle, and according to the center point of the minimum circumscribed shape, the positioning judgment module includes:
第二距离计算单元,用于计算所述待定位产品的边缘上的L个点到所述最小外接圆形的中心点的距离,其中,L为大于1的整数;The second distance calculation unit is used to calculate the distance from L points on the edge of the product to be positioned to the center point of the smallest circumscribed circle, where L is an integer greater than 1;
第二判断单元,用于判断所述L个点到所述最小外接圆形的中心点的距离的最大值和最小值的差是否超过预先设定的第三阈值;The second judging unit is used to judge whether the difference between the maximum value and the minimum value of the distance between the L points and the center point of the smallest circumscribed circle exceeds a preset third threshold;
第二判定单元,用于在所述第二判断单元的判断结果为是的情况下,判定所述待定位产品定位错误。The second judging unit is configured to judge that the positioning of the product to be positioned is wrong when the judging result of the second judging unit is yes.
可选的是,所述定位检测装置还包括:Optionally, the location detection device also includes:
控制模块,用于在所述定位判断模块判定所述待定位产品定位错误的情况下,控制吸取所述待定位产品的吸嘴重新吸取其他产品。A control module, configured to control the suction nozzle that picks up the product to be positioned to pick up another product again when the positioning judging module determines that the product to be positioned is wrongly positioned.
根据本发明的第三方面,提供了一种电子设备,包括根据本发明第二方面所述的定位检测装置。According to a third aspect of the present invention, an electronic device is provided, including the positioning detection device according to the second aspect of the present invention.
根据本发明的第四方面,提供了一种电子设备,包括处理器和存储器,所述存储器用于存储指令,所述指令用于控制所述处理器执行根据本发明第一方面所述的定位检测方法。According to a fourth aspect of the present invention, an electronic device is provided, including a processor and a memory, the memory is used to store instructions, and the instructions are used to control the processor to perform the positioning according to the first aspect of the present invention Detection method.
本发明的一个有益效果在于,通过本发明的定位检测方法,可以检测出待定位产品的边缘残缺、或者吸嘴在吸取待定位产品的过程中露出吸嘴的问题。可以提高产品定位的准确性,可以提高产品的生产良率。进一步地,可以节省成本,提高产品的使用率。One of the beneficial effects of the present invention is that, through the positioning detection method of the present invention, the problem that the edge of the product to be positioned is incomplete or the suction nozzle is exposed during the process of sucking the product to be positioned can be detected. The accuracy of product positioning can be improved, and the production yield of products can be improved. Further, the cost can be saved and the utilization rate of the product can be improved.
通过以下参照附图对本发明的示例性实施例的详细描述,本发明的其它特征及其优点将会变得清楚。Other features of the present invention and advantages thereof will become apparent from the following detailed description of exemplary embodiments of the present invention with reference to the accompanying drawings.
附图说明Description of drawings
被结合在说明书中并构成说明书的一部分的附图示出了本发明的实施例,并且连同其说明一起用于解释本发明的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention.
图1为根据本发明产品的定位检测方法的一种实施例的流程图;Fig. 1 is a flow chart of an embodiment of a product location detection method according to the present invention;
图2为根据本发明图像中的待定位产品与最小外接形状的一种实施例的示意图;Fig. 2 is a schematic diagram of an embodiment of a product to be positioned and a minimum circumscribed shape in an image according to the present invention;
图3为根据本发明图像中的待定位产品与最小外接形状的另一种实施例的示意图;Fig. 3 is a schematic diagram of another embodiment of the product to be positioned and the minimum circumscribed shape in the image according to the present invention;
图4为根据本发明产品的定位检测方法的另一种实施例的流程图;FIG. 4 is a flow chart of another embodiment of a product location detection method according to the present invention;
图5为根据本发明产品的定位检测方法的第三种实施例的流程图;FIG. 5 is a flow chart of a third embodiment of a product location detection method according to the present invention;
图6为根据本发明产品的定位检测装置的一种实施例的方框原理图;Fig. 6 is a block schematic diagram of an embodiment of a positioning detection device according to a product of the present invention;
图7为根据本发明产品的定位检测装置的另一种实施例的方框原理图;Fig. 7 is a block schematic diagram of another embodiment of the positioning detection device according to the product of the present invention;
图8为根据本发明电子设备的一种实施例的方框原理图。FIG. 8 is a block schematic diagram of an embodiment of an electronic device according to the present invention.
具体实施方式Detailed ways
现在将参照附图来详细描述本发明的各种示例性实施例。应注意到:除非另外具体说明,否则在这些实施例中阐述的部件和步骤的相对布置、数字表达式和数值不限制本发明的范围。Various exemplary embodiments of the present invention will now be described in detail with reference to the accompanying drawings. It should be noted that the relative arrangements of components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless specifically stated otherwise.
以下对至少一个示例性实施例的描述实际上仅仅是说明性的,决不作为对本发明及其应用或使用的任何限制。The following description of at least one exemplary embodiment is merely illustrative in nature and in no way taken as limiting the invention, its application or uses.
对于相关领域普通技术人员已知的技术、方法和设备可能不作详细讨论,但在适当情况下,所述技术、方法和设备应当被视为说明书的一部分。Techniques, methods and devices known to those of ordinary skill in the relevant art may not be discussed in detail, but where appropriate, such techniques, methods and devices should be considered part of the description.
在这里示出和讨论的所有例子中,任何具体值应被解释为仅仅是示例性的,而不是作为限制。因此,示例性实施例的其它例子可以具有不同的值。In all examples shown and discussed herein, any specific values should be construed as exemplary only, and not as limitations. Therefore, other instances of the exemplary embodiment may have different values.
应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步讨论。It should be noted that like numerals and letters denote like items in the following figures, therefore, once an item is defined in one figure, it does not require further discussion in subsequent figures.
为了解决现有技术中存在的产品定位错误导致后续产品出现粘接不良的情况时排查问题非常麻烦的问题,提供了一种产品的定位检测方法。In order to solve the problem in the prior art that it is very troublesome to troubleshoot problems when product positioning errors lead to poor bonding of subsequent products, a product positioning detection method is provided.
图1为根据本发明产品的定位检测方法的一种实施例的流程图。Fig. 1 is a flowchart of an embodiment of a product location detection method according to the present invention.
根据图1所示,该定位检测方法包括:As shown in Figure 1, the positioning detection method includes:
步骤S110,控制相机采集待定位产品的图像。Step S110, controlling the camera to collect images of the product to be positioned.
例如,可以是在采用相机引导定位的粘接设备等通过吸嘴吸取待定位产品的情况下,控制相机采集待定位产品的图像,待定位产品位于吸嘴和相机之间。待定位产品可以是吸嘴吸取的产品。For example, in the case of using a camera-guided positioning bonding device to suck the product to be positioned through the suction nozzle, the camera is controlled to collect images of the product to be positioned, and the product to be positioned is located between the suction nozzle and the camera. The product to be positioned may be a product picked up by the suction nozzle.
步骤S120,确定该图像中待定位产品的最小外接形状。Step S120, determining the minimum circumscribed shape of the product to be positioned in the image.
具体的,该最小外接形状与待定位产品的形状大致相同,可以是规则的矩形或者圆形。可以是通过轮询调整最小外接形状的位置、尺寸或者旋转角度,以使最小外接形状的边缘与图像中待定位产品的边缘大致重合。最小外接形状的边缘与图像中待定位产品的边缘大致重合包括:最小外接形状的边缘与图像中待定位产品的边缘完全接触重合、图像中待定位产品的部分边缘与最小外接形状的边缘未接触重合。可以是图像中待定位产品部分超出最小外接形状的范围,具体可以是如图2所示,其中白色部分为图像中的待定位产品,白色方框为最小外接形状;也可以是图像中待定位产品部分在最小外接形状的范围内、但未接触到最小外接形状的边缘,具体可以是如图3所示,其中白色部分为图像中的待定位产品,白色方框为最小外接形状。Specifically, the minimum circumscribed shape is roughly the same as the shape of the product to be positioned, and may be a regular rectangle or circle. The position, size or rotation angle of the smallest circumscribed shape may be adjusted by polling, so that the edge of the smallest circumscribed shape roughly coincides with the edge of the product to be positioned in the image. The edge of the smallest circumscribed shape roughly coincides with the edge of the product to be positioned in the image includes: the edge of the smallest circumscribed shape is completely in contact with the edge of the product to be positioned in the image, and part of the edge of the product to be positioned in the image is not in contact with the edge of the smallest circumscribed shape coincide. It can be that the part of the product to be positioned in the image exceeds the range of the minimum circumscribed shape, specifically as shown in Figure 2, where the white part is the product to be positioned in the image, and the white box is the minimum circumscribed shape; it can also be the area to be positioned in the image The part of the product is within the range of the minimum circumscribed shape, but does not touch the edge of the minimum circumscribed shape, specifically as shown in Figure 3, where the white part is the product to be positioned in the image, and the white box is the minimum circumscribed shape.
步骤S130,根据待定位产品的边缘、及最小外接形状的中心点,判断待定位产品是否定位准确。Step S130, according to the edge of the product to be positioned and the center point of the smallest circumscribed shape, it is judged whether the product to be positioned is positioned correctly.
根据该待定位产品的边缘在图像中的坐标、及最小外接形状的中心点在图像中的坐标,可以确定该待定位产品是否定位准确。According to the coordinates of the edge of the product to be positioned in the image and the coordinates of the center point of the smallest circumscribed shape in the image, it can be determined whether the product to be positioned is positioned accurately.
在此基础上,如果待定位产品定位准确,则控制吸取该待定位产品的吸嘴将该待定位产品放置在目标位置上。如果待定位产品定位错误,则说明可能出现待定位产品的边缘残缺、或者吸嘴在吸取待定位产品的过程中露出吸嘴的问题。因此,在待定位产品定位错误的情况下,该定位检测方法还包括:控制吸取该待定位产品的吸嘴放弃该待定位产品,重新吸取其他产品。其中,其他产品具体可以是与该定位产品相同。On this basis, if the positioning of the product to be positioned is accurate, the suction nozzle that sucks the product to be positioned is controlled to place the product to be positioned on the target position. If the positioning of the product to be positioned is wrong, it may indicate that the edge of the product to be positioned is incomplete, or the suction nozzle is exposed during the process of sucking the product to be positioned. Therefore, in the case that the positioning of the product to be positioned is wrong, the positioning detection method further includes: controlling the suction nozzle that picks up the product to be positioned to abandon the product to be positioned and pick up other products again. Wherein, other products may specifically be the same as the positioning product.
这样,通过本发明的定位检测方法,可以检测出待定位产品的边缘残缺、或者吸嘴在吸取待定位产品的过程中露出吸嘴的问题。可以提高产品定位的准确性,可以提高产品的生产良率。进一步地,可以节省成本,提高产品的使用率。In this way, through the positioning detection method of the present invention, it is possible to detect the problem that the edge of the product to be positioned is incomplete, or the suction nozzle is exposed during the process of sucking the product to be positioned. The accuracy of product positioning can be improved, and the production yield of products can be improved. Further, the cost can be saved and the utilization rate of the product can be improved.
在本发明的一个具体实施例中,待定位产品为矩形,例如可以是直角矩形或者是圆角矩形。那么,图像中该待定位产品的最小外接形状为最小外接矩形。In a specific embodiment of the present invention, the product to be positioned is a rectangle, such as a rectangle with right angles or a rectangle with rounded corners. Then, the minimum circumscribed shape of the product to be positioned in the image is the minimum circumscribed rectangle.
具体的,可以是通过轮询调整矩形框的位置、长度、宽度和旋转角度的方式,来确定图像中待定位产品的最小外接矩形。其中,待定位产品的每个边的至少部分与该最小外接矩形的边缘对应接触重合。Specifically, the minimum circumscribed rectangle of the product to be positioned in the image may be determined by polling and adjusting the position, length, width, and rotation angle of the rectangular frame. Wherein, at least part of each side of the product to be positioned is in contact with the edge of the smallest circumscribed rectangle.
在确定最小外接矩形的情况下,可以得到该最小外接矩形的中心点在图像中的坐标、该最小外接矩形在图像中的长度、宽度和旋转角度。In the case of determining the minimum circumscribed rectangle, the coordinates of the center point of the minimum circumscribed rectangle in the image, the length, width and rotation angle of the minimum circumscribed rectangle in the image can be obtained.
进一步地,步骤S130可以包括如图4所示的步骤S131a~S135a。Further, step S130 may include steps S131a-S135a as shown in FIG. 4 .
步骤S131a,确定平行于最小外接矩形长度方向且通过最小外接矩形中心的第一轴线、及平行于最小外接矩形宽度方向且通过最小外接矩形中心的第二轴线。Step S131a, determining a first axis parallel to the length direction of the minimum circumscribed rectangle and passing through the center of the minimum circumscribed rectangle, and a second axis parallel to the width direction of the minimum circumscribed rectangle and passing through the center of the minimum circumscribed rectangle.
其中,第一轴线是通过中心点且平行于最小外接矩形长度方向的直线,第二轴线是通过中心点且平行于最小外接矩形宽度方向的直线。根据中心点的坐标、最小外接矩形的长度、宽度和旋转角度,就可以确定第一轴线和第二轴线。例如,第一轴线l1可以为:A1x+B1y+C1=0;第二轴线l2可以为:A2x+B2y+C2=0。Wherein, the first axis is a straight line passing through the center point and parallel to the length direction of the smallest circumscribed rectangle, and the second axis is a straight line passing through the center point and parallel to the width direction of the smallest circumscribed rectangle. According to the coordinates of the center point, the length, width and rotation angle of the minimum circumscribed rectangle, the first axis and the second axis can be determined. For example, the first axis l1 may be: A 1 x+B 1 y+C 1 =0; the second axis l2 may be: A 2 x+B 2 y+C 2 =0.
步骤S132a,计算该待定位产品的长度方向边缘上的N个点到第一轴线的距离、及待定位产品的宽度方向边缘上的M个点到第二轴线的距离。Step S132a, calculating distances from N points on the edge of the product to be positioned in the length direction to the first axis, and distances from M points on the edge of the product to be positioned in the width direction to the second axis.
其中,N和M为大于1的整数,N和M可以相等,也可以不等。Wherein, N and M are integers greater than 1, and N and M may be equal or unequal.
在第一轴线l1为A1x+B1y+C1=0;第二轴线为A2x+B2y+C2=0的情况下,N个点中的任意一个点(x1,y1)到第一轴线的距离可以为M个点中的任意一个点(x2,y2)到第二轴线的距离可以为 In the case that the first axis l1 is A 1 x+B 1 y+C 1 =0; the second axis is A 2 x+B 2 y+C 2 =0, any one of the N points (x 1 ,y 1 ) to the first axis can be The distance from any point (x 2 , y 2 ) in the M points to the second axis can be
步骤S133a,判断N个点到第一轴线的距离的最大值和最小值的差是否超过预先设定的第一阈值,或者,M个点到第二轴线的距离的最大值和最小值的差是否超过预先设定的第二阈值,如是,则执行步骤S134a;如否,则执行步骤S135a。Step S133a, judging whether the difference between the maximum value and the minimum value of the distance between the N points and the first axis exceeds the preset first threshold, or the difference between the maximum value and the minimum value of the distance between the M points and the second axis Whether it exceeds the preset second threshold, if yes, execute step S134a; if no, execute step S135a.
具体的,可以是选取N个点到第一轴线的距离中的最大值和最小值,并计算最大值和最小值的差,判断该差是否超过第一阈值,如是,则判定N个点到第一轴线的距离的最大值和最小值的差超过第一阈值;选取M个点到第二轴线的距离中的最大值和最小值,并计算最大值和最小值的差,判断该差是否超过第二阈值,如是,则判定M个点到第二轴线的距离的最大值和最小值的差超过第二阈值。Specifically, it may be to select the maximum value and the minimum value among the distances from N points to the first axis, and calculate the difference between the maximum value and the minimum value, and judge whether the difference exceeds the first threshold, and if so, determine whether the distance between N points and the first axis is The difference between the maximum value and the minimum value of the distance of the first axis exceeds the first threshold; select the maximum value and minimum value of the distances from M points to the second axis, and calculate the difference between the maximum value and the minimum value, and judge whether the difference is If it exceeds the second threshold, if yes, it is determined that the difference between the maximum and minimum distances between the M points and the second axis exceeds the second threshold.
进一步地,也可以是计算N个点中任意两个点到第一轴线的距离的差,并判断是否有两个点到第一轴线的距离的差的绝对值超过第一阈值,如是,则判定N个点到第一轴线的距离的最大值和最小值的差超过第一阈值;如否,则判定N个点到第一轴线的距离的最大值和最小值的差小于或等于第一阈值。计算M个点中任意两个点到第二轴线的距离的差,并判定是否有两个点到第二轴线的距离的差的绝对值超过第二阈值,如是,则判定第二轴线的距离的最大值和最小值的差超过第二阈值;如否,则判定M个点到第二轴线的距离的最大值和最小值的差小于或等于第二阈值。Further, it is also possible to calculate the difference between the distances between any two points of the N points and the first axis, and determine whether the absolute value of the difference between the distances between two points and the first axis exceeds the first threshold, and if so, then Determine that the difference between the maximum value and minimum value of the distance between N points and the first axis exceeds the first threshold; if not, then determine that the difference between the maximum value and minimum value of the distance between N points and the first axis is less than or equal to the first threshold threshold. Calculate the difference between the distances between any two points of the M points and the second axis, and determine whether the absolute value of the difference between the distances between two points and the second axis exceeds the second threshold, and if so, determine the distance of the second axis The difference between the maximum value and the minimum value exceeds the second threshold; if not, it is determined that the difference between the maximum value and the minimum value of the distances from the M points to the second axis is less than or equal to the second threshold.
如果N个点到第一轴线的距离的最大值和最小值的差超过第一阈值、或者M个点到第二轴线的距离的最大值和最小值的差超过第二阈值,则执行步骤S134a。如果N个点到第一轴线的距离的最大值和最小值的差小于或等于第一阈值、且M个点到第二轴线的距离的最大值和最小值的差小于或等于第二阈值,则执行步骤S135a。If the difference between the maximum value and the minimum value of the distances from the N points to the first axis exceeds the first threshold, or the difference between the maximum value and the minimum value of the distances from the M points to the second axis exceeds the second threshold, then perform step S134a . If the difference between the maximum value and the minimum value of the distances from the N points to the first axis is less than or equal to the first threshold, and the difference between the maximum value and the minimum value of the distances from the M points to the second axis is less than or equal to the second threshold, Then execute step S135a.
步骤S134a,判定待定位产品定位错误。Step S134a, determining that the positioning of the product to be positioned is wrong.
步骤S135a,判定待定位产品定位准确。Step S135a, determining that the positioning of the product to be positioned is accurate.
在本发明的另一个具体实施例中,该待定位产品为圆形,那么,图像中该待定位产品的最小外接形状为最小外接圆形。In another specific embodiment of the present invention, the product to be positioned is a circle, then the smallest circumscribed shape of the product to be positioned in the image is the smallest circumscribed circle.
具体的,可以是通过轮询调整圆形框的位置和半径的方式,来确定图像中待定位产品的最小外接圆形。其中,待定位产品的每个边的至少部分与该最小外接圆形的边缘对应接触重合。Specifically, the smallest circumscribed circle of the product to be positioned in the image may be determined by polling to adjust the position and radius of the circular frame. Wherein, at least part of each edge of the product to be positioned is in corresponding contact with the edge of the smallest circumscribed circle.
在确定最小外接圆形的情况下,可以得到该最小外接矩形的中心点在图像中的坐标。In the case of determining the minimum circumscribed circle, the coordinates of the center point of the minimum circumscribed rectangle in the image can be obtained.
进一步地,步骤S130可以包括如图5所示的步骤S131b~S134b。Further, step S130 may include steps S131b to S134b as shown in FIG. 5 .
步骤S131b,计算待定位产品的边缘上的L个点到最小外接圆形的中心点的距离。Step S131b, calculating the distance from L points on the edge of the product to be positioned to the center point of the smallest circumscribed circle.
在最小外接圆形的中心点的坐标为(x0,y0)的情况下,L个点中的任意一个点(x3,y3)到中心点的距离可以为 In the case where the coordinates of the center point of the smallest circumscribed circle are (x 0 , y 0 ), the distance from any point (x 3 , y 3 ) in the L points to the center point can be
步骤S132b,判断L个点到最小外接圆形的中心点的距离的最大值和最小值的差是否超过预先设定的第三阈值,如是,则执行步骤S133b;如否,则执行步骤S134b。Step S132b, judging whether the difference between the maximum value and the minimum value of the distance between the L points and the center point of the smallest circumscribed circle exceeds the preset third threshold, if yes, execute step S133b; if not, execute step S134b.
具体的,可以是选取L个点到中心点的距离中的最大值和最小值,并计算最大值和最小值的差,判断该差是否超过第三阈值,如是,则判定L个点到中心点的距离中的最大值和最小值的差超过第三阈值。Specifically, it may be to select the maximum value and the minimum value among the distances from L points to the center point, and calculate the difference between the maximum value and the minimum value, and judge whether the difference exceeds the third threshold, and if so, determine whether the distance between the L points and the center point is The difference between the maximum value and the minimum value in the distance of the points exceeds a third threshold.
进一步地,也可以是计算L个点中任意两个点到中心点的距离的差,并判断是否有两个点到中心点的距离的差的绝对值超过第三阈值,如是,则判定L个点到中心点的距离中的最大值和最小值的差超过第三阈值;如否,则判定L个点到中心点的距离中的最大值和最小值的差小于或等于第三阈值。Further, it is also possible to calculate the distance difference between any two points in the L points and the center point, and judge whether the absolute value of the difference between the distances between the two points and the center point exceeds the third threshold, and if so, determine L The difference between the maximum value and the minimum value in the distances from points to the center point exceeds the third threshold; if not, then determine that the difference between the maximum value and the minimum value in the distances from L points to the center point is less than or equal to the third threshold.
如果L个点到中心点的距离中的最大值和最小值的差超过第三阈值,则执行步骤S133b。如果L个点到中心点的距离中的最大值和最小值的差的差小于或等于第三阈值,则执行步骤S134b。If the difference between the maximum value and the minimum value among the distances from the L points to the central point exceeds the third threshold, step S133b is executed. If the difference between the maximum value and the minimum value among the distances from the L points to the central point is less than or equal to the third threshold, step S134b is performed.
步骤S133b,判定待定位产品定位错误。Step S133b, determining that the positioning of the product to be positioned is wrong.
步骤S134b,判定待定位产品定位准确。Step S134b, determining that the positioning of the product to be positioned is accurate.
图6为根据本发明产品的定位检测装置的一种实施例的方框原理图。Fig. 6 is a schematic block diagram of an embodiment of a product location detection device according to the present invention.
根据图6所示,该定位检测装置包括采集模块610、形状确定模块620和定位判断模块630。该采集模块610用于控制相机采集待定位产品的图像;该形状确定模块620用于确定图像中待定位产品的最小外接形状;该定位判断模块630用于根据最小外接形状的中心点,判断待定位产品是否定位准确。As shown in FIG. 6 , the location detection device includes an acquisition module 610 , a shape determination module 620 and a location judgment module 630 . The collection module 610 is used to control the camera to collect the image of the product to be positioned; the shape determination module 620 is used to determine the minimum circumscribed shape of the product to be positioned in the image; Whether the position of the product is accurate.
进一步地,该定位检测装置还可以包括如图7所示的控制模块710,用于在定位判断模块630判定待定位产品定位错误的情况下,控制吸取待定位产品的吸嘴重新吸取其他产品。Further, the positioning detection device may also include a control module 710 as shown in FIG. 7 , which is used to control the suction nozzle that picks up the product to be positioned to pick up other products again when the positioning judging module 630 determines that the product to be positioned is wrongly positioned.
在本发明的一个具体实施例中,待定位产品为矩形,最小外接形状为最小外接矩形,如图7所示,该定位判断模块630可以包括轴线确定单元631a、第一距离计算单元632a、第一判断单元633a和第一判定单元634a。该轴线确定单元631a用于确定平行于最小外接矩形长度方向且通过最小外接矩形中心的第一轴线、及平行于最小外接矩形宽度方向且通过最小外接矩形中心的第二轴线;该第一距离计算单元632a用于计算待定位产品的长度方向边缘上的N个点到第一轴线的距离、及待定位产品的宽度方向边缘上的M个点到第二轴线的距离,其中,N和M为大于1的整数;该第一判断单元633a用于判断N个点到第一轴线的距离的最大值与最小值的差是否超过预先设定的第一阈值,或者,M个点到第二轴线的距离的最大值和最小值的差是否超过预先设定的第二阈值;该第一判定单元634a用于在第一判断单元633a的判断结果为是的情况下,判定待定位产品定位错误;在第一判断单元633a的判断结果为否的情况下,判断待定位产品定位准确。In a specific embodiment of the present invention, the product to be positioned is a rectangle, and the minimum circumscribed shape is the minimum circumscribed rectangle. As shown in FIG. A judging unit 633a and a first judging unit 634a. The axis determining unit 631a is used to determine a first axis parallel to the length direction of the minimum circumscribed rectangle and passing through the center of the minimum circumscribed rectangle, and a second axis parallel to the width direction of the minimum circumscribed rectangle and passing through the center of the minimum circumscribed rectangle; the first distance calculation Unit 632a is used to calculate the distance from N points on the edge of the length direction of the product to be positioned to the first axis, and the distance of M points on the edge of the width direction of the product to be positioned to the second axis, wherein N and M are An integer greater than 1; the first judging unit 633a is used to judge whether the difference between the maximum value and the minimum value of the distance between N points and the first axis exceeds a preset first threshold, or, M points to the second axis Whether the difference between the maximum value and the minimum value of the distance exceeds a preset second threshold; the first judging unit 634a is used to judge that the positioning of the product to be positioned is wrong when the judging result of the first judging unit 633a is yes; If the judgment result of the first judging unit 633a is negative, it is judged that the positioning of the product to be positioned is accurate.
在本发明的另一个具体实施例中,待定位产品为圆形,最小外接形状为最小外接圆形,根据最小外接形状的中心点,如图7所示,该定位判断模块还可以包括第二距离计算单元631b、第二判断单元632b和第二判定单元633b。该第二距离计算单元631b用于计算待定位产品的边缘上的L个点到最小外接圆形的中心点的距离,其中,L为大于1的整数;该第二判断单元632b用于判断L个点到最小外接圆形的中心点的距离的最大值和最小值的差是否超过预先设定的第三阈值;第二判定单元633b用于在第二判断单元632b的判断结果为是的情况下,判定待定位产品定位错误;在第二判断单元632b的判断结果为否的情况下,判断待定位产品定位准确。In another specific embodiment of the present invention, the product to be positioned is a circle, the smallest circumscribed shape is the smallest circumscribed circle, and according to the center point of the smallest circumscribed shape, as shown in Figure 7, the positioning judging module may also include a second The distance calculation unit 631b, the second judging unit 632b and the second judging unit 633b. The second distance calculation unit 631b is used to calculate the distance from L points on the edge of the product to be positioned to the center point of the smallest circumscribed circle, wherein L is an integer greater than 1; the second judgment unit 632b is used to judge L Whether the difference between the maximum value and the minimum value of the distance from a point to the center point of the smallest circumscribed circle exceeds a preset third threshold; the second judging unit 633b is used for the case where the judgment result of the second judging unit 632b is yes Next, it is judged that the positioning of the product to be positioned is wrong; when the judgment result of the second judging unit 632b is negative, it is judged that the positioning of the product to be positioned is correct.
本发明还提供了一种电子设备,在一方面,该电子设备包括前述的产品的定位检测装置。The present invention also provides an electronic device. In one aspect, the electronic device includes the aforementioned device for detecting product position.
在另一方面,如图8所示,该电子设备800还可以包括处理器802和存储器801,该存储器801用于存储指令,该指令用于控制处理器802进行操作以执行上述产品的定位检测方法。On the other hand, as shown in FIG. 8 , the electronic device 800 may further include a processor 802 and a memory 801, the memory 801 is used to store instructions, and the instructions are used to control the operation of the processor 802 to perform the positioning detection of the above-mentioned product method.
除此之外,根据图8所示,该电子设备800还包括接口装置803、输入装置804、显示装置805、通信装置806、摄像头807和扬声器麦克风组件808等等。尽管在图8中示出了多个装置,但是,本发明可以仅涉及其中的部分装置,例如,处理器801、存储器802、摄像头807等。In addition, as shown in FIG. 8 , the electronic device 800 also includes an interface device 803 , an input device 804 , a display device 805 , a communication device 806 , a camera 807 , a speaker microphone assembly 808 and the like. Although multiple devices are shown in FIG. 8 , the present invention may only involve some of them, for example, a processor 801 , a memory 802 , a camera 807 and the like.
上述通信装置806例如能够进行有有线或无线通信。The above-mentioned communication device 806 is capable of wired or wireless communication, for example.
上述接口装置803例如包括耳机插孔、USB接口等。The above-mentioned interface device 803 includes, for example, an earphone jack, a USB interface, and the like.
上述输入装置804例如可以包括触摸屏、按键等。The aforementioned input device 804 may include, for example, a touch screen, buttons, and the like.
上述显示装置805例如是液晶显示屏、触摸显示屏等。The above-mentioned display device 805 is, for example, a liquid crystal display, a touch display, and the like.
上述各实施例主要重点描述与其他实施例的不同之处,但本领域技术人员应当清楚的是,上述各实施例可以根据需要单独使用或者相互结合使用。The above-mentioned embodiments mainly focus on describing differences from other embodiments, but those skilled in the art should be clear that the above-mentioned embodiments can be used alone or in combination with each other as required.
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分相互参见即可,每个实施例重点说明的都是与其他实施例的不同之处,但本领域技术人员应当清楚的是,上述各实施例可以根据需要单独使用或者相互结合使用。另外,对于装置实施例而言,由于其是与方法实施例相对应,所以描述得比较简单,相关之处参见方法实施例的对应部分的说明即可。以上所描述的系统实施例仅仅是示意性的,其中作为分离部件说明的模块可以是或者也可以不是物理上分开的。Each embodiment in this specification is described in a progressive manner, and the same and similar parts between the various embodiments can be referred to each other. Each embodiment focuses on the differences from other embodiments, but the technical field It should be clear to those skilled in the art that the above-mentioned embodiments can be used alone or in combination with each other as required. In addition, as for the device embodiment, since it corresponds to the method embodiment, the description is relatively simple, and for relevant parts, refer to the description of the corresponding part of the method embodiment. The system embodiments described above are illustrative only, where modules illustrated as separate components may or may not be physically separate.
本发明可以是装置、方法和/或计算机程序产品。计算机程序产品可以包括计算机可读存储介质,其上载有用于使处理器实现本发明的各个方面的计算机可读程序指令。The invention may be an apparatus, method and/or computer program product. A computer program product may include a computer readable storage medium having computer readable program instructions thereon for causing a processor to implement various aspects of the present invention.
计算机可读存储介质可以是可以保持和存储由指令执行设备使用的指令的有形设备。计算机可读存储介质例如可以是――但不限于――电存储设备、磁存储设备、光存储设备、电磁存储设备、半导体存储设备或者上述的任意合适的组合。计算机可读存储介质的更具体的例子(非穷举的列表)包括:便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、静态随机存取存储器(SRAM)、便携式压缩盘只读存储器(CD-ROM)、数字多功能盘(DVD)、记忆棒、软盘、机械编码设备、例如其上存储有指令的打孔卡或凹槽内凸起结构、以及上述的任意合适的组合。这里所使用的计算机可读存储介质不被解释为瞬时信号本身,诸如无线电波或者其他自由传播的电磁波、通过波导或其他传输媒介传播的电磁波(例如,通过光纤电缆的光脉冲)、或者通过电线传输的电信号。A computer readable storage medium may be a tangible device that can retain and store instructions for use by an instruction execution device. A computer readable storage medium may be, for example, but is not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of computer-readable storage media include: portable computer diskettes, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), or flash memory), static random access memory (SRAM), compact disc read only memory (CD-ROM), digital versatile disc (DVD), memory stick, floppy disk, mechanically encoded device, such as a printer with instructions stored thereon A hole card or a raised structure in a groove, and any suitable combination of the above. As used herein, computer-readable storage media are not to be construed as transient signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (e.g., pulses of light through fiber optic cables), or transmitted electrical signals.
这里所描述的计算机可读程序指令可以从计算机可读存储介质下载到各个计算/处理设备,或者通过网络、例如因特网、局域网、广域网和/或无线网下载到外部计算机或外部存储设备。网络可以包括铜传输电缆、光纤传输、无线传输、路由器、防火墙、交换机、网关计算机和/或边缘服务器。每个计算/处理设备中的网络适配卡或者网络接口从网络接收计算机可读程序指令,并转发该计算机可读程序指令,以供存储在各个计算/处理设备中的计算机可读存储介质中。Computer-readable program instructions described herein may be downloaded from a computer-readable storage medium to a respective computing/processing device, or downloaded to an external computer or external storage device over a network, such as the Internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and/or edge servers. A network adapter card or a network interface in each computing/processing device receives computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in each computing/processing device .
用于执行本发明操作的计算机程序指令可以是汇编指令、指令集架构(ISA)指令、机器指令、机器相关指令、微代码、固件指令、状态设置数据、或者以一种或多种编程语言的任意组合编写的源代码或目标代码,所述编程语言包括面向对象的编程语言—诸如Smalltalk、C++等,以及常规的过程式编程语言—诸如“C”语言或类似的编程语言。计算机可读程序指令可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络—包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。在一些实施例中,通过利用计算机可读程序指令的状态信息来个性化定制电子电路,例如可编程逻辑电路、现场可编程门阵列(FPGA)或可编程逻辑阵列(PLA),该电子电路可以执行计算机可读程序指令,从而实现本发明的各个方面。Computer program instructions for performing operations of the present invention may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or Source or object code written in any combination, including object-oriented programming languages—such as Smalltalk, C++, etc., and conventional procedural programming languages—such as the “C” language or similar programming languages. Computer readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server implement. In cases involving a remote computer, the remote computer can be connected to the user computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (such as via the Internet using an Internet service provider). connect). In some embodiments, an electronic circuit, such as a programmable logic circuit, field programmable gate array (FPGA), or programmable logic array (PLA), can be customized by utilizing state information of computer-readable program instructions, which can Various aspects of the invention are implemented by executing computer readable program instructions.
这里参照根据本发明实施例的方法、装置(系统)和计算机程序产品的流程图和/或框图描述了本发明的各个方面。应当理解,流程图和/或框图的每个方框以及流程图和/或框图中各方框的组合,都可以由计算机可读程序指令实现。Aspects of the present invention are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It should be understood that each block of the flowcharts and/or block diagrams, and combinations of blocks in the flowcharts and/or block diagrams, can be implemented by computer-readable program instructions.
这些计算机可读程序指令可以提供给通用计算机、专用计算机或其它可编程数据处理装置的处理器,从而生产出一种机器,使得这些指令在通过计算机或其它可编程数据处理装置的处理器执行时,产生了实现流程图和/或框图中的一个或多个方框中规定的功能/动作的装置。也可以把这些计算机可读程序指令存储在计算机可读存储介质中,这些指令使得计算机、可编程数据处理装置和/或其他设备以特定方式工作,从而,存储有指令的计算机可读介质则包括一个制造品,其包括实现流程图和/或框图中的一个或多个方框中规定的功能/动作的各个方面的指令。These computer-readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine such that when executed by the processor of the computer or other programmable data processing apparatus , producing an apparatus for realizing the functions/actions specified in one or more blocks in the flowchart and/or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause computers, programmable data processing devices and/or other devices to work in a specific way, so that the computer-readable medium storing instructions includes An article of manufacture comprising instructions for implementing various aspects of the functions/acts specified in one or more blocks in flowcharts and/or block diagrams.
也可以把计算机可读程序指令加载到计算机、其它可编程数据处理装置、或其它设备上,使得在计算机、其它可编程数据处理装置或其它设备上执行一系列操作步骤,以产生计算机实现的过程,从而使得在计算机、其它可编程数据处理装置、或其它设备上执行的指令实现流程图和/或框图中的一个或多个方框中规定的功能/动作。It is also possible to load computer-readable program instructions into a computer, other programmable data processing device, or other equipment, so that a series of operational steps are performed on the computer, other programmable data processing device, or other equipment to produce a computer-implemented process , so that instructions executed on computers, other programmable data processing devices, or other devices implement the functions/actions specified in one or more blocks in the flowcharts and/or block diagrams.
附图中的流程图和框图显示了根据本发明的多个实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或指令的一部分,所述模块、程序段或指令的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。对于本领域技术人员来说公知的是,通过硬件方式实现、通过软件方式实现以及通过软件和硬件结合的方式实现都是等价的。The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, a portion of a program segment, or an instruction that includes one or more Executable instructions. In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks in succession may, in fact, be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved. It should also be noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by a dedicated hardware-based system that performs the specified function or action , or may be implemented by a combination of dedicated hardware and computer instructions. It is well known to those skilled in the art that implementation by means of hardware, implementation by means of software, and implementation by a combination of software and hardware are all equivalent.
以上已经描述了本发明的各实施例,上述说明是示例性的,并非穷尽性的,并且也不限于所披露的各实施例。在不偏离所说明的各实施例的范围和精神的情况下,对于本技术领域的普通技术人员来说许多修改和变更都是显而易见的。本文中所用术语的选择,旨在最好地解释各实施例的原理、实际应用或对市场中的技术的技术改进,或者使本技术领域的其它普通技术人员能理解本文披露的各实施例。本发明的范围由所附权利要求来限定。Having described various embodiments of the present invention, the foregoing description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and alterations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen to best explain the principles of the various embodiments, practical applications or technical improvements over technologies in the market, or to enable other persons of ordinary skill in the art to understand the various embodiments disclosed herein. The scope of the invention is defined by the appended claims.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810528893.5A CN108961212B (en) | 2018-05-29 | 2018-05-29 | Product positioning detection method and device and electronic equipment |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810528893.5A CN108961212B (en) | 2018-05-29 | 2018-05-29 | Product positioning detection method and device and electronic equipment |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN108961212A true CN108961212A (en) | 2018-12-07 |
| CN108961212B CN108961212B (en) | 2020-12-18 |
Family
ID=64492450
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201810528893.5A Active CN108961212B (en) | 2018-05-29 | 2018-05-29 | Product positioning detection method and device and electronic equipment |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN108961212B (en) |
Citations (13)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20070086021A1 (en) * | 2005-10-19 | 2007-04-19 | Labcoat, Ltd. | Drop location verification system |
| CN200955946Y (en) * | 2006-09-14 | 2007-10-03 | 比亚迪股份有限公司 | An inner width detection device |
| US7528954B2 (en) * | 2004-05-28 | 2009-05-05 | Nikon Corporation | Method of adjusting optical imaging system, positional deviation detecting mark, method of detecting positional deviation, method of detecting position, position detecting device and mark identifying device |
| CN101493495A (en) * | 2009-03-06 | 2009-07-29 | 江都市东元机电设备有限公司 | Semiconductor device testing and sorting machine |
| CN102721364A (en) * | 2011-03-30 | 2012-10-10 | 比亚迪股份有限公司 | Positioning method and positioning device for workpiece |
| CN103413291A (en) * | 2013-06-07 | 2013-11-27 | 西华大学 | Image positioning method |
| CN103810477A (en) * | 2014-02-21 | 2014-05-21 | 中国人民银行印制科学技术研究所 | Fault-tolerant positioning system and fault-tolerant positioning method |
| CN105564761A (en) * | 2016-03-22 | 2016-05-11 | 中南林业科技大学 | Rotary production line and method capable of automatically detecting, labeling and pasting film for backlight parts |
| CN105817430A (en) * | 2016-03-29 | 2016-08-03 | 常熟理工学院 | Product detection method based on machine vision |
| CN106217667A (en) * | 2016-08-30 | 2016-12-14 | 台州市双辉机械设备有限公司 | A kind of flitch positioner of crystal rod orientation sizing machine |
| US20170131671A1 (en) * | 2015-11-06 | 2017-05-11 | Ricoh Company, Ltd. | Image forming apparatus and program product used in the image forming apparatus |
| CN107578442A (en) * | 2017-09-05 | 2018-01-12 | 西北工业大学 | A kind of centralized positioning aligning method and system |
| CN107932012A (en) * | 2017-10-27 | 2018-04-20 | 歌尔股份有限公司 | The assembling equipment and assemble method of micro-optical product |
-
2018
- 2018-05-29 CN CN201810528893.5A patent/CN108961212B/en active Active
Patent Citations (13)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7528954B2 (en) * | 2004-05-28 | 2009-05-05 | Nikon Corporation | Method of adjusting optical imaging system, positional deviation detecting mark, method of detecting positional deviation, method of detecting position, position detecting device and mark identifying device |
| US20070086021A1 (en) * | 2005-10-19 | 2007-04-19 | Labcoat, Ltd. | Drop location verification system |
| CN200955946Y (en) * | 2006-09-14 | 2007-10-03 | 比亚迪股份有限公司 | An inner width detection device |
| CN101493495A (en) * | 2009-03-06 | 2009-07-29 | 江都市东元机电设备有限公司 | Semiconductor device testing and sorting machine |
| CN102721364A (en) * | 2011-03-30 | 2012-10-10 | 比亚迪股份有限公司 | Positioning method and positioning device for workpiece |
| CN103413291A (en) * | 2013-06-07 | 2013-11-27 | 西华大学 | Image positioning method |
| CN103810477A (en) * | 2014-02-21 | 2014-05-21 | 中国人民银行印制科学技术研究所 | Fault-tolerant positioning system and fault-tolerant positioning method |
| US20170131671A1 (en) * | 2015-11-06 | 2017-05-11 | Ricoh Company, Ltd. | Image forming apparatus and program product used in the image forming apparatus |
| CN105564761A (en) * | 2016-03-22 | 2016-05-11 | 中南林业科技大学 | Rotary production line and method capable of automatically detecting, labeling and pasting film for backlight parts |
| CN105817430A (en) * | 2016-03-29 | 2016-08-03 | 常熟理工学院 | Product detection method based on machine vision |
| CN106217667A (en) * | 2016-08-30 | 2016-12-14 | 台州市双辉机械设备有限公司 | A kind of flitch positioner of crystal rod orientation sizing machine |
| CN107578442A (en) * | 2017-09-05 | 2018-01-12 | 西北工业大学 | A kind of centralized positioning aligning method and system |
| CN107932012A (en) * | 2017-10-27 | 2018-04-20 | 歌尔股份有限公司 | The assembling equipment and assemble method of micro-optical product |
Non-Patent Citations (1)
| Title |
|---|
| 兰伟等: "采用图像定位与轮廓检测的喷墨宽度测量算法", 《华侨大学学报(自然科学版)》 * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN108961212B (en) | 2020-12-18 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US9182860B2 (en) | Method for detecting a contact | |
| CN102609141B (en) | Angular contact geometry | |
| US9785281B2 (en) | Acoustic touch sensitive testing | |
| TW201629848A (en) | Method for calculating fingerprint overlapping region and electronic device | |
| CN108280828B (en) | Camera assembly position detection method and device | |
| WO2015123973A1 (en) | Straight line detection method and device | |
| CN107765232B (en) | Calibration method and device of proximity sensor | |
| CN106791804A (en) | For the smear detecting method and device of camera module | |
| CN112949661A (en) | Detection frame self-adaptive external expansion method and device, electronic equipment and storage medium | |
| CN109165657A (en) | A kind of image feature detection method and device based on improvement SIFT | |
| CN104134440B (en) | Speech detection method and speech detection device for portable terminal | |
| US11353978B2 (en) | Method and apparatus for determining a touch point | |
| CN110673125B (en) | Sound source positioning method, device, equipment and storage medium based on millimeter wave radar | |
| JP2013239010A (en) | Input device, information processing device, and electrostatic coupling state determination method | |
| TWI824550B (en) | Method for generating distorted image, electronic device and storage medium | |
| CN109030515A (en) | The detection method and device of gluing | |
| CN108828613A (en) | A kind of method and harmful influence storage laser scanning device of removal noise | |
| CN108646932B (en) | Vibration detection method and device for electronic equipment and electronic equipment | |
| CN108961212B (en) | Product positioning detection method and device and electronic equipment | |
| CN111783623A (en) | Algorithm adjustment method, apparatus, apparatus and medium for identifying positioning elements | |
| CN103823654A (en) | Information processing method and electronic device | |
| US20180081524A1 (en) | Screen Interface Moving Method and Terminal | |
| CN104899611A (en) | Method and device for determining card position in image | |
| CN105487774A (en) | Image grouping method and device | |
| WO2018090278A1 (en) | Method and device for determining touch position on capacitive screen |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| TA01 | Transfer of patent application right |
Effective date of registration: 20201014 Address after: 261031 north of Yuqing street, east of Dongming Road, high tech Zone, Weifang City, Shandong Province (Room 502, Geer electronic office building) Applicant after: GoerTek Optical Technology Co.,Ltd. Address before: 261031 Dongfang Road, Weifang high tech Development Zone, Shandong, China, No. 268 Applicant before: GOERTEK Inc. |
|
| TA01 | Transfer of patent application right | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| TR01 | Transfer of patent right |
Effective date of registration: 20221118 Address after: 266104 No. 500, Songling Road, Laoshan District, Qingdao, Shandong Patentee after: GOERTEK TECHNOLOGY Co.,Ltd. Address before: 261031 north of Yuqing street, east of Dongming Road, high tech Zone, Weifang City, Shandong Province (Room 502, Geer electronics office building) Patentee before: GoerTek Optical Technology Co.,Ltd. |
|
| TR01 | Transfer of patent right |