Elbow inserting treatment method and device for two devices of air conditioner
The intelligent elbow insertion visual algorithm through adaptive circle fitting and absolute position calculation solves the problem of low positioning accuracy in the elbow insertion of air conditioners and realizes high-precision elbow insertion, which is suitable for multiple models of air conditioners. device.
Patent Information
- Application Number
- CN202410953676.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-16
- Publication Date
- 2024-10-18
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Air conditioners usually use rough positioning methods when installing elbows, resulting in low positioning accuracy, inability to achieve accurate elbow insertion, and poor installation reliability.
The adaptive circle fitting method is used to locate the nozzle images of the air conditioner and the elbow. The edge point set and center point of the nozzle circle are determined through the adaptive circle fitting algorithm. Abnormal edge points are filtered and accurately positioned. The absolute position calculation algorithm obtains the insertion position information and controls the elbow insertion machine to perform the insertion operation.
It improves the positioning accuracy of air conditioners and elbow nozzles, enhances the accuracy and reliability of elbow insertion, and is suitable for various types of air conditioners.
Smart Images

Figure CN118789259A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of machine vision, and in particular to a method and a device for processing plug elbows of two devices of an air conditioner. Background Art
[0002] The two devices of the air conditioner refer to the condenser and the evaporator, and the elbow is a pipe connector used to transport various liquids, gases and solid particles. Inserting an elbow between two devices refers to inserting the elbow into the pipe mouth of the two devices to connect the adjacent pipe mouths of the two devices. At present, the elbow insertion in the industry mainly adopts the manual insertion method, which has a slow insertion speed, high labor intensity and low insertion efficiency. Another method is to use a visual system to guide the robot to insert the elbow. This method is less used in the industry and has prominent limitations: there are many types of two devices, and different types of two devices have different process requirements, and the model requirements and insertion methods of the elbow are also different. At present, the visual system can only adapt to one type of two devices, with a small scope of application and great limitations. In addition, most of them only use rough positioning methods to locate the pipe mouths of the two devices and the elbow pipe mouths. The positioning accuracy is poor, and abnormal elbows cannot be effectively screened out, and the accurate insertion of elbows cannot be achieved, resulting in low overall elbow insertion accuracy, and even damage to the two devices and elbows. Aiming at the above situation, a vision algorithm for intelligent elbow plugs of air conditioners based on adaptive circle fitting numbering and absolute position calculation is proposed. It is applicable to all types of air conditioners and improves positioning accuracy and insertion accuracy.
[0003] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0004] The embodiments of the present invention provide a method and device for processing elbow insertion of two air conditioners, so as to at least solve the technical problem in the related art that when the elbows of the two air conditioners are inserted, a rough positioning method is usually used to position the pipe openings of the two devices and the elbow pipe openings, the positioning accuracy is low, the accurate insertion of the elbow cannot be achieved, and the reliability is low.
[0005] According to one aspect of an embodiment of the present invention, a method for processing elbow insertion of two air conditioners is provided, comprising: obtaining an evaporator nozzle image and a condenser nozzle image corresponding to the two air conditioners, and obtaining an elbow nozzle image corresponding to the elbow, wherein the two air conditioners represent the evaporator and the condenser of the air conditioner, and the elbow is a pipe connector of the evaporator and the condenser; using an adaptive circle fitting method to locate nozzle one of the evaporator according to the evaporator nozzle image to obtain nozzle circle one of the nozzle one, using the adaptive circle fitting method to locate nozzle two of the condenser according to the condenser nozzle image to obtain nozzle circle two of the nozzle two, and using the adaptive circle fitting method to locate nozzle three of the elbow according to the elbow nozzle image to obtain nozzle circle three of the nozzle three; determining the position information of the evaporator and the condenser where the elbow needs to be inserted according to the nozzle circle one, the nozzle circle two and the nozzle circle three; and controlling an elbow inserting machine to perform elbow insertion operations on the evaporator and the condenser according to the position information.
[0006] Optionally, after obtaining the evaporator tube mouth image and the condenser tube mouth image corresponding to the two air conditioners, and obtaining the elbow tube mouth image corresponding to the elbow, the elbow plug processing method of the two air conditioners also includes: performing a preprocessing operation on the evaporator tube mouth image, the condenser tube mouth image and the elbow tube mouth image to obtain the preprocessed evaporator tube mouth image, the condenser tube mouth image and the elbow tube mouth image, wherein the preprocessing operation includes at least one of the following: a smoothing operation and a binarization operation.
[0007] Optionally, an adaptive circle fitting method is used to locate the tube mouth 1 of the evaporator according to the tube mouth image to obtain a tube mouth circle 1 of the tube mouth 1, the adaptive circle fitting method is used to locate the tube mouth 2 of the condenser according to the tube mouth image to obtain a tube mouth circle 2 of the tube mouth 2, and the adaptive circle fitting method is used to locate the tube mouth 3 of the elbow according to the tube mouth image to obtain a tube mouth circle 3 of the tube mouth 3, including: positioning the evaporator tube mouth image, the condenser tube mouth image and the elbow tube mouth image once to obtain an initial tube mouth circle image 1 of the tube mouth 1, an initial tube mouth circle image 2 of the tube mouth 2 and an initial tube mouth circle image 3 of the tube mouth 3; the adaptive circle fitting method is used to perform circle fitting on the initial tube mouth circle image 1 to obtain a tube mouth circle edge point set 1 of the evaporator, and the adaptive circle fitting method is used to perform circle fitting on the initial tube mouth circle image 2 Obtain the second tube mouth circle edge point set of the condenser, and use the adaptive circle fitting method to perform circle fitting on the initial tube mouth circle image three to obtain the third tube mouth circle edge point set of the elbow; determine the distance one between the first tube mouth circle edge point set and the center point one, the distance two between the second tube mouth circle edge point set and the center point two, and the distance three between the third tube mouth circle edge point set and the center point three, wherein the center point one is the center point in the first tube mouth circle edge point set, the center point two is the center point in the second tube mouth circle edge point set, and the center point three is the center point in the third tube mouth circle edge point set; filter out the abnormal edge points in the first tube mouth circle edge point set according to the distance one to obtain the first tube mouth circle, filter out the abnormal edge points in the second tube mouth circle edge point set according to the distance two to obtain the second tube mouth circle, and filter out the abnormal edge points in the third tube mouth circle edge point set according to the distance three to obtain the third tube mouth circle.
[0008] Optionally, the evaporator tube mouth image, the condenser tube mouth image and the elbow tube mouth image are positioned once to obtain an initial tube mouth circular image one of the tube mouth one, an initial tube mouth circular image two of the tube mouth two and an initial tube mouth circular image three of the tube mouth three, including: performing a connected domain analysis on the evaporator tube mouth image to obtain the initial tube mouth circular image one of the tube mouth one; performing a connected domain analysis on the condenser tube mouth image to obtain the initial tube mouth circular image two of the tube mouth two; performing template matching on the elbow tube mouth image to obtain the initial tube mouth circular image three of the tube mouth three.
[0009] Optionally, the position information of the elbows that need to be inserted into the evaporator and the condenser is determined according to the pipe mouth circle 1, the pipe mouth circle 2 and the pipe mouth circle 3, including: sorting the pipe mouth circle 1 and the pipe mouth circle 2 to obtain the sorted pipe mouth circle 1 and the pipe mouth circle 2; sorting the pipe mouth circle 3 to obtain the sorted pipe mouth circle 3; numbering the sorted pipe mouth circle 1 and the pipe mouth circle 2 to obtain the numbered pipe mouth circle 1 and the pipe mouth circle 2; numbering the sorted pipe mouth circle 3 to obtain the numbered pipe mouth circle 3; numbering the sorted pipe mouth circle 1, the pipe mouth circle 2 and the pipe mouth circle 3 to obtain the position information.
[0010] Optionally, the position information of the elbows required to be inserted into the evaporator and the condenser is determined according to the pipe mouth circle 1, the pipe mouth circle 2 and the pipe mouth circle 3, including: obtaining the pipe mouth circle center pixel coordinate 1 of each group of the evaporator and the condenser; obtaining the pipe mouth circle center pixel coordinate 2 of each group of the elbows; determining the center point pixel coordinate 1 of each group of the evaporator and the condenser corresponding pipe mouth according to the pipe mouth circle center pixel coordinate 1; determining the center point pixel coordinate 2 of each group of the elbow corresponding pipe mouth according to the pipe mouth circle center pixel coordinate 2; converting the center point pixel coordinate 1 into the center point machine coordinate 1 by calibration, and converting the center point pixel coordinate 2 into the center point machine coordinate 2 by calibration; determining the position information according to the center point machine coordinate 1, the center point machine coordinate 2 and the machine coordinates of the elbow photographing point.
[0011] Optionally, the position information is determined according to the center point machine coordinate one, the center point machine coordinate two and the elbow photographing point machine coordinate, including: performing affine calculation on the center point machine coordinate one and the center point machine coordinate two according to the elbow photographing point machine coordinate to obtain the position information.
[0012] According to another aspect of the above-mentioned embodiment of the present invention, there is also provided an elbow processing device for an air conditioner, comprising: a first acquisition unit, used to acquire an evaporator nozzle image and a condenser nozzle image corresponding to the air conditioner, and acquire an elbow nozzle image corresponding to the elbow, wherein the air conditioner represents an evaporator and a condenser of the air conditioner, and the elbow is a pipe connecting piece between the evaporator and the condenser; a second acquisition unit, used to locate the nozzle 1 of the evaporator according to the evaporator nozzle image by adopting an adaptive circle fitting method to obtain a nozzle circle 1 of the nozzle 1, and adopt the The adaptive circle fitting method is used to locate the pipe mouth 2 of the condenser according to the condenser pipe mouth image to obtain the pipe mouth circle 2 of the pipe mouth 2, and the adaptive circle fitting method is used to locate the pipe mouth 3 of the elbow according to the elbow pipe mouth image to obtain the pipe mouth circle 3 of the pipe mouth 3; the determination unit is used to determine the position information of the evaporator and the condenser where the elbow needs to be inserted according to the pipe mouth circle 1, the pipe mouth circle 2 and the pipe mouth circle 3; the control unit is used to control the elbow insertion machine to perform the elbow insertion operation on the evaporator and the condenser according to the position information.
[0013] Optionally, the elbow processing device for the two air conditioners also includes: a preprocessing unit, which is used to perform preprocessing operations on the evaporator tube mouth image, the condenser tube mouth image and the elbow tube mouth image after obtaining the evaporator tube mouth image and the condenser tube mouth image corresponding to the two air conditioners and obtaining the elbow tube mouth image corresponding to the elbow, so as to obtain the preprocessed evaporator tube mouth image, the condenser tube mouth image and the elbow tube mouth image, wherein the preprocessing operation includes at least one of the following: smoothing operation, binarization operation.
[0014] Optionally, the second acquisition unit includes: a first acquisition module, used to perform a positioning on the evaporator tube mouth image, the condenser tube mouth image and the elbow tube mouth image, and obtain an initial tube mouth circular image 1 of the tube mouth 1, an initial tube mouth circular image 2 of the tube mouth 2 and an initial tube mouth circular image 3 of the tube mouth 3; a circle fitting module, used to perform a circle fitting on the initial tube mouth circular image 1 using the adaptive circle fitting method to obtain a tube mouth circular edge point set 1 of the evaporator, perform a circle fitting on the initial tube mouth circular image 2 using the adaptive circle fitting method to obtain a tube mouth circular edge point set 2 of the condenser, and perform a circle fitting on the initial tube mouth circular image 3 using the adaptive circle fitting method to obtain a tube mouth circular edge point set 3 of the elbow; a first determination module, used to To determine the distance one between the nozzle circle edge point set one and the center point one, the distance two between the nozzle circle edge point set two and the center point two, and the distance three between the nozzle circle edge point set three and the center point three, wherein the center point one is the center point in the nozzle circle edge point set one, the center point two is the center point in the nozzle circle edge point set two, and the center point three is the center point in the nozzle circle edge point set three; a second acquisition module is used to filter out the abnormal edge points in the nozzle circle edge point set one according to the distance one to obtain the nozzle circle one, to filter out the abnormal edge points in the nozzle circle edge point set two according to the distance two to obtain the nozzle circle two, and to filter out the abnormal edge points in the nozzle circle edge point set three according to the distance three to obtain the nozzle circle three.
[0015] Optionally, the first acquisition module includes: a first analysis submodule, used to perform a connected domain analysis on the evaporator tube mouth image to obtain the initial tube mouth circular image one of the tube mouth one; a second analysis submodule, used to perform a connected domain analysis on the condenser tube mouth image to obtain the initial tube mouth circular image two of the tube mouth two; and a matching submodule, used to perform template matching on the elbow tube mouth image to obtain the initial tube mouth circular image three of the tube mouth three.
[0016] Optionally, the determination unit includes: a first sorting module, used to sort the nozzle circle one and the nozzle circle two to obtain the sorted nozzle circle one and the nozzle circle two; a second sorting module, used to sort the nozzle circle three to obtain the sorted nozzle circle three; a first numbering module, used to number the sorted nozzle circle one and the nozzle circle two to obtain the numbered nozzle circle one and the nozzle circle two; a second numbering module, used to number the sorted nozzle circle three to obtain the numbered nozzle circle three; a third numbering module, used to number the sorted nozzle circle one, the nozzle circle two and the nozzle circle three to obtain the position information.
[0017] Optionally, the determination unit includes: a third acquisition module, used to obtain the center pixel coordinate one of the pipe mouth of each group of the evaporator and the condenser; a fourth acquisition module, used to obtain the center pixel coordinate two of the pipe mouth of each group of the elbows; a second determination module, used to determine the center point pixel coordinate one of the corresponding pipe mouths of each group of the evaporator and the condenser according to the pipe mouth center pixel coordinate one; a third determination module, used to determine the center point pixel coordinate two of the corresponding pipe mouths of each group of the elbows according to the pipe mouth center pixel coordinate two; a conversion module, used to convert the center point pixel coordinate one into the center point machine coordinate one by calibration, and convert the center point pixel coordinate two into the center point machine coordinate two by calibration; a fourth determination module, used to determine the position information according to the center point machine coordinate one, the center point machine coordinate two and the elbow photographing point machine coordinate.
[0018] Optionally, the fourth determination module includes: a radiation calculation submodule, which is used to perform affine calculation on the center point machine coordinate 1 and the center point machine coordinate 2 according to the machine coordinate of the elbow photographing point to obtain the position information.
[0019] According to another aspect of the embodiments of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium includes a stored program, wherein the program executes any one of the above-mentioned methods for processing the elbows of two air conditioners.
[0020] According to another aspect of the embodiments of the present invention, a processor is provided, the processor being used to run a program, wherein when the program is run, any one of the above-mentioned methods for processing elbows of two air conditioners is executed.
[0021] According to another aspect of the embodiments of the present invention, a computer program product is provided, comprising computer instructions, which, when executed by a processor, perform any one of the above-mentioned methods for processing the elbow of an air conditioner.
[0022] In an embodiment of the present invention, an evaporator nozzle image and a condenser nozzle image corresponding to two air conditioners are obtained, and an elbow nozzle image corresponding to the elbow is obtained, wherein the two air conditioners represent the evaporator and the condenser of the air conditioner, and the elbow is a pipe connector of the evaporator and the condenser; an adaptive circle fitting method is used to locate nozzle one of the evaporator according to the evaporator nozzle image to obtain nozzle circle one of nozzle one, an adaptive circle fitting method is used to locate nozzle two of the condenser according to the condenser nozzle image to obtain nozzle circle two of nozzle two, and an adaptive circle fitting method is used to locate nozzle three of the elbow according to the elbow nozzle image to obtain nozzle circle three of nozzle three; position information of the evaporator and the condenser where the elbows need to be inserted is determined according to nozzle circle one, nozzle circle two and nozzle circle three; and an elbow inserting machine is controlled to perform elbow inserting operations on the evaporator and the condenser according to the position information. Through the technical scheme provided by the present invention, it is achieved that the images of the pipe openings of the two devices of the air conditioner and the images of the pipe openings of the elbow are positioned by using an adaptive circle fitting method to obtain the positions on the two devices of the air conditioner where the elbows need to be inserted, and then the elbow inserting machine is controlled to perform the elbow inserting operation according to the determined position information, thereby improving the technical effect of the accuracy of positioning the pipe openings of the two devices and the pipe openings of the elbows of the air conditioner, and thus also improving the accuracy of elbow insertion by the elbow inserting machine, thereby solving the technical problem in the related technology that when the elbows of the two devices of the air conditioner are inserted, a rough positioning method is usually used to position the pipe openings of the two devices and the elbow pipe openings, the positioning accuracy is low, the accurate insertion of the elbow cannot be achieved, and the reliability is low. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0024] Figure 1 It is a hardware structure block diagram of a mobile terminal of a method for processing elbows of two air conditioners according to an embodiment of the present invention;
[0025] Figure 2 is a flow chart of a method for processing elbows of two air conditioners according to an embodiment of the present invention;
[0026] Figure 3 is a flow chart of an optional method for processing the elbow of two air conditioners according to an embodiment of the present invention;
[0027] Figure 4 is a flow chart of another optional method for processing the elbow of two air conditioners according to an embodiment of the present invention;
[0028] Figure 5 is a flow chart of a preferred method for processing elbows of two air conditioners according to an embodiment of the present invention;
[0029] Figure 6Schematic diagram of a device for processing elbows of two air conditioners according to an embodiment of the present invention. DETAILED DESCRIPTION
[0030] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0031] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0032] As introduced in the background technology, in the related art, when inserting elbows of two air conditioners, a rough positioning method is usually used to position the pipe openings of the two devices and the elbow pipe openings, which has low positioning accuracy and cannot achieve accurate insertion of the elbow, and has low reliability. In view of the above defects, an embodiment of the present invention provides a method and device for inserting elbows of two air conditioners, a computer-readable storage medium, a processor, and a computer program product.
[0033] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention.
[0034] The method embodiments provided in the embodiments of the present invention can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 FIG. 1 is a hardware structure block diagram of a mobile terminal of a method for processing the elbow of an air conditioner according to an embodiment of the present invention. Figure 1 As shown, the mobile terminal may include one or more ( Figure 1Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the mobile terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.
[0035] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the plug elbow processing method of the air conditioner in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, the above method is realized. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories can be connected to the mobile terminal via a network. Examples of the above-mentioned network include but are not limited to the Internet, corporate intranets, local area networks, mobile communication networks and combinations thereof. The transmission device 106 is used to receive or send data via a network. The above-mentioned specific examples of the network may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0036] According to an embodiment of the present invention, a method embodiment of a method for processing an elbow of two air conditioners is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0037] Figure 2 FIG. 1 is a flow chart of a method for processing an elbow of an air conditioner according to an embodiment of the present invention. Figure 2 As shown, the method for processing the elbows of the two air conditioners includes the following steps:
[0038] Step S202, obtaining the evaporator pipe opening image and the condenser pipe opening image corresponding to the two air conditioners, and obtaining the elbow pipe opening image corresponding to the elbow, wherein the two air conditioners represent the evaporator and condenser of the air conditioner, and the elbow is the pipe connecting part of the evaporator and the condenser.
[0039] Optionally, the above-mentioned two air conditioners refer to the evaporator and condenser of the air conditioner.
[0040] Optionally, the elbow is a pipe connector between the evaporator and the condenser.
[0041] In this embodiment, an image acquisition device (for example, a camera, etc.) can be used to capture an image of the pipe opening on the evaporator where an elbow needs to be inserted, that is, the evaporator pipe opening image, and an image acquisition device can be used to capture an image of the pipe opening on the condenser where an elbow needs to be inserted, that is, the condenser pipe opening image; in addition, the image acquisition device can also be used to capture an image of the pipe opening on the elbow, that is, the elbow pipe opening image.
[0042] Step S204, using an adaptive circle fitting method to locate the tube mouth one of the evaporator according to the evaporator tube mouth image to obtain the tube mouth circle one of the tube mouth one, using an adaptive circle fitting method to locate the tube mouth two of the condenser according to the condenser tube mouth image to obtain the tube mouth circle two of the tube mouth two, and using an adaptive circle fitting method to locate the tube mouth three of the elbow according to the elbow tube mouth image to obtain the tube mouth circle three of the tube mouth three.
[0043] In this embodiment, the evaporator nozzle, condenser nozzle and elbow nozzle can be positioned using an adaptive circle fitting numbering algorithm (i.e., an adaptive circle fitting method). That is, the nozzles of the two devices and the elbow nozzle are positioned using an adaptive circle fitting algorithm to effectively improve the nozzle positioning accuracy and effectively solve the positioning failure problem caused by the irregular nozzle circle.
[0044] Step S206, determining the position information of the elbows that need to be inserted into the evaporator and the condenser according to the pipe opening circle 1, the pipe opening circle 2 and the pipe opening circle 3.
[0045] In this embodiment, the position information of the elbows required to be inserted in the two air conditioners can be determined based on the pipe mouth circle information obtained by positioning using the adaptive circle fitting numbering algorithm, that is, the position information of the elbow required to be inserted on the evaporator and the position of the elbow required to be inserted on the condenser.
[0046] Step S208, controlling the elbow plugging machine to perform elbow plugging operations on the evaporator and the condenser according to the position information.
[0047] In this embodiment, the elbow plug machine can be controlled to perform the elbow plug operation on the two devices of the air conditioner according to the above-determined position information.
[0048] As can be seen from the above, in the embodiment of the present invention, the evaporator nozzle image and the condenser nozzle image corresponding to the two air conditioners can be obtained, and the elbow nozzle image corresponding to the elbow can be obtained, wherein the two air conditioners represent the evaporator and the condenser of the air conditioner, and the elbow is the pipe connecting part of the evaporator and the condenser; the nozzle one of the evaporator is positioned according to the evaporator nozzle image by using an adaptive circle fitting method to obtain the nozzle circle one of the nozzle one, the nozzle two of the condenser is positioned according to the condenser nozzle image by using an adaptive circle fitting method to obtain the nozzle circle two of the nozzle two, and the nozzle three of the elbow is positioned according to the elbow nozzle image by using an adaptive circle fitting method Positioning is performed to obtain the pipe mouth circle three of the pipe mouth three; the position information of the evaporator and the condenser where the elbows need to be inserted is determined according to the pipe mouth circle one, the pipe mouth circle two and the pipe mouth circle three; the elbow inserting machine is controlled to perform the elbow inserting operation on the evaporator and the condenser according to the position information, so as to realize the purpose of using the adaptive circle fitting method to locate the pipe mouth images and the elbow pipe mouth images of the two air conditioners to obtain the positions on the two air conditioners where the elbows need to be inserted, and then control the elbow inserting machine to perform the elbow inserting operation according to the determined position information, thereby improving the technical effect of the accuracy of positioning the pipe mouths of the two air conditioners and the pipe mouths of the elbows, and thus also improving the accuracy of elbow insertion by the elbow inserting machine.
[0049] Therefore, the above-mentioned technical solution provided by the embodiment of the present invention solves the technical problem that in the related technology, when the elbows of the two devices of the air conditioner are inserted, a rough positioning method is usually used to position the pipe openings of the two devices and the elbow pipe openings, the positioning accuracy is low, the precise insertion of the elbow cannot be achieved, and the reliability is low.
[0050] According to the above embodiment of the present invention, after obtaining the evaporator tube mouth image and the condenser tube mouth image corresponding to the two air conditioners, and obtaining the elbow tube mouth image corresponding to the elbow, the elbow plug processing method of the two air conditioners may also include: performing a preprocessing operation on the evaporator tube mouth image, the condenser tube mouth image and the elbow tube mouth image to obtain the preprocessed evaporator tube mouth image, the condenser tube mouth image and the elbow tube mouth image, wherein the preprocessing operation includes at least one of the following: a smoothing operation and a binarization operation.
[0051] Figure 3 FIG. 1 is a flow chart of an optional method for processing the elbow of an air conditioner according to an embodiment of the present invention. Figure 3 As shown, image preprocessing can be performed on the two-device image of the air conditioner (i.e., the evaporator pipe mouth image and the condenser pipe mouth image) and the elbow image (i.e., the elbow pipe mouth image), respectively. For example, the two-device image of the air conditioner and the elbow image can be smoothed and binarized through image preprocessing to improve the accuracy of subsequent pipe mouth positioning in the two-device image of the air conditioner and the elbow image.
[0052] According to the above embodiment of the present invention, an adaptive circle fitting method is used to locate the tube mouth 1 of the evaporator according to the tube mouth image to obtain a tube mouth circle 1 of the tube mouth 1, an adaptive circle fitting method is used to locate the tube mouth 2 of the condenser according to the tube mouth image to obtain a tube mouth circle 2 of the tube mouth 2, and an adaptive circle fitting method is used to locate the tube mouth 3 of the elbow according to the tube mouth image to obtain a tube mouth circle 3 of the tube mouth 3, which may include: positioning the tube mouth image of the evaporator, the tube mouth image of the condenser and the tube mouth image of the elbow once to obtain an initial tube mouth circle image 1 of the tube mouth 1, an initial tube mouth circle image 2 of the tube mouth 2 and an initial tube mouth circle image 3 of the tube mouth 3; performing circle fitting on the initial tube mouth circle image 1 by the adaptive circle fitting method to obtain a tube mouth circle edge point set 1 of the evaporator, and performing circle fitting on the initial tube mouth circle image 2 by the adaptive circle fitting method A circle fitting is performed to obtain a second tube mouth circle edge point set of the condenser, and an adaptive circle fitting method is used to perform circle fitting on the initial tube mouth circle image three to obtain a third tube mouth circle edge point set of the elbow; a distance one between the tube mouth circle edge point set one and the center point one, a distance two between the tube mouth circle edge point set two and the center point two, and a distance three between the tube mouth circle edge point set three and the center point three are determined, wherein the center point one is the center point in the tube mouth circle edge point set one, the center point two is the center point in the tube mouth circle edge point set two, and the center point three is the center point in the tube mouth circle edge point set three; according to the distance one, the abnormal edge points in the tube mouth circle edge point set one are filtered out to obtain a tube mouth circle one, according to the distance two, the abnormal edge points in the tube mouth circle edge point set two are filtered out to obtain a tube mouth circle two, and according to the distance three, the abnormal edge points in the tube mouth circle edge point set three are filtered out to obtain a tube mouth circle three.
[0053] In this embodiment, the images of the pipe openings of the two air conditioners and the elbow pipe openings can be roughly positioned (i.e., one-time positioning) first. For example, the pipe openings of the two air conditioners and the elbow pipe openings can be roughly positioned respectively through Blob analysis and template matching, and then the circular pipe openings can be precisely positioned using an adaptive circle fitting algorithm. For example, there are 10-20 groups of pipe openings on the two air conditioners, that is, 20-40 pipe opening circles. Each model of the two air conditioners requires different numbers and positions of elbows to be inserted. According to the product type of the two air conditioners, the pipe openings of the two air conditioners that need to be inserted can be selected for Blob analysis.
[0054] It should be noted that when performing frame selection, the robot fixture can clamp 6 groups of elbows at a time (or other quantities), and any one of the elbow pipe mouth images can be selected as a template, and the other 5 groups of elbows can be roughly positioned through template matching.
[0055] For example, there are 10-20 groups of pipe openings on the two air conditioners, that is, 20-40 pipe opening circles. Through visual lighting, the outside of the pipe opening circle can be brightened and the inside of the pipe opening circle can be darkened, forming a clear grayscale division.
[0056] The Blob analysis here is mainly used to find the grayscale connected domain in the image, that is, the area with little grayscale change and continuous. Therefore, the Blob analysis can locate the approximate area of the grayscale connected domain of the nozzle circle.
[0057] In an embodiment of the present invention, precise positioning of a circular pipe mouth using an adaptive circle fitting algorithm is achieved in the following manner: fitting the edge points of the pipe mouth, calculating the distance between each edge point and the center point, that is, the radius distance. If it is a standard circle, the radius distance values are basically consistent. If it is an irregular circle, the radius distance values are inconsistent. By setting the maximum radius and minimum radius thresholds, the interference of abnormal edge points can be eliminated, and a standard circle can be adaptively fitted.
[0058] The above-mentioned adaptive circle fitting algorithm is used to locate the two-device pipe openings and the elbow pipe openings, which effectively improves the pipe opening positioning accuracy, and can accurately calculate the pipe opening center distance, radius and roundness, effectively solving the problem of positioning failure caused by irregular pipe opening circles. That is, the algorithm calculates the distance between the edge point and the center point and sets the radius threshold to eliminate abnormal edge points of the pipe opening, thereby improving the circle fitting accuracy.
[0059] Figure 4 FIG. 1 is a flow chart of another optional method for processing the elbow of an air conditioner according to an embodiment of the present invention. Figure 4 As shown, the above technical solution provided by the embodiment of the present invention may include two parts: two-device positioning and elbow positioning. For both parts, it is necessary to first obtain the pipe mouth images, that is, the two-device pipe mouth images and the elbow pipe mouth images; then, the pipe mouth images can be roughly positioned, for example, the ROI area (that is, the area that may be the pipe mouth) can be framed out for the two-device images, and similarly, the ROI area (that is, the area that may be the pipe mouth) can also be framed out for the elbow pipe mouth image; then, the pipe mouths to be inserted into the two devices are roughly positioned through Blob analysis, and multiple groups of elbows are roughly positioned through template matching; the pipe mouth circle is precisely positioned using an adaptive circle fitting algorithm.
[0060] According to the above embodiment of the present invention, the evaporator tube mouth image, the condenser tube mouth image and the elbow tube mouth image are positioned once to obtain an initial tube mouth circular image one of tube mouth one, an initial tube mouth circular image two of tube mouth two and an initial tube mouth circular image three of tube mouth three, including: performing a connected domain analysis on the evaporator tube mouth image to obtain an initial tube mouth circular image one of tube mouth one; performing a connected domain analysis on the condenser tube mouth image to obtain an initial tube mouth circular image two of tube mouth two; performing template matching on the elbow tube mouth image to obtain an initial tube mouth circular image three of tube mouth three.
[0061] In this embodiment, after the two devices and the elbow nozzle images are input, the nozzle images are smoothed and binarized by image preprocessing; then Figure 3As shown, the grayscale connected domains of the two device orifices are obtained through Blob analysis and the connected domains are screened to complete the rough positioning of the two devices; the position of each group of elbows is roughly located through template matching, and the circle fitting area is framed to obtain the initial orifice circular image 1 of the evaporator, the initial orifice circular image 2 of the condenser, and the initial orifice circular image 3 of the orifice 3.
[0062] Through the coarse positioning here, the rate of fine positioning can be improved, and then the positions where elbows need to be inserted on the two devices of the air conditioner can be quickly and accurately located.
[0063] According to the above embodiment of the present invention, the position information of the elbows that need to be inserted into the evaporator and the condenser is determined according to the nozzle circle one, the nozzle circle two and the nozzle circle three, including: sorting the nozzle circle one and the nozzle circle two to obtain the sorted nozzle circle one and the nozzle circle two; sorting the nozzle circle three to obtain the sorted nozzle circle three; numbering the sorted nozzle circle one and the nozzle circle two to obtain the numbered nozzle circle one and the nozzle circle two; numbering the sorted nozzle circle three to obtain the numbered nozzle circle three; numbering the sorted nozzle circle one, the nozzle circle two and the nozzle circle three to obtain the position information.
[0064] In this embodiment, the pipe openings of the two devices and the elbow pipe openings can be sorted and numbered by a numbering algorithm, so that the elbows can be flexibly inserted at any position of the pipe openings of the two devices, effectively solving the problem of multiple models of the two devices, which are difficult to visually balance and difficult to apply.
[0065] For example, Figure 4 As shown, the center coordinates of the precisely positioned pipe openings can be numbered. All the positioned pipe opening circles are sorted, and the pipe openings of the two devices are sorted in the direction of the center coordinates "X+" or "X-", and numbered from "1"; the elbow pipe openings are sorted in the direction of the center coordinates "X+" or "X-" or "Y+" or "Y-", and numbered from "1". Then, the numbers of the two device pipe openings and the elbow pipe openings are matched according to actual needs, so that the arbitrary insertion of the two device pipe openings can be realized.
[0066] That is, the center coordinates of the pipe orifices obtained by circle fitting are sorted and numbered, and then the numbers are matched according to actual needs to meet any insertion method of the pipe orifices of the two devices.
[0067] like Figure 3 As shown in the figure, after the connected domain is screened and the circle fitting area is selected, the edge points of the pipe mouth can be fitted with a circle. The distance between each edge point and the center point is calculated, that is, the radius distance. If it is a standard circle, the radius distance value is basically the same. If it is an irregular circle, the radius distance value is inconsistent. By setting the maximum radius and minimum radius thresholds, the interference of abnormal edge points can be eliminated (for example, setting the radius screening threshold r d , remove abnormal edge points by radius screening threshold: r d =r max-r min , r max is the maximum radius, r min is the minimum radius), the circle fitting result is corrected to adaptively fit a standard circle; then, all the located pipe orifice circles are sorted, that is, the center points of the pipe orifices of the two devices are sorted, and the center points of the pipe orifices of the elbows are sorted at the same time; after the sorting is completed, the pipe orifices of the two devices are numbered, and the pipe orifices of the elbows are numbered; then, matching is performed according to the pipe orifice numbers to obtain the position information of the two devices where the elbows need to be inserted.
[0068] According to the above embodiment of the present invention, the position information of the elbows that need to be inserted into the evaporator and the condenser is determined according to the pipe mouth circle 1, the pipe mouth circle 2 and the pipe mouth circle 3, including: obtaining the pipe mouth circle center pixel coordinate 1 of each group of evaporators and condensers; obtaining the pipe mouth circle center pixel coordinate 2 of each group of elbows; determining the center point pixel coordinate 1 of the corresponding pipe mouth of each group of evaporators and condensers according to the pipe mouth circle center pixel coordinate 1; determining the center point pixel coordinate 2 of the corresponding pipe mouth of each group of elbows according to the pipe mouth circle center pixel coordinate 2; converting the center point pixel coordinate 1 into the center point machine coordinate 1 by calibration, and converting the center point pixel coordinate 2 into the center point machine coordinate 2 by calibration; determining the position information according to the center point machine coordinate 1, the center point machine coordinate 2 and the machine coordinates of the elbow photographing point.
[0069] In this embodiment, the coordinates of all the robots that need to insert the two devices can be obtained through calibration and absolute position calculation algorithm. Specifically, the pixel coordinates of the center of each group of two device pipe openings and elbow pipe openings can be input; then, the pixel coordinates of the center point of each group of circles are calculated, which are the pixel coordinates of the two device feature points and the elbow feature points; and then, through calibration, the pixel coordinates of the feature points are converted into machine coordinates, thereby obtaining the above position information. Figure 4 As shown, after the pipe orifices are numbered, the characteristic points of the two devices and the elbow can be extracted, and the absolute position calculation can be performed to obtain the coordinates of the insertion point.
[0070] Figure 5 FIG. 1 is a flow chart of a preferred method for processing the elbow of an air conditioner according to an embodiment of the present invention. Figure 5 As shown, for each set of center coordinates of the two-device pipe openings and each set of center coordinates of the elbow pipe openings, two center points of the circles can be calculated respectively; then the pixel coordinates of the feature points of the two devices and the pixel feature points of the elbows are obtained; and then through calibration, the pixel coordinates of the feature points are converted into machine coordinates to obtain the machine coordinates of the feature points of the two devices and the machine coordinates of the feature points of the elbows.
[0071] According to the above embodiment of the present invention, the position information is determined according to the center point machine coordinate one, the center point machine coordinate two and the elbow photographing point machine coordinate, including: performing affine calculation on the center point machine coordinate one and the center point machine coordinate two according to the elbow photographing point machine coordinate to obtain the position information.
[0072] In this embodiment, the machine coordinates of the elbow photographing point (px, py, pr), the machine coordinates of the two device feature points (nx, ny, nr), and the machine coordinates of the elbow feature point (ex, ey, er) can be affine transformed to establish a transformation relationship among the three, so as to calculate the final insertion point coordinates (x, y, r), that is, the machine coordinates of the positions where the two devices of the air conditioner need to be inserted; specifically, this can be achieved through the following formulas: dis_r = nr-er, α = cos(dis_r*π / 180), β = sin(dis_r*π / 180), x = (px-ex)*α-(py-ey)*β+nx, y = (px-ex)*β+(py-ey)*α+ny, r = pr+dis_r.
[0073] Here px, py, pr are the robot's X coordinates, Y coordinates and rotation angle values, and the same applies to the following coordinates. The two-device feature point refers to the midpoint of the line segment after each set of two-device circle center coordinates are connected, that is, the center point of the two nozzle circles, and the same applies to the elbow. dis_r is the angle difference between the two-device nozzle and the elbow nozzle, and α and β are rotation factors.
[0074] Through the absolute position calculation method of the two-device nozzles provided in this embodiment, the machine coordinates of the characteristic points of the two devices and the elbow can be calculated by calibration, and then affine transformation can be performed with the coordinates of the elbow photography point to achieve the coordinate correction of the two-device nozzles, thereby obtaining the absolute position coordinates of the two-device nozzles to be inserted. That is, the absolute position calculation method is used to replace the traditional offset calculation method, and the real coordinates of the two-device nozzles to be inserted are calculated by performing affine transformation on the characteristic points of the two devices, the characteristic points of the elbow, and the visual photography points. This method is simple and easy to operate, eliminating the process of manually teaching standard points, and at the same time improving the positioning accuracy compared to the offset method.
[0075] Compared with the traditional visual insertion scene, the more mature offset calculation method is mostly used, that is, it is necessary to manually operate the robot to clamp the elbow to insert the two device pipe mouths, record a standard position coordinate, and all subsequent insertion position coordinates are equal to the standard position coordinates plus the offset. The operation is complicated and cumbersome: it is necessary to manually teach the robot point position, and it is not suitable for the two-device elbow insertion scene: there are three insertion methods for elbows: horizontal insertion, left oblique insertion, and right oblique insertion, and the offset calculation is only applicable to one. The absolute position calculation algorithm proposed in the embodiment of the present invention: connect the centers of each group of two device pipe mouths, calculate the coordinates of the middle point of the two centers, which are the coordinates of the pixel feature points of the two devices, and calculate the coordinates of the pixel feature points of the elbow in the same way. Through calibration, the coordinates of the pixel feature points of the two devices and the elbow are converted into robot coordinates, and then the three are affinely calculated with the coordinates of the visual camera point to obtain the robot coordinates of the two device pipe mouths that need to be inserted. The robot moves to this coordinate to complete the elbow insertion.
[0076] Through the technical solution provided by the above-mentioned embodiment of the present invention, the intelligent plug elbow visual algorithm of the air conditioner based on the adaptive circle fitting number and absolute position calculation is applicable to all models of air conditioners and improves the positioning accuracy and insertion accuracy.
[0077] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0078] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0079] According to an embodiment of the present invention, there is also provided a device for processing an elbow of an air conditioner for implementing the above-mentioned method for processing an elbow of an air conditioner. Figure 6 Schematic diagram of a device for processing elbows of two air conditioners according to an embodiment of the present invention. Figure 6 As shown, the plug elbow processing device for two air conditioners includes: a first acquisition unit 601, a second acquisition unit 603, a determination unit 605 and a control unit 607. The plug elbow processing device for two air conditioners is described below.
[0080] The first acquisition unit 601 is used to acquire the evaporator pipe opening image and the condenser pipe opening image corresponding to the two air conditioners, and acquire the elbow pipe opening image corresponding to the elbow, wherein the two air conditioners represent the evaporator and condenser of the air conditioner, and the elbow is the pipe connecting part of the evaporator and the condenser.
[0081] The second acquisition unit 603 is used to use an adaptive circle fitting method to locate the tube mouth one of the evaporator according to the evaporator tube mouth image to obtain the tube mouth circle one of the tube mouth one, use an adaptive circle fitting method to locate the tube mouth two of the condenser according to the condenser tube mouth image to obtain the tube mouth circle two of the tube mouth two, and use an adaptive circle fitting method to locate the tube mouth three of the elbow according to the elbow tube mouth image to obtain the tube mouth circle three of the tube mouth three.
[0082] The determination unit 605 is used to determine the position information of the evaporator and the condenser where the elbows need to be inserted according to the pipe opening circle 1, the pipe opening circle 2 and the pipe opening circle 3.
[0083] The control unit 607 is used to control the elbow plugging machine to perform the elbow plugging operation on the evaporator and the condenser according to the position information.
[0084] It should be noted here that the above-mentioned first acquisition unit 601, second acquisition unit 603, determination unit 605 and control unit 607 correspond to steps S202 to S208 in the above-mentioned embodiments, and the four units are the same as the instances and application scenarios implemented by the corresponding steps, but are not limited to the contents disclosed in the above-mentioned embodiments.
[0085] From the above, it can be seen that in the scheme recorded in the above embodiment of the present invention, the first acquisition unit can be used to acquire the evaporator tube mouth image and the condenser tube mouth image corresponding to the two air conditioners, and acquire the elbow tube mouth image corresponding to the elbow, wherein the two air conditioners represent the evaporator and the condenser of the air conditioner, and the elbow is the pipe connecting part of the evaporator and the condenser; then the second acquisition unit is used to adopt an adaptive circle fitting method to locate the tube mouth one of the evaporator according to the evaporator tube mouth image to obtain the tube mouth circle one of the tube mouth one, adopt an adaptive circle fitting method to locate the tube mouth two of the condenser according to the condenser tube mouth image to obtain the tube mouth circle two of the tube mouth two, and adopt an adaptive circle fitting method to locate the tube mouth circle of the elbow according to the elbow tube mouth image The pipe mouth three is positioned to obtain the pipe mouth circle three of the pipe mouth three; then the determination unit is used to determine the position information of the evaporator and the condenser where the elbows need to be inserted according to the pipe mouth circle one, the pipe mouth circle two and the pipe mouth circle three; and the control unit is used to control the elbow inserting machine to perform the elbow inserting operation on the evaporator and the condenser according to the position information, thereby realizing the use of the adaptive circle fitting method to locate the pipe mouth images and the elbow pipe mouth images of the two air conditioners to obtain the positions on the two air conditioners where the elbows need to be inserted, and then control the elbow inserting machine to perform the elbow inserting operation according to the determined position information, thereby improving the technical effect of the accuracy of positioning the pipe mouths of the two air conditioners and the pipe mouths of the elbows, and thereby also improving the accuracy of the elbow inserting machine.
[0086] Therefore, the above-mentioned technical solution provided by the embodiment of the present invention solves the technical problem that in the related technology, when the elbows of the two devices of the air conditioner are inserted, a rough positioning method is usually used to position the pipe openings of the two devices and the elbow pipe openings, the positioning accuracy is low, the precise insertion of the elbow cannot be achieved, and the reliability is low.
[0087] Optionally, the elbow processing device for the two air conditioners also includes: a preprocessing unit, which is used to perform preprocessing operations on the evaporator tube mouth image, the condenser tube mouth image and the elbow tube mouth image after obtaining the evaporator tube mouth image and the condenser tube mouth image corresponding to the two air conditioners and obtaining the elbow tube mouth image corresponding to the elbow, so as to obtain the preprocessed evaporator tube mouth image, the condenser tube mouth image and the elbow tube mouth image, wherein the preprocessing operation includes at least one of the following: smoothing operation, binarization operation.
[0088] Optionally, the second acquisition unit includes: a first acquisition module, which is used to locate the evaporator tube mouth image, the condenser tube mouth image and the elbow tube mouth image once, and obtain the initial tube mouth circular image 1 of tube mouth 1, the initial tube mouth circular image 2 of tube mouth 2 and the initial tube mouth circular image 3 of tube mouth 3; a circle fitting module, which is used to perform circle fitting on the initial tube mouth circular image 1 by using an adaptive circle fitting method to obtain the tube mouth circular edge point set 1 of the evaporator, perform circle fitting on the initial tube mouth circular image 2 by using an adaptive circle fitting method to obtain the tube mouth circular edge point set 2 of the condenser, and perform circle fitting on the initial tube mouth circular image 3 by using an adaptive circle fitting method to obtain the tube mouth circular edge point set 3 of the elbow; a first determination module , used to determine the distance one between the nozzle circle edge point set one and the center point one, the distance two between the nozzle circle edge point set two and the center point two, and the distance three between the nozzle circle edge point set three and the center point three, wherein the center point one is the center point in the nozzle circle edge point set one, the center point two is the center point in the nozzle circle edge point set two, and the center point three is the center point in the nozzle circle edge point set three; the second acquisition module is used to filter out the abnormal edge points in the nozzle circle edge point set one according to the distance one to obtain the nozzle circle one, filter out the abnormal edge points in the nozzle circle edge point set two according to the distance two to obtain the nozzle circle two, and filter out the abnormal edge points in the nozzle circle edge point set three according to the distance three to obtain the nozzle circle three.
[0089] Optionally, the first acquisition module includes: a first analysis submodule, used to perform a connected domain analysis on the evaporator tube mouth image to obtain an initial tube mouth circular image one of tube mouth one; a second analysis submodule, used to perform a connected domain analysis on the condenser tube mouth image to obtain an initial tube mouth circular image two of tube mouth two; and a matching submodule, used to perform template matching on the elbow tube mouth image to obtain an initial tube mouth circular image three of tube mouth three.
[0090] Optionally, the determination unit includes: a first sorting module, used to sort the nozzle circle one and the nozzle circle two to obtain the sorted nozzle circle one and the nozzle circle two; a second sorting module, used to sort the nozzle circle three to obtain the sorted nozzle circle three; a first numbering module, used to number the sorted nozzle circle one and the nozzle circle two to obtain the numbered nozzle circle one and the nozzle circle two; a second numbering module, used to number the sorted nozzle circle three to obtain the numbered nozzle circle three; a third numbering module, used to number the sorted nozzle circle one, the nozzle circle two and the nozzle circle three to obtain the position information.
[0091] Optionally, the determination unit includes: a third acquisition module, used to obtain the pixel coordinate one of the center of the pipe mouth of each group of evaporators and condensers; a fourth acquisition module, used to obtain the pixel coordinate two of the center of the pipe mouth of each group of elbows; a second determination module, used to determine the center point pixel coordinate one of the corresponding pipe mouth of each group of evaporators and condensers according to the pixel coordinate one of the center of the pipe mouth; a third determination module, used to determine the center point pixel coordinate two of the corresponding pipe mouth of each group of elbows according to the pixel coordinate two of the center of the pipe mouth; a conversion module, used to convert the center point pixel coordinate one into the center point machine coordinate one by calibration, and convert the center point pixel coordinate two into the center point machine coordinate two by calibration; a fourth determination module, used to determine the position information according to the center point machine coordinate one, the center point machine coordinate two and the machine coordinates of the elbow photographing point.
[0092] Optionally, the fourth determination module includes: a radiation calculation submodule, which is used to perform affine calculation on the center point machine coordinate 1 and the center point machine coordinate 2 according to the machine coordinate of the elbow photographing point to obtain position information.
[0093] According to another aspect of the embodiments of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium including a stored program, wherein the program executes any one of the above-mentioned methods for processing the elbow of an air conditioner.
[0094] Optionally, in this embodiment, the computer-readable storage medium may be located in any one of the computer terminals in a computer terminal group in a computer network, or in any one of the communication devices in a communication device group.
[0095] Optionally, in this embodiment, the computer-readable storage medium is configured to store program codes for executing the following steps: obtaining an evaporator nozzle image and a condenser nozzle image corresponding to two air conditioners, and obtaining an elbow nozzle image corresponding to the elbow, wherein the two air conditioners represent the evaporator and condenser of the air conditioner, and the elbow is a pipe connector of the evaporator and the condenser; using an adaptive circle fitting method to locate nozzle one of the evaporator according to the evaporator nozzle image to obtain nozzle circle one of nozzle one, using an adaptive circle fitting method to locate nozzle two of the condenser according to the condenser nozzle image to obtain nozzle circle two of nozzle two, and using an adaptive circle fitting method to locate nozzle three of the elbow according to the elbow nozzle image to obtain nozzle circle three of nozzle three; determining the position information of the evaporator and the condenser where the elbows need to be inserted according to nozzle circle one, nozzle circle two and nozzle circle three; and controlling the elbow inserting machine to perform elbow inserting operations on the evaporator and the condenser according to the position information.
[0096] Optionally, in this embodiment, the computer-readable storage medium is configured to store program code for executing the following steps: after obtaining the evaporator tube mouth image and the condenser tube mouth image corresponding to the two air conditioners, and obtaining the elbow tube mouth image corresponding to the elbow, performing a preprocessing operation on the evaporator tube mouth image, the condenser tube mouth image and the elbow tube mouth image to obtain the preprocessed evaporator tube mouth image, the condenser tube mouth image and the elbow tube mouth image, wherein the preprocessing operation includes at least one of the following: a smoothing operation and a binarization operation.
[0097] Optionally, in this embodiment, the computer-readable storage medium is configured to store a program code for executing the following steps: positioning the evaporator nozzle image, the condenser nozzle image, and the elbow nozzle image once to obtain an initial nozzle circular image 1 of nozzle 1, an initial nozzle circular image 2 of nozzle 2, and an initial nozzle circular image 3 of nozzle 3; performing circular fitting on the initial nozzle circular image 1 using an adaptive circular fitting method to obtain a nozzle circular edge point set 1 of the evaporator, performing circular fitting on the initial nozzle circular image 2 using an adaptive circular fitting method to obtain a nozzle circular edge point set 2 of the condenser, and performing circular fitting on the initial nozzle circular image 3 using an adaptive circular fitting method to obtain a nozzle circular edge point set 1 of the elbow. Mouth circle edge point set three; determine the distance one between the mouth circle edge point set one and the center point one, the distance two between the mouth circle edge point set two and the center point two, and the distance three between the mouth circle edge point set three and the center point three, wherein the center point one is the center point in the mouth circle edge point set one, the center point two is the center point in the mouth circle edge point set two, and the center point three is the center point in the mouth circle edge point set three; filter out the abnormal edge points in the mouth circle edge point set one according to the distance one to obtain the mouth circle one, filter out the abnormal edge points in the mouth circle edge point set two according to the distance two to obtain the mouth circle two, and filter out the abnormal edge points in the mouth circle edge point set three according to the distance three to obtain the mouth circle three.
[0098] Optionally, in this embodiment, the computer-readable storage medium is configured to store program codes for executing the following steps: performing a connected domain analysis on the evaporator tube mouth image to obtain an initial tube mouth circular image one of tube mouth one; performing a connected domain analysis on the condenser tube mouth image to obtain an initial tube mouth circular image two of tube mouth two; performing template matching on the elbow tube mouth image to obtain an initial tube mouth circular image three of tube mouth three.
[0099] Optionally, in this embodiment, the computer-readable storage medium is configured to store program codes for executing the following steps: sorting the nozzle circle one and the nozzle circle two to obtain sorted nozzle circle one and nozzle circle two; sorting the nozzle circle three to obtain sorted nozzle circle three; numbering the sorted nozzle circle one and nozzle circle two to obtain numbered nozzle circle one and nozzle circle two; numbering the sorted nozzle circle three to obtain numbered nozzle circle three; numbering the sorted nozzle circle one, nozzle circle two and nozzle circle three to obtain position information.
[0100] Optionally, in this embodiment, the computer-readable storage medium is configured to store program code for performing the following steps: obtaining pixel coordinate one of the center of the pipe mouth of each group of evaporators and condensers; obtaining pixel coordinate two of the center of the pipe mouth of each group of elbows; determining pixel coordinate one of the center point of the corresponding pipe mouth of each group of evaporators and condensers according to pixel coordinate one of the center of the pipe mouth; determining pixel coordinate two of the center point of the corresponding pipe mouth of each group of elbows according to pixel coordinate two of the center of the pipe mouth; converting pixel coordinate one of the center point into machine coordinate one of the center point by calibration, and converting pixel coordinate two of the center point into machine coordinate two of the center point by calibration; determining position information according to machine coordinate one of the center point, machine coordinate two of the center point and machine coordinates of the photographing point of the elbow.
[0101] Optionally, in this embodiment, the computer-readable storage medium is configured to store program codes for executing the following steps: performing affine calculations on center point machine coordinates 1 and 2 according to the machine coordinates of the elbow photographing point to obtain position information.
[0102] According to another aspect of the embodiments of the present invention, a processor is provided, and the processor is used to run a program, wherein when the program is run, any one of the above-mentioned methods for processing the elbow of an air conditioner is executed.
[0103] According to another aspect of the embodiments of the present invention, there is also provided a computer program product, comprising computer instructions, which, when executed by a processor, execute any one of the above-mentioned methods for processing the elbow of an air conditioner.
[0104] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0105] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0106] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0107] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0108] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0109] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
[0110] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A method for processing the elbow of two air conditioners. It is characterized in that include: Acquire an evaporator orifice image and a condenser orifice image corresponding to two air conditioners, and acquire an elbow orifice image corresponding to an elbow, wherein the two air conditioners represent an evaporator and a condenser of the air conditioner, and the elbow is a pipe connection piece of the evaporator and the condenser; The nozzle 1 of the evaporator is positioned according to the nozzle image of the evaporator by using the adaptive circle fitting method to obtain the nozzle circle 1 of the nozzle 1, the nozzle 2 of the condenser is positioned according to the nozzle image of the condenser by using the adaptive circle fitting method to obtain the nozzle circle 2 of the nozzle 2, and the nozzle 3 of the elbow is positioned according to the nozzle image of the elbow by using the adaptive circle fitting method to obtain the nozzle circle 3 of the nozzle 3; Determine the position information of the elbows required to be inserted into the evaporator and the condenser according to the pipe orifice circle 1, the pipe orifice circle 2 and the pipe orifice circle 3; The elbow plugging machine is controlled to perform an elbow plugging operation on the evaporator and the condenser according to the position information.
2. The method for processing the elbow of the air conditioner according to claim 1, It is characterized in that After obtaining the evaporator pipe opening image and the condenser pipe opening image corresponding to the two air conditioners, and obtaining the elbow pipe opening image corresponding to the elbow, the method further includes: A preprocessing operation is performed on the evaporator tube mouth image, the condenser tube mouth image and the elbow tube mouth image to obtain the preprocessed evaporator tube mouth image, the condenser tube mouth image and the elbow tube mouth image, wherein the preprocessing operation includes at least one of the following: a smoothing operation and a binarization operation.
3. The method for processing the elbow of the air conditioner according to claim 1, It is characterized in that The method comprises: positioning the nozzle 1 of the evaporator according to the nozzle image of the evaporator by using an adaptive circle fitting method to obtain the nozzle circle 1 of the nozzle 1; positioning the nozzle 2 of the condenser according to the nozzle image of the condenser by using the adaptive circle fitting method to obtain the nozzle circle 2 of the nozzle 2; and positioning the nozzle 3 of the elbow according to the nozzle image of the elbow by using the adaptive circle fitting method to obtain the nozzle circle 3 of the nozzle 3, including: Positioning the evaporator nozzle image, the condenser nozzle image, and the elbow nozzle image once to obtain an initial nozzle circular image 1 of nozzle 1, an initial nozzle circular image 2 of nozzle 2, and an initial nozzle circular image 3 of nozzle 3; The adaptive circle fitting method is used to perform circle fitting on the initial pipe orifice circle image 1 to obtain the pipe orifice circle edge point set 1 of the evaporator, the adaptive circle fitting method is used to perform circle fitting on the initial pipe orifice circle image 2 to obtain the pipe orifice circle edge point set 2 of the condenser, and the adaptive circle fitting method is used to perform circle fitting on the initial pipe orifice circle image 3 to obtain the pipe orifice circle edge point set 3 of the elbow; Determine the distance one between the nozzle circle edge point set one and the center point one, the distance two between the nozzle circle edge point set two and the center point two, and the distance three between the nozzle circle edge point set three and the center point three, wherein the center point one is the center point in the nozzle circle edge point set one, the center point two is the center point in the nozzle circle edge point set two, and the center point three is the center point in the nozzle circle edge point set three; According to the distance one, the abnormal edge points in the nozzle circle edge point set one are filtered out to obtain the nozzle circle one, according to the distance two, the abnormal edge points in the nozzle circle edge point set two are filtered out to obtain the nozzle circle two, and according to the distance three, the abnormal edge points in the nozzle circle edge point set three are filtered out to obtain the nozzle circle three.
4. The method for processing the elbow of two air conditioners according to claim 3, It is characterized in that Positioning the evaporator nozzle image, the condenser nozzle image, and the elbow nozzle image once to obtain an initial nozzle circular image 1 of nozzle 1, an initial nozzle circular image 2 of nozzle 2, and an initial nozzle circular image 3 of nozzle 3, including: Performing a connected domain analysis on the evaporator nozzle image to obtain the initial nozzle circular image 1 of the nozzle 1; Performing a connected domain analysis on the condenser nozzle image to obtain the initial nozzle circular image 2 of the nozzle 2; Template matching is performed on the elbow nozzle image to obtain the initial nozzle circle image three of the nozzle three.
5. The method for processing the elbow of two air conditioners according to claim 1, It is characterized in that Determining the position information of the evaporator and the condenser where the elbow needs to be inserted according to the pipe opening circle 1, the pipe opening circle 2, and the pipe opening circle 3 includes: Sorting the pipe orifice circle 1 and the pipe orifice circle 2 to obtain the sorted pipe orifice circle 1 and the pipe orifice circle 2; Sorting the pipe orifice circle three to obtain the sorted pipe orifice circle three; Numbering the sorted pipe orifice circle 1 and the pipe orifice circle 2 to obtain the numbered pipe orifice circle 1 and the pipe orifice circle 2; Numbering the sorted pipe orifice circle three to obtain the numbered pipe orifice circle three; The sorted pipe orifice circle one, the pipe orifice circle two and the pipe orifice circle three are numbered to obtain the position information.
6. The method for processing the elbow of two air conditioners according to claim 1, It is characterized in that Determining the position information of the evaporator and the condenser where the elbow needs to be inserted according to the pipe orifice circle 1, the pipe orifice circle 2, and the pipe orifice circle 3 includes: Obtaining the first pixel coordinate of the center of the tube orifice of each group of the evaporator and the condenser; Obtaining the second pixel coordinate of the center of the pipe opening of each group of elbows; Determine the pixel coordinate of the center point of each group of the evaporator and the condenser corresponding to the pipe opening according to the pixel coordinate of the center of the pipe opening; Determine the second pixel coordinate of the center point of each group of elbows corresponding to the pipe orifice according to the second pixel coordinate of the center of the pipe orifice; Converting the center point pixel coordinate 1 into the center point machine coordinate 1 by calibration, and converting the center point pixel coordinate 2 into the center point machine coordinate 2 by calibration; The position information is determined according to the center point machine coordinate 1, the center point machine coordinate 2 and the elbow photographing point machine coordinate.
7. The method for processing the elbow of two air conditioners according to claim 6, It is characterized in that Determining the position information according to the center point machine coordinate 1, the center point machine coordinate 2 and the elbow photographing point machine coordinate includes: Affine calculation is performed on the center point machine coordinate 1 and the center point machine coordinate 2 according to the machine coordinate of the elbow photographing point to obtain the position information.
8. A device for processing elbows of two air conditioners. It is characterized in that include: A first acquisition unit is used to acquire an evaporator orifice image and a condenser orifice image corresponding to two air conditioners, and acquire an elbow orifice image corresponding to an elbow, wherein the two air conditioners represent an evaporator and a condenser of the air conditioner, and the elbow is a pipe connection piece between the evaporator and the condenser; a second acquisition unit, configured to use an adaptive circle fitting method to locate the first tube opening of the evaporator according to the tube opening image of the evaporator to obtain a tube opening circle 1 of the first tube opening, use the adaptive circle fitting method to locate the second tube opening of the condenser according to the tube opening image of the condenser to obtain a tube opening circle 2 of the second tube opening, and use the adaptive circle fitting method to locate the third tube opening of the elbow according to the tube opening image of the elbow to obtain a tube opening circle 3 of the third tube opening; A determination unit, configured to determine position information of the evaporator and the condenser where the elbow needs to be inserted according to the pipe orifice circle 1, the pipe orifice circle 2, and the pipe orifice circle 3; A control unit is used to control the elbow plugging machine to perform elbow plugging operations on the evaporator and the condenser according to the position information.
9. A computer-readable storage medium, It is characterized in that The computer-readable storage medium includes a stored program, wherein the program executes the plug elbow processing method for two devices of the air conditioner according to any one of claims 1 to 7.
10. A computer program product comprising computer instructions, It is characterized in that When the computer instructions are executed by the processor, the elbow processing method for two air conditioners described in any one of claims 1 to 7 is performed.
Citation Information
Patent Citations
Datum point positioning method based on machine vision
CN103235939A
Processing method and device for two air conditioning units
CN110773969A
Circle detection and fitting method and device, electronic equipment and storage medium
CN112634256A
Wafer positioning method and device, equipment and storage medium
CN117689727A
Medical image mark point recognition method and apparatus, electronic device, and storage medium
WO2023078169A1
