Graph processing methods, systems, devices, and media

By using scene templates to automatically process CAD files, parse and generate object data, the problems of high cost and error in manual measurement are solved, and efficient and accurate data extraction is achieved.

CN117197212BActive Publication Date: 2025-11-25ZHEJIANG CAINIAO SUPPLY CHAIN MANAGEMENT CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311050958.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-18
Publication Date
2025-11-25
Estimated Expiration
2043-08-18

AI Technical Summary

Technical Problem

In existing technologies, the extraction of CAD graphic data objects mainly relies on manual measurement, which leads to high costs and makes it difficult to avoid measurement errors.

Method used

The CAD file is processed using scene templates, and data objects are automatically extracted using parsing and processing units, including parsing elements in the CAD file and generating object data.

Benefits of technology

It saves on manual measurement costs, improves the accuracy of graphic processing, and avoids measurement errors through computer technology, offering high flexibility and wide applicability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117197212B_ABST
    Figure CN117197212B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a kind of graphics processing method, system, equipment and medium, and the method specifically includes: receiving CAD file;Determine the scene template corresponding to the CAD file;With the scene template, the CAD file is processed to obtain the object data corresponding to the data object contained in the CAD file;Wherein, the scene template includes: analysis unit and processing unit;The analysis unit is used to analyze the CAD file, to obtain the element contained in CAD file;The processing unit is used to process the element contained in CAD file, to obtain the object data corresponding to data object;The object data corresponding to the data object is output.This embodiment of the present application can save the manual cost of graphics processing, can improve the accuracy of graphics processing, and has the advantages of high flexibility and wide scene application range.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] Embodiments of the present application relate to the technical field of computer information processing, and particularly relate to a graphics processing method, system, device and medium. BACKGROUND

[0002] CAD (Computer Aided Design) software is a kind of drawing software that uses computers and graphics devices to help users with design work, which has been widely used in fields such as architecture, electronics and electrical, mechanical design, clothing industry, computer art, logistics, etc. The graphics drawn by using CAD software can be referred to as CAD graphics, and the CAD graphics usually contain a plurality of graphics elements. Taking the field of architecture as an example, the graphics elements can represent data objects such as walls, rooms, shelves, etc. in the field of architecture.

[0003] Extracting object data corresponding to data objects from CAD graphics is of great significance to the auditing of CAD graphics and the processing of data objects.

[0004] At present, the data extraction of data objects is usually performed manually. Specifically, a user can perform manual measurement in the CAD software to obtain object data corresponding to data objects contained in the CAD graphics. However, manual measurement not only consumes a large amount of human cost, but also inevitably causes measurement errors. SUMMARY

[0005] Embodiments of the present application provide a graphics processing method, which can save the labor cost of graphics processing, improve the accuracy of graphics processing, and has the advantages of high flexibility and wide scene application range.

[0006] Correspondingly, the present application also provides a graphics processing system, an electronic device and a storage medium to realize the implementation and application of the above method.

[0007] In order to solve the above problems, the embodiments of the present application disclose a graphics processing method, the method comprising:

[0008] receiving a CAD file;

[0009] determining a scene template corresponding to the CAD file;

[0010] processing the CAD file by using the scene template to obtain object data corresponding to data objects contained in the CAD file; wherein the scene template comprises an analysis unit and a processing unit; the analysis unit is used to analyze the CAD file to obtain elements contained in the CAD file; and the processing unit is used to process the elements contained in the CAD file to obtain object data corresponding to data objects.

[0011] outputting object data corresponding to the data object.

[0012] To solve the above problems, the embodiment of the application discloses a graphics processing method, the method comprises:

[0013] determining object data corresponding to the CAD file; the object data is structured data;

[0014] performing preset processing according to the object data; the preset processing comprises: generating a ledger or a visual model, or performing warehouse operation;

[0015] The process of determining the object data corresponding to the CAD file comprises: determining a scene template corresponding to the CAD file; processing the CAD file by using the scene template to obtain the object data corresponding to the data object contained in the CAD file; wherein the scene template comprises: an analysis unit and a processing unit; the analysis unit is used to analyze the CAD file to obtain elements contained in the CAD file; and the processing unit is used to process the elements contained in the CAD file to obtain the object data corresponding to the data object.

[0016] To solve the above problems, the embodiment of the application discloses a graphics processing system, the system comprises: a graphics processing device and data objects in a warehouse.

[0017] The graphics processing device is used to execute the method, and for a CAD file containing the data object, the graphics processing device is used to determine object data corresponding to the data object, output the object data corresponding to the data object, and perform preset processing according to the object data.

[0018] To solve the above problems, the embodiment of the application discloses an electronic device, comprising: a processing unit; and a memory having executable code stored thereon, when the executable code is executed, the processing unit executes the method as described in any one of the above embodiments.

[0019] To solve the above problems, the embodiment of the application discloses one or more machine-readable media having executable code stored thereon, when the executable code is executed, the processing unit executes the method as described in any one of the above embodiments.

[0020] The embodiment of the application comprises the following advantages:

[0021] In the technical solution of the embodiment of the present application, the CAD file is processed by using the scene template corresponding to the CAD file to obtain object data corresponding to the data object. Since the scene template can process the elements contained in the CAD file by using computer technology, the embodiment of the present application can save the cost of manual measurement in the CAD software and can avoid measurement errors. In other words, the embodiment of the present application can save the manual cost of graphic processing and can improve the accuracy of graphic processing.

[0022] In addition, the scene template of the embodiment of the present application can include an analysis unit and a processing unit. Different combinations of different processing units or different combinations of processing units and analysis units can achieve different processing results. For example, the same analysis unit can be combined with different processing units to obtain different processing results, or the same processing unit can be combined with different analysis units to obtain different processing results. Therefore, the structure of the scene template of the embodiment of the present application has the advantages of high flexibility and wide scene application range.

[0023] In addition, an analysis unit or a processing unit can be applied to multiple scene templates, that is, different scene template options can use the same analysis unit or processing unit. Since the analysis unit or the processing unit has reusability, the embodiment of the present application can further save the cost of graphic processing. BRIEF DESCRIPTION OF DRAWINGS

[0024] Figure 1 FIG. 1 is a step flowchart of a graphic processing method according to an embodiment of the present application;

[0025] Figure 2 FIG. 2 is a schematic diagram of a CAD data structure according to an embodiment of the present application;

[0026] Figure 3 FIG. 3 is a schematic diagram of a scene template according to an embodiment of the present application;

[0027] FIG. 4(a) is a schematic diagram of a polygon corresponding to a line element;

[0028] FIG. 4(b) is a schematic diagram of a hollow part in the polygon;

[0029] FIG. 4(c) is a schematic diagram of a merging result after adjacent graphics in the polygon are merged;

[0030] Figure 5 FIG. 5 is a step flowchart of a graphic processing method according to an embodiment of the present application;

[0031] Figure 6 FIG. 6 is a structural schematic diagram of a graphic processing system according to an embodiment of the present application;

[0032] Figure 7is a structural schematic diagram of an exemplary device provided by an embodiment of the present application. DETAILED DESCRIPTION

[0033] In order to make the above objectives, characteristics and advantages of the present application more apparent and comprehensible, the present application will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0034] Embodiments of the present application can be used to process CAD files to obtain object data corresponding to data objects such as walls, rooms, shelves, etc. contained in the CAD files.

[0035] In the embodiments of the present application, the use of user data can be involved. In actual applications, user-specific personal data can be used in the schemes described herein within the scope permitted by applicable laws and regulations, provided that the applicable laws and regulations are met (for example, the user has given explicit consent, the user has been effectively notified, etc.).

[0036] In the related art, data extraction of data objects is usually performed manually. Specifically, a user can perform manual measurement in CAD software to obtain object data corresponding to data objects contained in CAD graphics. However, manual measurement not only consumes a large amount of human cost, but also inevitably causes measurement errors.

[0037] In view of the technical problem in the related art that manual measurement not only consumes a large amount of human cost, but also inevitably causes measurement errors, embodiments of the present application provide a graphics processing method, which specifically includes: receiving a CAD file; determining a scene template corresponding to the CAD file; processing the CAD file by using the scene template to obtain object data corresponding to a data object contained in the CAD file; wherein the scene template specifically includes: an analysis unit and a processing unit; the analysis unit is configured to analyze the CAD file to obtain elements contained in the CAD file; the processing unit is configured to process the elements contained in the CAD file to obtain the object data corresponding to the data object; and outputting the object data corresponding to the data object.

[0038] Embodiments of the present application process elements contained in a CAD file by using a scene template corresponding to the CAD file to obtain object data corresponding to a data object. Since the above scene template can process the CAD file by using computer technology, embodiments of the present application can save the cost of manual measurement in CAD software and avoid measurement errors; in other words, embodiments of the present application can save the manual cost of graphics processing and improve the accuracy of graphics processing.

[0039] Method embodiment one

[0040] Reference Figure 1, a step flow chart of a graphic processing method according to an embodiment of the present application is shown, which can specifically include the following steps:

[0041] Step 101, receiving a CAD file;

[0042] Step 102, determining a scene template corresponding to the CAD file; the scene template specifically includes a processing unit;

[0043] Step 103, processing the CAD file by using the scene template, to obtain object data corresponding to a data object contained in the CAD file; the scene template specifically includes an analysis unit and a processing unit; the analysis unit is used to analyze the CAD file, to obtain an element contained in the CAD file; the processing unit is used to process the element contained in the CAD file, to obtain the object data corresponding to the data object;

[0044] Step 104, outputting the object data corresponding to the data object.

[0045] Figure 1 The method embodiment shown can be used to analyze the CAD file, to obtain the object data corresponding to the data object contained in the CAD file. Figure 1 The method embodiment shown includes at least one step which can be executed by a graphic processing device, which can run on a client or a server. It can be understood that the embodiment of the present application is not limited to the specific format of the CAD file. Figure 1 The specific execution subject of the method shown is not limited.

[0046] In step 101, the client can receive a CAD file uploaded by a user. The CAD file can be a file output by a drawing software. It can be understood that the embodiment of the present application is not limited to the specific format of the CAD file.

[0047] The CAD file that can be processed by the embodiment of the present application can conform to a preset specification. Examples of the preset specification can include a drawing specification, a layer specification, and a frame specification, etc.

[0048] For example, the drawing specification requires the CAD file to contain elements such as blocks, lines, and polygons. The layer specification can constrain the line color and line type of a layer, for example, requiring the line color of a fire compartment to be blue, etc. The frame specification can constrain the line type of a frame, for example, the line type of the frame is a thick solid line, etc. It can be understood that a person skilled in the art can determine the preset specification according to actual application requirements, and the embodiment of the present application is not limited to the specific preset specification.

[0049] In step 102, the scene corresponding to the scene template can represent the analysis scene of the CAD file. The analysis scene can be related to the scene corresponding to the CAD file, to realize the processing of the CAD file.

[0050] In the embodiments of the present application, the scene corresponding to the CAD file can represent the environment or objects in the environment in which the elements in the CAD file are located. The objects in the environment can include buildings, roads, park objects, etc. The park objects can include gardens, green spaces, equipment, etc.

[0051] A person skilled in the art can pre-set the analysis scene of the CAD file according to actual application requirements. For example, in the field of logistics technology, examples of analysis scenes can include a logistics park, a warehouse floor, a warehouse interior, a warehouse supporting building, an automated assembly line, an industrial park, etc.

[0052] The embodiments of the present application can provide a scene template corresponding to the analysis scene. Accordingly, the process of obtaining the scene template specifically includes: creating a scene template option; determining the analysis unit and the processing unit corresponding to the scene template option; saving the mapping relationship between the analysis unit and the processing unit and the scene template option.

[0053] The scene template option can correspond to the analysis scene. The embodiments of the present application can determine one scene template option corresponding to the scene for one analysis scene.

[0054] The processing unit corresponding to the scene template option can be matched with the analysis scene corresponding to the scene template option, in other words, the processing unit can process the CAD file corresponding to the analysis scene.

[0055] The processing unit corresponding to the scene template option can be an existing processing unit or a newly created processing unit. In the embodiments of the present application, the same processing unit can be used for different scene template options.

[0056] The processing unit can correspond to a processing logic or a code corresponding to the processing logic. In the case of using an existing processing unit, the existing code can be reused to save the cost of code writing. In the case of using a new processing unit, the code can be written for the new processing unit.

[0057] The processing unit corresponding to the scene template option can be one or more. Different processing units can be used in combination, and the processing unit can also be combined with other types of units. Other types of units can include analysis units and / or filtering units.

[0058] The analysis unit is used to analyze the CAD file to obtain elements such as lines, circles, polygons, and text included in the CAD file. In one example, the analysis unit can convert the CAD file into dxf (Drawing Exchange Format) data; then, according to the CAD format specification, extract the data of the elements from the dxf data.

[0059] Referring to Table 1, an example of attribute information of a parsing unit of one embodiment of the present application is shown. The attribute information of the parsing unit can specifically include a parsing unit name, a CAD shape, an output element format, and a description, etc.

[0060] Table 1

[0061]

[0062]

[0063] Referring to Figure 2 , a schematic diagram of a CAD data structure of one embodiment of the present application is shown. The CAD file can include one or more layers; one layer can include one or more object entities. A block is a named group of object entities, which can include one or more object entities. Block nesting can refer to a block also referencing another block. An object entity can refer to an object with a graphical representation, examples of which can include a line, a circle, an arc, text, an ellipse, etc.

[0064] In actual applications, different CAD shapes can be parsed by different parsing units to obtain different elements. The same CAD shape can also be parsed by different parsing units to obtain different elements. For example, a polygon can be parsed by a polygon parsing unit to obtain a polygon, and the polygon can be parsed by a line parsing unit to obtain a line.

[0065] The filtering unit can be configured to determine target graphical data corresponding to a preset range and / or a preset layer from the CAD file.

[0066] The filtering unit can include a range filtering unit and / or a layer filtering unit. The range filtering unit can be configured to determine target graphical data corresponding to a preset range from the CAD file. The preset range can be determined via a graphical name, for example, the range filtering unit can be used to determine target graphical data corresponding to the preset range "No. 1 building elevation drawing". The layer filtering unit can be configured to determine target graphical data corresponding to a preset layer from the CAD file. The preset layer can be determined via a layer name, for example, the range filtering unit can be used to determine target graphical data (elevation drawing annotation text) corresponding to the preset layer "elevation drawing annotation". Of course, the range filtering unit and the layer filtering unit can be used simultaneously to determine the elevation drawing annotation text corresponding to both "No. 1 building elevation drawing" and "elevation drawing annotation".

[0067] The processing unit of the embodiment of the present application can be a unit in the scene model for processing elements contained in the CAD file. The category of the processing unit can be various. For example, the processing unit can be divided into a graphics processing unit, a function processing unit and a data object processing unit according to the category.

[0068] The graphics processing unit is used for processing graphic elements contained in the CAD file. The function processing unit is used for implementing a preset function. The data object processing unit is used for determining object data corresponding to a data object according to data provided by other processing units.

[0069] Referring to Table 2, an example of attribute information of the processing unit of an embodiment of the present application is shown. The attribute information of the processing unit can specifically include the category of the processing unit, the name of the processing unit, the collocated parsing unit and the description, etc. The category of the processing unit can include a graphics processing unit, a function processing unit and a data object processing unit, etc. The processing unit of one category can further contain corresponding processing units. For example, the graphics processing unit can include a line-to-polygon processing unit, etc. For example, in the scene template corresponding to the logistics park or industrial park scene, the line-to-polygon processing unit can be used for processing data objects such as roads, grounds or bicycle sheds, etc.

[0070] Table 2

[0071]

[0072]

[0073] In summary, the scene template of the embodiment of the present application can include a plurality of processing units. One processing unit can use the output data of another processing unit. In the case where the processing unit is a graphics processing unit, the graphics processing unit can use the output data of the parsing unit and the filtering unit. The combination of different processing units, or the different combination of the processing unit and the parsing unit, or the different combination of the processing unit, the parsing unit and the filtering unit, can all achieve different processing results.

[0074] The parsing unit can correspond to processing logic or code corresponding to the processing logic. In the case of using an existing parsing unit, the existing code can be reused to save the coding cost. In the case of using a new parsing unit, the code can be written for the new parsing unit.

[0075] Similarly, the filtering unit can correspond to processing logic or code corresponding to the processing logic. In the case of using an existing filtering unit, the existing code can be reused to save the coding cost. In the case of using a new filtering unit, the code can be written for the new filtering unit.

[0076] The embodiments of the present application can combine different processing units, or processing units and parsing units, or processing units and parsing units by code combination. Alternatively, the embodiments of the present application can combine different processing units, or processing units and parsing units, or processing units and parsing units by visualization.

[0077] An implementation process of the visualization is provided herein. The implementation process specifically includes: providing a first area and a second area in an interface; the first area can be a scene template area, and the second area can be a unit area; the scene template area can present selected units contained in a scene template, and the second area can present to-be-selected units, such as to-be-selected processing units, to-be-selected parsing units, and to-be-selected filtering units. The embodiments of the present application can receive a selection operation on the to-be-selected units in the second area, and add the to-be-selected units selected by a user to the second area.

[0078] The second area can contain connection relationships between the selected units. For example, the second area can contain a selected processing unit area, a selected parsing unit area, and a selected filtering unit area. The embodiments of the present application can support moving a to-be-selected unit to any one of the selected processing unit area, the selected parsing unit area, and the selected filtering unit area via a drag operation. The embodiments of the present application can also support an editing operation, such as a deletion operation or a moving operation, on any selected unit in the selected processing unit area, the selected parsing unit area, and the selected filtering unit area. The embodiments of the present application can also support a connection operation between different selected units, and the like.

[0079] Reference is made to Figure 3 FIG. 1 shows a schematic diagram of a scene template according to an embodiment of the present application. The scene template specifically can include a processing unit 301, a parsing unit 302, and a filtering unit 303.

[0080] The processing unit 301 is configured to process a graphic element contained in a CAD file. The processing unit 301 specifically can include a graphic processing unit 311, a function processing unit 312, and a data object processing unit 313.

[0081] The graphic processing unit 311 is configured to obtain a graphic element from the parsing unit, and determine a graphic corresponding to the graphic element.

[0082] The function processing unit 312 is configured to perform coordinate transformation and the like on the graphic corresponding to the graphic element.

[0083] The data object processing unit 313 is configured to process the graphic corresponding to the graphic element, to obtain object graphic data corresponding to a data object. The object graphic data can be graphic data corresponding to a shelf or the like data object.

[0084] The analysis unit 302 is configured to obtain lines, circles, polygons, text, and the like from the CAD file.

[0085] The filtering unit 303 is configured to filter the graphic data contained in the CAD file. The filtering unit 303 can include a range filtering unit and / or a layer filtering unit. The range filtering unit can determine the target graphic data corresponding to a preset range from the CAD file. Optionally, the preset range can be determined via a graphic name. The layer unit can determine the target graphic data corresponding to a preset layer from the CAD file. Optionally, the preset layer can be determined via a layer name or a block name.

[0086] It can be understood that, Figure 3 The scene template shown is only an example of the scene template of the embodiments of the present application, and is not understood as limiting the scene template of the embodiments of the present application. In fact, the scene template of the embodiments of the present application can include a processing unit, or a processing unit and an analysis unit, or a processing unit, an analysis unit, and a filtering unit.

[0087] The obtaining process of the scene template of the embodiments of the present application can further include determining the filtering unit corresponding to the analysis unit, and saving the mapping relationship between the filtering unit and the scene template option.

[0088] In actual application, the process of determining the scene template corresponding to the CAD file in step 102 can specifically include: presenting at least one scene template option; receiving a target scene template option selected by a user; and determining the scene template corresponding to the CAD file according to the scene template corresponding to the target scene template option. For example, the scene template options of a logistics park, a warehouse floor, a warehouse interior, a warehouse supporting building, an automated assembly line, and an industrial park can be presented in an interface for a user to select. The user can select the target scene template option by clicking or the like. Then, the embodiments of the present application can take the scene template corresponding to the target scene template option as the scene template corresponding to the CAD file.

[0089] In step 103, the data object can be a composite information representation understood by software. The data object can correspond to an entity, which can be an objectively existing and mutually distinguishable thing. For example, in the analysis scene of a warehouse floor, the data object can include a shelf or the like. It can be understood that the above-mentioned shelf is only an example of the data object, and the embodiments of the present application are not limited to a specific data object.

[0090] The embodiments of the present application can provide the following technical solutions for processing the CAD file:

[0091] Technical solution 1

[0092] In the technical solution 1, the element can include a graphic element; the processing unit can include a graphic processing unit and a data object processing unit.

[0093] The process of processing the CAD file can specifically include: determining the graphic corresponding to the graphic element by using the graphic processing unit; and processing the graphic corresponding to the graphic element by using the data object processing unit to obtain object graphic data corresponding to the data object.

[0094] In actual application, the graphic element can include a line element, a point element, a text element, a polygon element, etc.

[0095] In an example, in the case where the graphic element includes a line element, the graphic corresponding to the graphic element can include a polygon; and the process of processing the graphic corresponding to the graphic element can specifically include: identifying a hollow part in the polygon by using the data object processing unit, and merging adjacent graphics in the polygon to obtain corresponding object graphic data.

[0096] Referring to Figure 4(a) to Figure 4(c) , a schematic diagram of a process of processing a polygon is shown, wherein Fig. 4(a) shows a polygon corresponding to a line element, Fig. 4(b) shows a hollow part in the polygon, and Fig. 4(c) shows a merging result after adjacent graphics in the polygon are merged, which represents object graphic data corresponding to a wall. The hollow part in the polygon can be a hollow part commonly corresponding to multiple polygons.

[0097] The embodiments of the present application can not only obtain object graphic data corresponding to a first data object according to a graphic corresponding to the first data object, but also obtain object graphic data corresponding to a second data object according to the graphic corresponding to the first data object.

[0098] The first data object can be a wall, and the second data object can be a room. As shown in Fig. 4(b), data corresponding to the hollow part in the polygon can be taken as object graphic data corresponding to the room.

[0099] The first data object can be a wall and a window, and the second data object can be a room. In this case, object graphic data corresponding to a room surrounded by the wall and the window can be determined according to polygons corresponding to the wall and the window.

[0100] The object graphic data can represent data corresponding to a graphic of a data object, which can specifically include coordinate data of points included in the graphic of the data object, etc.

[0101] In an optional implementation of the present application, the processing unit can include an attribute processing unit. The process of processing the CAD file can further include determining, by the attribute processing unit, the object attribute data corresponding to the data object.

[0102] The object attribute data can represent the object attribute of the data object. The object attribute data can include, but is not limited to, name, belonging space, code, type, model, note, rotation angle, bottom height, and height.

[0103] The attribute processing unit can determine the name, code, type, model, note, and other object attribute data of the data object according to the text corresponding to the data object. The attribute processing unit can obtain the object attribute data from other processing units (such as the text processing unit or the table processing unit).

[0104] The text corresponding to the data object can include text contained in the layer name, and / or text contained in the table of the data object, and / or text contained in the graphic range of the data object, and the like. Taking the data object as a door or window as an example, the table of the data object can contain a door and window table. Taking the data object as a door as an example, the text contained in the graphic range of the data object can be the text appearing on the edge of the door. The text can include a text string, and the type of the text string can include, but is not limited to, Chinese characters, letters, and numbers.

[0105] The text contained in the range of the data object can also include text contained in an elevation view. Taking the data object as a door or window as an example, the default height of the door or window and the default height of the floor can be obtained according to the text contained in the elevation view of the door or window.

[0106] In an example, the name of the data object can be determined according to the text contained in the layer name first, and the type, size, description, and other object attribute data of the data object can be determined according to the text contained in the table of the data object in the layer. The model of the data object can also be determined according to the text contained in the graphic range of the data object. The code of the data object can also be generated according to the position of the data object in the graphic and other information.

[0107] The attribute processing unit or the text processing unit can perform semantic analysis on the text corresponding to the data object to obtain the object attribute data. The semantic analysis can obtain standardized object attribute data.

[0108] The embodiment of the present application can use a regular expression to perform semantic analysis on the text corresponding to the data object. For example, in the case of performing semantic analysis on the text of the data object in the warehouse floor scenario, the regular expression can be used to identify the space data contained in the object attribute data of the warehouse name, warehouse number, floor number, and supporting building. Taking the text "2# warehouse 1 floor" as an example, the semantic analysis result can be obtained: warehouse name: 2# warehouse, warehouse number: 2, floor number: 1. Taking "19# supporting building 5 floor" as an example, the semantic analysis result can be obtained: supporting building name: 19# supporting, warehouse number: 19, floor number: 5.

[0109] The embodiment of the present application can use a classification method to determine the object attribute data corresponding to the data object. The classification method can include a classification dictionary method or a machine classification method. The classification dictionary method can include a double array dictionary tree method, wherein the double array dictionary tree method can use the common prefix of the string to reduce the overhead of query time to achieve the purpose of improving efficiency.

[0110] Referring to Table 3, an example of determining the room type according to the type description of the room is shown. The type description of the room can appear in the text in the CAD file, and the room type can be a standard type obtained by mapping the type description.

[0111] Table 3

[0112]

[0113]

[0114] The object attribute data of the embodiment of the present application can also include the building area, the area inside the room, and the house rate of the room. Specifically, the embodiment of the present application can calculate the building area, the area inside the room, and the house rate of the room according to the object graphic data of the room and the wall corresponding to the room.

[0115] Technical solution 2

[0116] In technical solution 2, the element can include a line element, the processing unit can include a table processing unit and a text processing unit, and the process of processing the CAD file can specifically include: determining the table corresponding to the line element by using the table processing unit; and performing semantic analysis on the text contained in the table by using the text processing unit to obtain the object attribute data corresponding to the data object.

[0117] Taking the data object as an example of a door and a window, the table processing unit can determine the door and window table corresponding to the line element, and the text processing unit can perform semantic analysis on the text contained in the table to obtain the object attribute data of the width, height, and model of the door and window. The above semantic analysis can obtain standardized object attribute data.

[0118] In the embodiments of the present application, the parsing unit can be used to obtain the elements contained in the CAD file.

[0119] In the embodiments of the present application, the scene template can further include a filtering unit. Before the CAD file is processed, the method can further include: using the filtering unit to determine target graphic data corresponding to a preset range and / or a preset layer from the CAD file. The parsing unit is further configured to obtain the elements contained in the target graphic data.

[0120] In summary, the scene model is used to process the CAD file in the embodiments of the present application, and object data corresponding to the data object can be obtained. The object data can include object graphic data and object attribute data.

[0121] The object graphic data can be graphic data corresponding to the data object such as a shelf. The object graphic data can be used for display of the data object. In other words, display of the data object can be realized according to the object graphic data.

[0122] The object attribute data can represent the object attribute of the data object. The object attribute data can include, but is not limited to, name, code, type, model, note, rotation angle, bottom height, and height. The object attribute data can be used for analysis of the data object. In other words, analysis of the data object can be realized according to the object attribute data. The bottom height can refer to the height of the bottom surface of the data object relative to the ground, or the bottom height can refer to the height of the floor on which the data object is located.

[0123] Referring to Table 4, an example of object data of a data object in an embodiment of the present application is shown, where the data object can be a window, the object data can be structured data, and the fields of the structured data can include name, code, type, model, note, object graphic data, rotation angle, bottom height, and object height.

[0124]

[0125]

[0126] A process of processing a CAD file containing doors and windows in the CAD file is provided. Assuming that the parsing scene corresponding to the CAD file is a warehouse supporting building, the scene template corresponding to the warehouse supporting building can be used to process the CAD file.

[0127] In an example, the scene template corresponding to the warehouse supporting building can include a parsing unit and a processing unit, wherein the processing unit can include a graphics processing unit, a data object processing unit, a table processing unit, an elevation drawing processing unit, an attribute processing unit, etc.

[0128] Taking the data object as an example, the parsing unit is used to obtain elements such as line elements from the CAD file. The graphics processing unit is used to obtain the line elements from the parsing unit and convert the line elements into polygons. The data object processing unit is used to obtain the object graphics data of the door and window according to the polygons. The table processing unit is used to determine the door and window table corresponding to the line elements and perform semantic analysis on the text contained in the table by using the text processing unit to obtain the width, height, model, etc. of the door and window. The elevation drawing processing unit can be used to process the elevation drawing of the door and window to obtain the default height of the door and window and the default height of the floor. The attribute processing unit is used to obtain the object graphics data of the door and window from the data object processing unit and the object attribute data such as the width, height, model, etc. of the door and window from the table processing unit. In the case where the table processing unit does not provide the width, height, etc. of the door and window, the attribute processing unit can obtain the default height of the door and window from the elevation drawing processing unit as the height of the door and window.

[0129] In step 104, the object data corresponding to the data object can be output for use by other devices or other systems. The object data can be structured data, and the structured data corresponding to the object data can be saved and output by a database.

[0130] In actual applications, the CAD file can contain multiple data objects. According to steps 102 and 103, the object data corresponding to the multiple data objects can be determined.

[0131] In summary, the graphics processing method of the embodiment of the present application uses the scene template to process the elements contained in the CAD file to obtain the object data corresponding to the data object. Since the above-mentioned scene template can process the elements contained in the CAD file by using computer technology, the embodiment of the present application can save the cost of manual measurement in the CAD software and can avoid measurement errors; in other words, the embodiment of the present application can save the labor cost of graphics processing and can improve the accuracy of graphics processing.

[0132] Moreover, the scene template of the embodiment of the present application can include a parsing unit and a processing unit. The combination of different processing units or the different combination of the processing unit and the parsing unit can achieve different processing results. For example, the same processing unit can be combined with different parsing units to obtain different processing results. Therefore, the structure of the scene template of the embodiment of the present application has the advantages of high flexibility and wide scene application range.

[0133] Further, the scene template of the embodiment of the present application can include a processing unit, an analysis unit and a filtering unit. Different combinations of different processing units, or different combinations of the processing unit and the analysis unit, or different combinations of the processing unit, the analysis unit and the filtering unit can achieve different processing results. For example, the same processing unit combined with different analysis units or filtering units can achieve different processing results. Therefore, the structure of the scene template of the embodiment of the present application has the advantages of high flexibility and wide application range.

[0134] Further, in addition, an analysis unit or a processing unit can be applied to multiple scene templates, in other words, different scene template options can use the same analysis unit or processing unit. Since the analysis unit or the processing unit described above has multiplexing property, the embodiment of the present application can further save the cost of graphic processing.

[0135] In addition, the embodiment of the present application can provide configuration items corresponding to the processing unit for user configuration. For example, a first configuration item is used to configure whether to generate the code corresponding to the data object. For another example, a second configuration item is used to configure whether to merge adjacent graphics, etc. The configuration result of the configuration item can control the processing logic corresponding to the processing unit, and further control the processing result corresponding to the processing unit.

[0136] Method embodiment two

[0137] Reference Figure 5 The figure shows the step flow chart of the graphic processing method of one embodiment of the present application, which can specifically include the following steps:

[0138] Step 501, determining the object data corresponding to the CAD file; the object data can be structured data;

[0139] Step 502, performing a preset processing according to the object data; the preset processing specifically includes: generating a ledger or a visualization model, or performing a warehouse operation;

[0140] The process of determining the object data corresponding to the CAD file includes: determining a scene template corresponding to the CAD file; processing the CAD file by using the scene template to obtain the object data corresponding to the data object contained in the CAD file; wherein the scene template includes an analysis unit and a processing unit; the analysis unit is used to analyze the CAD file to obtain the elements contained in the CAD file; the processing unit is used to process the elements contained in the CAD file to obtain the object data corresponding to the data object.

[0141] Figure 5The method embodiment shown can be used to illustrate specific applications of the object data corresponding to the CAD file. Since the object data can be structured data, the embodiment of the application can play a role in digitizing data objects such as building units and equipment contained in the CAD file. The object data can provide basic data for asset ledger, operation management, layout planning, data analysis and other applications.

[0142] The embodiment of the application can perform a preset processing according to the object data. The skilled person in the art can determine the preset processing according to the actual application requirements. For example, the preset processing can specifically include generating a ledger or a visualization model, or performing warehouse operations.

[0143] The ledger refers to a book or an electronic spreadsheet file that records the contents of fixed assets, and is used to record detailed information such as purchase time, price, person in charge or department of fixed assets.

[0144] In a specific implementation, the embodiment of the application can generate a corresponding ledger for data objects such as windows, overhead doors, and casement doors. The fields of the ledger can be derived from the object data of the data object. In other words, a data record of the ledger can be generated according to the object data of a data object.

[0145] Referring to Table 5, an example of a ledger of a window according to an embodiment of the application is shown, wherein the fields of the ledger can include: the space to which it belongs, the code, the name, the type, the remarks, etc.

[0146] Table 5

[0147]

[0148] The visualization model can be a two-dimensional model or a three-dimensional model. The generated two-dimensional model or three-dimensional model can be used for visualizing the building corresponding to the CAD file, and can be applied to application scenarios such as visualized leasing of houses and presentation of Internet of Things devices.

[0149] In an example, the two-dimensional model or the three-dimensional model can be a map model. The map model can include map components corresponding to the data objects. The map components can include: standard map components. The information of the standard map components can include: name, code, rendering method, drawing method, spatial attribute, etc.

[0150] The map components can also include: custom map components. Compared with the standard map components, the custom map components add custom attributes. For example, the standard shelves correspond to standard map components, and the shelves created by the user correspond to custom map components.

[0151] In a specific implementation, the three-dimensional model can be displayed. For example, a corresponding map element can be generated according to the map component. The map element can be an instance corresponding to the map component, and the map elements can have a tree relationship. The user can configure attribute values of attribute information such as a name, a code, a rendering mode, a spatial attribute, a drawing mode, and a custom attribute on the map element. In this way, the map element can be rendered and displayed according to the rendering mode corresponding to the map component.

[0152] The warehouse operation can involve any operation link in the operation process from the receipt of the warehouse object such as the material and the commodity to the delivery of the warehouse object. Accordingly, the warehouse operation can include multiple types such as the receipt, the warehousing, the restocking, the picking, the collection, the packaging, the sorting, and the inventory.

[0153] The picking operation can be a process of carrying the target commodity or the warehouse object in the shelf to the picking workstation according to the order requirement.

[0154] An example of the determination process of the picking information is provided, which specifically includes:

[0155] Step A1, a user places an order to a transaction system, and the transaction system generates an order;

[0156] Step A2, the transaction system sends the order to an order system;

[0157] The order can include a SKU (Stock Keeping Unit) of the commodity and a required quantity of the SKU.

[0158] Step A3, the order system establishes a wave task for the order;

[0159] The order system establishes a wave task for the order of the commodity, aggregates multiple orders for a picking operation, and the batch of the operation is usually referred to as a wave task in the industry.

[0160] The embodiment of the application can merge and classify the received at least one order according to different dimensions to obtain at least one wave task, wherein the dimensions can include at least one of the following: commodity type, commodity name, consignee, warehouse area, delivery type, carrier, order cut-off time, and order priority.

[0161] For example, multiple orders in a time period can be aggregated into one wave task. For another example, multiple orders with the same order structure can be aggregated into one wave task; wherein the information of the order structure can include the commodity category, or the commodity name, or the consignee, or the warehouse area, or the delivery type, or the carrier, or the order cut-off time, or the order priority, etc. The aggregation process is equivalent to aggregating a certain batch of orders, so that the subsequent stock occupation action can be performed according to the dimensions of the wave task.

[0162] Step A4, the order system sends an inventory occupation command according to the preset picking strategy.

[0163] After the wave task is established, the order system can determine which storage location in the warehouse system the SKU in the order is picked from to obtain first storage location information, or call the warehouse system according to the inventory clearing rule to occupy the SKU in the order to determine which storage location in the warehouse system the SKU is occupied to obtain second storage location information. The above process is referred to as inventory occupation. For example, if 10 pieces of SKU1 are required in the order, the order system will notify the warehouse system to occupy 10 pieces of SKU1 in the corresponding storage location of SKU1 for the order.

[0164] The picking strategy is a classification strategy according to the picking operation mode of the warehouse system or the package structure. For example, according to the number of goods and the number of pieces, such as single product and single piece, multiple products and multiple pieces, etc., or according to the package structure attributes of the goods, such as fragile goods, front up, etc., the goods are classified.

[0165] Step A5, the warehouse system occupies the storage location of the SKU.

[0166] The warehouse system can occupy the inventory according to the first storage location information or the second storage location information generated by the order system. After the warehouse system successfully occupies the storage location, the first storage location information or the second storage location information is sent to the order system.

[0167] Step A6, the order system generates a picking list or a picking task according to the storage location occupation information returned by the warehouse system.

[0168] The picking list or the picking task can include the name, quantity and occupied storage location information of the target goods.

[0169] Step A7, the order system sends the picking list or the picking task to the warehouse system.

[0170] Step A8, the warehouse system picks the target goods according to the picking list or the picking task.

[0171] The embodiment of the application executes picking operation and other warehouse operations according to the object data, which can improve the execution efficiency of picking operation and other warehouse operations.

[0172] The process of executing the picking operation by the embodiment of the application can include: determining the shelf distance between any two shelves according to the object data corresponding to the any two shelves; and determining the target picking path corresponding to the picking task according to the shelf distance between the any two shelves. The target picking path can be a picking path between the task starting point and the task ending point that meets the predetermined condition. The task ending point of the target picking path can be a picking workstation.

[0173] Suppose that the picking task needs to carry the storage devices containing A, B, C, D, E, and F six kinds of goods, and the storage device can be a box or the like. Suppose that the storage devices corresponding to A, B, C, D, E, and F six kinds of goods are located at different shelves, then the embodiment of the application can plan a path according to the distance between any two shelves to obtain the carrying sequence of A, B, C, D, E, and F six kinds of goods, so as to obtain the path sequence corresponding to the target picking path.

[0174] In actual application, the task starting point can be a position point corresponding to a shelf where a kind of goods is located. For example, the first sorting can be performed according to the distance between the shelf where the goods are located and the task ending point in descending order, and the position points corresponding to the shelves ranked in the top X positions in the first sorting result are taken as the task starting points, and X can be a positive integer such as 1. Of course, other ways can be used to determine the task starting point, and it can be understood that the embodiment of the application does not limit the specific task starting point.

[0175] The predetermined condition can be a pre-set condition, which can be used to constrain the path length. In this way, the embodiment of the application can determine the carrying sequence between the multiple goods contained in the picking task according to the path length corresponding to the predetermined condition.

[0176] In the embodiment of the application, the passing point can correspond to a shelf position point other than the task starting point. For example, the shelf position point corresponding to the goods A is taken as the task starting point, and the shelf position points corresponding to the goods B, C, D, E, and F can be taken as the passing points.

[0177] The predetermined condition can be used to constrain the path length. For example, the predetermined condition can be that the path length is less than a length threshold, or in the case of second sorting the path lengths of the multiple picking paths in ascending order, the path length of the target picking path is ranked in the top Y positions in the second sorting result, and Y can be a positive integer such as 1.

[0178] The embodiment of the application does not limit the specific path planning method. For example, the embodiment of the application can use a graph search method, a rapid expansion random tree method, etc. Among them, the graph search method can include a visual graph method or a Dijkstra method, etc. Among them, the Dijkstra method can perform multiple searches, wherein in one search process, a target position point closest to the task starting point and not visited is searched from the task starting point among the position points (including the passing points and the task ending point), and the distance from the task starting point to other position points is updated with the target position point as an intermediate position point until all position points are intermediate position points.

[0179] In the path planning process, the embodiment of the present application can determine the path length of the picking path according to the shelf distance between any two shelves, so as to determine the target picking path meeting the predetermined condition from the plurality of picking paths.

[0180] For example, the picking path includes: A→B→C→D→E→F→task end point, A→C→B→D→F→E→task end point, etc. The embodiment of the present application can determine the target picking path meeting the predetermined condition from the plurality of picking paths according to the path length of the picking path.

[0181] In actual application, the shelf distance between any two shelves can be determined according to the point coordinates contained in the object data corresponding to the two shelves, such as the point coordinates corresponding to shelf A and shelf B. Moreover, the shelf distance matrix can be generated according to the shelf distance between any two shelves. The elements in the shelf distance matrix can represent the shelf distance between any two shelves.

[0182] In summary, the graphic processing method of the embodiment of the present application can output the corresponding object data for the CAD file meeting the preset specification, so as to realize one-key import and one-key analysis of the CAD file.

[0183] Moreover, the object data corresponding to the output data object can be used by the two-dimensional scene and / or the two-dimensional scene.

[0184] In addition, the scene template of the embodiment of the present application can include a processing unit, an analysis unit and a filtering unit. Different combinations of different processing units, or different combinations of the processing unit and the analysis unit, or different combinations of the processing unit, the analysis unit and the filtering unit can all achieve different processing results. For example, the same processing unit can be matched with different analysis units or filtering units to obtain different processing results. Therefore, the structure of the scene template of the embodiment of the present application has the advantages of high flexibility and wide scene application range.

[0185] Further, the embodiment of the present application can use structured data to express the object data, which makes the object data be directly used and facilitates secondary development.

[0186] Furthermore, the embodiment of the present application can generate the account for the data object of the room, equipment, etc. The fields of the account can include code, name, attribute, etc., which facilitates asset management.

[0187] Moreover, the embodiment of the present application can combine the processing unit, the analysis unit and the filtering unit to quickly obtain the scene model corresponding to the analyzed scene.

[0188] The scene template of the embodiment of the present application has the advantages of high flexibility and wide application range, and can be applied to many technical fields using CAD.

[0189] In addition, the embodiment of the present application can realize custom functions by using a custom processing module.

[0190] The embodiment of the present application can reduce the cost of three-dimensional modeling. Specifically, the embodiment of the present application can obtain the object height and the bottom surface height of the data object such as door and window, floor, mezzanine, etc. by using the facade processing unit, so that the three-dimensional data of the data object can be determined according to the two-dimensional data (such as the point coordinates of the figure) and the height data (the object height and the bottom surface height).

[0191] The embodiment of the present application does not limit the graphic elements in the CAD file. Specifically, the embodiment of the present application can process not only the graphic elements such as line, point, polygon, etc., but also the graphic elements such as block, nested block, stretch block, visibility block, ellipse, circular arc, etc.

[0192] It should be noted that, for the method embodiment, in order to simply describe, it is expressed as a series of action combinations, but those skilled in the art should know that the embodiment of the present application is not limited by the described action sequence, because according to the embodiment of the present application, certain steps can be performed in other order or simultaneously. Secondly, those skilled in the art should know that the embodiments described in the specification all belong to preferred embodiments, and the actions involved are not necessarily required by the embodiment of the present application.

[0193] System embodiment

[0194] Referring to Figure 6 , a structural diagram of a graphic processing system of an embodiment of the present application is shown, which specifically includes: a graphic processing device 601 and a data object 602 in a warehouse;

[0195] The graphic processing device 601 is used to execute the method described above, determine the object data corresponding to the data object for the CAD file containing the data object, output the object data corresponding to the data object 602, and perform a preset processing according to the object data.

[0196] In actual application, the data object 602 in the warehouse can include: rooms and devices, etc. Examples of the devices can include: shelves, etc.

[0197] In specific implementation, the graphic processing apparatus 601 can receive a CAD file; determine a scene template corresponding to the CAD file; process the CAD file by using the scene template to obtain object data corresponding to a data object contained in the CAD file; wherein the scene template comprises an analysis unit and a processing unit; the analysis unit is configured to analyze the CAD file to obtain an element contained in the CAD file; and the processing unit is configured to process the element contained in the CAD file to obtain the object data corresponding to the data object.

[0198] In specific implementation, the element comprises a graphic element; and the processing unit comprises a graphic processing unit and a data object processing unit.

[0199] Then the processing of the CAD file comprises: determining a graphic corresponding to the graphic element by using the graphic processing unit; and processing the graphic corresponding to the graphic element by using the data object processing unit to obtain object graphic data corresponding to the data object.

[0200] In specific implementation, the element comprises a line element; and the processing unit comprises a table processing unit and a text processing unit.

[0201] The processing of the CAD file comprises: determining a table corresponding to the line element by using the table processing unit; and analyzing text contained in the table by using the text processing unit to obtain object attribute data corresponding to the data object.

[0202] In specific implementation, the scene template can further comprise a filtering unit; the filtering unit is configured to determine target graphic data corresponding to a preset range and / or a preset layer from the CAD file; and the analysis unit is further configured to obtain an element contained in the target graphic data.

[0203] In specific implementation, the process of determining the scene template corresponding to the CAD file can specifically comprise: presenting at least one scene template option; receiving a target scene template option selected by a user; and determining the scene template corresponding to the CAD file according to a scene template corresponding to the target scene template option.

[0204] In specific implementation, the process of obtaining the scene template specifically comprises: creating a scene template option; determining an analysis unit and a processing unit corresponding to the scene template option; and saving a mapping relationship between the analysis unit and the processing unit and the scene template option.

[0205] In a specific implementation, the object data can be structured data; the graphics processing apparatus 601 can further perform preset processing according to the object data; the preset processing includes: generating a ledger or a visual model, or performing a warehouse operation.

[0206] In summary, the graphics processing system of the embodiment of the present application can output corresponding object data for the CAD file conforming to the preset specification, and thus can realize one-key import and one-key analysis of the CAD file.

[0207] In addition, the output data object corresponds to object data that can be used by a two-dimensional scene and / or a two-dimensional scene.

[0208] In addition, the scene template of the embodiment of the present application can include a processing unit, an analysis unit and a filtering unit. Different combinations of different processing units, or different combinations of processing units and analysis units, or different combinations of processing units, analysis units and filtering units can all achieve different processing results. For example, the same processing unit can be combined with different analysis units or filtering units to obtain different processing results. Therefore, the structure of the scene template of the embodiment of the present application has the advantages of high flexibility and wide scene application range.

[0209] Further, the embodiment of the present application can use structured data to express object data, which makes the object data directly usable and facilitates secondary development.

[0210] Further, the embodiment of the present application can generate a ledger for data objects such as rooms and equipment, and the fields of the ledger can include code, name, attribute, etc., facilitating asset management.

[0211] In addition, the embodiment of the present application can combine the processing unit, the analysis unit and the filtering unit to quickly obtain a scene model corresponding to an analyzed scene.

[0212] In the case that the structure of the scene template of the embodiment of the present application has the advantages of high flexibility and wide scene application range, the embodiment of the present application can be applied to many technical fields using CAD.

[0213] In addition, the embodiment of the present application can use a custom processing module to implement custom functions.

[0214] The embodiment of the present application can reduce the cost of three-dimensional modeling. Specifically, the embodiment of the present application can use the elevation view processing unit to obtain the object height and the bottom surface height of data objects such as doors, windows, floors and interlayers, so that the three-dimensional data of the data objects can be determined according to two-dimensional data (such as the point coordinates of the graphics) and height data (object height and bottom surface height).

[0215] The embodiments of the present application are not limited to the graphic elements in the CAD file. Specifically, the embodiments of the present application can process not only the graphic elements such as lines, points, polygons, but also the graphic elements such as blocks, nested blocks, stretched blocks, visibility blocks, ellipses, circular arcs, and the like.

[0216] The embodiments of the present application further provide a non-volatile readable storage medium, which stores one or more modules (programs). When the one or more modules are applied to a device, the device can execute instructions of the steps of the methods in the embodiments of the present application.

[0217] The embodiments of the present application provide one or more machine readable media storing instructions, which, when executed by one or more processors, cause an electronic device to perform the methods of one or more of the above embodiments. In the embodiments of the present application, the electronic device includes a server, a terminal device, and the like.

[0218] The embodiments of the present application can be implemented as an apparatus configured in a desired manner using any appropriate hardware, firmware, software, or any combination thereof. The apparatus can include a server (cluster), a terminal, and the like. Figure 7 An exemplary apparatus 1700 that can be used to implement various embodiments described herein is shown schematically.

[0219] For one embodiment, Figure 7 An exemplary apparatus 1700 is shown having one or more processors 1702, a control module (chipset) 1704 coupled to at least one of the processor(s) 1702, a memory 1706 coupled to the control module 1704, a non-volatile memory (NVM) / storage device 1708 coupled to the control module 1704, one or more input / output devices 1710 coupled to the control module 1704, and a network interface 1712 coupled to the control module 1704.

[0220] The processor(s) 1702 can include one or more single core or multi core processors, which can include any combination of general-purpose processors or dedicated processors (such as graphics processors, application processors, baseband processors, etc.). In some embodiments, the apparatus 1700 can function as a server, a terminal, and the like as described in the embodiments of the present application.

[0221] In some embodiments, the apparatus 1700 can include one or more computer readable media (such as the memory 1706 or the NVM / storage device 1708) having instructions 1714 and one or more processors 1702 incorporated with the one or more computer readable media configured to execute the instructions 1714 to implement modules to perform the actions described in the present disclosure.

[0222] For one embodiment, control module 1704 can include any suitable interface controllers to provide for any suitable interface to at least one of processor(s) 1702 and / or any suitable device or component in communication with control module 1704.

[0223] Control module 1704 can include a memory controller module to provide an interface to memory 1706. The memory controller module can be a hardware module, a software module, and / or a firmware module.

[0224] Memory 1706 can be used to, for example, load and store data and / or instructions 1714 for device 1700. For one embodiment, memory 1706 can include any suitable volatile memory, such as suitable DRAM. In some embodiments, memory 1706 can include double data rate type four synchronous dynamic random access memory (DDR4 SDRAM).

[0225] For one embodiment, control module 1704 can include one or more input / output controllers to provide an interface to NVM / storage device 1708 and input / output device(s) 1710.

[0226] For example, NVM / storage device 1708 can be used to store data and / or instructions 1714. NVM / storage device 1708 can include any suitable non-volatile memory (e.g., flash memory) and / or can include any suitable non-volatile storage device(s) (e.g., one or more hard disk drives (HDDs), one or more compact disk (CD) drives, and / or one or more digital versatile disk (DVD) drives).

[0227] NVM / storage device 1708 can include a storage resource that is part of a device on which device 1700 is installed, or that is accessed by that device, which can not necessarily be part of that device. For example, NVM / storage device 1708 can be accessed by a network via input / output device(s) 1710.

[0228] The input / output device(s) 1710 can provide an interface between the apparatus 1700 and any other suitable device, and can include a communication component, an audio component, a sensor component, etc. The network interface 1712 can provide an interface between the apparatus 1700 and one or more networks, and the apparatus 1700 can communicate wirelessly with one or more components of a wireless network in accordance with any of one or more wireless network standards and / or protocols, such as to access a wireless network based on a communication standard, such as WiFi, 2G, 3G, 4G, 5G, etc., or a combination thereof.

[0229] For one embodiment, at least one of the processor(s) 1702 can be packaged together with logic for one or more controllers of the control module 1704, such as a memory controller module. For one embodiment, at least one of the processor(s) 1702 can be packaged together with logic for one or more controllers of the control module 1704 to form a system in a package (SiP). For one embodiment, at least one of the processor(s) 1702 can be fabricated together with logic for one or more controllers of the control module 1704 on the same die. For one embodiment, at least one of the processor(s) 1702 can be fabricated together with logic for one or more controllers of the control module 1704 on the same die to form a system on a chip (SoC).

[0230] In various embodiments, the apparatus 1700 can be, but is not limited to, a server, a desktop computing device, or a mobile computing device (e.g., a laptop computing device, a handheld computing device, a tablet, a netbook, etc.) an end device. In various embodiments, the apparatus 1700 can have more or less components, and / or different architectures. For example, in some embodiments, the apparatus 1700 includes one or more cameras, a keyboard, a liquid crystal display (LCD) screen (including a touch screen display), a non-volatile memory port, multiple antennas, a graphics chip, an application-specific integrated circuit (ASIC), and a speaker.

[0231] Wherein, the master chip can be used as the processor or the control module in the apparatus 1700, the sensor data, the location information and the like are stored into the memory or the NVM / storage device, the sensor group can be used as the input / output device, and the communication interface can include the network interface.

[0232] Embodiments of the present application also provide an electronic device, comprising: a processor; and a memory having stored therein executable code that, when executed, causes the processor to perform the method according to any one or more of the embodiments of the present application.

[0233] The embodiments of the present application further provide one or more machine readable medium having stored executable code, which when executed cause a processor to perform the method according to one or more of the embodiments of the present application.

[0234] For the apparatus embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts are described in the part of the description of the method embodiments.

[0235] Each of the embodiments in the present specification is described in a progressive manner, and each embodiment focuses on the difference from other embodiments, and the same and similar parts between the embodiments can be referred to each other.

[0236] The embodiments of the present application are described with reference to flowcharts and / or block diagrams according to the method, terminal device (system), and computer program product of the embodiments of the present application. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, and the combination of the flows and / or blocks in the flowcharts and / or block diagrams can be implemented by computer program instructions. These computer program instructions can be provided to a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable graphics processing terminal device processor to produce a machine, so that the instructions executed by the processor of the computer or other programmable graphics processing terminal device produce a device that implements the functions specified in one or more flows of the flowcharts and / or one or more blocks of the block diagrams.

[0237] These computer program instructions can also be stored in a computer readable memory that can guide the computer or other programmable graphics processing terminal device to work in a specific way, so that the instructions stored in the computer readable memory produce a product including instruction devices, which implement the functions specified in one or more flows of the flowcharts and / or one or more blocks of the block diagrams.

[0238] These computer program instructions can also be loaded into a computer or other programmable graphics processing terminal device, so that a series of operation steps are performed on the computer or other programmable terminal device to produce a computer implemented process, so that the instructions executed on the computer or other programmable terminal device provide steps for implementing the functions specified in one or more flows of the flowcharts and / or one or more blocks of the block diagrams.

[0239] Although the preferred embodiments of the present application have been described, those skilled in the art can make additional changes and modifications to the embodiments once they know the basic inventive concept. Therefore, the appended claims are intended to include the preferred embodiments and all changes and modifications falling within the scope of the embodiments of the present application.

[0240] Finally, it is to be understood that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting; it is not intended to exclude myriad other embodiments of the present application that other inventors can develop based on the same general inventive concepts embodied by the described embodiments. That is, although the present application is described in terms of particular embodiments and implementations, it is to be understood that the terminology used is for the purpose of descriptive clarity and that it should be taken in its broadest possible sense. For example, the terms "first" and "second" are used herein only to differentiate one element from another, without necessarily requiring or implying any actual relationship or order between or among the elements. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but can include other elements not expressly listed or inherent to such process, method, article, or apparatus. An element proceeded by "comprises... a" does not, without more constraints, exclude the presence of additional identical elements in the process, method, article, or apparatus that comprises the element.

[0241] The above provides a kind of graphic processing method, a kind of graphic processing system, a kind of electronic equipment and a kind of storage medium provided by the present application, are introduced in detail, the principle and implementation mode of the present application are described in this paper by specific example, the above example is only for helping to understand the method of the present application and its core idea;For those skilled in the art, according to the idea of the present application, there will be changes in specific implementation mode and application range, as described above, the content of the specification should not be understood as the limitation of the present application.

Claims

1. A method of graphics processing, the method comprising: The method comprises: receiving a CAD file; determining a scene template corresponding to the CAD file; the determination comprises: presenting at least one scene template option; receiving a target scene template option selected by a user; and determining the scene template corresponding to the CAD file according to the scene template corresponding to the target scene template option; processing the CAD file by using the scene template to obtain object data corresponding to a data object contained in the CAD file; wherein the scene template comprises an analysis unit and a processing unit; the analysis unit is configured to analyze the CAD file to obtain an element contained in the CAD file; the processing unit is configured to process the element contained in the CAD file to obtain the object data corresponding to the data object; and the analysis unit converts the CAD file into a graphic interchange format data and extracts data of the element from the graphic interchange format data according to a CAD format specification; outputting the object data corresponding to the data object.

2. The method of claim 1, wherein, The element comprises a graphic element; and the processing unit comprises a graphic processing unit and a data object processing unit. The processing of the CAD file comprises: determining a graphic corresponding to the graphic element by using the graphic processing unit; processing the graphic corresponding to the graphic element by using the data object processing unit to obtain object graphic data corresponding to the data object.

3. The method of claim 1, wherein, The element comprises a line element; and the processing unit comprises a table processing unit and a text processing unit. The processing of the CAD file comprises: determining a table corresponding to the line element by using the table processing unit; analyzing text contained in the table by using the text processing unit to obtain object attribute data corresponding to the data object.

4. The method of claim 1, wherein, The scene template further comprises a filtering unit; the filtering unit is configured to determine target graphic data corresponding to a preset range and / or a preset layer from the CAD file; and the analysis unit is further configured to obtain an element contained in the target graphic data.

5. The method according to any one of claims 1 to 4, characterized in that, The obtaining process of the scene template comprises: creating a scene template option; determining an analysis unit and a processing unit corresponding to the scene template option; saving a mapping relationship among the analysis unit, the processing unit and the scene template option.

6. A method of graphics processing, the method comprising: The method comprises: determining object data corresponding to a CAD file; the object data is structured data; performing a preset processing according to the object data; the preset processing comprises: generating a ledger or a visual model, or performing a warehouse operation. The process of determining the object data corresponding to the CAD file comprises: determining a scene template corresponding to the CAD file; processing the CAD file by using the scene template to obtain the object data corresponding to the data object contained in the CAD file; the scene template comprises: an analysis unit and a processing unit; the analysis unit is used to analyze the CAD file to obtain the elements contained in the CAD file; the processing unit is used to process the elements contained in the CAD file to obtain the object data corresponding to the data object; the analysis unit converts the CAD file into graphic interchange format data, and extracts the data of the elements from the graphic interchange format data according to the CAD format specification; the process of determining the scene template corresponding to the CAD file comprises: presenting at least one scene template option; receiving a target scene template option selected by a user; determining the scene template corresponding to the CAD file according to the scene template corresponding to the target scene template option.

7. A graphics processing system, characterized by The system comprises: a graphic processing device and a data object in a warehouse; The graphic processing device is used to execute the method in any one of claims 1-6, determine the object data corresponding to the data object for the CAD file containing the data object, output the object data corresponding to the data object, and perform a preset process according to the object data.

8. An electronic device, comprising: comprises: a processor; and a memory having executable code stored thereon, which, when executed, causes the processor to execute the method in any one of claims 1-6.

9. One or more machine-readable media having stored thereon executable code that, when executed, cause a processor to perform the method in any one of claims 1-6.

Citation Information

Patent Citations

  • Data rendering method applied to BIM model file

    CN112270756A

  • Fabricated building BIM generation method and related equipment

    CN113901550A