Ship two-dimensional sketch data set construction method and system, storage medium and equipment

By constructing a ship two-dimensional sketch dataset, extracting parametric model styles and rules, and disassembling and annotating reference sample sets, the problem of inconsistent formats and lack of semantics and parameterized expressions of ship design data is solved, and the construction of data sets suitable for deep learning is realized, reducing the cost of data collection and labeling.

CN119691899APending Publication Date: 2025-03-25中国船舶集团海舟系统技术有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411776451.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-05
Publication Date
2025-03-25

AI Technical Summary

Technical Problem

There are problems such as inconsistent format and standards of ship design data, lack of semantic and parameterized expression, difficulty in collecting, and high cost of manual labeling, which leads to difficulties in processing ship two-dimensional sketch data.

Method used

By obtaining ship two-dimensional sketch data, building a reference sample set, extracting parametric model styles and rules, disassembling the reference sample set, building a parameterized model, annotating and generating and outputting structured parameter files, drawing or converting sketch data, and generating a redraw mask file, multiple problems in data set construction are solved.

Benefits of technology

The ship board rack sketch dataset with controllable feature distribution, accurate parameters and labels are realized for deep learning, solving the problems of inconsistent data formats, lack of semantics and parameterized expression, and reducing the cost of data collection and labeling.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119691899A_ABST
    Figure CN119691899A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of ships, in particular to a ship two-dimensional sketch data set construction method and system, a storage medium and equipment, and the method comprises the steps: constructing a ship grillage two-dimensional sketch reference sample set; initializing setting of data set quantity and drawing parameters; calculating parameters of the parameterized model according to the initialized setting parameters; extracting parameterized model styles and rules; constructing a grillage parameterized model according to the reference sample and the configuration parameters; grillage inner ribs and lightening holes are generated according to rules and strategies; converting model parameters into structured description, and outputting a structured parameter file, semantic description or label; and drawing the image, outputting the image, generating a redrawing area mask, and outputting a grillage redrawing mask file. According to the method, a ship grillage sketch data set which is controllable in feature distribution, accurate in parameters and labels and suitable for deep learning is realized through a forward construction method.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of ship technology, and in particular to a method, system, storage medium and device for constructing a two-dimensional sketch data set of a ship. Background Art

[0002] The 2D sketch design of ship frame is realized by ship CAD design software, which consists of multiple complex steps, including: decomposition of hull structure, layout of frame, accurate calculation of size and position marking and drawing output. The deep learning dataset of ship 2D sketch is mainly used to help deep learning models to perform structure recognition, shape reasoning and design generation, especially in automated design and CAD drawing processing. The 2D sketch dataset of ship design includes detailed design drawings such as hull profile and frame structure. The dataset contains detailed structural information and is used for deep learning model training in the fields of ship design automation, hull structure optimization, and manufacturing process automation. Ship design data has problems such as inconsistent formats and standards, lack of semantic and parametric expression, difficulty in collection, and high cost of manual annotation. Therefore, the method of constructing a 2D ship sketch dataset suitable for deep learning based on the above problems is of great significance. Summary of the invention

[0003] (I) Purpose of the invention

[0004] In order to solve the technical problems existing in the background technology, the present invention proposes a method, system, storage medium and device for constructing a two-dimensional sketch data set of a ship.

[0005] (II) Technical solution

[0006] In order to solve the above problems, the first aspect of the present invention provides a method for constructing a two-dimensional sketch data set of a ship, comprising:

[0007] Obtain ship 2D sketch data to build a reference sample set;

[0008] Extract parameterized model styles and rules;

[0009] Disassemble the collected reference sample set, including the outer contour, the connection structure of the outer contour, and the internal design structure;

[0010] Constructing a corresponding parametric model based on the outer contour, the connection structure of the outer contour, and the style of the internal design structure combined with the extracted style and rules;

[0011] According to data requirements, initialize the number of data sets and receipt parameters;

[0012] Calculate and configure the data feature distribution parameters, and calculate the actual parameters of the configured original parameters in combination with the parameterized model rules to realize the parameter configuration of the parameterized model;

[0013] Generate the internal style of the parametric model according to the rules and strategies based on the 2D sketch of the ship;

[0014] Generate annotations for parametric models and output structured parameter files;

[0015] Draw or convert the sketch, and output and save the sketch data;

[0016] For the generative model redrawing task, the redrawing area generation rules are designed, the redrawing area mask is generated, and the sketch redrawing mask file is output.

[0017] Preferably, the extracted parameterized model styles and rules include but are not limited to the connection mode of the reinforcing ribs, the opening position of the lightening holes, the aperture style and size, and the obstacle avoidance constraints with the surrounding structures.

[0018] Preferably, in the annotation generation of the parameterized model, the annotation methods include model parameters, semantic annotation, and pixel-level annotation graph.

[0019] Preferably, the output structured parameter file includes json and xml, and adopts any one or more combinations of semantic text description, digital label, and color label.

[0020] Preferably, the sketch is drawn or converted, and the drawing method includes using CAD instructions, cadquery, freecad macro statements, or drawing libraries matpl otlib, skia to draw it into an image or CAD format data, or convert it into a vector diagram.

[0021] Preferably, the output and saving of sketch data includes image files png, vector graphics svg, and CAD format files dwg; the output sketch redrawing mask files include image formats jpg and png.

[0022] Preferably, in the step of acquiring the two-dimensional sketch data of the ship to construct a reference sample set, a method for acquiring the sample set includes:

[0023] Acquire collected sketch data, and input the sketch data into a model, wherein the sketch data includes discretized graph structure data;

[0024] The collected sketch data is iteratively processed according to the model to obtain a reference sample set.

[0025] The second aspect of the present invention provides a device for constructing a two-dimensional sketch data set of a ship, comprising:

[0026] An acquisition module is used to acquire two-dimensional sketch data of ships to construct a reference sample set;

[0027] Extraction module, used to extract parameterized model styles and rules;

[0028] The disassembly module is used to disassemble the collected reference sample set, including the outer contour, the connection structure of the outer contour, and the internal design structure;

[0029] A parametric model building module, used to build a corresponding parametric model according to the outer contour, the connection structure of the outer contour and the style of the internal design structure combined with the extracted style and rules;

[0030] The initialization module is used to initialize the number of data sets and receipt parameters according to data requirements;

[0031] The calculation module is used to calculate and configure the data feature distribution parameters, and calculate the actual parameters of the configured original parameters in combination with the parameterized model rules to realize the parameter configuration of the parameterized model;

[0032] The internal style generation module is used to generate the internal style of the parametric model according to the rules and strategies based on the two-dimensional sketch of the ship;

[0033] The annotation module is used to generate annotations for the parametric model and output structured parameter files;

[0034] A drawing conversion module is used to draw or convert the sketch and output and save the sketch data;

[0035] The redrawing module is used to design the redrawing area generation rules for the generation model redrawing task, generate the redrawing area mask, and output the sketch redrawing mask file.

[0036] A third aspect of the present invention provides a computer-readable storage medium, wherein the medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, the steps of the method for constructing a two-dimensional sketch dataset of a ship are implemented.

[0037] A fourth aspect of the present invention provides a device, comprising:

[0038] A memory for storing computer executable instructions;

[0039] A processor is used to execute the computer executable instructions to implement the steps of the method for constructing a two-dimensional sketch data set of a ship.

[0040] The above technical solution of the present invention has the following beneficial technical effects:

[0041] The present invention realizes a ship frame sketch dataset with controllable feature distribution, accurate parameters and labels suitable for deep learning through a forward construction method, so as to solve the problems of inconsistent formats and standards, lack of semantic and parametric expression, difficulty in collection, and high cost of manual labeling in ship design data. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 The figure is a flow chart of the method of the present invention. DETAILED DESCRIPTION

[0043] In order to make the purpose, technical scheme and advantages of the present invention clearer, the present invention is further described in detail below in conjunction with specific embodiments and with reference to the accompanying drawings. It should be understood that these descriptions are only exemplary and are not intended to limit the scope of the present invention. In addition, in the following description, the description of well-known structures and technologies is omitted to avoid unnecessary confusion of the concept of the present invention.

[0044] refer to Figure 1 To solve the above problems, this application adopts the following technical solutions:

[0045] refer to Figure 1 The first aspect of the present invention provides a method for constructing a two-dimensional sketch data set of a ship, comprising:

[0046] Obtain ship 2D sketch data to build a reference sample set;

[0047] Extract design rules of parametric models, such as the connection method of reinforcement ribs, the opening location of relief holes, the aperture style and size, and the obstacle avoidance constraints with surrounding structures.

[0048] Disassemble the collected reference sample set, including the outer contour, the connection structure of the outer contour, and the internal design structure;

[0049] Constructing a corresponding parametric model based on the outer contour, the connection structure of the outer contour, and the style of the internal design structure combined with the extracted style and rules;

[0050] According to data requirements, initialize the number of data sets and receipt parameters;

[0051] Calculate and configure the data feature distribution parameters, and calculate the actual parameters of the configured original parameters in combination with the parameterized model rules to realize the parameter configuration of the parameterized model;

[0052] Generate the internal style of the parametric model according to the rules and strategies based on the 2D sketch of the ship;

[0053] The parametric model is annotated and generated, and a structured parameter file is output. The annotation methods include model parameters, semantic annotation, and pixel-level annotation map. The output structured parameter file includes json and xml, and uses any one or more combinations of semantic text descriptions, digital labels, and color annotations.

[0054] Draw or convert the sketch, and output and save the sketch data;

[0055] Design redrawing area generation rules for the generated model redrawing task, generate redrawing area mask, and output sketch redrawing mask file. Drawing methods include using CAD instructions, cadquery, freecad macro statements, or drawing libraries matpl.lib, skia to draw as images or CAD format data, or convert to vector graphics. The output and saved sketch data include image files png, vector graphics svg, CAD format files dwg; the output sketch redrawing mask file includes image formats jpg, png.

[0056] In an optional embodiment, in the step of acquiring the two-dimensional sketch data of the ship to construct a reference sample set, a method for acquiring the sample set includes:

[0057] Acquire collected sketch data, input the sketch data into a model, wherein the sketch data includes discretized graph structure data; iteratively process the collected sketch data according to the model to obtain a reference sample set.

[0058] The second aspect of the present invention proposes a device for constructing a two-dimensional sketch data set of a ship, including: an acquisition module, used to acquire two-dimensional sketch data of a ship to construct a reference sample set; an extraction module, used to extract parameterized model styles and rules; a disassembly module, used to disassemble the collected reference sample set, including the outer contour, the connection structure of the outer contour, and the internal design structure; a parameterized model construction module, used to construct a corresponding parameterized model according to the style of the outer contour, the connection structure of the outer contour, and the internal design structure combined with the extracted style and rules; an initialization module, used to initialize the number of data sets and receipt parameters according to data requirements; a calculation module, used to calculate the number of data sets and the number of receipt parameters ... A module is used to calculate and configure the data feature distribution parameters, and to calculate the actual parameters of the configured original parameters in combination with the parametric model rules to realize the parameter configuration of the parametric model; an internal style generation module is used to generate the internal style of the parametric model according to the rules and strategies based on the two-dimensional sketch of the ship; an annotation module is used to generate annotations for the parametric model and output a structured parameter file; a drawing conversion module is used to draw or convert the sketch and output and save the sketch data; a redrawing module is used to design the redrawing area generation rules for the generated model redrawing task, generate the redrawing area mask, and output the sketch redrawing mask file.

[0059] A third aspect of the present invention provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are executed by a processor, the steps of the method for constructing a two-dimensional sketch dataset of a ship as described in any one of claims 1 to 7 are implemented.

[0060] A fourth aspect of the present invention provides a device, comprising:

[0061] A memory for storing computer executable instructions;

[0062] A processor is used to execute the computer executable instructions to implement the steps of the method for constructing a two-dimensional sketch dataset of a ship as described in any one of claims 1 to 7.

[0063] It will be appreciated by those skilled in the art that all or some of the steps, systems, and functional modules / units in the methods disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. In hardware implementations, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed by several physical components in cooperation. Some or all components may be implemented as software executed by a processor, such as a digital signal processor or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-transitory medium) and a communication medium (or temporary medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer. In addition, it is well known to those of ordinary skill in the art that communication media typically contain computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.

[0064] The above shows and describes the basic principles, main features and advantages of the present invention. Those skilled in the art should understand that the present invention is not limited by the above embodiments, and the above embodiments and descriptions are only preferred examples of the present invention, and are not intended to limit the present invention. Without departing from the spirit and scope of the present invention, the present invention may have various changes and improvements, and these changes and improvements all fall within the scope of the present invention to be protected.

Claims

1. A method for constructing a two-dimensional ship sketch dataset, characterized in that: include: Obtain ship 2D sketch data to build a reference sample set; Extract parameterized model styles and rules; Disassemble the collected reference sample set, including the outer contour, the connection structure of the outer contour, and the internal design structure; Constructing a corresponding parametric model based on the outer contour, the connection structure of the outer contour, and the style of the internal design structure combined with the extracted style and rules; According to data requirements, initialize the number of data sets and receipt parameters; Calculate and configure the data feature distribution parameters, and calculate the actual parameters of the configured original parameters in combination with the parameterized model rules to realize the parameter configuration of the parameterized model; Generate the internal style of the parametric model according to the rules and strategies based on the 2D sketch of the ship; Generate annotations for parametric models and output structured parameter files; Draw or convert the sketch, and output and save the sketch data; For the generative model redrawing task, the redrawing area generation rules are designed, the redrawing area mask is generated, and the sketch redrawing mask file is output.

2. The method for constructing a two-dimensional ship sketch dataset according to claim 1, characterized in that: The extracted parameterized model styles and rules include, but are not limited to, the connection mode of the reinforcing ribs, the opening position of the lightening holes, the aperture style and size, and the obstacle avoidance constraints with the surrounding structures.

3. The method for constructing a two-dimensional ship sketch dataset according to claim 1, characterized in that: In the annotation generation of the parameterized model, the annotation methods include model parameters, semantic annotation, and pixel-level annotation graph.

4. The method for constructing a two-dimensional ship sketch dataset according to claim 1, characterized in that: The output structured parameter file includes json and xml, and adopts any one or more combinations of semantic text description, digital label, and color label.

5. The method for constructing a two-dimensional ship sketch dataset according to claim 1, characterized in that: The sketch is drawn or converted, and the drawing method includes using CAD instructions, cadquery, freecad macro statements, or drawing libraries matplotlib and skia to draw it into an image or CAD format data, or convert it into a vector diagram.

6. The method for constructing a two-dimensional ship sketch dataset according to claim 1, characterized in that: The output and saved sketch data include image files png, vector graphics svg, and CAD format files dwg; the output sketch redrawing mask files include image formats jpg and png.

7. The method for constructing a two-dimensional ship sketch dataset according to claim 1, characterized in that: In the process of obtaining the two-dimensional sketch data of the ship to construct a reference sample set, the method of obtaining the sample set includes: Acquire collected sketch data, and input the sketch data into a model, wherein the sketch data includes discretized graph structure data; The collected sketch data is iteratively processed according to the model to obtain a reference sample set.

8. A device for constructing a two-dimensional sketch data set of a ship, characterized in that: include: An acquisition module is used to acquire two-dimensional sketch data of ships to construct a reference sample set; Extraction module, used to extract parameterized model styles and rules; The disassembly module is used to disassemble the collected reference sample set, including the outer contour, the connection structure of the outer contour, and the internal design structure; A parametric model building module, used to build a corresponding parametric model according to the outer contour, the connection structure of the outer contour and the style of the internal design structure combined with the extracted style and rules; The initialization module is used to initialize the number of data sets and receipt parameters according to data requirements; The calculation module is used to calculate and configure the data feature distribution parameters, and calculate the actual parameters of the configured original parameters in combination with the parameterized model rules to realize the parameter configuration of the parameterized model; The internal style generation module is used to generate the internal style of the parametric model according to the rules and strategies based on the two-dimensional sketch of the ship; The annotation module is used to generate annotations for the parametric model and output structured parameter files; A drawing conversion module is used to draw or convert the sketch and output and save the sketch data; The redrawing module is used to design the redrawing area generation rules for the generation model redrawing task, generate the redrawing area mask, and output the sketch redrawing mask file.

9. A computer-readable storage medium, characterized in that: The medium stores computer executable instructions, which, when executed by a processor, implement the steps of the method for constructing a two-dimensional sketch dataset of a ship as described in any one of claims 1 to 7.

10. A device, characterized in that: include: A memory for storing computer executable instructions; A processor is used to execute the computer executable instructions to implement the steps of the method for constructing a two-dimensional sketch dataset of a ship as described in any one of claims 1 to 7.