Configuration method and device, equipment and storage medium
By identifying the screw component identifiers in the three-dimensional image, determining its geometric parameters and finding the target component files, the problem of low efficiency of structural engineers when selecting and assembling screws is solved, and material design efficiency and cost improvements are achieved.
Patent Information
- Application Number
- CN202411141530.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-19
- Publication Date
- 2025-01-14
AI Technical Summary
In the prior art, structural engineers are inefficient when selecting and assembling screws, resulting in increased material design time and cost.
By obtaining the three-dimensional image file, identifying the component identification to be configured, determining its geometric parameters, and finding the corresponding target component file in the preset component database to configure it to improve selection and assembly efficiency.
It improves the efficiency of components selection and assembly when designing machinery, and saves material design time and cost.
Smart Images

Figure CN119312495A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of mechanical design technology, and in particular to a configuration method, device, equipment and storage medium. Background Art
[0002] The selection of shared materials is a very important issue in all design fields. Shared materials can not only save material design time, but also save material manufacturing, production and inventory costs. For example, screws are a basic material for product structure design. Any electronic product will use screws from the appearance assembly to the internal parts assembly. For structural engineers, selecting screws from the component database and assembling them into CAD drawings is a necessary design link, and how to improve the efficiency of structural engineers in selecting and assembling screws is a technical problem that needs to be solved urgently. Summary of the invention
[0003] The present disclosure provides a configuration method, an apparatus, a device and a storage medium to at least solve the above technical problems existing in the prior art.
[0004] According to a first aspect of the present disclosure, a configuration method is provided, the method comprising:
[0005] Obtaining a configuration file to be configured, wherein the configuration file to be configured is a three-dimensional image;
[0006] Identify the identifier of the component to be configured in the configuration file;
[0007] Determining geometric parameters of the component to be configured based on the identifier of the component to be configured;
[0008] Determine a corresponding target component file according to the geometric parameters, and configure the target component file in the to-be-configured file.
[0009] In one possible implementation manner, determining the corresponding target component file according to the geometric parameters includes:
[0010] Determining target component specification information based on the geometric parameters;
[0011] A three-dimensional image of a component whose component specification information is the target component specification information is searched in a preset component database as a target component file.
[0012] In one possible implementation, the identification of the component to be configured includes component location information;
[0013] The step of determining the geometric parameters of the component to be configured based on the identifier of the component to be configured includes:
[0014] According to the component position information, the edge contour and depth information of the component to be configured are determined as geometric parameters of the component to be configured.
[0015] In one possible implementation, the component to be configured includes a screw, and the identifier of the component to be configured includes screw axis position information and at least one screw edge point position information;
[0016] The step of determining the geometric parameters of the component to be configured based on the identifier of the component to be configured includes:
[0017] According to the screw axis position information and the screw edge point position information, the height information and the diameter information of the target screw are determined as the geometric parameters of the target screw.
[0018] In one possible implementation, the diameter information includes a screw diameter and a screw head diameter, and the height information includes a screw length and a screw head thickness.
[0019] In one possible implementation, configuring the target component file in the to-be-configured file includes:
[0020] Determining an alignment plane based on the screw axis position information and the target screw center position information;
[0021] The three-dimensional image of the target screw is configured in the to-be-configured file based on the alignment plane.
[0022] According to a second aspect of the present disclosure, a configuration device is provided, the device comprising:
[0023] A configuration file acquisition module, used to acquire a configuration file to be configured, wherein the configuration file to be configured is a three-dimensional image;
[0024] An identification determination module, used to identify the identification of the component to be configured in the configuration file;
[0025] A parameter determination module, used to determine the geometric parameters of the component to be configured based on the identifier of the component to be configured;
[0026] A configuration module is used to determine a corresponding target component file according to the geometric parameters, and configure the target component file in the configuration file to be configured.
[0027] In one possible implementation, the configuration module is specifically used to determine target component specification information based on the geometric parameters; and search a preset component database for a three-dimensional image of a component whose component specification information is the target component specification information as a target component file.
[0028] According to a third aspect of the present disclosure, there is provided an electronic device, including:
[0029] at least one processor; and
[0030] a memory communicatively connected to the at least one processor; wherein,
[0031] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method described in the present disclosure.
[0032] According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable a computer to execute the method described in the present disclosure.
[0033] The configuration method, device, equipment and storage medium disclosed in the present invention obtain a configuration file to be configured, which is a three-dimensional image, identifies the identifier of the component to be configured in the configuration file to be configured, determines the geometric parameters of the component to be configured based on the identifier of the component to be configured, determines the corresponding target component file according to the geometric parameters, and configures the target component file in the configuration file to be configured. That is, by setting the identifier of the component to be configured for the configuration file to be configured, the geometric parameters of the component to be configured can be determined using the identifier of the component to be configured, thereby determining the corresponding target component file according to the geometric parameters and configuring it in the configuration file to be configured, thereby improving the efficiency of component selection and assembly when designing machinery.
[0034] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] The above and other objects, features and advantages of the exemplary embodiments of the present disclosure will become readily understood by reading the detailed description below with reference to the accompanying drawings. In the accompanying drawings, several embodiments of the present disclosure are shown in an exemplary and non-limiting manner, in which:
[0036] In the drawings, the same or corresponding reference numerals represent the same or corresponding parts.
[0037] Figure 1 A schematic diagram of an implementation flow of a configuration method provided in an embodiment of the present disclosure is shown;
[0038] Figure 2 A schematic diagram of a configuration file to be configured according to the configuration method provided by an embodiment of the present disclosure is shown;
[0039] Figure 3 A schematic diagram of a screw section of the configuration method provided by an embodiment of the present disclosure is shown;
[0040] Figure 4A schematic diagram of a cross section of a screw hole provided in an embodiment of the present disclosure is shown;
[0041] Figure 5 Another cross-sectional schematic diagram of a screw hole provided in an embodiment of the present disclosure is shown;
[0042] Figure 6 A schematic diagram of component file configuration provided by an embodiment of the present disclosure is shown;
[0043] Figure 7 A schematic diagram of the structure of a configuration device provided by an embodiment of the present disclosure is shown;
[0044] Figure 8 A schematic diagram of the structure of an electronic device according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0045] In order to make the purpose, features, and advantages of the present disclosure more obvious and easy to understand, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present disclosure.
[0046] Sharing materials can not only save material design time, but also save material manufacturing, production and inventory costs. In order to improve the efficiency of structural engineers in selecting shared materials, the present disclosure provides a configuration method, device, equipment and storage medium. The configuration method provided by the present disclosure can be applied to electronic devices such as mobile phones, computers and tablets.
[0047] The technical solution of the embodiment of the present disclosure will be described below in conjunction with the drawings in the embodiment of the present disclosure.
[0048] Figure 1 A schematic diagram of an implementation flow of the configuration method provided in the embodiment of the present disclosure is shown. Figure 1 As shown, the method includes:
[0049] S101, obtaining a configuration file to be configured, where the configuration file to be configured is a three-dimensional image.
[0050] In the present disclosure, the configuration file to be configured may be a 3D design image of a product, and the product may include electronic products and mechanical products, etc.
[0051] S102: Identify the identifier of the component to be configured in the configuration file.
[0052] In the present disclosure, when drawing the configuration file, the engineer can set the component identification to be configured at the location where the corresponding component needs to be installed in the configuration file. The component identification to be configured may include component location information and / or the number of components to be configured. Figure 2 A schematic diagram of a configuration file to be configured according to the configuration method provided in an embodiment of the present disclosure is shown. Figure 2 As shown, the configuration file 210 is a partial 3D design drawing of a mechanical product. The positions of the screw holes of the locking screws 201 are marked in the configuration file 210. The number of the locking screws 201 and the positions of the screw holes can be used as identifications of the components to be configured to mark the identification file, and the file can be named a boss file. The boss file can be associated with the configuration file 210 and stored.
[0053] S103: Determine geometric parameters of the component to be configured based on the identifier of the component to be configured.
[0054] In a possible implementation, the identification of the component to be configured includes component position information, and determining the geometric parameters of the component to be configured based on the identification of the component to be configured may include: determining the edge contour and depth information of the component to be configured according to the component position information as the geometric parameters of the component to be configured.
[0055] In the present disclosure, the edge contour of the component can be determined by geometric calculation based on the component position information, and the depth of the component can be calculated based on the geometric shape of the component.
[0056] S104, determining a corresponding target component file according to the geometric parameters, and configuring the target component file in the to-be-configured file.
[0057] In a possible implementation manner, determining the corresponding target component file according to the geometric parameters may include steps A1-A2:
[0058] Step A1, determining target component specification information based on the geometric parameters.
[0059] In the present disclosure, the geometric parameters of the components to be configured may include information such as the position information, profile, depth, and quantity of the components. The specifications corresponding to the components can be determined based on the geometric parameters of the components. For example, if the component is a screw, after determining the depth and profile of the screw, the model of the screw can be determined based on the depth and profile information as the target component specification information.
[0060] Step A2, searching a preset component database for a three-dimensional image of a component whose component specification information is the target component specification information, as the target component file.
[0061] In the present disclosure, a preset component database can be constructed that can include various types of components that may be required by a product. The component data may include all geometric information, type information, and a 3D image corresponding to each component. After determining the target component specification information, the component corresponding to the target component specification information can be searched in the preset component database. After the corresponding component is found, the 3D image of the component can be used as a target component file for product design.
[0062] The method is adopted to obtain the configuration file to be configured, which is a three-dimensional image, identify the component identifier to be configured in the configuration file to be configured, determine the geometric parameters of the component to be configured based on the component identifier to be configured, determine the corresponding target component file according to the geometric parameters, and configure the target component file in the configuration file to be configured. That is, by setting the component identifier to be configured for the configuration file to be configured, the geometric parameters of the component to be configured can be determined by using the component identifier to be configured, so that the corresponding target component file can be determined according to the geometric parameters and configured in the configuration file to be configured, thereby improving the efficiency of component selection and assembly when designing machinery.
[0063] In a possible implementation, the component to be configured includes a screw, the identification of the component to be configured includes screw axis position information and at least one screw edge point position information, and determining the geometric parameters of the component to be configured based on the identification of the component to be configured may include step B1:
[0064] Step B1, determining the height information and diameter information of the target screw according to the screw axis position information and the screw edge point position information, as geometric parameters of the target screw.
[0065] In the present disclosure, the plane reference equation and the axis equation of the screw can be determined according to the screw axis position information. Figure 3 A schematic diagram of a screw cross section of the configuration method provided by an embodiment of the present disclosure is shown, Figure 3 As shown, based on the position of the screw axis, the screw reference plane can be determined, and the screw reference plane includes the screw reference plane xz plane and the screw hole reference plane xz plane. In the present disclosure, the screw plane reference equation can be expressed as: in is the plane normal vector, and are the three components of the plane normal vector on the x-axis, y-axis and z-axis, and the axis equation can be expressed as: Among them, (x 1 ,y 1 ,z 1 ) is the coordinate of the center of the screw bottom circle, x, y and z are the horizontal, vertical and vertical coordinates of the axis.
[0066] In the present disclosure, the diameter information includes the screw diameter and the screw head diameter, and the height information includes the screw length and the screw head thickness.
[0067] In the present disclosure, the screw profile can be determined based on the screw axis position information and the screw edge point position information. Specifically, Figure 4 A schematic diagram of a screw hole cross section provided by an embodiment of the present disclosure is shown in FIG. Figure 4 As shown, the coordinates of the starting point, i.e. the center of the bottom circle of the screw, are (x 1 ,y 1 , z 1 ), the center of the circle corresponding to the first edge of the screw is jump point 1, the center of the circle corresponding to the second edge of the screw is jump point 2, and the center of the circle corresponding to the third edge of the screw is jump point 3. The jump point is the new starting point after the starting point moves on the axis. Figure 4 As shown, the starting point (x 1 ,y 1 , z 1 ) corresponds to a radius of r1, and the starting point (x 1 ,y 1 , z 1 ) The length of the line between the edge point corresponding to the next starting point is L1, and the angle between L1 and the reference plane of the screw is θ 1 , starting point (x 1 ,y 1 , z 1 ) and jump point 1 can be represented by H1, the radius corresponding to jump point 1 is r2, the length of the line between jump point 1 and the edge point corresponding to the next jump point is L2, and the angle between L2 and the reference plane of the screw is θ 2 The height between jump point 1 and jump point 2 can be represented by H2, the radius corresponding to jump point 2 is represented by m, the length of the line between jump point 2 and the edge point corresponding to the next jump point is represented by Ln, and the angle between Ln and the reference plane of the screw is θ n , the height between jump point 2 and jump point 3 can be represented by H3, and jump point 3 is the next jump point corresponding to jump point 2. Specifically, the radius r and height H corresponding to different circle centers can be represented by the following formula:
[0068] r i =L i cosθ i ...(1)
[0069] H hole =L i+1 sinθ i+1 -L i sinθ i ...(2)
[0070] Among them, ri is the radius corresponding to the i-th starting point, H hole is the height between the i-th starting point and the next starting point, L i The length of the line between the i-th starting point and the edge point corresponding to the next starting point, θ i For L i Angle with the screw's reference plane, L i+ 1 is the length of the line between the edge point corresponding to the i+1th starting point and the next starting point, θ i+1 For L i+1 The angle between the screw and the reference plane. In the present disclosure, the screw edge can be scanned from the starting point from 0° until it scans to 90°. At the same sweep angle θ, when the vector extension touches the screw edge point, the vector length L can be obtained. Specifically, when scanning, the radius r can be used to determine whether to move the scanning center from the starting point to the jump point. When the radius r remains unchanged during the scanning process, it can be considered that the same screw hole is scanned. When the radius r changes continuously during the scanning process, it means that the opening of the upper part changes or there is no part or the top part is scanned. At this time, the scanning center can be moved to the jump point. The height of the movement is the depth of the screw hole. When the component cannot be scanned at 0°, it can be regarded as the back area is empty, and the height is Hs. Repeat the scanning steps to continuously obtain the outline of the component until the scanning ends. When scanning at 90°, the part touched by the extension vector is the top part. When scanning at an angle between 0° and 90°, if the extension vector does not touch any part boundary, it can be determined that the appearance of the component is a screw.
[0071] Figure 5 Another cross-sectional view of a screw hole provided in an embodiment of the present disclosure is shown in FIG. Figure 5 As shown in the figure, after scanning the radius and depth of the screw hole, the screw features can be further calculated based on the radius and depth:
[0072] Screw diameter for: Among them, * represents multiplication, r1 is the starting point (x 1 ,y 1 ,z 1 ) corresponds to the radius, Indicates the screw diameter tolerance. The screw diameter tolerance refers to the range of allowable screw size variation. The screw diameter tolerance ensures that the screw can be smoothly fitted into the screw hole during production or assembly.
[0073] Screw head diameter for: Among them, * represents multiplication, rn is the radius corresponding to jump point 2, Indicates the screw head diameter tolerance value. The screw head diameter tolerance value refers to the range of allowable screw head size variation.
[0074] The screw specifications can be Mscrew specifications;
[0075] The screw length Hscrew may be: Hscrew = (H1 + ... + Hn) - ΔHscrew or Hscrew = (H1 + ... + Hn-1) - Δhscrew, wherein Δhscrew represents the screw length tolerance, and the screw length tolerance refers to the range of allowable screw length variation;
[0076] The screw head thickness Hdscrew can be: Hdscrew = (Hn + Hs) - ΔHdscrew or Hdscrew = Hn - Δhdscrew, wherein ΔHdscrew represents the tolerance of the screw head thickness, and the tolerance of the screw head thickness refers to the range of allowable variation of the screw head thickness.
[0077] like Figure 5 As shown, the coordinates of the starting point, i.e. the center of the bottom circle of the screw, are (x 1 ,y 1 ,z 1 ), starting point (x 1 ,y 1 ,z 1 ) and the height between the next jump point can be expressed as H 1 Indicates that the starting point (x 1 ,y 1 ,z 1 ) and the height between the first jump point and the next jump point can be expressed as H n-1 Indicates that the starting point (x 1 ,y 1 ,z 1 ) The radius of the first jump point after n-1 , starting point (x 1 ,y 1 ,z 1 ) and the height between the next jump point can be expressed as H n Indicates that the starting point (x 1 ,y 1 ,z 1 ) The radius of the second jump point after n , when no component is found at 0°, the area behind is considered empty, with a height of Hs. Specifically, the screw specifications can be calculated using the following equation:
[0078] 1) Mscrew is Sure:
[0079] Screw hole parameter selection: 1.0~1.4→M1.5, 1.5~1.9→M2.0, 2.0~2.4→M2.5.
[0080] 2) Determine the screw head diameter
[0081] When rn-rn-1≤Δr, the following shall apply: M1.6 or less shall be at least M plus (0.6x2), M2 or more shall be at least M plus (1x2), and when the part has a TP / Click_pad file name, it shall be at least 6.5. When rn-rn-1>Δr, follow
[0082] 3) Determine the screw length Hscrew: when rn-rn-1≤Δr, follow (H1+…+Hn)-Δhscrew; when rn-rn-1>Δr, follow (H1+…+Hn-1)-Δhscrew.
[0083] 4) Determine the screw head thickness Hdscrew: when rn-rn-1≤Δr, follow (Hn+Hs)-Δhdscrew; when rn-rn-1>Δr, follow Hn-Δhdscrew.
[0084] In a possible implementation manner, configuring the target component file in the to-be-configured file may include steps C1-C2:
[0085] Step C1, determining an alignment plane based on the screw axis position information and the target screw center position information.
[0086] Step C2: configuring the three-dimensional image of the target screw in the to-be-configured file based on the alignment plane.
[0087] Figure 6 A schematic diagram of component file configuration provided by an embodiment of the present disclosure is shown. Figure 6 As shown, the coordinates of the starting point, i.e. the center of the bottom circle of the screw, are (x 1 ,y 1 ,z 1 ), starting point (x 1 ,y 1 ,z 1 ) and the height between the screw's next jump point can be expressed as H 1 Indicates that the starting point (x 1 ,y 1 ,z 1 ) and the height between the first jump point and the jump point n-1 can be expressed as H n-1 Indicates that the starting point (x 1 ,y 1 ,z 1) The radius of the first jump point after n-1 , the height between jump point n-1 and jump point n can be expressed as H n Indicates that the radius corresponding to the jump point n is r n , when no component is found at 0° scanning, the area behind can be considered empty, with a height of Hs. Figure 6 As shown, the Boss axis is the screw hole axis. The screw axis can be aligned with the screw hole axis. The top plane where the screw contacts the screw hole is the locking plane. The bottom plane and the top plane where the screw contacts the screw hole can also be determined as the alignment plane. The screw can be embedded in the screw hole in such a way that the alignment plane and the axis are aligned, and the configuration of the three-dimensional image and the configuration file to be configured can be completed.
[0088] By adopting this method, the size and assembly position of components such as screws can be automatically calculated in the 3D drawing, and the corresponding component drawings can be automatically selected from the component database and assembled to the corresponding position, which greatly improves the utilization efficiency of shared components and the efficiency of product design.
[0089] Based on the same inventive concept, according to the configuration method provided in the above embodiment of the present disclosure, correspondingly, another embodiment of the present disclosure further provides a configuration device, whose structural schematic diagram is shown in FIG. Figure 7 As shown, specifically including:
[0090] A configuration file acquisition module 701 is used to acquire a configuration file to be configured, where the configuration file to be configured is a three-dimensional image;
[0091] An identification determination module 702 is used to identify the identification of the component to be configured in the configuration file;
[0092] A parameter determination module 703, used to determine the geometric parameters of the component to be configured based on the identifier of the component to be configured;
[0093] The configuration module 704 is used to determine the corresponding target component file according to the geometric parameters, and configure the target component file in the configuration file.
[0094] The device is used to obtain a configuration file, which is a three-dimensional image, identify the component identifier to be configured in the configuration file, determine the geometric parameters of the component to be configured based on the component identifier to be configured, determine the corresponding target component file according to the geometric parameters, and configure the target component file in the configuration file. That is, by setting the component identifier to be configured for the configuration file, the geometric parameters of the component to be configured can be determined using the component identifier to be configured, so that the corresponding target component file can be determined according to the geometric parameters and configured in the configuration file, thereby improving the efficiency of component selection and assembly when designing machinery.
[0095] In one possible implementation, the configuration module 704 is specifically used to determine target component specification information based on the geometric parameters; and search a preset component database for a three-dimensional image of a component whose component specification information is the target component specification information as a target component file.
[0096] In one possible implementation, the identification of the component to be configured includes component position information; the parameter determination module 703 is specifically used to determine the edge contour and depth information of the component to be configured according to the component position information as the geometric parameters of the component to be configured.
[0097] In one possible implementation, the component to be configured includes a screw, and the identifier of the component to be configured includes screw axis position information and at least one screw edge point position information; the parameter determination module 703 is specifically used to determine the height information and diameter information of the target screw based on the screw axis position information and the screw edge point position information as the geometric parameters of the target screw.
[0098] In one possible implementation, the diameter information includes a screw diameter and a screw head diameter, and the height information includes a screw length and a screw head thickness.
[0099] In one possible implementation, the configuration module 704 is specifically configured to determine an alignment plane based on the screw axis position information and the target screw center position information; and configure the three-dimensional image of the target screw in the configuration file based on the alignment plane.
[0100] By using this device, the size and assembly position of components such as screws can be automatically calculated in 3D drawings, and the corresponding component drawings can be automatically selected from the component database and assembled to the corresponding positions, which greatly improves the utilization efficiency of shared components and the efficiency of product design.
[0101] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device and a readable storage medium.
[0102] Figure 8 A schematic block diagram of an example electronic device 800 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0103] like Figure 8 As shown, the device 800 includes a computing unit 801, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 802 or a computer program loaded from a storage unit 808 into a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the device 800 can also be stored. The computing unit 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.
[0104] A number of components in the device 800 are connected to the I / O interface 805, including: an input unit 806, such as a keyboard, a mouse, etc.; an output unit 807, such as various types of displays, speakers, etc.; a storage unit 808, such as a disk, an optical disk, etc.; and a communication unit 809, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 809 allows the device 800 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0105] The computing unit 801 may be a variety of general and / or special processing development components with processing and computing capabilities. Some examples of the computing unit 801 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 801 performs the various methods and processes described above, such as the configuration method. For example, in some embodiments, the configuration method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 808. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 800 via ROM 802 and / or communication unit 809. When the computer program is loaded into RAM 803 and executed by the computing unit 801, one or more steps of the configuration method described above may be performed. Alternatively, in other embodiments, the computing unit 801 may be configured to perform the configuration method in any other appropriate manner (e.g., by means of firmware).
[0106] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0107] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0108] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0109] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0110] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0111] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.
[0112] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0113] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of the present disclosure, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0114] The above is only a specific embodiment of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any person skilled in the art who is familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present disclosure, which should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.
Claims
1. A configuration method, characterized in that: The method comprises: Obtaining a configuration file to be configured, wherein the configuration file to be configured is a three-dimensional image; Identify the identifier of the component to be configured in the configuration file; Determining geometric parameters of the component to be configured based on the identifier of the component to be configured; Determine a corresponding target component file according to the geometric parameters, and configure the target component file in the to-be-configured file.
2. The method according to claim 1, characterized in that The step of determining the corresponding target component file according to the geometric parameters comprises: Determining target component specification information based on the geometric parameters; A three-dimensional image of a component whose component specification information is the target component specification information is searched in a preset component database as a target component file.
3. The method according to claim 1, characterized in that The identification of the component to be configured includes component location information; The step of determining the geometric parameters of the component to be configured based on the identifier of the component to be configured includes: According to the component position information, the edge contour and depth information of the component to be configured are determined as geometric parameters of the component to be configured.
4. The method according to claim 1, characterized in that The component to be configured includes a screw, and the identifier of the component to be configured includes the position information of the screw axis and the position information of at least one screw edge point; The step of determining the geometric parameters of the component to be configured based on the identifier of the component to be configured includes: According to the screw axis position information and the screw edge point position information, the height information and the diameter information of the target screw are determined as the geometric parameters of the target screw.
5. The method according to claim 4, characterized in that The diameter information includes the screw diameter and the screw head diameter, and the height information includes the screw length and the screw head thickness.
6. The method according to claim 4 or 5, characterized in that: The step of configuring the target component file in the to-be-configured file includes: Determining an alignment plane based on the screw axis position information and the target screw center position information; The three-dimensional image of the target screw is configured in the to-be-configured file based on the alignment plane.
7. A configuration device, characterized in that: The device comprises: A configuration file acquisition module, used to acquire a configuration file to be configured, wherein the configuration file to be configured is a three-dimensional image; An identification determination module, used to identify the identification of the component to be configured in the configuration file; A parameter determination module, used to determine the geometric parameters of the component to be configured based on the identifier of the component to be configured; A configuration module is used to determine a corresponding target component file according to the geometric parameters, and configure the target component file in the configuration file to be configured.
8. The device according to claim 7, characterized in that The configuration module is specifically used to determine target component specification information based on the geometric parameters; and search the preset component database for a three-dimensional image of a component whose component specification information is the target component specification information as the target component file.
9. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 6.
10. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to make a computer execute the method according to any one of claims 1-6.