Unlock instant, AI-driven research and patent intelligence for your innovation.

A method and device for generating front-end code

A kind of code and type of technology, applied in the direction of creating/generating source code, neural learning methods, biological neural network models, etc., can solve the problems of heavy manual repeated construction workload, codes that cannot accurately match business scenarios, additions and deletions, etc., to improve efficiency The effect of convenience

Active Publication Date: 2022-02-25
云账户技术(天津)有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The present invention provides a method and device for generating front-end codes, which are used to solve the problems in the prior art that the workload of manual repeated construction is large, the development efficiency is low, and the generated codes cannot accurately match the business scenarios of developers, requiring a large number of additions and deletions. question

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A method and device for generating front-end code
  • A method and device for generating front-end code
  • A method and device for generating front-end code

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0041] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0042] Please refer to figure 1 , the embodiment of the present invention provides a method for generating front-end code, including:

[0043] Step 11: receiving web page image information input by the user;

[0044] Step 12: Using an image recognition model to extract the features of the webpage image information, obtain a feature extraction result, generate at least one area to be processed according to the feature extraction result, and determine t...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The present invention provides a method and device for generating front-end codes. The method includes: receiving web page image information input by a user; using an image recognition model to extract the features of the web page image information, obtaining a feature extraction result, and generating at least one The area to be processed, and determine the type of the area to be processed according to the feature extraction results; locate the edge of the area to be processed, and obtain the position mark information of the area to be processed; obtain the components in the web component library, and according to the component attributes of the components and the area to be processed The type of the component is matched, the component is set in the corresponding position of the position mark information of the area to be processed, and the component code corresponding to the component is generated according to the component attribute and the position mark information of the area to be processed. In the present invention, each business component is identified according to the web page image information design draft, and a code template is automatically built with the idea of ​​componentization, so as to improve the controllability and readability of the automatically generated code.

Description

technical field [0001] The invention relates to the field of web page development, in particular to a method and device for generating front-end codes. Background technique [0002] At present, in the web development business, the styles of page components designed by the same team are basically the same. Developers can complete the development based on the existing component library and style library. However, due to the high encapsulation of components, the development of new pages is often repetitive. work, which affects development efficiency; currently, the methods used in web development business mainly include manual repeated building of pages and generation of underlying front-end code after image recognition. Among other solutions, there are many studies on image recognition methods, but there is a lack of in-depth understanding of generated codes. Research. Contents of the invention [0003] The present invention provides a method and device for generating front...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F16/958G06F8/30G06V10/44G06V10/75G06V10/774G06V10/764G06V10/82G06K9/62G06N3/04G06N3/08
CPCG06F16/958G06F8/31G06N3/08G06N3/044G06N3/045G06F18/22G06F18/24G06F18/214
Inventor 姜旭杨欢李钿邹永强杨晖
Owner 云账户技术(天津)有限公司