Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method for converting picture into HTML (Hypertext Markup Language) document

A technology of HTML documents and pictures, applied in the field of web page development, to save debugging time

Active Publication Date: 2018-01-26
G CLOUD TECH
View PDF5 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] At present, there is no technology that can automatically convert pictures into HTML format files using WEB applications

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
  • Method for converting picture into HTML (Hypertext Markup Language) document

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Apparently, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, the solutions obtained by those skilled in the art without making substantive inventions all belong to the protection scope of the present invention.

[0026] The following is an implementation method of important function points of a method and device for converting pictures into HTML documents of the present invention:

[0027] 1: The background color traverses the scan to distinguish. Using the PHP recognition interface for OCR image recognition, it only recognizes the color value of the first horizontal pixel along the vertical direction of the image; when encountering a different pixel color, return to the previous pixel to get the same color in the vertical...

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 invention relates to the field of webpage developing and in particular to a method for converting a picture into an HTML (Hypertext Markup Language) document. The method comprises the steps of setting content which needs to be recognized and acquiring a result by use of an OCR (Optical Character Recognition) picture recognition technology and an OCR recognized PHP (Professional Hypertext Preprocessor) interface API (Application Program Interface); carrying out optimization, hierarchical differentiation and CSS storage on the obtained parameters such as background color, size and position and the like so as to convert the picture into the HTML; the method mainly comprises the steps of traversing, scanning and differentiating background color, recognizing the background color and inputting the background color into a background library, carrying out level iteration and OCR recognition, character / non-character recognition, adjacent / non-adjacent DIV (Division) recognition, CSS (Cascading Style Sheet) attribute optimization and determined div border recognition on the background library. According to the method for converting the picture into the HTML document, a high-resolution webpage design picture can be converted to the document in the format of HTML, the complicatedness of a manual operation is omitted, the debugging time is saved and the method is suitable for webpage design.

Description

technical field [0001] The invention relates to the technical field of web page development, in particular to a method for converting pictures into HTML documents. Background technique [0002] Web design / artists usually export a web design into pictures; front-end staff are responsible for converting pictures into front-end HTML for back-end staff to develop functions; front-end staff often need a lot of work to complete the production of a front-end demo ; [0003] At present, there is no technology that can automatically convert pictures into HTML format files using WEB applications. Contents of the invention [0004] The technical problem to be solved by the invention is to provide a method for converting pictures into HTML documents; realizing the conversion of pictures on the web into HTML documents. [0005] The technical scheme that the present invention solves the problems of the technologies described above is: [0006] The method is to use the OCR image recog...

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 Applications(China)
IPC IPC(8): G06F17/30G06K9/00
Inventor 黄博关班记张远世齐兆勇庞毅何龙泉季统凯
Owner G CLOUD TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products