CN113870118A - Method and device for determining equipment installation parameters, electronic equipment and storage medium - Google Patents

Method and device for determining equipment installation parameters, electronic equipment and storage medium Download PDF

Info

Publication number
CN113870118A
CN113870118A CN202111171554.4A CN202111171554A CN113870118A CN 113870118 A CN113870118 A CN 113870118A CN 202111171554 A CN202111171554 A CN 202111171554A CN 113870118 A CN113870118 A CN 113870118A
Authority
CN
China
Prior art keywords
legend
installation
parameters
determining
equipment
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.)
Pending
Application number
CN202111171554.4A
Other languages
Chinese (zh)
Inventor
李凯
高志刚
尚伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Softcom Power Information Technology Group Co Ltd
Original Assignee
Softcom Power Information Technology Group Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Softcom Power Information Technology Group Co Ltd filed Critical Softcom Power Information Technology Group Co Ltd
Priority to CN202111171554.4A priority Critical patent/CN113870118A/en
Publication of CN113870118A publication Critical patent/CN113870118A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/60Rotation of whole images or parts thereof

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Image Analysis (AREA)

Abstract

The embodiment of the application discloses a method and a device for determining equipment installation parameters, electronic equipment and a storage medium. The method comprises the following steps: acquiring a preset standard legend corresponding to equipment to be installed and an installation legend corresponding to the equipment to be installed; performing geometric transformation on a preset standard legend for preset times, and acquiring legend parameters of a transformation legend obtained after each geometric transformation; acquiring legend parameters of the installation legend, and determining a target conversion legend with the maximum similarity to the installation legend from all conversion legends according to the legend parameters of the installation legend and the legend parameters of the conversion legend; and determining the installation parameters of the equipment to be installed according to the legend parameters of the target conversion legend and the legend parameters of the installation legend. The process of acquiring the installation parameters through manual measurement is avoided, the problem that the installation parameters are not accurately acquired in manual measurement is solved, and the effect of automatically acquiring the more accurate installation parameters is realized.

Description

Method and device for determining equipment installation parameters, electronic equipment and storage medium
Technical Field
The embodiment of the application relates to the technical field of engineering measurement, in particular to a method and a device for determining equipment installation parameters, electronic equipment and a storage medium.
Background
In the engineering field, constructors generally construct according to drawings, and therefore smooth proceeding of engineering is guaranteed.
At present, when constructors construct according to drawings, installation of some equipment, such as valves, pipelines and the like, is related, and for the equipment, installation parameters which are used for installing the equipment are obtained by the constructors through manual measurement according to the drawings.
The probability of measurement errors or recording errors occurring in manual measurement is high, which may result in inaccurate obtained installation parameters, causing problems when the equipment is installed according to the obtained installation parameters.
Disclosure of Invention
The embodiment of the application provides a method and a device for determining equipment installation parameters, electronic equipment and a storage medium, so as to realize automatic determination of the equipment installation parameters.
In a first aspect, an embodiment of the present application provides a method for determining device installation parameters, including:
acquiring a preset standard legend corresponding to equipment to be installed and an installation legend corresponding to the equipment to be installed;
performing geometric transformation on the preset standard legend for preset times, and acquiring legend parameters of a transformation legend obtained after each geometric transformation;
acquiring legend parameters of the installation legend, and determining a target conversion legend with the maximum similarity to the installation legend from all the conversion legends according to the legend parameters of the installation legend and the legend parameters of the conversion legend;
and determining the installation parameters of the equipment to be installed according to the legend parameters of the target conversion legend and the legend parameters of the installation legend.
In a second aspect, an embodiment of the present application further provides an apparatus for determining an equipment installation parameter, including:
the device comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring a preset standard legend corresponding to equipment to be installed and an installation legend corresponding to the equipment to be installed;
the geometric transformation module is used for carrying out geometric transformation on the preset standard legend for preset times, and acquiring legend parameters of a transformation legend obtained after each time of geometric transformation;
a first determining module, configured to obtain legend parameters of the installation legend, and determine, according to the legend parameters of the installation legend and the legend parameters of the conversion legend, a target conversion legend having a maximum similarity to the installation legend from all the conversion legends;
and the second determining module is used for determining the installation parameters of the equipment to be installed according to the legend parameters of the target conversion legend and the legend parameters of the installation legend.
In a third aspect, an embodiment of the present application further provides an electronic device, including:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a method for determining device installation parameters as described in any of the embodiments of the present application.
In a fourth aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for determining the device installation parameter according to any embodiment of the present application.
According to the technical scheme, the preset standard legend of the equipment to be installed is introduced, multiple geometric transformation is conducted on the preset standard legend, multiple transformation legends are obtained, then the target transformation legend with the maximum similarity to the installation legend is determined, the installation parameters of the equipment to be installed are determined by using legend parameters of the target transformation legend and legend parameters of the installation legend, the process of obtaining the installation parameters through manual measurement is avoided, the problem that the installation parameters obtained through manual measurement are inaccurate is solved, and the effect of automatically obtaining the more accurate installation parameters is achieved.
Drawings
Fig. 1 is a schematic flowchart of a method for determining device installation parameters according to a first embodiment of the present application;
fig. 2 is a schematic diagram of an installation illustration of a device to be installed according to a first embodiment of the present application;
fig. 3 is a schematic diagram of a preset standard legend of a device to be installed according to an embodiment of the present application;
FIG. 4 is a flow chart illustrating a legend parameter for obtaining a transformation legend according to an embodiment of the present application;
FIG. 5 is a schematic flow chart for determining a first vector coordinate set according to a first embodiment of the present disclosure;
FIG. 6 is a diagram illustrating a predetermined standard legend with coordinate points according to an embodiment of the present application;
FIG. 7 is a schematic diagram of a first minimum bounding graph with a center point as an origin and a right rectangle as a first minimum bounding graph according to an embodiment of the present disclosure;
FIG. 8 is a flowchart illustrating a method for determining a target transformation legend according to a first embodiment of the present application;
fig. 9 is a schematic structural diagram of an apparatus for determining device installation parameters according to a second embodiment of the present application;
fig. 10 is a schematic structural diagram of an electronic device according to a third embodiment of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. It should be further noted that, for the convenience of description, only some of the structures related to the present application are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a schematic flow diagram of a method for determining device installation parameters according to an embodiment of the present application, where the present embodiment is applicable to any scenario where installation parameters need to be determined when an apparatus to be installed is installed, and the method may be executed by an apparatus for determining device installation parameters, where the apparatus may be implemented in a hardware and/or software manner, and may be generally integrated in an electronic device such as a computer with data computation capability, and specifically includes the following steps:
step 101, obtaining a preset standard legend corresponding to equipment to be installed and an installation legend corresponding to the equipment to be installed.
In this step, the device to be installed refers to a device that needs to be installed, such as a valve, a pipeline, a fan, and the like. The preset standard legend may be a standardized graphic block preset for the device to be installed, and in order to facilitate subsequent comparison of installation legends for different zoom degrees, in this embodiment, the preset standard legend may be set as a vector graphic block.
In addition, the installation legend in this step refers to the corresponding block in the installation drawing to be referred to when actually installing the device to be installed.
It should be noted that the preset standard legend may be stored in the example library, and during storage, mapping storage may be performed on the identifier of the device to be installed, where the identifier of the device to be installed is unique, so that the preset standard legend may be queried from the example library through the identifier of the device to be installed.
Similarly, in the aforementioned installation drawing, the image blocks corresponding to different devices may be mapped with the identifiers of the devices, and when the installation legend corresponding to the device to be installed is obtained from the installation drawing, the image block corresponding to the identifier of the device to be installed is directly extracted and used as the installation legend corresponding to the device to be installed.
Because the installation drawing may have a plurality of devices to be installed at different installation positions, at this time, the devices to be installed in the installation drawing can be numbered in advance, the numbers and the identifiers are combined into a new identifier, and the step only needs to acquire the installation legend of the devices to be installed from the installation drawing according to the new identifier.
In a specific example, fig. 2 and fig. 3 may be referred to, where fig. 2 is a schematic diagram of an installation illustration of a device to be installed according to an embodiment of the present application, and fig. 3 is a schematic diagram of a preset standard illustration of a device to be installed according to an embodiment of the present application.
As shown in fig. 2 and 3, the installation legend corresponding to the device to be installed may be a "z" -shaped component shown in fig. 2, and the obtained preset standard legend may be a "z" -shaped component shown in fig. 3.
And 102, performing geometric transformation on a preset standard legend for preset times, and acquiring legend parameters of a transformation legend obtained after each geometric transformation.
In this step, a predetermined number of times of geometric transformations are performed on a predetermined standard legend, each geometric transformation obtains a transformation legend, and each transformation legend corresponds to a set of legend parameters.
In the solution of this embodiment, the geometric transformation may refer to different transformation manners such as rotation and mirror image, and in actual installation, the difference between the installation legend and the standard legend is often that there is a difference in rotation angle, or that the installation legend and the standard legend are mirror images of each other.
Therefore, in order to facilitate determining the difference between the installation legend and the standard legend, the present embodiment performs multiple geometric transformations on the preset standard legend, and transforms the preset standard legend into different position states, so as to perform similarity comparison with the installation legend.
Specifically, referring to fig. 4, fig. 4 is a schematic flow chart of a legend parameter for obtaining a conversion legend according to an embodiment of the present application.
As shown in fig. 4, in this embodiment, the process of obtaining the legend parameter of the conversion legend may include:
step 401, extracting a first vector coordinate set of the device to be installed from a preset standard legend, and determining a first minimum bounding graph covering all vector coordinates in the first vector coordinate set.
In the foregoing, it is mentioned that the preset standard legend is a vector graphic block, and therefore, the main feature points thereof are vector coordinate points, generally, the vector coordinate points of the preset standard legend can be directly integrated in the information of the legend as the feature points of the legend, and in this step, the corresponding vector coordinate points are directly extracted from the information of the legend as the first vector coordinate set.
Because the draftsman drawing the installation legend may have different drafting styles, such as for the graph shown in FIG. 2, some draftsman may draw with line segments, some may draw with multi-line segments, and some may even draw with a combination of both.
Taking CAD drawing software as an example, a line segment has two end points, and when the graph of the graph 2 is drawn by using the line segment, 6 end points exist, namely 6 vector coordinate points correspond to the end points; by using multiple line segments to plot the graph of fig. 2, there are only two coordinate points, two line segment inflection points, i.e., 4 vector coordinate points.
If the number of coordinate points included in the first vector coordinate set corresponding to the preset standard legend is less than the number of coordinate points corresponding to the installation legend, certain interference may occur during subsequent similarity comparison, resulting in inaccurate similarity comparison.
Therefore, in this step, the first vector coordinate group may be acquired on the basis of the rule that the coordinate points of the installation legend are covered by the maximum amount. Specifically, referring to fig. 5, fig. 5 is a schematic flowchart for determining a first vector coordinate set according to an embodiment of the present application.
As shown in fig. 5, the process of determining the first vector coordinate set provided by this embodiment may include:
step 501, collecting coordinate points corresponding to the equipment to be installed from a preset standard legend.
It should be noted that, the process of acquiring the coordinate point in this step may refer to the foregoing description of step 401, and is not described herein again.
And 502, repeatedly collecting intermediate coordinate points except the coordinate points corresponding to the head end point and the tail end point in the coordinate points to obtain repeated intermediate coordinate points.
In this step, the intermediate coordinate points except the coordinate points corresponding to the head and tail end points in the coordinate points are repeatedly collected, so that the obtained coordinate points can be ensured to cover the coordinate points of the installation legend to the maximum extent.
Step 503, determining the coordinate point corresponding to the head and tail end points, the middle coordinate point and the repeated middle coordinate point as a first vector coordinate set of the device to be installed.
Since the drawing habit is mainly the difference between a line segment and a multi-line segment, the present embodiment is mainly optimized for the habit. In a specific example, reference may be made to fig. 6, where fig. 6 is a schematic diagram of a preset standard legend with coordinate points provided in an embodiment of the present application.
As shown in fig. 6, (x1, y1) and (x4, y4) are coordinate points corresponding to the head-tail end points, (x2, y2) and (x3, y3) are intermediate coordinate points, and (x5, y5) and (x6, y6) are repeated intermediate coordinate points.
In addition, in this step, when determining the first minimum bounding volume covering all vector coordinates in the first vector coordinate set, the first vector coordinate set may be first converted into a coordinate matrix, and then the coordinate matrix is input into a preset minimum bounding volume obtaining function, so as to obtain the first minimum bounding volume output by the minimum bounding volume obtaining function.
It should be noted that the transformation coordinate matrix may be implemented by using a numpy function, and taking the coordinate points shown in fig. 6 as an example, a specific example of the transformation coordinate matrix may be symMat ═ np.array ([ (x1, y1), (x2, y2), (x5, y5), (x3, y3), (x6, y6), (x4, y4) ], and dtype ═ np.float 32.
In addition, the minimum bounding graph obtaining function may be an openCV function, and the principle of obtaining the minimum bounding graph by using the openCV function may refer to a related technology applying the openCV function, which is not described herein again.
It should be noted that the first minimum enclosing pattern is rectangular or circular, and in the present embodiment, a rectangular form is adopted in order to make the geometric transformation more friendly.
Further, after the first minimum enclosing pattern is rotated into a regular rectangle, the subsequent step 402 is performed, where the regular rectangle is that one side of the rectangle is parallel to one axis of the coordinate system, and specifically, an included angle between a target side of the first minimum enclosing pattern and a first coordinate axis of the coordinate system may be determined first; and then, rotating the first minimum enclosing graph according to the included angle so as to enable the target edge to be parallel to the first coordinate axis, and then executing the step of performing geometric transformation on the first minimum enclosing graph for preset times on the basis of the rotated first minimum enclosing graph.
The target edge may be any one edge of the first minimum bounding rectangle, and may generally refer to the length of the rectangle, the first coordinate axis is any one axis of a coordinate system, and the coordinate system is a rectangular coordinate system.
After the first minimum enclosing graph is rotated into the positive rectangle, the subsequent geometric transformation is more visual and convenient, and the calculated amount is less.
Of course, in order to make the calculation more friendly, the center point of the first minimum bounding graph may be set as the origin of the coordinate system, and then the vector coordinates in the first vector coordinate set may be transformed according to the graph parameters (the length, width, and original center point coordinates of the rectangle) of the first minimum bounding graph. On the basis, the rectangular plate is rotated into a positive rectangle.
In order to reduce the calculation power consumed in the process of rotating into the regular rectangle, in this embodiment, the minimum angle required to rotate into the regular rectangle can be calculated according to the obtained included angle, for example, the included angle is 60 degrees, and then the first minimum enclosing image can be rotated counterclockwise by 30 degrees to form the regular rectangle; with an included angle of 20 degrees, the first minimal enclosing image can be rotated clockwise by 20 degrees to form a positive rectangle.
After the rotation into a regular rectangle, new coordinates of each vector coordinate point in the first vector coordinate points can be calculated according to the vector coordinates obtained after the central point is transferred and the minimum angle. The specific calculation process may refer to a related mathematical algorithm of coordinate transformation, which is not described herein again.
Step 402, performing geometric transformation on the first minimum enclosing graph for a preset number of times, and driving all vector coordinates in the first vector coordinate set to move during each geometric transformation to obtain a transformation legend corresponding to the moved first vector coordinate set.
In this step, the more times of geometric transformation, the more accurate the finally determined installation parameters, and in combination with the actual installation situation, generally, the rotation angles of the deviation between the installation legend and the installation legend are usually 0 degree, 90 degree, 180 degree, 270 degree and the mirrored 0 degree, 90 degree, 180 degree, 270 degree, relative to the preset standard legend, so the geometric transformation of the preset times in this step may be 0 degree, 90 degree, 180 degree, 270 degree rotation and the mirrored 0 degree, 90 degree, 180 degree, 270 degree rotation, which are 8 kinds of geometric transformation.
Since the comparison subject is the vector coordinate point of the legend during the final similarity comparison, it is necessary to move all the vector coordinates in the first vector coordinate set covered by the first minimum bounding graph during each geometric transformation.
And step 403, for any geometric transformation, obtaining the legend parameters of the transformation legend obtained by the current geometric transformation according to the first minimum bounding figure after the geometric transformation and the first vector coordinate group after the movement.
In this step, the legend parameter is mainly the number of coordinate points included in each area in the coordinate system, and in a specific example, the legend parameter may include: the number of coordinate points in the positive y-axis region, the number of coordinate points in the negative x-axis region, the number of coordinate points in the positive x-axis region, the number of coordinate points in the negative x-axis region, the positive y-axis region, the number of coordinate points in the positive x-axis region, the positive y-axis region, the number of coordinate points in the negative x-axis region, the negative y-axis region, the number of coordinate points in the positive y-axis region, the number of coordinate points in the negative x-axis region, the number of coordinate points in the positive y-axis region, the number of coordinate points in the negative x-axis region, the number of coordinate points in the positive x-axis region, the negative y-axis region, the first minimum aspect ratio, Rotation angle, y-axis mirror value (no mirror is 1, mirror is-1).
In a specific example, please refer to fig. 7, fig. 7 is a schematic diagram illustrating a center point as an origin and a first minimum bounding graph as a regular rectangle according to an embodiment of the present application.
As shown in fig. 7, in the state of 0 degree rotation (first geometric transformation), the number of coordinate points in the positive y-axis region is 3 (x2, y2), (x5, y5), (x4, y4)), and the number of coordinate points in the negative y-axis region is 3, … …, and the rotation angle is 0+ minimum angle (the minimum angle obtained when the rotation is a positive rectangle).
After the counter-clockwise rotation is carried out for 90 degrees (for the second time), the rotation angle is 90+ the minimum angle, and the number of the coordinate points of each area can be directly assigned. For example, the number of coordinate points in the positive y-axis region at this time is the number of coordinate points in the positive x-axis region at the previous time.
And 103, acquiring legend parameters of the installation legend, and determining a target conversion legend with the maximum similarity to the installation legend from all conversion legends according to the legend parameters of the installation legend and the legend parameters of the conversion legend.
In this step, the legend parameter of the installation legend may refer to the aforementioned process of obtaining the legend parameter of the conversion legend, extract a second vector coordinate set of the device to be installed from the installation legend, and determine a second minimum bounding graph covering all vector coordinates in the second vector coordinate set; and acquiring the legend parameters of the installation legend according to the second minimum bounding graph and the second vector coordinate set. And will not be described in detail herein.
It should be noted that, if the center point of the first minimum bounding rectangle is moved and rotated to be the positive rectangle, the center point of the second minimum bounding rectangle is also moved and rotated to be the positive rectangle in this step.
In addition, the rotation angle in the legend parameter of the second smallest bounding rectangle is the minimum angle required to rotate it into a positive rectangle.
Referring to fig. 8, in the process of determining the target transformation legend in this step, fig. 8 is a schematic flowchart of determining the target transformation legend according to an embodiment of the present application.
As shown in fig. 8, the process of determining the target transformation legend may include:
step 801, for any one of the conversion legends, finds a ratio between the legend parameters of the installation legend and the legend parameters of the conversion legend.
Since the legend parameters include a plurality of parameters, in this step, the ratio may be obtained in a one-to-one correspondence manner, and then the ratio is added to obtain the ratio between the legend parameters and the legend parameters finally obtained in this step.
And step 802, determining the conversion legend corresponding to the ratio closest to the preset threshold as the target conversion legend with the maximum similarity to the installation legend.
It should be noted that, the more similar the conversion legend and the installation legend, the closer the ratio of a legend parameter is to 1, and the aforementioned process is to add the ratios, so the preset threshold in this step can be the parameter number of the legend parameter.
Still taking the example of the illustrated parameters mentioned in the previous embodiment as an example, there are 20 parameters, and the preset threshold in this step is 20. And the closest to the preset threshold may be quantified as the absolute value of the difference between the ratio and the preset threshold being the smallest.
And step 104, determining the installation parameters of the equipment to be installed according to the legend parameters of the target conversion legend and the legend parameters of the installation legend.
In this step, the legend parameters include a rotation angle parameter, i.e., the aforementioned rotation angle, and a mirror image parameter, i.e., the aforementioned y-axis mirror image value. Specifically, the difference between the rotation angle parameter corresponding to the target conversion legend and the rotation angle parameter corresponding to the installation legend may be determined as the installation angle for installing the device to be installed; determining the mirror image parameters corresponding to the target conversion legend as mirror image installation reference values for installing equipment to be installed; and finally, determining the installation angle and the mirror image installation reference value as the installation parameters of the equipment to be installed.
It should be noted that, when the installation angle is to install the device to be installed, the installation angle needs to be rotated based on the angle in the preset standard legend, and the mirror image installation reference value is "1" to indicate that mirror image installation is not needed, and "— 1" to indicate that mirror image installation is needed.
The technical scheme that this embodiment provided, through introducing the preset standard legend of waiting to install the equipment, through carrying out many times geometric transformation to preset standard legend, thereby obtain a plurality of transformation legends, then confirm the target transformation legend that has the biggest similarity with the installation legend, utilize the legend parameter of target transformation legend and the legend parameter of installation legend to confirm the installation parameters of waiting to install the equipment, the process of obtaining installation parameters through manual measurement has been avoided, the problem that the installation parameters that manual measurement exists obtain inaccurately is solved, realize the effect of the automatic acquisition of more accurate installation parameters.
Example two
Fig. 9 is a schematic structural diagram of an apparatus for determining device installation parameters according to a second embodiment of the present application. The device installation parameter determining device provided by the embodiment of the application can execute the device installation parameter determining method provided by any embodiment of the application, and has corresponding functional modules and beneficial effects of the executing method. The device can be implemented in software and/or hardware, and as shown in fig. 9, the device for determining the device installation parameters specifically includes: an obtaining module 901, a geometric transformation module 902, a first determining module 903, and a second determining module 904.
The obtaining module 901 is configured to obtain a preset standard legend corresponding to a device to be installed and an installation legend corresponding to the device to be installed;
a geometric transformation module 902, configured to perform geometric transformation on a preset standard legend for a preset number of times, and obtain legend parameters of a transformation legend obtained after each geometric transformation;
a first determining module 903, configured to obtain legend parameters of the installation legend, and determine, according to the legend parameters of the installation legend and the legend parameters of the conversion legend, a target conversion legend having the greatest similarity to the installation legend from all the conversion legends;
and a second determining module 904, configured to determine the installation parameters of the device to be installed according to the legend parameters of the target conversion legend and the legend parameters of the installation legend.
The technical scheme that this embodiment provided, through introducing the preset standard legend of waiting to install the equipment, through carrying out many times geometric transformation to preset standard legend, thereby obtain a plurality of transformation legends, then confirm the target transformation legend that has the biggest similarity with the installation legend, utilize the legend parameter of target transformation legend and the legend parameter of installation legend to confirm the installation parameters of waiting to install the equipment, the process of obtaining installation parameters through manual measurement has been avoided, the problem that the installation parameters that manual measurement exists obtain inaccurately is solved, realize the effect of the automatic acquisition of more accurate installation parameters.
On the basis of the foregoing embodiments, the geometric transformation module 902 may specifically include:
the first minimum surrounding graph determining unit is used for extracting a first vector coordinate set of the equipment to be installed from the preset standard legend and determining a first minimum surrounding graph covering all vector coordinates in the first vector coordinate set;
a transformation legend obtaining unit, configured to perform geometric transformation on the first minimum bounding volume for a preset number of times, and drive all vector coordinates in the first vector coordinate set to move during each geometric transformation, so as to obtain a transformation legend corresponding to the moved first vector coordinate set;
and the legend parameter acquiring unit is used for acquiring the legend parameters of the conversion legend obtained by the current geometric conversion according to the first minimum bounding figure after the geometric conversion and the first vector coordinate group after the movement for any geometric conversion.
Further, the first minimum bounding volume determining unit includes:
the coordinate point acquisition subunit is used for acquiring a coordinate point corresponding to the equipment to be installed from the preset standard legend;
the repeated collection subunit is used for repeatedly collecting the intermediate coordinate points except the coordinate points corresponding to the head end point and the tail end point in the coordinate points to obtain repeated intermediate coordinate points;
and the first vector coordinate group determining subunit is configured to determine the coordinate points corresponding to the head and tail end points, the middle coordinate point, and the repeated middle coordinate point as a first vector coordinate group of the device to be mounted.
Further, the first minimum bounding volume determining unit further includes:
the coordinate conversion subunit is used for converting the first vector coordinate set into a coordinate matrix;
and the first minimum surrounding graph acquiring subunit is used for inputting the coordinate matrix into a preset minimum surrounding graph acquiring function and acquiring a first minimum surrounding graph output by the minimum surrounding graph acquiring function.
Further, the first minimum enclosing pattern is rectangular;
the geometric transformation module 902 further includes:
the included angle determining unit is used for determining an included angle between the target edge of the first minimum enclosing graph and a first coordinate axis of a coordinate system;
the rotating unit is used for rotating the first minimum enclosing graph according to the included angle so as to enable the target edge to be parallel to the first coordinate axis;
a transformation legend obtaining unit, configured to perform the step of performing geometric transformation on the first minimum bounding volume for a preset number of times based on the rotated first minimum bounding volume.
Further, the first determining module 903 comprises:
a second minimum surrounding graph determining unit, configured to extract a second vector coordinate set of the device to be installed from the installation legend, and determine a second minimum surrounding graph that covers all vector coordinates in the second vector coordinate set;
and the legend parameter acquiring unit of the installation legend is used for acquiring the legend parameters of the installation legend according to the second minimum bounding graph and the second vector coordinate set.
Further, the first determining module 903 further includes:
a ratio calculation unit, configured to calculate, for any one of the conversion legends, a ratio between a legend parameter of the installation legend and a legend parameter of the conversion legend;
and the target conversion legend determining unit is used for determining the conversion legend corresponding to the ratio closest to a preset threshold as the target conversion legend with the maximum similarity to the installation legend.
Further, the legend parameters include a rotation angle parameter and a mirror image parameter;
the second determining module 904 includes:
the installation angle determining unit is used for determining the difference value between the rotation angle parameter corresponding to the target conversion legend and the rotation angle parameter corresponding to the installation legend as the installation angle for installing the equipment to be installed;
a mirror image installation reference value determining unit, configured to determine a mirror image parameter corresponding to the target conversion legend as a mirror image installation reference value for installing the device to be installed;
and the installation parameter determining unit is used for determining the installation angle and the mirror image installation reference value as the installation parameters of the equipment to be installed.
EXAMPLE III
Fig. 10 is a schematic structural diagram of an electronic device according to a third embodiment of the present application, as shown in fig. 10, the electronic device includes a processor 1010, a memory 1020, an input device 1030, and an output device 1040; the number of the processors 1010 in the electronic device may be one or more, and one processor 1010 is taken as an example in fig. C; the processor 1010, the memory 1020, the input device 1030, and the output device 1040 in the electronic apparatus may be connected by a bus or other means, and the bus connection is taken as an example in fig. C.
The memory 1020 may be used as a computer-readable storage medium for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the method for determining device installation parameters in the embodiments of the present application (for example, the obtaining module 901, the geometric transformation module 902, the first determining module 903, and the second determining module 904 in the device installation parameter determining apparatus). The processor 1010 executes various functional applications and data processing of the electronic device by executing software programs, instructions and modules stored in the memory 1020, that is, implements the method for determining the device installation parameters.
That is, the method includes:
acquiring a preset standard legend corresponding to equipment to be installed and an installation legend corresponding to the equipment to be installed;
performing geometric transformation on the preset standard legend for preset times, and acquiring legend parameters of a transformation legend obtained after each geometric transformation;
acquiring legend parameters of the installation legend, and determining a target conversion legend with the maximum similarity to the installation legend from all the conversion legends according to the legend parameters of the installation legend and the legend parameters of the conversion legend;
and determining the installation parameters of the equipment to be installed according to the legend parameters of the target conversion legend and the legend parameters of the installation legend.
The memory 1020 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 1020 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory 1020 may further include memory located remotely from the processor 1010, which may be connected to an electronic device over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input unit 1030 may be used to acquire a preset standard legend corresponding to a device to be installed and an installation legend corresponding to the device to be installed, and to generate key signal inputs related to user settings and function control of the electronic device. Output device 1040 may include a display device such as a display screen.
Example four
A fourth embodiment of the present application further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, perform a method for determining device installation parameters, the method including:
acquiring a preset standard legend corresponding to equipment to be installed and an installation legend corresponding to the equipment to be installed;
performing geometric transformation on a preset standard legend for preset times, and acquiring legend parameters of a transformation legend obtained after each geometric transformation;
acquiring legend parameters of the installation legend, and determining a target conversion legend with the maximum similarity to the installation legend from all conversion legends according to the legend parameters of the installation legend and the legend parameters of the conversion legend;
and determining the installation parameters of the equipment to be installed according to the legend parameters of the target conversion legend and the legend parameters of the installation legend.
Of course, the storage medium provided in the embodiments of the present application contains computer-executable instructions, and the computer-executable instructions are not limited to the above method operations, and may also perform related operations in the method for determining device installation parameters provided in any embodiment of the present application.
From the above description of the embodiments, it is obvious for those skilled in the art that the present application can be implemented by software and necessary general hardware, and certainly can be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods of the embodiments of the present application.
It should be noted that, in the embodiment of the above search apparatus, each included unit and module are merely divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only used for distinguishing one functional unit from another, and are not used for limiting the protection scope of the application.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present application and the technical principles employed. It will be understood by those skilled in the art that the present application is not limited to the particular embodiments illustrated herein, and that various obvious changes, rearrangements and substitutions may be made therein by those skilled in the art without departing from the scope of the application. Therefore, although the present application has been described in more detail with reference to the above embodiments, the present application is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present application, and the scope of the present application is determined by the scope of the appended claims.

Claims (11)

1. A method for determining device installation parameters, the method comprising:
acquiring a preset standard legend corresponding to equipment to be installed and an installation legend corresponding to the equipment to be installed;
performing geometric transformation on the preset standard legend for preset times, and acquiring legend parameters of a transformation legend obtained after each geometric transformation;
acquiring legend parameters of the installation legend, and determining a target conversion legend with the maximum similarity to the installation legend from all the conversion legends according to the legend parameters of the installation legend and the legend parameters of the conversion legend;
and determining the installation parameters of the equipment to be installed according to the legend parameters of the target conversion legend and the legend parameters of the installation legend.
2. The method according to claim 1, wherein the performing a predetermined number of geometrical transformations on the predetermined standard legend and obtaining legend parameters of a transformation legend obtained after each geometrical transformation includes:
extracting a first vector coordinate set of the equipment to be installed from the preset standard legend, and determining a first minimum enclosing graph covering all vector coordinates in the first vector coordinate set;
performing geometric transformation on the first minimum enclosing graph for preset times, and driving all vector coordinates in the first vector coordinate set to move during each geometric transformation to obtain a transformation legend corresponding to the moved first vector coordinate set;
and for any geometric transformation, obtaining the legend parameters of the transformation legend by the current geometric transformation according to the first minimum bounding figure after the geometric transformation and the first vector coordinate set after the movement.
3. The method according to claim 2, wherein the extracting the first vector coordinate set of the device to be installed from the preset standard legend comprises:
collecting a coordinate point corresponding to the equipment to be installed from the preset standard legend;
repeatedly collecting intermediate coordinate points except the coordinate points corresponding to the head end point and the tail end point in the coordinate points to obtain repeated intermediate coordinate points;
and determining the coordinate points corresponding to the head and tail end points, the middle coordinate point and the repeated middle coordinate point as a first vector coordinate set of the equipment to be installed.
4. The method of claim 2, wherein determining a first minimal bounding graph that covers all vector coordinates in the first set of vector coordinates comprises:
converting the first vector coordinate set into a coordinate matrix;
and inputting the coordinate matrix into a preset minimum surrounding graph acquisition function, and acquiring a first minimum surrounding graph output by the minimum surrounding graph acquisition function.
5. The method of claim 2, wherein the first minimal bounding figure is a rectangle;
before the performing the geometric transformation on the first minimum bounding volume for the preset times, the performing the geometric transformation on the preset standard legend for the preset times, and obtaining the legend parameter of the transformation legend obtained after each geometric transformation, further includes:
determining an included angle between a target edge of the first minimum enclosing graph and a first coordinate axis of a coordinate system;
rotating the first minimum enclosing graph according to the included angle so as to enable the target edge to be parallel to the first coordinate axis;
and executing the step of performing geometric transformation on the first minimum enclosing graph for a preset number of times on the basis of the rotated first minimum enclosing graph.
6. The method of claim 1, wherein said obtaining legend parameters for said mounting legend comprises:
extracting a second vector coordinate set of the equipment to be installed from the installation legend, and determining a second minimum bounding graph covering all vector coordinates in the second vector coordinate set;
and acquiring a legend parameter of the installation legend according to the second minimum bounding graph and the second vector coordinate set.
7. The method according to claim 1, wherein the determining a target transformation legend having a maximum similarity to the installation legend from all the transformation legends according to the legend parameters of the installation legend and the legend parameters of the transformation legend comprises:
for any one of the conversion legends, finding a ratio between legend parameters of the installation legend and legend parameters of the conversion legend;
and determining the conversion legend corresponding to the ratio closest to a preset threshold value as a target conversion legend with the maximum similarity to the installation legend.
8. The method of claim 1, wherein the legend parameters include a rotation angle parameter and a mirror image parameter;
the determining the installation parameters of the equipment to be installed according to the legend parameters of the target conversion legend and the legend parameters of the installation legend comprises:
determining the difference value between the rotation angle parameter corresponding to the target conversion legend and the rotation angle parameter corresponding to the installation legend as an installation angle for installing the equipment to be installed;
determining the mirror image parameters corresponding to the target conversion legend as mirror image installation reference values for installing the equipment to be installed;
and determining the installation angle and the mirror image installation reference value as installation parameters of the equipment to be installed.
9. An apparatus for determining equipment installation parameters, the apparatus comprising:
the device comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring a preset standard legend corresponding to equipment to be installed and an installation legend corresponding to the equipment to be installed;
the geometric transformation module is used for carrying out geometric transformation on the preset standard legend for preset times, and acquiring legend parameters of a transformation legend obtained after each time of geometric transformation;
a first determining module, configured to obtain legend parameters of the installation legend, and determine, according to the legend parameters of the installation legend and the legend parameters of the conversion legend, a target conversion legend having a maximum similarity to the installation legend from all the conversion legends;
and the second determining module is used for determining the installation parameters of the equipment to be installed according to the legend parameters of the target conversion legend and the legend parameters of the installation legend.
10. An electronic device, characterized in that the electronic device comprises:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement a method of determining device installation parameters as claimed in any one of claims 1-8.
11. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, is adapted to carry out the method of determining device installation parameters according to any one of claims 1 to 8.
CN202111171554.4A 2021-10-08 2021-10-08 Method and device for determining equipment installation parameters, electronic equipment and storage medium Pending CN113870118A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111171554.4A CN113870118A (en) 2021-10-08 2021-10-08 Method and device for determining equipment installation parameters, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111171554.4A CN113870118A (en) 2021-10-08 2021-10-08 Method and device for determining equipment installation parameters, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113870118A true CN113870118A (en) 2021-12-31

Family

ID=79001945

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111171554.4A Pending CN113870118A (en) 2021-10-08 2021-10-08 Method and device for determining equipment installation parameters, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113870118A (en)

Similar Documents

Publication Publication Date Title
CN112966725B (en) Method and device for matching template images and terminal equipment
JP2021119507A (en) Traffic lane determination method, traffic lane positioning accuracy evaluation method, traffic lane determination apparatus, traffic lane positioning accuracy evaluation apparatus, electronic device, computer readable storage medium, and program
CN113687629B (en) Circular arc straight line fitting method, system, equipment and storage medium for laser CAM processing
CN110990510A (en) Three-dimensional map generation method, terminal and server
CN112085033A (en) Template matching method and device, electronic equipment and storage medium
CN113808267A (en) GIS map-based three-dimensional community display method and system
CN112198878B (en) Instant map construction method and device, robot and storage medium
CN111707279A (en) Matching evaluation method, medium, terminal and device of laser point cloud and map
CN111707262A (en) Point cloud matching method, medium, terminal and device based on closest point vector projection
CN115862821A (en) Construction method of intelligent operating room based on digital twins and related device
CN114494046A (en) Touch trajectory processing method, device, terminal, storage medium and program product
CN113870118A (en) Method and device for determining equipment installation parameters, electronic equipment and storage medium
CN115984516B (en) Augmented reality method based on SLAM algorithm and related equipment
CN113009908A (en) Motion control method, device, equipment and storage medium for unmanned equipment
CN114594899A (en) Map display adjusting method and device
CN112861241B (en) Method, device and equipment for expanding conical tube and readable storage medium
CN113032071B (en) Page element positioning method, page testing method, device, equipment and medium
CN110009559B (en) Image processing method and device
CN113723405A (en) Method and device for determining area outline and electronic equipment
CN114170384A (en) Three-dimensional model processing method and device, storage medium and electronic equipment
CN112988932A (en) High-precision map labeling method, device, equipment, readable storage medium and product
CN113806236B (en) Method and system for one-machine multi-control of cloud real machine in mobile test field
CN109388464B (en) Element control method and device
CN111179174B (en) Image stretching method and device based on face recognition points
CN117609881B (en) Metal overlap detection method and system based on artificial intelligence

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