Method, device and equipment for generating large screen system based on image and storage medium
Feature extraction and mapping of design drawings are carried out through deep learning models to achieve automated visual large-screen configuration, solving the problems of low configuration efficiency and poor maintainability in the existing technology, improving configuration efficiency and accuracy, and supporting flexible modularization layout.
Patent Information
- Application Number
- CN202410712061.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-03
- Publication Date
- 2024-08-30
AI Technical Summary
In the existing technology, configuring a large visualization screen is inefficient, complex to operate, and has poor maintenance. Especially when creating complex layouts and interactive functions, it requires a lot of time and energy, and data updates require manual operations, which are prone to human errors and maintenance difficulties.
By constructing a training data set, the deep learning model is used to perform feature extraction and image recognition on the design drawings, generate feature maps, and map them to the user display interface to achieve automated visual component matching and layout configuration, improving configuration efficiency and accuracy.
Through automated feature extraction and mapping, fast and accurate visual large-screen configuration is achieved, reducing the complexity and error rate of manual operations, improving configuration efficiency and maintainability, and supporting flexible modular layout and multiple image recognition.
Smart Images

Figure CN118570580A
Abstract
Description
Technical Field
[0001] The present application relates to the field of image processing, and in particular to a method, device, equipment and storage medium for generating a large-screen system based on an image. Background Art
[0002] Visual large screens have been widely used in electronic exhibitions, conferences and other fields. However, configuring and building visual large screens usually requires a lot of time and effort, especially when creating complex layouts and interactive functions.
[0003] The traditional configuration screen relies on manual work, using front-end development and data visualization skills to configure and build the visualization screen. When the data source changes, the visualization screen data needs to be manually updated, which is cumbersome and has poor maintainability. Summary of the invention
[0004] The present application provides a method, device, equipment and storage medium for generating a large screen system based on an image, so as to solve the problems in the prior art of low efficiency in configuring a large visualization screen, complex operation and poor maintainability.
[0005] In a first aspect, the present application provides a method for generating a large-screen system based on an image, the method comprising:
[0006] A training data set is constructed according to a plurality of samples, each of which includes a design drawing and a plurality of image blocks obtained by slicing the design drawing;
[0007] Performing model training on the training data set to obtain training results, the training results including multiple feature graphs obtained by extracting features from each design graph;
[0008] The classification information of each feature map is obtained, and multiple feature maps and the classification information corresponding to each feature map are mapped to a user display interface to obtain an image of the user display interface, wherein the image of the user display interface is the same as the image of the mapped feature map, and each classification information describes the feature map as a whole.
[0009] In a possible design, the model is trained on the training data set to obtain training results, including:
[0010] Inputting the training data set into a pre-stored deep learning model to obtain multiple sample data sets, wherein each sample data set includes multiple image data, and each image data is obtained after the deep learning model performs image recognition on an image block;
[0011] Inputting the sample data set into the deep learning model to obtain a plurality of feature maps; wherein each feature map is obtained after the deep learning model extracts features from at least one image data;
[0012] The classification information of each feature map is obtained, and the multiple feature maps and the classification information corresponding to each feature map are mapped to the user display interface to obtain an image of the user display interface, including:
[0013] Perform semantic segmentation on multiple feature maps to obtain classification information of each feature map;
[0014] Add each classification information to the corresponding feature map to obtain the visualization component of each feature map;
[0015] The plurality of visualization components are mapped to a user display interface to obtain an image of the user display interface.
[0016] In one possible design, multiple deep learning algorithms are pre-stored in the deep learning model, and the target design graph is any one of the multiple design graphs;
[0017] For the target design graph, the training data set is input into the pre-stored deep learning model to obtain multiple sample data sets, including:
[0018] According to the multiple image blocks of the target design drawing, respectively determine the deep learning algorithm corresponding to each image block of the target design drawing from a plurality of deep learning algorithms;
[0019] Using a deep learning algorithm corresponding to each image block of the target design drawing, image recognition is performed on each image block of the target design drawing to obtain image data of each image block of the target design drawing;
[0020] A sample data set of the target design drawing is obtained according to the image data of each image block of the target design drawing.
[0021] In one possible design, for a target design graph, a sample data set is input into a deep learning model to obtain multiple feature graphs, including:
[0022] Through the deep learning model, multi-layer perception is performed on the sample data set of the target design drawing to obtain multiple feature maps of the target design drawing.
[0023] In a possible design, semantic segmentation is performed on multiple feature maps to obtain classification information of each feature map, including:
[0024] Annotate each feature map at the pixel level to obtain the semantic class label of each pixel in each feature map;
[0025] The semantic class table label of each pixel of each feature map is added to the corresponding feature map to obtain the classification information of each feature map.
[0026] In one possible design, the user display interface includes a plurality of display modules;
[0027] Map multiple visualization components to the user display interface to obtain an image of the user display interface, including:
[0028] Multiple visualization components are matched with multiple display modules to obtain an image of a user display interface; the size of the visualization component is positively correlated with the matching number of the display modules.
[0029] In a possible design, the target design diagram is any one of a plurality of design diagrams, and the target visualization component is any one of a plurality of visualization components of the target design diagram;
[0030] For the target visualization component, multiple visualization components are matched with multiple display modules to obtain an image of a user display interface, including:
[0031] According to the position information of the target visualization component in the target design diagram, the target visualization component is matched with at least one display module to obtain an image of the target visualization component on the user display interface.
[0032] In a second aspect, the present application provides a large-screen system device based on image generation, the device comprising:
[0033] An acquisition module, used to construct a training data set based on multiple samples, each sample including a design drawing and multiple image blocks obtained by slicing the design drawing;
[0034] A training module, used to perform model training on a training data set to obtain training results, wherein the training results include multiple feature graphs obtained by extracting features from each design graph;
[0035] A mapping module is used to obtain classification information of each feature map, and map multiple feature maps and the classification information corresponding to each feature map to a user display interface to obtain an image of the user display interface, wherein the image of the user display interface is the same as the image of the mapped feature map, and each classification information describes the feature map as a whole.
[0036] In a third aspect, the present application provides an electronic device, comprising: a processor, and a memory communicatively connected to the processor;
[0037] Memory stores computer-executable instructions;
[0038] When the processor executes the computer-executable instructions stored in the memory, it is used to implement a method for generating a large-screen system based on an image according to the first aspect of the invention.
[0039] In a fourth aspect, the present application provides a computer-readable storage medium, in which computer execution instructions are stored. When the computer execution instructions are executed by a processor, a method for generating a large-screen system based on an image is used to implement the invention content of the first aspect.
[0040] In a fifth aspect, the present application provides a computer program product, including a computer program. When the computer program is executed by a processor, it is used to implement a method of generating a large-screen system based on an image according to the invention content of the first aspect.
[0041] The present application provides a method, device, equipment and storage medium for a large screen system based on an image, wherein a training data set is constructed according to a plurality of samples, each sample including a design drawing, and a plurality of image blocks obtained after slicing the design drawing; a training result is obtained by model training on the training data set, and the training result includes a plurality of feature maps obtained by feature extraction of each design drawing; classification information of each feature map is obtained, and the plurality of feature maps, and the classification information corresponding to each feature map are mapped to a user display interface, and an image of the user display interface is obtained, wherein the image of the user display interface is the same as the image of the mapped feature map, and each classification information describes the feature map as a whole. The following technical effects are achieved: the correspondence between the design drawing features and the classification information is obtained through training with a large amount of sample data, so that the input of a new design drawing is convenient and accurate for matching the visualization large screen; the image is converted into data for convolution operation, and then converted into an image through deconvolution, with high computational efficiency and accurate feature recognition; the design drawing is divided into a plurality of visualization components and the matching with the user display interface of the modular layout is more flexible. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0043] Figure 1 A schematic diagram of a method for generating a large screen system based on an image provided in an embodiment of the present application Figure 1 ;
[0044] Figure 2 A schematic diagram of a method for generating a large screen system based on an image provided in an embodiment of the present application Figure 2 ;
[0045] Figure 3 A schematic diagram of a method for generating a large screen system based on an image provided in an embodiment of the present application Figure 3 ;
[0046] Figure 4 A schematic diagram of a method for generating a large screen system based on an image provided in an embodiment of the present application Figure 4 ;
[0047] Figure 5 A schematic diagram of the structure of a large-screen system device based on image generation provided in an embodiment of the present application;
[0048] Figure 6 A schematic diagram of the structure of the electronic device hardware provided in an embodiment of the present application.
[0049] Reference numerals:
[0050] 200 - device for generating a large screen system based on an image; 210 - acquisition module; 220 - training module; 230 - mapping module; 300 - electronic device; 310 - processor; 320 - memory; 330 - communication component; 340 - bus. DETAILED DESCRIPTION
[0051] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0052] In the embodiments of the present application, words such as "first" and "second" are used to distinguish between identical or similar items with substantially the same functions and effects. Those skilled in the art will appreciate that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit the difference. It should be noted that in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way. "At least one" refers to one or more, and "more" refers to two or more.
[0053] It should be noted that the "at..." in the embodiment of the present application can be the instant when a certain situation occurs, or it can be a period of time after a certain situation occurs, and the embodiment of the present application does not specifically limit this. In addition, the method for automatically exiting a batch of base stations provided in the embodiment of the present application is only used as an example, and the method for generating a large-screen system based on an image can also include more or less content.
[0054] In the existing technology, the size and color adsorption status are measured in the computer and design software by using the front-end development and data visualization, and the data update needs to be manually updated by human input.
[0055] However, manual configuration has the problem of human error, which leads to data errors, inconsistent styles, low efficiency, poor maintainability of the visualization large screen system, slow data updates, and too many charts and data when configuring multiple large screens or facing applications in different scenarios, which causes manual work to take too long.
[0056] Based on this, the embodiments of the present application provide a method, device, equipment and storage medium for generating a large-screen system based on an image, which are used in the field of image recognition and aim to solve the technical problems existing in the prior art.
[0057] Figure 1 A schematic diagram of a method for generating a large screen system based on an image provided in an embodiment of the present application Figure 1 ,like Figure 1 As shown, the method includes:
[0058] S101, constructing a training data set based on multiple samples;
[0059] Specifically, each sample includes a design drawing and multiple image blocks obtained by slicing the design drawing;
[0060] After the collected design drawings are sliced, one design drawing and multiple image blocks obtained after the slicing process are used as a sample, and the training data set is used as the data source for model training. Multiple samples constitute the training data set.
[0061] S102, performing model training on the training data set to obtain a training result;
[0062] Specifically, the training results include multiple feature maps obtained by extracting features from each design drawing;
[0063] The model performs image recognition on the design drawing. Generally speaking, the entire design drawing is recognized, which requires a large amount of data calculation. The design drawing needs to be divided into blocks for recognition to generate a feature map. The feature map can be generated by one image block or multiple image blocks based on the same features.
[0064] The number of feature maps is less than or equal to the number of image patches.
[0065] S103, obtaining classification information of each feature graph, and mapping the multiple feature graphs and the classification information corresponding to each feature graph to a user display interface to obtain an image of the user display interface;
[0066] Specifically, the image of the user display interface is the same as the image of the mapped feature map, and each classification information describes the feature map as a whole;
[0067] The training model generates a feature map after image recognition of the original design drawing, and divides the original design drawing into different feature maps and flexibly matches them with the user display interface to ensure that the image displayed on the user display interface is the same as the original design drawing;
[0068] After image recognition is performed on the image block, a feature map is generated based on feature extraction of the image data. The features extracted from the feature map need to be classified and features of the same category need to be labeled.
[0069] The present embodiment provides a method for generating a large screen system based on an image, which constructs a training data set according to multiple samples, each sample includes a design drawing, and multiple image blocks obtained after slicing the design drawing; performs model training on the training data set to obtain training results, and the training results include multiple feature maps obtained by extracting features from each design drawing; obtains classification information of each feature map, and maps multiple feature maps, and classification information corresponding to each feature map to a user display interface, to obtain an image of the user display interface, wherein the image of the user display interface is the same as the image of the mapped feature map, and each classification information describes the feature map as a whole. The following technical effects are achieved: the correspondence between the design drawing features and the classification information is obtained through training with a large amount of sample data, so that the input of a new design drawing is convenient and accurate for matching the visualization large screen; the image is converted into data for convolution operation, and then converted into an image through deconvolution, with high computational efficiency and accurate feature recognition; the design drawing is divided into multiple visualization components and the matching with the user display interface of the modular layout is more flexible.
[0070] Figure 2 A schematic diagram of a method for generating a large screen system based on an image provided in an embodiment of the present application Figure 2 In this embodiment, Figure 1 Based on the embodiment, a method for generating a large screen image system is described in detail, including:
[0071] S201, constructing a training data set based on multiple samples;
[0072] S201 is similar to S101 and will not be described in detail in this embodiment.
[0073] S202, inputting the training data set into a pre-stored deep learning model to obtain multiple sample data sets;
[0074] Specifically, each sample data set includes multiple image data, and each image data is obtained after the deep learning model performs image recognition on an image block;
[0075] In this embodiment, the deep learning model generates a set of image data after performing image recognition on each image block. The image data is represented by matrices of different dimensions. After performing image recognition on each image block through the deep learning model, each set of image data is aggregated to obtain a sample data set, that is, the image data of all image blocks in each sample is a sample data set.
[0076] Input samples into the deep learning model to obtain a sample data set and realize the conversion between images and data.
[0077] S203, inputting the sample data set into the deep learning model to obtain multiple feature graphs;
[0078] Specifically, each feature map is obtained after the deep learning model extracts features from at least one image data;
[0079] The deep learning model performs feature extraction on each image data in the sample data, and generates a feature map based on multi-layer perception of the same type of features. Each feature map reflects a partial feature map of the original design map, and multiple feature maps are combined to form the original design map.
[0080] In this embodiment, a convolution matrix is introduced, the convolution matrix is slid on the image matrix, the sum of the product of the convolution matrix and the corresponding input image area is calculated, and the calculation result is used as the value of the corresponding position of the output image to extract the features of the image. The convolution matrix slides over the entire image block, and the image matrix is subjected to multi-layer perception through a fully connected layer to generate a feature map.
[0081] S204, obtaining classification information of each feature graph, and mapping the multiple feature graphs and the classification information corresponding to each feature graph to a user display interface to obtain an image of the user display interface;
[0082] S204 is similar to S103 and will not be described in detail in this embodiment.
[0083] This embodiment provides a method for generating a large-screen system based on images, which uses a deep learning model to perform image recognition training on a training data set, extract features, and automatically classify. The calculation process is fast, and multiple learning algorithms are pre-stored in the deep learning model, which is suitable for different types of images. The method is flexible and accurate, and the image recognition efficiency is improved.
[0084] Figure 3 A schematic diagram of a method for generating a large screen system based on an image provided in an embodiment of the present application Figure 3 In this embodiment, Figure 2 Based on the embodiment, steps S202 and S203 are described in detail, including:
[0085] S2021. Determine, from a plurality of deep learning algorithms, a deep learning algorithm corresponding to each image block of the target design drawing according to the plurality of image blocks of the target design drawing;
[0086] Specifically, a plurality of deep learning algorithms are pre-stored in the deep learning model, and the target design graph is any one of the plurality of design graphs;
[0087] For the target design drawing, in this embodiment, nine image blocks are obtained after slicing processing, and each image block is of a different type. For example, the image block contains chart information, text information, data information, color information, indicator information, etc. Different deep learning algorithms are used to perform image recognition on different types of image blocks.
[0088] S2022, performing image recognition on each image block of the target design drawing respectively by using a deep learning algorithm corresponding to each image block of the target design drawing to obtain image data of each image block of the target design drawing;
[0089] Specifically, after the deep learning algorithm performs image recognition on each image block, it generates a set of image data, which is represented by matrices of different dimensions;
[0090] S2023, obtaining a sample data set of the target design drawing according to the image data of each image block of the target design drawing;
[0091] Specifically, after the nine image blocks are subjected to image recognition by the deep learning model respectively, the nine sets of image data obtained are aggregated to obtain a sample data set, that is, the image data of the nine image blocks in each sample is a sample data set;
[0092] S2031. Perform multi-layer perception on a sample data set of a target design drawing through a deep learning model to obtain multiple feature maps of the target design drawing;
[0093] Specifically, in this embodiment, a convolution matrix is introduced, the convolution matrix is slid on the image matrix, the sum of the product of the convolution matrix and the corresponding input image area is calculated, and the calculation result is used as the value of the corresponding position of the output image to extract the features of the image. The convolution matrix slides over the entire image block, and the image matrix is subjected to multi-layer perception through a fully connected layer to generate a feature map.
[0094] This embodiment provides a method for generating a large-screen system based on an image, which realizes visualization operation and feature classification of the original design drawing by performing convolution operation on the target design drawing, fully connected layer multi-layer perception, and converting the image into data and then into an image, laying the foundation for a visualization large screen.
[0095] Figure 4 A schematic diagram of a method for generating a large screen system based on an image provided in an embodiment of the present application Figure 4 , this embodiment is based on the method of generating a large screen system of an image to be described in detail, including:
[0096] S301, constructing a training data set according to multiple samples;
[0097] S302, inputting the training data set into a pre-stored deep learning model to obtain multiple sample data sets;
[0098] S303, inputting the sample data set into the deep learning model to obtain multiple feature graphs;
[0099] S301, S302, S303 are similar to S101, S202, S203, and are not described in detail in this embodiment.
[0100] S304, performing semantic segmentation on multiple feature maps to obtain classification information of each feature map;
[0101] Specifically, each feature map is annotated at the pixel level to obtain the semantic class label of each pixel in each feature map;
[0102] In this embodiment, the deep learning model predefines a category set, which includes: charts, text, data, etc., and assigns a category label to each pixel in the image according to the semantic features of the image;
[0103] Add the semantic class table label of each pixel of each feature map to the corresponding feature map to obtain the classification information of each feature map;
[0104] In this embodiment, by identifying the content features of each category, the image block features are nested together in a hierarchical manner, larger structures are extracted, and then more complex features are identified and nested into each feature graph. The complex features of the feature graph are classified, for example: main image, operating indicators, business data, and traffic. The feature graph is described as a whole to obtain the classification information corresponding to the feature graph. The feature graph can be intuitively represented in the form of bar graphs, pie charts, line graphs, charts, etc. The classification information is the title on the feature graph, which is used to describe the content represented by the feature graph.
[0105] S305, mapping multiple visualization components to a user display interface to obtain an image of the user display interface;
[0106] Specifically, the user display interface includes a plurality of display modules, and the plurality of visualization components are matched with the plurality of display modules to obtain an image of the user display interface;
[0107] In this embodiment, the user display interface is modularly laid out, and the visualization components are flexibly matched with the display modules.
[0108] The size of the visualization component is positively correlated with the number of matching display modules;
[0109] In this embodiment, due to the different complexity of the features included in the feature map, the number of image blocks contained in the feature map is also different, which results in different sizes of the feature map and the number of features. For visualization components with complex features, a large number of features, and a large feature map, more display modules need to be matched.
[0110] S306, adding each classification information to the corresponding feature map to obtain a visualization component of each feature map;
[0111] Specifically, a feature map is just an image, and the classification information is obtained through a deep learning model. The feature map has a feature label. The feature map with the feature label is used as a visualization component as a whole to match the user display interface of the visualization large-screen system.
[0112] S307, matching multiple visualization components with multiple display modules to obtain an image of a user display interface;
[0113] Specifically, the target design drawing is any one of the multiple design drawings; the target visualization component is any one of the multiple visualization components of the target design drawing, and for the target visualization component, according to the position information of the target visualization component in the target design drawing, the target visualization component is matched with at least one display module to obtain an image of the target visualization component on the user display interface;
[0114] In this embodiment, the feature map data in the target visualization component includes the position information of the feature map in the original design drawing. When the visualization component and the display module match each other, the display module will extract the position information in the visualization component. The visualization large screen system will map the image of each visualization component on the display module corresponding to the position of the feature map in the original design drawing. The image of the resulting user display interface is consistent with the image of the design drawing.
[0115] This embodiment provides a method for generating a large-screen system based on images, which uses a deep learning model to perform image recognition training on a training data set, extract features, and automatically classify. The calculation process is fast, and multiple learning algorithms are pre-stored in the deep learning model, which is suitable for different types of images. The method is flexible and accurate, and the image recognition efficiency is improved.
[0116] Figure 5 A schematic diagram of a large screen system device based on image generation provided in an embodiment of the present application is shown in FIG. Figure 5 As shown, an image-based large-screen system device 200 provided in an embodiment of the present application includes: a collection module 210, a training module 220, and a mapping module 230;
[0117] The acquisition module 210 is used to construct a training data set according to a plurality of samples, each of which includes a design drawing and a plurality of image blocks obtained by slicing the design drawing;
[0118] A training module 220 is used to perform model training on the training data set to obtain training results, where the training results include multiple feature graphs obtained by extracting features from each design graph;
[0119] The mapping module 230 is used to obtain the classification information of each feature map, and map multiple feature maps and the classification information corresponding to each feature map to the user display interface to obtain an image of the user display interface, wherein the image of the user display interface is the same as the image of the mapped feature map, and each classification information describes the feature map as a whole.
[0120] In one possible design, the training module 220 includes:
[0121] A pre-stored module is used to input the training data set into the pre-stored deep learning model to obtain multiple sample data sets, wherein each sample data set includes multiple image data, and each image data is obtained after the deep learning model performs image recognition on an image block;
[0122] The extraction module is used to input the sample data set into the deep learning model to obtain multiple feature maps; wherein each feature map is obtained after the deep learning model extracts features from at least one image data.
[0123] The mapping module 230 includes:
[0124] The classification module is used to perform semantic segmentation on multiple feature maps and obtain classification information of each feature map;
[0125] The adding module is used to add each classification information to the corresponding feature map to obtain the visualization component of each feature map.
[0126] In one possible design, a training data set is input into a pre-stored deep learning model to obtain multiple sample data sets, including:
[0127] The target design diagram is any one of the multiple design diagrams;
[0128] A determination module, used to determine, according to multiple image blocks of the target design drawing, from a plurality of deep learning algorithms, a deep learning algorithm corresponding to each image block of the target design drawing;
[0129] The recognition module is used to perform image recognition on each image block of the target design drawing through a deep learning algorithm corresponding to each image block of the target design drawing, so as to obtain image data of each image block of the target design drawing.
[0130] In a possible design, the extraction module further includes:
[0131] It is used to perform multi-layer perception on the sample data set of the target design drawing through a deep learning model to obtain multiple feature maps of the target design drawing.
[0132] In a possible design, the classification module further includes:
[0133] The annotation module is used to annotate each feature map at the pixel level to obtain the semantic class label of each pixel in each feature map;
[0134] The adding module is used to add the semantic class table label of each pixel of each feature map to the corresponding feature map to obtain the classification information of each feature map.
[0135] In one possible design, the mapping module 230 includes:
[0136] The user display interface includes a plurality of display modules;
[0137] The matching module is used to match multiple visualization components with multiple display modules to obtain an image of a user display interface; the size of the visualization component is positively correlated with the matching number of the display modules.
[0138] In one possible design, the mapping module 230 further includes:
[0139] The target design diagram is any one of the multiple design diagrams; the target visualization component is any one of the multiple visualization components of the target design diagram;
[0140] The position module is used to match the target visualization component with at least one display module according to the position information of the target visualization component in the target design diagram, so as to obtain the image of the target visualization component on the user display interface.
[0141] The present embodiment provides a device for generating a large-screen system based on an image, which can execute a method for generating a large-screen system based on an image in the above-mentioned embodiment. The implementation principle and technical effect thereof are similar, and will not be described in detail in the present embodiment.
[0142] In the specific implementation of the aforementioned device for generating a large-screen system based on an image, each module can be implemented as a processor, and the processor can execute computer-executable instructions stored in the memory, so that the processor executes the aforementioned method for generating a large-screen system based on an image.
[0143] Figure 6 A schematic diagram of the structure of the electronic device hardware provided in the embodiment of the present application, such as Figure 6As shown, the electronic device 300 includes: at least one processor 310 and a memory 320. The electronic device 300 also includes a communication component 330. The processor 310, the memory 320 and the communication component 330 are connected via a bus 340.
[0144] In the specific implementation process, at least one processor 310 executes the computer execution instructions stored in the memory 320, so that at least one processor 310 executes a method for generating a large-screen system based on an image as executed by the electronic device side above.
[0145] The specific implementation process of the processor 310 can be found in the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not be repeated here.
[0146] In the above embodiments, it should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the invention may be directly implemented as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.
[0147] The memory may include a high-speed RAM memory, and may also include a non-volatile storage NVM, such as at least one disk storage.
[0148] The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of the present application is not limited to only one bus or one type of bus.
[0149] The above-mentioned functions implemented by the electronic device and the main control device introduce the scheme provided by the embodiment of the present invention. It can be understood that in order to implement the above-mentioned functions, the electronic device or the main control device includes a hardware structure and / or software module corresponding to the execution of each function. In combination with the units and algorithm steps of each example described in the embodiment disclosed in the embodiment of the present invention, the embodiment of the present invention can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the technical solution of the embodiment of the present invention.
[0150] The present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the above-mentioned method of generating a large-screen system based on an image.
[0151] The above-mentioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The readable storage medium can be any available medium that can be accessed by a general or special-purpose computer.
[0152] An exemplary readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (Application Specific Integrated Circuits, referred to as ASIC). The processor and the readable storage medium can also exist as discrete components in an electronic device or a main control device.
[0153] The present application also provides a computer program product, which includes: a computer program, which is stored in a readable storage medium. At least one processor of an electronic device can read the computer program from the readable storage medium. When the computer program is executed by the processor, it is used to implement the above method of generating a large-screen system based on an image.
[0154] Those skilled in the art can understand that all or part of the steps of the above method embodiments can be completed by hardware related to program instructions. The above program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above method embodiments are executed; and the above storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.
[0155] So far, the technical solution of the present application has been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present application is obviously not limited to these specific embodiments, and the above embodiments are only used to illustrate the technical solution of the present application rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for generating a large screen system based on an image, characterized in that: The method comprises: Constructing a training data set according to a plurality of samples, each of the samples comprising a design drawing and a plurality of image blocks obtained by slicing the design drawing; Performing model training on the training data set to obtain training results, wherein the training results include a plurality of feature graphs obtained by performing feature extraction on each of the design graphs; Obtain classification information of each of the feature maps, and map the multiple feature maps and the classification information corresponding to each of the feature maps to a user display interface to obtain an image of the user display interface, wherein the image of the user display interface is the same as the image of the mapped feature map, and each of the classification information describes the feature map as a whole.
2. The method according to claim 1, characterized in that The performing model training on the training data set to obtain a training result includes: Inputting the training data set into a pre-stored deep learning model to obtain multiple sample data sets, wherein each of the sample data sets includes multiple image data, and each of the image data is obtained after the deep learning model performs image recognition on an image block; Inputting the sample data set into the deep learning model to obtain a plurality of feature maps; wherein each feature map is obtained after the deep learning model extracts features from at least one of the image data; The step of acquiring classification information of each of the feature graphs, and mapping the plurality of feature graphs and the classification information corresponding to each of the feature graphs to a user display interface to obtain an image of the user display interface includes: Performing semantic segmentation on the plurality of feature maps to obtain classification information of each feature map; Add each of the classification information to the corresponding feature map to obtain a visualization component of each of the feature maps; The plurality of visualization components are mapped to the user display interface to obtain an image of the user display interface.
3. The method according to claim 2, characterized in that The deep learning model has a plurality of deep learning algorithms pre-stored therein, and the target design diagram is any one of the plurality of the design diagrams; For the target design diagram, the training data set is input into a pre-stored deep learning model to obtain multiple sample data sets, including: According to the multiple image blocks of the target design drawing, respectively determine the deep learning algorithm corresponding to each image block of the target design drawing from the multiple deep learning algorithms; Using a deep learning algorithm corresponding to each image block of the target design drawing, image recognition is performed on each image block of the target design drawing to obtain image data of each image block of the target design drawing; A sample data set of the target design drawing is obtained according to the image data of each image block of the target design drawing.
4. The method according to claim 3, characterized in that For the target design graph, the sample data set is input into the deep learning model to obtain a plurality of feature graphs, including: Through the deep learning model, multi-layer perception is performed on the sample data set of the target design drawing to obtain a plurality of feature maps of the target design drawing.
5. The method according to any one of claims 2 to 4, characterized in that: The performing semantic segmentation on the plurality of feature maps to obtain classification information of each feature map includes: Annotate each of the feature maps at the pixel level to obtain a semantic class label for each pixel of each of the feature maps; The semantic class table label of each pixel of each feature map is added to the corresponding feature map to obtain the classification information of each feature map.
6. The method according to claim 5, characterized in that The user display interface includes a plurality of display modules; Mapping the plurality of visualization components to the user display interface to obtain an image of the user display interface includes: Matching a plurality of the visualization components with a plurality of the display modules to obtain an image of the user display interface; The size of the visualization component is positively correlated with the matching number of display modules.
7. The method according to claim 6, characterized in that The target design diagram is any one of the plurality of design diagrams; the target visualization component is any one of the plurality of visualization components of the target design diagram; For the target visualization component, matching a plurality of the visualization components with a plurality of the display modules to obtain an image of the user display interface includes: According to the position information of the target visualization component in the target design diagram, the target visualization component is matched with at least one of the display modules to obtain an image of the target visualization component in the user display interface.
8. A large screen system device based on image generation, characterized in that: include: An acquisition module, used to construct a training data set according to a plurality of samples, each of which includes a design drawing and a plurality of image blocks obtained by slicing the design drawing; A training module, used for performing model training on the training data set to obtain training results, wherein the training results include a plurality of feature graphs obtained by performing feature extraction on each of the design graphs; A mapping module is used to obtain classification information of each of the feature maps, and map multiple feature maps and the classification information corresponding to each of the feature maps to a user display interface to obtain an image of the user display interface, wherein the image of the user display interface is the same as the image of the mapped feature map, and each of the classification information describes the feature map as a whole.
9. An electronic device, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; When the processor executes the computer-executable instructions stored in the memory, it is used to implement a method for generating a large-screen system based on an image as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement a method for generating a large-screen system based on an image as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Image classification model training method and device, electronic equipment and storage medium
CN115761295A
Visual information generation method and device, equipment and computer storage medium
CN117541803A
