Production information generation method, electronic equipment and storage medium
By comparing the wireframe model of the product being produced with the wireframe model of the historical product, the target product is determined and production information is generated, and the high cost and inefficiency problems caused by manual evaluation dependence in the prior art are solved, and more efficient and accurate acquisition of production information is achieved.
Patent Information
- Application Number
- CN202411595682.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-08
- Publication Date
- 2025-03-28
AI Technical Summary
The prior art relies on experienced staff to evaluate when producing new products, resulting in high labor costs and long time, and when product structure is complex, accuracy and efficiency are difficult to guarantee.
By comparing the wireframe model of the product to be produced with the wireframe model of the historical product, the target product is determined, and the production information of the product to be produced is generated based on the historical production information and similarity of the target product.
It improves the efficiency and accuracy of obtaining production information, reduces labor costs, and ensures the accuracy and efficiency of production information when the product structure is complex.
Smart Images

Figure CN119722573A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of production and manufacturing technology, and in particular to a method for generating production information, an electronic device and a storage medium. Background Art
[0002] The production management system will retain the production data of various products during the production process. This type of production data is often reusable core data. When it is necessary to produce new products, experienced staff are often relied on to evaluate the new products, so as to obtain the production information required for the production of new products based on the evaluation results, and call the corresponding core data from the production management system based on the production information. This production method has high labor costs and takes a long time. In addition, when the product structure is more complex, accuracy and efficiency are difficult to guarantee. Summary of the invention
[0003] The embodiments of the present application disclose a method for generating production information, an electronic device, and a storage medium, which improve the efficiency and accuracy of analyzing product images of products to be produced, further improve the efficiency of obtaining production information, and reduce labor costs.
[0004] The present application provides a method for generating production information, which is applied to electronic devices, and the method includes: calling an order to be produced, and obtaining a first product image of the product to be produced from the order; performing format conversion on the first product image to obtain a second product image with a preset format; adjusting the posture of the product to be produced in the second product image to a first posture based on the angle difference between the size direction of the product to be produced in the second product image and the axial direction of the reference coordinate system, wherein the size direction of the product to be produced in the first posture is aligned with the axial direction; adjusting the display size of the product to be produced in the first posture to the window size of the display window, and converting the solid model of the product to be produced into a first wireframe model with a wireframe structure; based on Rotation direction and multiple rotation angles, rotate the first wireframe model with the central axis of the first wireframe model as the center, and record the second posture of the first wireframe model at each rotation angle and the first image of the first wireframe model at the second posture; compare the first wireframe model of each first image with the wireframe model of the second wireframe model of the second image in a preset database to obtain a comparison result, the second image is an image recorded at the multiple rotation angles of the second wireframe model corresponding to the historical product that has been completed, and the comparison result includes similarity; determine the target product from the historical products based on the similarity; generate the production information of the product to be produced based on the historical production information corresponding to the target product and the similarity.
[0005] In some embodiments of the present application, the comparing the first wireframe model of each first image with the second wireframe model of the second image in a preset database includes: encoding the first wireframe model of each first image to obtain first encoding information of the wireframe model corresponding to the first wireframe model; comparing the first encoding information with second encoding information corresponding to the preset database, wherein the second encoding information is the encoding result of the wireframe model corresponding to the second wireframe model of the second image.
[0006] In some embodiments of the present application, the comparing the first wireframe model of each of the first images with the second wireframe model of the second image in a preset database includes: binarizing each first image to obtain a first pixel of the wireframe model corresponding to the first wireframe model; comparing the first pixel with the second pixel corresponding to the preset database, wherein the second pixel is the pixel distribution of the wireframe model corresponding to the second wireframe model of the second image.
[0007] In some embodiments of the present application, the method also includes constructing the preset database, including: in response to a trigger event, calling multiple historical orders, and obtaining a first historical product image of multiple historical products from the multiple historical orders, the trigger event including a timed task and a task generated by a user's selection operation event; performing format conversion on the first historical product image to obtain a second historical product image with the preset format; adjusting the posture of the historical product in the second historical product image to the first posture based on the angle difference between the size direction of the historical product in the historical product image and the axial direction of the reference coordinate system; adjusting the display size of the historical product in the first posture to the window size, and converting the physical model of the historical product into a second wireframe model with a wireframe structure; rotating the second wireframe model with the central axis of the second wireframe model as the center based on the rotation direction and the multiple rotation angles, and recording the second posture of the second wireframe model at each rotation angle, and the second image of the second wireframe model at the second posture; constructing the preset database based on the second image and the module number corresponding to the second wireframe model in the second image.
[0008] In some embodiments of the present application, constructing the preset database based on the second image and the module number corresponding to the second wireframe model in the second image includes: encoding the wireframe model corresponding to the second wireframe model of the second image to obtain second encoding information; constructing the preset database based on the second encoding information and the module number; or, binarizing the second image to obtain the second pixel of the wireframe model corresponding to the second wireframe model of the second image; and constructing the preset database based on the second pixel and the module number.
[0009] In some embodiments of the present application, the production information of the product to be produced is generated based on the historical production information corresponding to the target product and the similarity, including: if the similarity of the target product is greater than a preset similarity, determining the production information based on the historical production information; if the similarity of the target product is less than or equal to the preset similarity, determining the production information based on the historical production information and difference information, wherein the difference information is generated based on the structural difference between the product to be produced and the target product.
[0010] In some embodiments of the present application, determining the production information based on the historical production information includes: searching for the historical production information based on the module number carried by the target product; obtaining historical process, historical processing time, historical layout and equipment information of historical equipment required to produce the target product from the historical production information; determining the target equipment that is in an idle state based on the equipment information; determining the production information based on the number of products to be produced, the target equipment, the historical process, the historical processing time and the historical layout.
[0011] In some embodiments of the present application, determining the target product from the historical products based on the similarity includes: if there is any historical product whose similarity with the product to be produced is greater than a preset similarity, taking any historical product as the target product; or, if there are multiple candidate products whose similarity with the product to be produced is greater than the preset similarity, determining the target product from the multiple candidate products according to the priority sorting results of the multiple candidate products.
[0012] In some embodiments of the present application, determining the target product from the multiple candidate products based on the priority sorting results of the multiple candidate products includes: prioritizing the multiple candidate products based on plant information, historical processes, historical output of each candidate product, and production time of each candidate product to obtain the priority sorting results; and selecting the candidate product with the highest priority from the priority sorting results as the target product.
[0013] In some embodiments of the present application, determining the target product from the historical products based on the similarity in the comparison results includes: if there is no historical product whose similarity with the product to be produced is greater than a preset similarity, taking the historical product with the greatest similarity as the target product.
[0014] The present application also provides an electronic device, which includes a processor and a memory, and the processor is used to implement the method for generating production information when executing a computer program stored in the memory.
[0015] The present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the method for generating production information is implemented.
[0016] In the method for generating production information provided in the present application, in order to save the time cost and human resources of manual comparison, the present embodiment determines the production information of the product to be produced by comparing the first wireframe model corresponding to the product to be produced with the second wireframe model corresponding to the historical product. Specifically, the order to be produced is retrieved, and the first product image of the product to be produced is obtained from the order. In order to compare in the same format, the first product image is formatted to obtain a second product image with a preset format. In order to increase the accuracy of subsequent comparison, the posture, size and wireframe structure of the second product can be adjusted, specifically including: based on the angle difference between the dimension direction of the product to be produced in the second product image and the axial direction of the reference coordinate system, the posture of the product to be produced in the second product image is adjusted to the first posture, wherein the dimension direction of the product to be produced in the first posture is aligned with the axial direction; the display size of the product to be produced in the first posture is adjusted to the window size of the display window, and the physical model of the product to be produced is converted into a first wireframe model with a wireframe structure; based on the rotation direction and multiple rotation angles, the first wireframe model is rotated around the central axis of the first wireframe model.
[0017] In the process of rotating the first wireframe model with the central axis of the first wireframe model as the center, the second posture of the first wireframe model at each rotation angle and the first image of the first wireframe model at the second posture are recorded. The wireframe model of each first image is compared with the wireframe model of the second wireframe model of the second image in the preset database to obtain a comparison result. The structural difference between the product to be produced and the historical product is obtained by comparing the wireframe model, thereby improving the efficiency of obtaining historical products with similar structures to the product to be produced. The target product is determined from the historical products based on the similarity. Based on the historical production information and similarity corresponding to the target product, the production information of the product to be produced is generated. The embodiment of the present application can avoid relying on experienced staff to obtain the production information of the product to be produced, thereby reducing labor costs. In addition, when the structure of the product to be produced is relatively complex, the embodiment of the present application can also ensure the efficiency and accuracy of obtaining the production information of the product to be produced during product production. The efficiency of producing the product to be produced is accelerated to a certain extent. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
[0019] Figure 2 It is a flowchart of the method for generating production information provided in an embodiment of the present application.
[0020] Figure 3 It is a flowchart for constructing a preset database provided in an embodiment of the present application.
[0021] Figure 4 This is a schematic diagram of generating the second folder provided in an embodiment of the present application.
[0022] Figure 5 It is a schematic diagram of a method for generating production information provided in another embodiment of the present application. DETAILED DESCRIPTION
[0023] To facilitate understanding, some illustrations of concepts related to the embodiments of the present application are given by way of example for reference.
[0024] It should be noted that in this application, "at least one" means one or more, and "more than one" means two or more than two. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The terms "first", "second", "third", "fourth", etc. (if any) in the specification, claims and drawings of this application are used to distinguish similar objects, rather than to describe a specific order or sequence.
[0025] The production management system will retain the production data of various products during the production process. This type of production data is often reusable core data. When it is necessary to produce new products, experienced staff are often relied on to evaluate the new products, so as to obtain the production information required for the production of new products based on the evaluation results, and call the corresponding core data in the production management system based on the production information. This production method has high labor costs and takes a long time. In addition, when the structure of the product is more complex, accuracy and efficiency are difficult to guarantee.
[0026] In order to solve the technical problem of low efficiency and accuracy in obtaining production information in related technologies, the embodiments of the present application propose a method for generating production information, an electronic device, and a storage medium, which can reduce the time cost and labor cost of obtaining production information by comparing a first wireframe model of a product to be produced with a second wireframe model of a historical product under multiple viewing angles and postures, and can improve the accuracy and efficiency of obtaining production information. The structure of the electronic device is first described below.
[0027] Figure 11 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device 10 may be a mobile phone, a tablet computer, a smart wearable device, an augmented reality (AR) / virtual reality (VR) device, a laptop computer, a netbook, etc. The embodiment of the present application does not impose any restrictions on the specific type of the electronic device.
[0028] like Figure 1 As shown, the electronic device 10 may include a display screen 100, a communication module 101, a memory 102, a processor 103, an input / output (I / O) interface 104, and a bus 105. The processor 103 is coupled to the display screen 100, the communication interface 101, the memory 102, and the I / O interface 104 through the bus 105.
[0029] The display screen 100 can be a touch screen or a non-touch screen. The display screen 100 is used to display the comparison result between the first image and the second image, and can also be used to display the production information of the product to be produced.
[0030] The communication module 101 may include a wired communication module and / or a wireless communication module.
[0031] The memory 102 may include one or more random access memories (RAM) and one or more non-volatile memories (NVM). The memory 102 is used to store one or more computer programs. The one or more computer programs are configured to be executed by the processor 103, and can implement the method for generating production information executed on the electronic device 10.
[0032] In other embodiments, the electronic device 10 further includes an external memory interface connected to an external memory to expand the storage capacity of the electronic device 10 .
[0033] The processor 103 may include one or more processing units to provide computing and control capabilities. For example, the processor 103 is used to execute a computer program stored in the memory 102 to implement the above-mentioned method for generating production information.
[0034] The I / O interface 104 is used to provide a channel for user input or output. For example, the I / O interface 104 can be used to connect various input and output devices, such as a mouse, keyboard, touch device, display screen 100, etc., so that the user can enter information or visualize information.
[0035] The bus 105 is at least used to provide a channel for mutual communication among the communication module 101 , the memory 102 , the processor 103 , and the I / O interface 104 in the electronic device 10 .
[0036] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 10. In other embodiments of the present application, the electronic device 10 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0037] Figure 2 is a flow chart of a method for generating production information provided in an embodiment of the present application, such as Figure 2 As shown, the method for generating production information provided in the embodiment of the present application is applied to electronic devices (such as Figure 1 According to different requirements, the order of the steps in the flowchart can be changed, and some steps can be omitted.
[0038] Step S201, retrieve the order to be produced, and obtain the first product image of the product to be produced from the order.
[0039] In some embodiments of the present application, the product to be produced may be an electronic product produced by the manufacturing industry. The present application does not limit the type of the product to be produced, and it may be any electronic product with a hardware structure, such as a mobile phone, parts and components required to produce a mobile phone, etc.
[0040] The electronic device includes a multifunctional integrated management system, which has functions such as querying data (including orders, production information), format conversion, size adjustment, and linear model comparison. When the electronic device detects that a user adds an order to be produced in the multifunctional integrated management system by refreshing the directory of the multifunctional integrated management system, a specified path is configured for the order. When the electronic device needs to retrieve the order to be produced, the first product image corresponding to the order can be obtained through the specified path of the order to be produced. In this embodiment, the first product image can be a three-dimensional model image.
[0041] In addition, the electronic device can also retrieve the order to be produced in response to the user's selection operation on the order to be produced, obtain the first product image through the specified path, and store the first product image in a separate folder, which is recorded as the first folder.
[0042] Step S202: convert the format of the first product image to obtain a second product image with a preset format.
[0043] In some embodiments of the present application, a unified format is required for subsequent comparison of products to be produced. The electronic device starts engineering software, for example, 3D modeling software (Pro E), and links to the first folder through the engineering software Pro E to obtain the first product image. After obtaining the first product image, the engineering software starts the corresponding format conversion program to convert the format of the first product image into a preset format. The preset format can be a 3D model file (Initial Graphics Exchange Specification, IGS) format, or it can be a STEP (Standard for the Exchange of Product Model Data) format or other formats applied to 3D models. This application does not limit the type of preset format.
[0044] After the format of the first product drawing is converted into the preset format, the engineering software Pro E is closed, and the second product drawing is stored in the first folder.
[0045] Step S203: adjusting the posture of the product to be produced in the second product image to the first posture based on the angle difference between the dimension direction of the product to be produced in the second product image and the axial direction of the reference coordinate system.
[0046] In some embodiments of the present application, the reference coordinate system may be a world coordinate system or a three-dimensional coordinate system set in an electronic device. The axial direction of the reference coordinate system includes the X-axis direction, the Y-axis direction, and the Z-axis direction. The dimensional direction includes the length direction, the width direction, and the height direction of the product to be produced.
[0047] In order to adjust the posture, the electronic device starts engineering software, such as materials calculation software (MaterialsStudio, MS), links to the first folder through the engineering software MS, and obtains the second product image in the first folder. Since the reference coordinate system is fixed, the dimensional direction will vary depending on the placement of the product to be produced. Start the corresponding program, obtain the dimensional direction of the product to be produced, and calculate the angle difference between the length direction and the X-axis direction, the angle difference between the width direction and the Y-axis direction, and the angle difference between the height direction and the Z-axis direction. Based on the angle difference, align the length direction with the X-axis direction, the width direction with the Y-axis direction, and the height direction with the Z-axis, so that the posture of the product to be produced in the second product image can be adjusted to the first posture. The dimensional direction of the product to be produced in the first posture is aligned with the axial direction, including: the length direction is aligned with the X-axis direction, the width direction is aligned with the Y-axis direction, and the height direction is aligned with the Z-axis.
[0048] Adjusting the posture of the product to be produced to the first posture can serve as a base point for subsequent posture conversion on the one hand, and on the other hand, the posture at the best angle can be obtained on this basis, which can improve the accuracy and efficiency of subsequent comparison to a certain extent.
[0049] Step S204: adjusting the display size of the product to be produced in the first posture to the window size of the display window, and converting the physical model of the product to be produced into a first wireframe model with a wireframe structure.
[0050] In some embodiments of the present application, since the size displayed by the second product image is not uniform, the effect of subsequent comparison is poor when the size is not uniform. Therefore, a display window can be set in an electronic device. Within the window size range of the display window, the size of the product to be produced is adaptively adjusted so that the product to be produced can be displayed in a maximized manner within the window size range. The display size of the product to be produced can be adaptively adjusted to the window size of the display window by zooming in, zooming out, etc. For example, the boundary of the product to be produced is obtained. If the boundary exceeds the window size range, the product to be produced is reduced so that the product to be produced can be fully and maximized. Displayed in the display window. If the boundary is much smaller than the window size range, the product to be produced is enlarged so that the distance between the boundary of the product to be produced and the boundary of the display window is less than the preset distance, ensuring that the product to be produced is maximized and displayed in the display window.
[0051] In some embodiments of the present application, when the display size of the product to be produced is adjusted to the window size, all the faces in the product to be produced are removed, and the wireframe structure corresponding to the constructed face is retained. The wireframe structure refers to a frame or skeleton composed of lines (edges) in a three-dimensional model. The wireframe structure is used to display the structural layout of the product to be produced, and the color of the lines of all non-black wireframe structures is changed to black. Based on the black wireframe structure, a first wireframe model is obtained.
[0052] Step S205 , based on the rotation direction and multiple rotation angles, rotate the first wireframe model around the central axis of the first wireframe model, and record the second posture of the first wireframe model at each rotation angle and the first image of the first wireframe model in the second posture.
[0053] In some embodiments of the present application, the rotation direction can be clockwise or counterclockwise. Multiple rotation angles include 45°, 90°, 180°, etc. The central axis usually refers to a virtual straight line that vertically divides the object into two halves, so that the sizes of the two halves of the object are basically symmetrical. In an embodiment of the application, a virtual straight line perpendicular to the length direction is set at the center point of the length of the first wireframe model as the central axis of the first wireframe model.
[0054] In order to record the second posture of the first wireframe model at multiple rotation angles and the first image of the first wireframe model at the second posture, the first wireframe model is rotated clockwise around the central axis by a rotation angle starting from the first posture, and the second posture of the first wireframe model at the rotation angle is recorded. In response to the rotation operation, the electronic device starts a screenshot tool to capture the display window, obtains a screenshot corresponding to the display window, and records the screenshot as the first image of the first wireframe model at the second posture. Then, the clockwise rotation is continued according to the next rotation angle to obtain the second posture and the first image of the first wireframe model at the next rotation angle.
[0055] In one example, the first wireframe model is rotated 45° clockwise around the central axis from the first posture, and after the rotation is 45°, the second posture of the first wireframe model at 45° is recorded. In response to the rotation operation generated by the rotation of 45°, the electronic device starts the screenshot tool to capture the display window, obtains a screenshot corresponding to the display window, and records the screenshot as the first image of the first wireframe model in the second posture, that is, the first image of the first wireframe model after the rotation of 45°. If the next rotation angle is 90°, it can continue to rotate 45° clockwise on the basis of the 45° rotation in the clockwise direction to obtain the first wireframe model at 90° based on the first posture. In response to the rotation operation generated by the continued rotation of 45°, the electronic device starts the screenshot tool to capture the display window, obtains a screenshot corresponding to the display window, and records the screenshot as the first image of the first wireframe model in the second posture, that is, the first image of the first wireframe model after the rotation of 90°.
[0056] In addition, after rotating in the clockwise direction by a rotation angle, the first wireframe model may be rotated counterclockwise by the rotation angle again, so that the first wireframe model is rotated based on the first posture each time.
[0057] In one example, the first wireframe model is rotated 45° clockwise around the central axis from the first posture, and after rotating 45°, the second posture of the first wireframe model at 45° is recorded. In response to the rotation operation generated by rotating 45°, the electronic device starts the screenshot tool to capture the display window, obtains a screenshot corresponding to the display window, and records the screenshot as the first image of the first wireframe model in the second posture, that is, the first image of the first wireframe model after rotating 45°. If the next rotation angle is 90°, in order to improve the accuracy of the rotation, it can be rotated 45° counterclockwise on the basis of the 45° clockwise rotation, so that the posture of the first wireframe model is the first posture. Among them, if the electronic device pre-sets the rotation direction to be clockwise, the screenshot tool will not be started when rotating counterclockwise. Subsequently, based on the first posture, it starts to rotate 90° clockwise around the central axis. After rotating 90°, the second posture of the first wireframe model at 90° is recorded. In response to the rotation operation caused by rotating 90°, the electronic device starts a screenshot tool to capture the display window, obtains a screenshot corresponding to the display window, and records the screenshot as the first image of the first wireframe model in the second posture, that is, the first image of the first wireframe model after rotating 90°.
[0058] Step S206 , comparing the first wireframe model of each first image with the wireframe model of the second wireframe model of the second image in a preset database to obtain a comparison result.
[0059] In some embodiments of the present application, based on obtaining the first image of the first wireframe model at multiple rotation angles, the first wireframe model of each first image can be compared with the wireframe model of the second wireframe model of the second image in a preset database. The preset database can be an integrated database pre-constructed based on historical products that have completed production, wherein the integrated database has the advantages of fast screening and comparison. The preset database can also be a database constructed by selecting some historical products according to user needs, or a database constructed by selecting a specified date according to user needs. The present application does not limit the method for constructing the preset database. In this embodiment, the preset database is constructed according to Figure 3 Constructed as shown.
[0060] According to the construction method of the integrated database, the comparison method of the first wireframe model and the second wireframe model of the second image can be determined, wherein the second image is an image of the second wireframe model corresponding to the historical product at multiple rotation angles. Specifically, if the integrated database is a database constructed by encoding the second wireframe model of the second image, the first wireframe model of each first image can be encoded to obtain the first encoding information of the wireframe model corresponding to the first wireframe model, and the first encoding information includes the structural information of the first wireframe model. The encoding method may include but is not limited to encoding based on geometric features, encoding based on topological structures, and encoding based on hash functions. The second encoding information of the second wireframe model of the second image is obtained from the integrated database, and the second encoding information includes the structural information of the second wireframe model. The first encoding information and the second encoding information are compared to obtain a comparison result including similarity.
[0061] If the integrated database is a database constructed by binarizing the second wireframe model of the second image, each first image can be binarized to obtain the first pixel of the wireframe model corresponding to the first wireframe model, and the first pixel is used to describe the pixel distribution of the wireframe model corresponding to the first wireframe model. The second pixel of the second wireframe model of the second image is obtained from the integrated database, and the second pixel is used to describe the pixel distribution of the wireframe model corresponding to the second wireframe model. The first pixel and the second pixel can be compared pixel by pixel to obtain a comparison result including similarity. Among them, pixel by pixel comparison refers to comparing the position of each pixel point corresponding to the first wireframe model on the first image with the pixel of the second wireframe model on the second image having the same position.
[0062] In addition, in order to improve the efficiency of the comparison, a rotation angle can be selected from multiple rotation angles for comparison. For example, since the structure of the first wireframe model is a wireframe structure, the first wireframe model displayed at 45° can reduce visual occlusion and better display the overall shape and the relative positions between the various parts. Therefore, the wireframe model of the first image at a rotation angle of 45° and the wireframe model of the second image in the preset database can be used to improve the efficiency and accuracy of the comparison. For ease of distinction, the first image at a rotation angle of 45° is recorded as the first target image. Among them, the comparison method of the first target image with the preset database is the same as the comparison method of each first image with the preset database.
[0063] Specifically, if the integrated database is a database constructed by encoding the second wireframe model of the second image, the first wireframe model of the first target image can be encoded to obtain the first encoding information. The first encoding information and the second encoding information are compared to obtain a comparison result including similarity. If the integrated database is a database constructed by binarizing the second wireframe model of the second image, the first target image can be binarized to obtain the first pixel. The second pixel of the second wireframe model of the second image is obtained from the integrated database. The first pixel and the second pixel are compared pixel by pixel to obtain a comparison result including similarity. The comparison result may include the similarity and module number displayed in a file in TXT text format, and the module number is the serial number of the corresponding record of the historical product, wherein the module numbers corresponding to the historical products produced by different users in different factories may be different.
[0064] Step S207, determining the target product from the historical products based on the similarity in the comparison result.
[0065] In some embodiments of the present application, each second image carries a corresponding module number, and the comparison result is parsed, and after converting the TXT text format file into an EXCEL format file, the similarity and the corresponding module number can be obtained. Among them, the similarity of the first image and the second image completely matching is 100%, and if the first image and the second image have 90% of the wireframe model consistent, the similarity is 90%.
[0066] If there is any historical product with a similarity greater than a preset similarity to the product to be produced, the historical product with a similarity greater than the preset similarity is used as the target product, indicating that the target product and the product to be produced are products of the same wireframe model. The preset similarity can be set according to the complexity of the product, which is not limited in this application. For example, the preset similarity can be 98%.
[0067] If there are multiple candidate products with a similarity greater than a preset similarity, the multiple candidate products are prioritized based on the plant information, the historical output of each candidate product, and the production time of each candidate product to obtain the priority ranking result. Specifically, the plant information of each candidate product, the historical output of each candidate product, and the production time of each candidate product can be obtained from the production management system according to the module number of each candidate product. Among them, the production management system can be installed in a server, and other authorized electronic devices can access the server, or log in to the production management system through a registered account and password to access it. The production management system can also be installed in an electronic device. The production management system is responsible for the various management tasks of setting up and operating the enterprise production system, and is also used to manage the data required for production. Since the process of each plant area will be different, it is possible to first select a candidate product that belongs to the same plant area as the product to be produced from multiple candidate products based on the plant information. The priority of the candidate product belonging to the same plant area is greater than that of the candidate products belonging to other plant areas. If there is a candidate product that belongs to the same plant area as the product to be produced, this candidate product has the highest priority and is used as the target product.
[0068] If there are multiple candidate products that belong to the same plant, the historical output is further compared, and the historical output can reflect the process information. The priority of the candidate product with the same output as the product to be produced is higher than that of the candidate products with other outputs. If there is a candidate product that belongs to the same plant and has the same output as the product to be produced, this candidate product has the highest priority and is used as the target product.
[0069] If there are still multiple candidate products after screening the above plant information and historical output, the production time of each candidate product is further obtained, and the priority of the candidate product corresponding to the production time closest to the current time is set to the highest priority. The candidate products with the same plant, the same output and the closest production time are taken as the target products, or, if there are no candidate products in the same plant, the candidate product with the least historical process corresponding to the historical production output is taken as the target product.
[0070] In one example, in the absence of candidate products in the same plant, determine the target product from multiple candidate products based on the historical process. Based on the module number of candidate product A, the historical process of candidate product A is retrieved from the production management system, including 20 steps. Similarly, based on the module number of candidate product B, the historical process of candidate product B is retrieved from the production management system, including 5 steps. Based on the module number of candidate product C, the historical process of candidate product C is retrieved from the production management system, including 15 steps. In order to reduce the production steps of the product to be produced, the candidate product B with the least historical process can be used as the target product. Alternatively, in order to produce the product to be produced more finely, the candidate product A with the most historical processes can be used as the target product. This application is not limited to this.
[0071] Step S208: Generate production information of the product to be produced based on the historical production information and similarity corresponding to the target product.
[0072] In some embodiments of the present application, after the target product is determined, the historical production information corresponding to the target product is found from the production management system based on the module number carried in the comparison result. The historical production information includes historical processes, historical processing time, historical layout, and equipment information of historical equipment required to produce the target product.
[0073] If the similarity of the target product is greater than the preset similarity, indicating that the target product and the product to be produced are products of the same structure, the production information of the product to be produced can be determined based on the historical production information of the target product, specifically including: obtaining the historical process, historical processing time, historical layout and equipment information of the historical equipment required to produce the target product from the historical production information; determining the target equipment in an idle state based on the equipment information; after determining the historical production information, the quantity of the product to be produced can be input into the electronic device. Thus, the production information is determined based on the quantity of the product to be produced, the target equipment, the historical process, the historical processing time and the historical layout.
[0074] In one example, assuming that the production quantity of the target product is 10 pieces, the production management system can retrieve the corresponding historical production information of the production of these 10 target products. Assuming that the product to be produced in this order needs to be produced 5 pieces, the production information of producing 5 pieces can be obtained based on the historical production information of producing 10 pieces.
[0075] In another example, assuming that the production quantity of the target product is 1 piece, the production management system can retrieve the historical production information corresponding to the production of this 1 piece of the target product. Assuming that the product to be produced in this order needs to be produced 5 pieces, the production information for producing 5 pieces can be obtained based on the historical production information for producing 1 piece.
[0076] If the similarity of the target product is less than or equal to the preset similarity, it means that the target product and the product to be produced have partially the same structure. According to the comparison result between the target product and the product to be produced, the wireframe model with differences is marked. The production information of the product to be produced is determined according to the historical production information and the difference information. Specifically, the historical production information is used as reference information. The user can modify the wireframe model with differences according to the reference information to obtain the difference information corresponding to the modified wireframe model with differences. Thus, the production information corresponding to the product to be produced is obtained by combining the historical production information and the difference information.
[0077] After determining the production information corresponding to the product to be produced, in order to prevent the production information from being tampered with and repeated operations, after user A determines to use the production information for production, the production information can be locked to prevent user B from tampering with the production information. After completing the production of the order to be produced, the order to be produced can be marked as completed.
[0078] In the above embodiment, in order to save the time cost and human resources of manual comparison, the structural difference between the product to be produced and the historical product is obtained by comparing the wireframe model, thereby improving the efficiency of obtaining historical products with similar structures to the product to be produced. The embodiment of the present application can avoid relying on experienced staff to obtain the production information of the product to be produced, thereby reducing labor costs. In addition, when the structure of the product to be produced is relatively complex, the embodiment of the present application can also ensure the efficiency and accuracy of obtaining the production information of the product to be produced during product production. To a certain extent, the efficiency of producing the product to be produced is accelerated.
[0079] Figure 3 is a flowchart of building a preset database provided in an embodiment of the present application, such as Figure 3 As shown, the following steps are included: Step S301, in response to a triggering event, calling a plurality of historical orders, and obtaining a first historical product map of a plurality of historical products from the plurality of historical orders.
[0080] In some embodiments of the present application, the trigger event may be a timed task, for example, setting a timed trigger at 0:00 every day to trigger the electronic device to retrieve historical orders within 24 hours. The trigger event may also be a task generated by the electronic device in response to a user's selection operation event. For example, if the user chooses to retrieve today's newly placed orders and yesterday's completed orders for comparison, the electronic device responds to the selection operation and grabs the historical orders that were completed yesterday. The above are just examples, and the trigger conditions can be set according to actual needs, and this application does not limit this.
[0081] The first historical product images of multiple historical products can be placed in a designated historical folder, and each historical folder can be named according to the corresponding module number. The electronic device can link to the historical folder through a multifunctional integrated management system to obtain the first historical product image. Among them, the first historical product image in the historical folder can be a drawing file in the processing process, and the drawing file can be a three-dimensional image obtained by the user by scanning the historical product, or a three-dimensional image drawn by the user through three-dimensional construction software. The above is just an example, and this application does not limit the generation method of the first historical product image.
[0082] Combine the following Figure 4 The process of obtaining the first historical product graph of multiple historical products from multiple historical orders is described below. The user selects the historical products that have been completed according to the needs to build a database. Figure 4 As shown, the electronic device automatically refreshes the directory of the multifunctional integrated management system, and grabs the first historical product image of any historical product from the multifunctional integrated management system as local data, and the module number and other information can be used as the name of each first historical product image, such as Figure 4 For example, in the 9W-1B48MV-05-02, 9W-1B48MV-05-03, 9W-1B48MV-05-08, and 9W-1B48MV-05-10 shown in FIG, the format of the first historical product map may be the STP format, which is not limited in this application. Figure 4 As shown, in order to facilitate the subsequent processing of each first historical product image, each first historical product image can be stored in a separate folder, and the folder is recorded as a second folder. The name of each second folder is the corresponding module number. For example, the first historical product image of 9W-1B48MV-05-02.STP is converted into the second folder of 9W-1B48MV-05-02.
[0083] Step S302: convert the format of the first historical product image to obtain a second historical product image with a preset format.
[0084] In some embodiments of the present application, in order to improve the accuracy of subsequent comparison, the first historical product image is format converted. The electronic device can open the second folder storing the first historical product image in sequence through the engineering software Pro E in the order in which the first historical product image is captured, thereby opening the first historical product image. When the first historical product image is opened, the format of the first historical product image can be converted into a preset format, which can be an IGS format. The first historical product image after format conversion is used as the second historical product image, and the second historical product image is stored in the second folder.
[0085] Step S303 : adjusting the posture of the historical product in the second historical product image to the first posture based on the angle difference between the dimension direction of the historical product in the historical product image and the axial direction of the reference coordinate system.
[0086] In some embodiments of the present application, the reference coordinate system may be a world coordinate system or a three-dimensional coordinate system set in an electronic device. The axial direction of the reference coordinate system includes the X-axis direction, the Y-axis direction, and the Z-axis direction. The dimensional direction includes the length direction, the width direction, and the height direction of the product to be produced.
[0087] In order to adjust the posture, the electronic device starts engineering software, such as materials calculation software (MaterialsStudio, MS), links to the second folder through the engineering software MS, and obtains the second historical product image in the second folder. Since the reference coordinate system is fixed, the dimensional direction will vary depending on the placement of the historical product. Start the corresponding program, obtain the dimensional direction of the historical product, calculate the angle difference between the length direction and the X-axis direction, the angle difference between the width direction and the Y-axis direction, and the angle difference between the height direction and the Z-axis direction. Based on the angle difference, align the length direction with the X-axis direction, the width direction with the Y-axis direction, and the height direction with the Z-axis, so that the posture of the historical product in the second historical product image can be adjusted to the first posture. The dimensional direction of the historical product in the first posture is aligned with the axial direction, including: the length direction is aligned with the X-axis direction, the width direction is aligned with the Y-axis direction, and the height direction is aligned with the Z-axis.
[0088] Step S304: adjusting the display size of the historical product in the first posture to the window size, and converting the physical model of the historical product to a second wireframe model having a wireframe structure.
[0089] In some embodiments of the present application, in order to unify the size, the size of the historical product is adaptively adjusted within the window size range of the display window so that the historical product can be displayed in a maximized manner within the window size range. The display size of the historical product can be adaptively adjusted to the window size of the display window by zooming in or out, for example, obtaining the boundary of the historical product, and if the boundary exceeds the window size range, the historical product is reduced so that the historical product can be fully and maximized displayed in the display window. If the boundary is much smaller than the window size range, the historical product is enlarged so that the distance between the boundary of the historical product and the boundary of the display window is less than a preset distance, ensuring that the historical product is maximized and displayed in the display window.
[0090] In some embodiments of the present application, when the display size of the historical product is adjusted to the window size, all the faces in the historical product are removed, and the wireframe structure corresponding to the construction face is retained. The wireframe structure is used to display the structural layout of the historical product, and the color of the lines of all non-black wireframe structures is changed to black. According to the black wireframe structure, a first wireframe model is obtained.
[0091] Step S305 , based on the rotation direction and multiple rotation angles, rotate the second wireframe model around the central axis of the second wireframe model, and record a second posture of the second wireframe model at each rotation angle and a second image of the second wireframe model in the second posture.
[0092] In some embodiments of the present application, specifically, the plurality of rotation angles include 45°, 90°, 180°, etc. A virtual straight line perpendicular to the length direction is set at the center point of the length of the second wireframe model as the central axis of the second wireframe model.
[0093] In order to record the second posture of the second wireframe model at multiple rotation angles and the second image of the second wireframe model at the second posture, the second wireframe model is rotated clockwise around the central axis by a rotation angle starting from the first posture, and the second posture of the second wireframe model at the rotation angle is recorded. In response to the rotation operation, the electronic device starts a screenshot tool to capture the display window, obtains a screenshot corresponding to the display window, and records the screenshot as the second image of the second wireframe model at the second posture. Then, the clockwise rotation is continued according to the next rotation angle to obtain the second posture and the second image of the second wireframe model at the next rotation angle.
[0094] In addition, after rotating in the clockwise direction by a rotation angle, the second wireframe model may be rotated counterclockwise by the rotation angle again, so that the second wireframe model is rotated each time based on the first posture.
[0095] In this way, images of multiple historical products at multiple rotation angles can be obtained. In addition, for subsequent unified comparison, the process of generating the second image is the same as the process of generating the first image. The description of step S305 can refer to Figure 2 The description of step S205 is shown.
[0096] Step S306: construct a preset database based on the second image and the module number corresponding to the second wireframe model in the second image.
[0097] In some embodiments of the present application, the module number can be the name of the second image, or a document storing model information is established for each second image, and the document includes the module number. Based on the second image and the corresponding model number, a preset database is constructed, and the preset database can be an integrated database, which can speed up the comparison.
[0098] The integrated database can be constructed by encoding or binarization. The encoding method includes: encoding the wireframe model corresponding to the second wireframe model of the second image to obtain second encoding information; and constructing a preset database based on the second encoding information and the module number. The encoding method may include but is not limited to encoding based on geometric features, encoding based on topological structures, and encoding based on hash functions.
[0099] The method uses binarization, including: binarizing the second image to obtain a second pixel of the wireframe model corresponding to the second wireframe model of the second image; and constructing a preset database based on the second pixel and the module number.
[0100] In the above embodiment, by constructing a preset database, the comparison efficiency of the first image and the second image can be accelerated. In addition, the preset database contains the second images of multiple historical products at different rotation angles, and can traverse all historical products to improve the efficiency and accuracy of the comparison. To a certain extent, production efficiency can be improved.
[0101] Figure 5 is a schematic diagram of a method for generating production information provided by another embodiment of the present application, such as Figure 5 As shown, production information can be generated through the multifunctional integrated management system of the electronic device. The generation of the production information mainly includes several processes, such as the construction process of the preset database, the processing process of new orders, the comparison process, the comparison result analysis process, the manufacturing process and the program design process.
[0102] Among them, the construction process of the preset database may include calling historical orders, capturing the first historical product image of the historical product, capturing the first historical product image as local data, organizing each first historical product image into a separate folder, converting the format of the first historical product image to obtain a second historical product image with a preset format, obtaining a second wireframe model at different rotation angles, capturing a second image at different rotation angles, and building a preset database based on the second image.
[0103] The processing flow of new orders may include retrieving orders to be produced, capturing first product images corresponding to the products to be produced, converting the captured first product images into local data, organizing each first product image into a separate folder, converting the format of the first product image to obtain a second product image with a preset format, obtaining first wireframe models at different rotation angles, and capturing first images at different rotation angles.
[0104] The comparison process may include comparing a first image corresponding to an order to be produced with a second image corresponding to a historical order.
[0105] The comparison result analysis process may include analyzing similarity and module number.
[0106] The manufacturing process may include determining the target product according to the similarity and the module number, determining the production information of the product to be produced according to the historical production information corresponding to the target product and the similarity, and inputting the production information into the production management system.
[0107] The program design process may include a sub-process with a similarity greater than a preset similarity threshold and a sub-process with a similarity less than or equal to the preset similarity threshold. The sub-process with a similarity greater than the preset similarity threshold may include calling a layout storage area and a program storage area according to historical production information. The sub-process with a similarity less than or equal to the preset similarity threshold may include calling a program corresponding to a matched partial structure according to historical production information, prompting a user to make partial modifications according to the program, and uploading the modified program to a designated storage area of the multifunctional integrated management system.
[0108] An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. The computer program includes program instructions. The method implemented when the program instructions are executed can refer to the methods in the above-mentioned embodiments of the present application.
[0109] The computer-readable storage medium may be an internal memory of the electronic device of the above-mentioned embodiment, such as a hard disk or memory of the electronic device. The computer-readable storage medium may also be an external storage device of the electronic device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device.
[0110] In some embodiments, the computer-readable storage medium may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function, etc.; the data storage area may store data created according to the use of the electronic device, etc.
[0111] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0112] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0113] In the embodiments provided in the present application, it should be understood that the disclosed devices / terminal equipment and methods can be implemented in other ways. For example, the device / terminal equipment embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0114] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0115] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application.
Claims
1. A method for generating production information, applied to electronic equipment, characterized in that: The method comprises: Retrieving an order to be produced, and obtaining a first product image of the product to be produced from the order; Performing format conversion on the first product image to obtain a second product image in a preset format; Based on the angle difference between the dimension direction of the product to be produced in the second product image and the axial direction of the reference coordinate system, adjusting the posture of the product to be produced in the second product image to a first posture, wherein the dimension direction of the product to be produced in the first posture is aligned with the axial direction; adjusting the display size of the product to be produced in the first posture to the window size of the display window, and converting the physical model of the product to be produced into a first wireframe model having a wireframe structure; Based on the rotation direction and multiple rotation angles, rotate the first wireframe model around the central axis of the first wireframe model, and record a second posture of the first wireframe model at each rotation angle and a first image of the first wireframe model at the second posture; Comparing the first wireframe model of each of the first images with the wireframe model of the second wireframe model of the second image in a preset database to obtain a comparison result, wherein the second image is an image recorded at the plurality of rotation angles by the second wireframe model corresponding to the historical product that has been completed, and the comparison result includes a similarity; determining a target product from the historical products based on the similarity; Based on the historical production information corresponding to the target product and the similarity, the production information of the product to be produced is generated.
2. The method for generating production information according to claim 1, characterized in that: The comparing the first wireframe model of each of the first images with the second wireframe model of the second image in a preset database includes: Encoding the first wireframe model of each first image to obtain first encoding information of the wireframe model corresponding to the first wireframe model; The first coding information is compared with second coding information corresponding to the preset database, wherein the second coding information is an encoding result of a wireframe model corresponding to a second wireframe model of the second image.
3. The method for generating production information according to claim 1, characterized in that: The comparing the first wireframe model of each of the first images with the second wireframe model of the second image in a preset database includes: Binarizing each first image to obtain a first pixel of a wireframe model corresponding to the first wireframe model; The first pixel is compared with a second pixel corresponding to the preset database, wherein the second pixel is a pixel distribution of a wireframe model corresponding to a second wireframe model of the second image.
4. The method for generating production information according to claim 1, characterized in that: The method further includes constructing the preset database, including: In response to a trigger event, multiple historical orders are retrieved, and a first historical product map of multiple historical products is obtained from the multiple historical orders, wherein the trigger event includes a scheduled task and a task generated by a user's selection operation event; Performing format conversion on the first historical product image to obtain a second historical product image having the preset format; adjusting the posture of the historical product in the second historical product image to the first posture based on the angle difference between the dimension direction of the historical product in the historical product image and the axial direction of the reference coordinate system; adjusting the display size of the historical product in the first posture to the window size, and converting the physical model of the historical product into the second wireframe model having a wireframe structure; Based on the rotation direction and the multiple rotation angles, rotate the second wireframe model around the central axis of the second wireframe model, and record the second posture of the second wireframe model at each rotation angle and the second image of the second wireframe model at the second posture; The preset database is constructed based on the second image and the module number corresponding to the second wireframe model in the second image.
5. The method for generating production information according to claim 4, characterized in that: The constructing the preset database based on the second image and the module number corresponding to the second wireframe model in the second image includes: Encoding the wireframe model corresponding to the second wireframe model of the second image to obtain second encoding information; constructing the preset database based on the second encoding information and the module number; or, Binarize the second image to obtain a second pixel of the wireframe model corresponding to the second wireframe model of the second image; and construct the preset database based on the second pixel and the module number.
6. The method for generating production information according to claim 1, characterized in that: The generating the production information of the product to be produced based on the historical production information corresponding to the target product and the similarity includes: If the similarity of the target product is greater than a preset similarity, determining the production information according to the historical production information; If the similarity of the target product is less than or equal to the preset similarity, the production information is determined according to the historical production information and difference information, wherein the difference information is generated according to the structural difference between the product to be produced and the target product.
7. The method for generating production information according to claim 6, characterized in that: The determining the production information according to the historical production information includes: Searching for the historical production information based on the module number carried by the target product; Acquire historical process, historical processing time, historical layout and equipment information of historical equipment required to produce the target product from the historical production information; Determine a target device in an idle state according to the device information; The production information is determined according to the quantity of the products to be produced, the target equipment, the historical process, the historical processing time and the historical layout.
8. The method for generating production information according to claim 1, characterized in that: The determining the target product from the historical products based on the similarity comprises: If there is any historical product whose similarity with the product to be produced is greater than a preset similarity, any historical product is used as the target product; or, If there are multiple candidate products whose similarity to the product to be produced is greater than the preset similarity, the target product is determined from the multiple candidate products according to the priority sorting results of the multiple candidate products.
9. The method for generating production information according to claim 8, characterized in that: The step of determining the target product from the plurality of candidate products according to the priority ranking results of the plurality of candidate products comprises: Prioritize the multiple candidate products based on the plant information, historical process, historical output of each candidate product, and production time of each candidate product to obtain the priority ranking result; A candidate product with the highest priority is selected from the priority sorting results as the target product.
10. The method for generating production information according to claim 1, characterized in that: The determining the target product from the historical products based on the similarity in the comparison result includes: If there is no historical product whose similarity with the product to be produced is greater than a preset similarity, the historical product with the greatest similarity is used as the target product.
11. An electronic device, characterized in that: The electronic device comprises a processor and a memory, wherein the processor is configured to execute a computer program stored in the memory to implement the method for generating production information as claimed in any one of claims 1 to 10.
12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one instruction, and when the at least one instruction is executed by a processor, the method for generating production information according to any one of claims 1 to 10 is implemented.