WO2022041825A1 - 将图片转换为网页的方法、装置、计算机设备和存储介质 - Google Patents

将图片转换为网页的方法、装置、计算机设备和存储介质 Download PDF

Info

Publication number
WO2022041825A1
WO2022041825A1 PCT/CN2021/091697 CN2021091697W WO2022041825A1 WO 2022041825 A1 WO2022041825 A1 WO 2022041825A1 CN 2021091697 W CN2021091697 W CN 2021091697W WO 2022041825 A1 WO2022041825 A1 WO 2022041825A1
Authority
WO
WIPO (PCT)
Prior art keywords
webpage
picture
information
materials
processed
Prior art date
Application number
PCT/CN2021/091697
Other languages
English (en)
French (fr)
Inventor
曹磊
Original Assignee
平安科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2022041825A1 publication Critical patent/WO2022041825A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/55Clustering; Classification
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text

Definitions

  • the present application relates to the technical field of data processing, and in particular, to a method, apparatus, computer equipment and storage medium for converting a picture into a web page.
  • Web pages have become a common communication carrier in the Internet.
  • Web pages contain rich information, and web pages have increasingly become a popular way of content promotion with their novel forms of dynamic interaction.
  • the main purpose of this application is to provide a method, device, computer equipment and storage medium for converting pictures into web pages, aiming to solve the existing development process of using pictures to make corresponding web pages, requiring front-end developers to convert pictures one by one.
  • Performing conventional development operations such as cutting layouts will take up a considerable amount of time in the development cycle, and it will also cost a lot and develop technical problems with low efficiency.
  • the present application proposes a method for converting a picture into a web page, the method comprising the steps of:
  • the material feature information separate processing is performed on the to-be-processed picture to obtain a material corresponding to the material feature information
  • the classified material is filled into the corresponding location in the webpage component template, and a webpage corresponding to the to-be-processed picture is generated.
  • the application also provides a device for converting a picture into a web page, including:
  • the first acquisition module is used to acquire the input picture to be processed
  • an identification module configured to perform identification processing on the to-be-processed picture, and identify the material feature information contained in the to-be-processed picture
  • a separation module configured to perform separation processing on the to-be-processed picture according to the material feature information to obtain a material corresponding to the material feature information
  • the classification module is used to classify the materials according to the preset material categories to obtain the classified materials
  • a second obtaining module configured to obtain the location information of the classified material in the to-be-processed picture, and obtain a preset webpage component template
  • the filling module is configured to fill the classified material into the corresponding position in the webpage component template according to the position information, so as to generate a webpage corresponding to the to-be-processed picture.
  • the present application also provides a computer device, including a memory and a processor, where a computer program is stored in the memory, and when the processor executes the computer program, a method for converting a picture into a web page is implemented, wherein the converting
  • the method of converting an image to a web page includes the following steps:
  • the material feature information separate processing is performed on the to-be-processed picture to obtain a material corresponding to the material feature information
  • the classified material is filled into the corresponding location in the webpage component template, and a webpage corresponding to the to-be-processed picture is generated.
  • the present application also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, implements a method for converting a picture into a web page, wherein the method for converting a picture into a web page Include the following steps:
  • the material feature information separate processing is performed on the to-be-processed picture to obtain a material corresponding to the material feature information
  • the classified material is filled into the corresponding location in the webpage component template, and a webpage corresponding to the to-be-processed picture is generated.
  • the method, device, computer equipment and storage medium for converting a picture into a web page provided in this application can intelligently convert the to-be-processed picture based on the web page component template, so as to realize the convenient and quick automatic generation according to the input to-be-processed picture
  • the corresponding web page makes it no longer necessary for developers to cut pictures one by one for routine development operations such as layout, which effectively reduces the workload of manual development and improves the generation efficiency of generating web pages based on pictures.
  • the original image has a high degree of restoration.
  • FIG. 1 is a schematic flowchart of a method for converting a picture into a webpage according to an embodiment of the present application
  • FIG. 2 is a schematic structural diagram of an apparatus for converting a picture into a webpage according to an embodiment of the present application
  • FIG. 3 is a schematic structural diagram of a computer device according to an embodiment of the present application.
  • a method for converting a picture into a web page includes:
  • S2 Perform identification processing on the to-be-processed picture, and identify the material feature information contained in the to-be-processed picture;
  • S3 Perform separation processing on the to-be-processed picture according to the material feature information to obtain a material corresponding to the material feature information;
  • S4 classify the materials according to the preset material categories, and obtain the classified materials
  • S5 Acquire location information of the classified material in the to-be-processed picture, and acquire a preset webpage component template
  • S6 Fill the classified material into the corresponding position in the webpage component template according to the location information, and generate a webpage corresponding to the to-be-processed picture.
  • the execution body of this embodiment of the method is an apparatus for converting a picture into a web page.
  • the above-mentioned device for converting a picture into a web page can be implemented through a virtual device, such as software code, or through a physical device that writes or integrates relevant execution codes, and can communicate with the user through a keyboard, mouse, or remote control. , touchpad or voice-activated devices for human-computer interaction.
  • the above-mentioned apparatus for converting a picture into a webpage may specifically be a mobile terminal.
  • the device for converting pictures into web pages can automatically and intelligently convert the acquired pictures to be processed into corresponding web pages, effectively reducing the workload of manual development, and effectively improving the generation efficiency of generating web pages from pictures.
  • the input to-be-processed picture is obtained first.
  • the above picture to be processed is picture data that the user needs to convert into a web page, such as a design draft picture, which can be input into the device by the user.
  • the above-mentioned pictures to be processed are identified and processed, and the material feature information contained in the above-mentioned pictures to be processed is identified.
  • the above picture to be processed may be recognized by an image recognition algorithm based on an image recognition technology, and the above image recognition algorithm is not specifically limited, for example, a SURF algorithm or a BRISK algorithm, etc. may be used.
  • Image recognition technology is an important field of artificial intelligence. Image recognition technology is used to identify objects in images to identify targets and objects in various patterns. It is based on the main features of the image, and each image is has its characteristics.
  • an image recognition model generated based on an image recognition technology may also be used to perform recognition processing on the above-mentioned pictures to be processed.
  • the above-mentioned image recognition model can be specifically generated by training a convolutional neural network model (CNN) with a specified amount of sample data, and the above-mentioned sample data includes a sample picture and material data associated with the sample picture. Then, according to the above-mentioned material characteristic information, the above-mentioned to-be-processed picture is separated and processed to obtain the material corresponding to the above-mentioned material characteristic information.
  • a preset clustering algorithm can be used to segment/separate the picture to obtain a plurality of materials corresponding to the above-mentioned material feature information, and the above-mentioned clustering algorithm may include K-means clustering algorithm.
  • the above-mentioned materials are classified according to the preset material categories to obtain the classified materials.
  • the above-mentioned material categories may specifically include image categories, filling categories, and text categories.
  • the obtained classified materials may specifically include picture materials, filling materials, and text materials. Then, the location information of the classified material in the to-be-processed picture is obtained, and the preset webpage component template is obtained.
  • the above-mentioned webpage template component may specifically include a picture component, a filling component and a text component, and the webpage template component can be automatically generated according to the configuration code input by the user, and the user can write the relevant configuration code according to their actual needs.
  • the above classified material is filled into the corresponding location in the above webpage component template, and a webpage corresponding to the above picture to be processed is generated.
  • the location information of the classified material in the picture to be processed can be obtained, and then the same placement location as the location information can be determined in the webpage component template, and the classified material can be input to the preset according to the location information.
  • the corresponding webpage can be automatically generated according to the input picture to be processed, which effectively reduces the workload of manual development, improves the generation efficiency of generating the webpage according to the picture, and the generated webpage can be restored compared with the original picture. high degree.
  • step S4 of classifying the materials according to the preset material categories to obtain the classified materials includes:
  • S401 Perform category matching processing on each of the materials and the material categories according to the material categories, to obtain a category matching result corresponding to each of the materials;
  • the above-mentioned steps of classifying the above-mentioned materials according to the preset material categories and obtaining the classified materials may specifically include: firstly obtaining the preset material categories.
  • the above-mentioned material categories may specifically include image categories, filling categories, and text categories.
  • each material is subjected to a category matching process with the above-mentioned material categories, and a category matching result corresponding to each of the above-mentioned materials is obtained.
  • all the above-mentioned materials are divided into different types of materials according to the above category matching results.
  • the above-mentioned different types of materials may specifically include picture materials, filling materials, and text materials.
  • a corresponding category matching result is obtained by performing matching processing on each material with the above-mentioned material category, so that the material matching the picture category in the material category can be divided into picture materials according to the category matching result.
  • the material matching the fill category in the material category is classified as fill material
  • the material matching the text category in the material category is classified as text material.
  • the above-mentioned picture material specifically refers to a complex image of a characteristic item, and is not an image filled with a collection of graphics.
  • the above-mentioned filling material specifically refers to the modified part, which is often generated after drawing or directly filling the geometric figure with color.
  • buttons, borders, background colors, headings, paragraphs, lists, forms, etc. are all fill materials.
  • the above-mentioned text material specifically refers to the text recognition in the picture.
  • each material is matched with the above-mentioned material categories according to the preset material categories, and then all the above-mentioned materials are divided into different types of materials, so that the classified materials can be displayed in the above-mentioned pictures to be processed subsequently.
  • the location information of the above-mentioned classified material is filled into the location corresponding to the location information in the above-mentioned webpage component template, so as to realize the intelligent and rapid generation of the webpage corresponding to the above-mentioned to-be-processed picture.
  • the webpage component template includes a picture component, a filling component and a text component
  • the classified materials include picture materials, filling materials and text materials.
  • S600 Acquire first position information of the picture material in the picture layer in the picture to be processed, determine the first placement position in the picture component that is the same as the first position information, and place the The picture material is filled to the first placement position; and,
  • S601 Acquire second position information of the filling material in the filling layer in the to-be-processed picture, determine a second placement position in the filling layer that is the same as the second position information, and determine a second placement position in the filling layer that is the same as the second position information.
  • the second position information fills the filling material to the second placement position;
  • S602 Acquire third position information of the text material in the text layer in the to-be-processed picture, determine a third placement position in the text component that is the same as the third position information, and determine the third position according to the The third position information fills the text material to the third placement position, and generates a web page corresponding to the to-be-processed picture.
  • the webpage component template may specifically include a picture component, a filling component and a text component
  • the classified materials may specifically include a picture material, a filling material and a text material.
  • the above-mentioned step of filling the above-mentioned classified material into the corresponding position in the above-mentioned webpage component template according to the above-mentioned position information, and generating a webpage corresponding to the above-mentioned picture to be processed may specifically include: obtaining the above-mentioned picture material in the above-mentioned picture to be processed.
  • the first placement position that is the same as the first position information is determined in the picture component, and the picture material is filled in the first placement position in the picture component. and acquiring the second position information of the above-mentioned filling material in the filling layer in the above-mentioned picture to be processed, determining a second placement position in the filling layer that is the same as the above-mentioned second position information, and according to the above-mentioned second position information Filling the above-mentioned filling material to the second placement position in the above-mentioned filling component.
  • each classified material corresponds to a component in the above-mentioned webpage component template.
  • the same placement location as the location information is determined in the webpage component template, and then the classified materials are classified according to the location information.
  • One-to-one correspondence is filled with the corresponding materials in each component in the webpage component template, so that a webpage with the same visual effect as the above picture to be processed can be generated accurately and quickly.
  • feature identification is performed on the content of the picture based on the image recognition technology.
  • the corresponding material is obtained by feature separation, and then the material is classified to obtain the classified material, and the location information of the classified material in the above-mentioned to-be-processed picture is obtained, and the corresponding location is determined in the webpage component template.
  • the same information is placed in the same location, and finally, according to the location information, the above-mentioned classified materials are input to the corresponding position in the preset webpage component template to generate the corresponding webpage, thus effectively realizing the intelligent and rapid conversion of pictures into corresponding webpages Effect.
  • step S6 of filling the material into the corresponding position in the webpage component template according to the position information, and generating the webpage corresponding to the to-be-processed picture
  • steps S6 of filling the material into the corresponding position in the webpage component template according to the position information, and generating the webpage corresponding to the to-be-processed picture
  • S613 Acquire multiple pieces of authentication verification information that are correctly input for a specified number of times and are closest to the current time;
  • S614 Determine whether there is specified authentication verification information matching the identity verification information in the plurality of authentication verification information
  • the above-mentioned step of filling the above-mentioned material into the corresponding position in the above-mentioned webpage component template according to the above-mentioned position information, and generating the webpage corresponding to the above-mentioned to-be-processed picture it may further include: firstly displaying the above-mentioned webpage, so that the user can Judging and evaluating the accuracy of the data contained in the generated web page. Then it is judged whether to receive the adjustment instruction for the above-mentioned webpage.
  • the above adjustment instruction corresponds to the modification information fed back by the user.
  • the above adjustment instruction can be triggered by the user, and the trigger form of the adjustment instruction is not specifically limited, for example, the adjustment instruction can be triggered in the form of text or voice.
  • the above adjustment instruction can customize and adjust the label style and interactive function of a specific element in the web page to meet the user's desired effect. If it is determined that an adjustment instruction for the above-mentioned webpage triggered by the user is received, the user is reminded to enter the identity verification information.
  • the above-mentioned identity verification information is information used to authenticate the identity of the user who triggers the above-mentioned adjustment instruction.
  • the authentication information entered by the user includes but is not limited to: digital password, facial information, fingerprint information, and iris information.
  • the device may further include a biometric information acquisition module, and the biometric information acquisition module includes at least one of the following: a fingerprint information acquisition module, a facial information acquisition module, and an iris information acquisition module, wherein the fingerprint information acquisition module may be a fingerprint sensor module;
  • the facial information collection module may be a general camera module, such as a front camera; the iris information collection module may include an infrared light source and an iris camera.
  • the number of the above-mentioned designated times is not specifically limited, for example, it can be set to three times.
  • the above-mentioned authentication and verification information is the correct verification information for releasing the user's use authority, and the authentication and verification information includes but is not limited to: digital password, face information, fingerprint information, and iris information.
  • the above-mentioned adjustment instruction will be responded to, and the above-mentioned webpage will be adjusted correspondingly according to the above-mentioned adjustment instruction. .
  • the user is firstly prompted to perform identity verification.
  • the webpage will be adjusted accordingly according to the received adjustment instructions triggered by the user to obtain more accurate webpage content, so that the final generated webpage can fit the actual needs of users and effectively Guaranteed user experience. In this way, illegal processing of the webpage by a user who does not have the right to edit the webpage can be avoided, and the data security of the generated webpage can be effectively ensured.
  • step S610 of displaying the webpage includes:
  • S6100 From all the dynamic effects included in the preset animation library, extract the specified dynamic effect that is most frequently used by the user;
  • the processing of adding dynamic effects to the above-mentioned webpage may also be included, so as to display more abundant forms to the user.
  • dynamic page the above step of displaying the above webpage may specifically include: first, from all the dynamic effects included in the preset animation library, extracting the specified dynamic effect that is used the most by the user.
  • various dynamic effects are built in the above preset animation library, including but not limited to fly-in, fade-in, fade-out, pendulum effect, delayed-appearance, etc.
  • All dynamic effects can have various properties, such as flying Input time, whether the module has inertia, inertia time, which function (linear, nonlinear or higher-order function) is used for animation time, etc. And this embodiment will automatically maintain the above animation library according to the update of technology and requirements, and can support users to add custom dynamic effects in the above animation library.
  • the above-mentioned specified dynamic effect that the user uses the most times is obtained, then the above-mentioned specified dynamic effect is added to the above-mentioned webpage to obtain an updated webpage.
  • a dynamic page with richer display effects can be obtained, which is beneficial to provide a new form of output web page for the user.
  • the above-mentioned updated webpage is displayed again.
  • the above webpage will also be intelligently added with dynamic effects. Specifically, the specified dynamic effect that the user has used the most times will be extracted from the preset animation library. The specified dynamic effect is added to the above web page to obtain an updated web page, so that a new form of dynamic page can be displayed to the user.
  • the added specified dynamic effect is intelligently selected according to the user's previous usage habits, the user's needs can be met, and the user's usage experience can be effectively improved.
  • step S612 of reminding the user to enter the identity verification information includes;
  • S6121 Calculate the difference obtained by subtracting the specified time from the current time
  • S6122 Determine whether the difference is greater than a preset time threshold
  • the above steps of reminding the user to enter the identity verification information may specifically include: first obtaining the current time and the latest designated time of the latest successful authentication closest to the current time. Then calculate the difference obtained by subtracting the above specified time from the above current time. For example, if the current time is 16:20 and the specified time is 16:00, the difference obtained by subtracting the specified time from the current time is 20 minutes. Then, it is determined whether the difference is greater than the preset time threshold.
  • the value of the above-mentioned preset time threshold is not specifically limited, for example, it can be set to 10 minutes. If it is determined that the above difference is greater than the preset time threshold, the user is reminded to input the identity verification information.
  • the user identity verification is required before responding to the adjustment instruction triggered by the user only when the current time is greater than the specified time from the latest successful authentication and is greater than the preset time threshold.
  • the processing authority of the web page it avoids unnecessary trouble for the user due to the need for authentication every time the user needs to adjust and process the web page, and further improves the user experience.
  • the method before the above step S5 of obtaining a preset webpage component template, the method includes:
  • S501 Perform parsing processing on the configuration code to generate a parsing result corresponding to the configuration code
  • a generating step of generating the webpage component template may also be included.
  • the input configuration code is first received.
  • the above configuration code is a code for generating the above webpage component template, and the configuration code can be written and generated by a user according to actual needs.
  • the above-mentioned configuration code is parsed to generate an analysis result corresponding to the above-mentioned configuration code.
  • analysis processing flow of the configuration code reference may be made to the existing code analysis method, which will not be repeated here.
  • the above webpage component template may also be referred to as a webpage layout framework, and the webpage component template is a programmed component template generated according to the input configuration code.
  • the above webpage component template may specifically include a picture component, a filling component and a text component.
  • the corresponding webpage component template is generated by parsing the input configuration code, which is conducive to subsequently filling the above webpage component template with the material corresponding to the to-be-processed picture, thereby realizing intelligent and quick generation of the webpage corresponding to the above-mentioned to-be-processed picture. .
  • the method includes:
  • S410 Store the classified material on the blockchain of the blockchain system.
  • the classified material obtained by the division processing can also be securely stored based on the blockchain, so as to realize the above-mentioned classification of the material. Safe storage.
  • the method may further include: storing the classified materials on the blockchain of the blockchain system. In this embodiment, by using the blockchain to store and manage the above-mentioned classified materials generated after division processing, the security and non-tamperability of the above-mentioned classified materials are effectively ensured.
  • an embodiment of the present application further provides a device for converting a picture into a web page, including:
  • the first acquisition module 1 is used to acquire the input picture to be processed
  • An identification module 2 configured to perform identification processing on the to-be-processed picture, and identify the material feature information contained in the to-be-processed picture;
  • a separation module 3 configured to perform separation processing on the to-be-processed picture according to the material feature information to obtain a material corresponding to the material feature information;
  • the classification module 4 is used to classify the materials according to the preset material categories, and obtain the classified materials;
  • a second obtaining module 5 configured to obtain the location information of the classified material in the to-be-processed picture, and obtain a preset webpage component template
  • the filling module 6 is configured to fill the classified material into the corresponding position in the webpage component template according to the position information, and generate a webpage corresponding to the to-be-processed picture.
  • the implementation process of the functions and functions of the first acquisition module, the identification module, the classification module, the classification module, the second acquisition module and the filling module in the above-mentioned apparatus for converting pictures into web pages can be found in the above-mentioned conversion of pictures for details.
  • the implementation process corresponding to steps S1 to S6 in the method for a webpage will not be repeated here.
  • the above-mentioned classification module includes:
  • a first obtaining unit used to obtain a preset material category
  • a second matching unit configured to perform category matching processing on each of the materials and the material categories according to the material categories, to obtain a category matching result corresponding to each of the materials
  • a dividing unit configured to divide all the materials into different types of materials according to the category matching result.
  • the implementation process of the functions and functions of the first acquiring unit, the second matching unit and the dividing unit in the above-mentioned apparatus for converting a picture into a webpage can be found in the corresponding steps S300 to S300 in the above-mentioned method for converting a picture into a webpage.
  • the implementation process of S302 is not repeated here.
  • the webpage component template includes a picture component, a filling component and a text component
  • the classified materials include picture materials, filling materials and text materials.
  • the above-mentioned filling module includes:
  • a first filling unit configured to obtain the first position information of the picture material in the picture layer in the picture to be processed, and determine the first placement position that is the same as the first position information in the picture component , and fill the picture material to the first placement position;
  • a second filling unit configured to acquire second position information of the filling material in the filling layer in the picture to be processed, and determine a second placement in the filling layer that is the same as the second position information position, and fill the filling material to the second placement position according to the second position information;
  • a third filling unit configured to acquire third position information of the text material in the text layer of the picture to be processed, and determine a third placement position in the text component that is the same as the third position information , and fill the text material to the third placement position according to the third position information to generate a web page corresponding to the to-be-processed picture.
  • the above-mentioned device for converting a picture into a web page includes:
  • a display module for displaying the webpage
  • a first judging module for judging whether an adjustment instruction for the webpage is received
  • a reminder module configured to remind the user to enter the identity verification information if it is determined that an adjustment instruction for the webpage is received
  • the third acquisition module is used to acquire a plurality of correctly input authentication verification information for a specified number of times and closest to the current time;
  • a second judging module configured to judge whether there is specified authentication verification information matching the identity verification information in the plurality of authentication verification information
  • An adjustment module configured to respond to the adjustment instruction if it is determined that there is specified authentication verification information that matches the identity verification information, and adjust the webpage correspondingly according to the adjustment instruction.
  • the implementation process of the functions and functions of the display module, the first judgment module, the reminder module, the third acquisition module, the second judgment module and the adjustment module in the above-mentioned device for converting pictures into web pages can be found in the above-mentioned section for details.
  • the implementation process corresponding to steps S610 to S615 in the method for converting a picture into a web page will not be repeated here.
  • the above-mentioned display module includes:
  • the extraction unit is used to extract the specified dynamic effect that is most frequently used by the user from all the dynamic effects contained in the preset animation library;
  • the adding unit is used for adding the specified dynamic effect to the webpage to obtain the updated webpage
  • the display unit is used to display the updated webpage.
  • the above-mentioned first reminder module includes:
  • the second obtaining unit is used to obtain the current time and the specified time of the latest successful authentication closest to the current time;
  • a calculation unit configured to calculate the difference obtained by subtracting the specified time from the current time
  • a reminding unit configured to remind the user to input the identity verification information if it is determined that the difference is greater than the preset time threshold.
  • the implementation process of the functions and functions of the second acquiring unit, the calculating unit, the judging unit and the reminding unit in the above-mentioned apparatus for converting a picture into a webpage can be found in the corresponding step S6120 in the above-mentioned method for converting a picture into a webpage.
  • the implementation process up to S6123 will not be repeated here.
  • the above-mentioned device for converting a picture into a web page includes:
  • the receiving module is used to receive the input configuration code
  • a parsing module configured to perform parsing processing on the configuration code, and generate a parsing result corresponding to the configuration code
  • a generating module configured to generate the webpage component template according to the parsing result.
  • the implementation process of the functions and functions of the receiving module, the parsing module, and the generating module in the above-mentioned apparatus for converting a picture into a webpage can be found in the implementation process corresponding to steps S500 to S502 in the above-mentioned method for converting a picture into a webpage. , and will not be repeated here.
  • the above-mentioned device for converting a picture into a web page includes:
  • the storage module is used for storing the classified material on the blockchain of the blockchain system.
  • an embodiment of the present application further provides a computer device.
  • the computer device may be a server, and its internal structure may be as shown in FIG. 3 .
  • the computer device includes a processor, memory, a network interface, and a database connected by a system bus.
  • the processor of the computer equipment is designed to provide computing and control capabilities.
  • the memory of the computer device includes a non-volatile storage medium, an internal memory.
  • the nonvolatile storage medium stores an operating system, a computer program, and a database.
  • the internal memory provides an environment for the execution of the operating system and computer programs in the non-volatile storage medium.
  • the database of the computer device is used for storing data such as materials, web page component templates and web pages corresponding to the pictures to be processed.
  • the network interface of the computer device is used to communicate with an external terminal through a network connection.
  • the computer program when executed by the processor, implements a method of converting a picture into a web page.
  • the above-mentioned processor executes the steps of the above-mentioned method for converting a picture into a web page:
  • the material feature information separate processing is performed on the to-be-processed picture to obtain a material corresponding to the material feature information
  • the classified material is filled into the corresponding location in the webpage component template, and a webpage corresponding to the to-be-processed picture is generated.
  • FIG. 3 is only a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the apparatus or computer equipment to which the solution of the present application is applied.
  • An embodiment of the present application further provides a computer-readable storage medium, the computer-readable storage medium may be non-volatile or volatile, and a computer program is stored thereon, and the computer program is implemented when executed by a processor
  • the method for converting a picture into a web page shown in any of the above exemplary embodiments, the method for converting a picture into a web page includes the following steps:
  • the material feature information separate processing is performed on the to-be-processed picture to obtain a material corresponding to the material feature information
  • the classified material is filled into the corresponding location in the webpage component template, and a webpage corresponding to the to-be-processed picture is generated.
  • the method, device, computer equipment, and storage medium for converting a picture into a webpage acquire the input picture to be processed; Process the material feature information contained in the picture; perform separation processing on the to-be-processed picture according to the material feature information to obtain the material corresponding to the material feature information; classify the material according to the preset material category, obtaining the classified material; obtaining the location information of the classified material in the to-be-processed picture, and obtaining a preset webpage component template; filling the classified material into the At a corresponding position in the webpage component template, a webpage corresponding to the to-be-processed picture is generated.
  • the corresponding web pages can be automatically generated intelligently according to the input pictures to be processed, the workload of manual development is effectively reduced, the generation efficiency of generating web pages based on pictures is improved, and the generated web pages are more efficient than the original pictures. High degree of recovery.
  • Nonvolatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory may include random access memory (RAM) or external cache memory.
  • RAM is available in various forms such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double-rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
  • the computer usable storage medium may mainly include a stored program area and a stored data area, wherein the stored program area may store an operating system, an application program required for at least one function, and the like; using the created data, etc.
  • the blockchain referred to in the present invention is a new application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, and encryption algorithm.
  • Blockchain essentially a decentralized database, is a series of data blocks associated with cryptographic methods. Each data block contains a batch of network transaction information to verify its Validity of information (anti-counterfeiting) and generation of the next block.
  • the blockchain can include the underlying platform of the blockchain, the platform product service layer, and the application service layer.
  • the underlying platform of the blockchain can include processing modules such as user management, basic services, smart contracts, and operation monitoring.
  • the user management module is responsible for the identity information management of all blockchain participants, including maintenance of public and private key generation (account management), key management, and maintenance of the corresponding relationship between the user's real identity and blockchain address (authority management), etc.
  • account management maintenance of public and private key generation
  • key management key management
  • authorization management maintenance of the corresponding relationship between the user's real identity and blockchain address
  • the basic service module is deployed on all blockchain node devices to verify the validity of business requests, After completing the consensus on valid requests, record them in the storage.
  • the basic service For a new business request, the basic service first adapts the interface for analysis and authentication processing (interface adaptation), and then encrypts the business information through the consensus algorithm (consensus management), After encryption, it is completely and consistently transmitted to the shared ledger (network communication), and records are stored; the smart contract module is responsible for the registration and issuance of contracts, as well as contract triggering and contract execution.
  • contract logic through a programming language and publish to On the blockchain (contract registration), according to the logic of the contract terms, call the key or other events to trigger execution, complete the contract logic, and also provide the function of contract upgrade and cancellation;
  • the operation monitoring module is mainly responsible for the deployment in the product release process , configuration modification, contract settings, cloud adaptation, and visual output of real-time status in product operation, such as: alarms, monitoring network conditions, monitoring node equipment health status, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本申请涉及数据处理技术领域,提供一种将图片转换为网页的方法、装置、计算机设备和存储介质,方法包括:获取输入的待处理图片;对待处理图片进行识别处理,识别出待处理图片中包含的素材特征信息;根据素材特征信息,对待处理图片进行分离处理,得到与素材特征信息对应的素材;按照预设的素材类别对素材进行分类,得到分类后的素材;获取分类后的素材在待处理图片中的位置信息,以及获取预设的网页组件模板;根据位置信息,将分类后的素材填充至网页组件模板内的对应位置处,生成与待处理图片对应的网页。通过本申请能够智能地根据输入的待处理图片来自动生成对应的网页。此外,本申请还涉及区块链技术,所述分类后的素材可存储于区块链中。

Description

将图片转换为网页的方法、装置、计算机设备和存储介质
本申请要求于2020年08月28日提交中国专利局、申请号为2020108884650,发明名称为“将图片转换为网页的方法、装置、计算机设备和存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及数据处理技术领域,具体涉及一种将图片转换为网页的方法、装置、计算机设备和存储介质。
背景技术
随着互联网的蓬勃发展,网页成为了一种在互联网中常见的传播载体。网页包含了丰富的信息,网页以其动态交互的新颖形式,日益成为一种流行的内容宣传方式。
然而发明人发现,如果当前具有较多数量的已有的设计稿图片,且需要根据设计稿图片进行网页制作时,对于传统的开发流程,需要前端开发人员将设计稿图片一个一个的进行切图布局等常规开发操作,这样会占用开发周期中相当多的时间,同样需要花费较大的成本,开发效率低下。所以在已有设计稿图片的场景下,亟需设计出一种能够更高效更智能的根据图片来自动生成网页的方法。
技术问题
本申请的主要目的为提供一种将图片转换为网页的方法、装置、计算机设备和存储介质,旨在解决现有的使用图片进行相应网页制作的开发流程,需要前端开发人员将图片一个一个的进行切图布局等常规开发操作,这样会占用开发周期中相当多的时间,同样需要花费较大的成本,开发效率低下的技术问题。
技术解决方案
本申请提出一种将图片转换为网页的方法,所述方法包括步骤:
获取输入的待处理图片;
对所述待处理图片进行识别处理,识别出所述待处理图片中包含的素材特征信息;
根据所述素材特征信息,对所述待处理图片进行分离处理,得到与所述素材特征信息对应的素材;
按照预设的素材类别对所述素材进行分类,得到分类后的素材;
获取所述分类后的素材在所述待处理图片中的位置信息,以及获取预设的网页组件模板;
根据所述位置信息,将所述分类后的素材填充至所述网页组件模板内的对应位置处,生成与所述待处理图片对应的网页。
本申请还提供一种将图片转换为网页的装置,包括:
第一获取模块,用于获取输入的待处理图片;
识别模块,用于对所述待处理图片进行识别处理,识别出所述待处理图片中包含的素材特征信息;
分离模块,用于根据所述素材特征信息,对所述待处理图片进行分离处理,得到与所述素材特征信息对应的素材;
分类模块,用于按照预设的素材类别对所述素材进行分类,得到分类后的素材;
第二获取模块,用于获取所述分类后的素材在所述待处理图片中的位置信息,以及获取预设的网页组件模板;
填充模块,用于根据所述位置信息,将所述分类后的素材填充至所述网页组件模板内的对应位置处,生成与所述待处理图片对应的网页。
本申请还提供一种计算机设备,包括存储器和处理器,所述存储器中存储有计算机程序,所述处理器执行所述计算机程序时实现一种将图片转换为网页的方法,其中,所述将图片转换为网页的方法包括以下步骤:
获取输入的待处理图片;
对所述待处理图片进行识别处理,识别出所述待处理图片中包含的素材特征信息;
根据所述素材特征信息,对所述待处理图片进行分离处理,得到与所述素材特征信息对应的素材;
按照预设的素材类别对所述素材进行分类,得到分类后的素材;
获取所述分类后的素材在所述待处理图片中的位置信息,以及获取预设的网页组件模板;
根据所述位置信息,将所述分类后的素材填充至所述网页组件模板内的对应位置处,生成与所述待处理图片对应的网页。
本申请还提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现一种将图片转换为网页的方法,其中,所述将图片转换为网页的方法包括以下步骤:
获取输入的待处理图片;
对所述待处理图片进行识别处理,识别出所述待处理图片中包含的素材特征信息;
根据所述素材特征信息,对所述待处理图片进行分离处理,得到与所述素材特征信息对应的素材;
按照预设的素材类别对所述素材进行分类,得到分类后的素材;
获取所述分类后的素材在所述待处理图片中的位置信息,以及获取预设的网页组件模板;
根据所述位置信息,将所述分类后的素材填充至所述网页组件模板内的对应位置处,生成与所述待处理图片对应的网页。
有益效果
本申请中提供的将图片转换为网页的方法、装置、计算机设备和存储介质,能够基于网页组件模板来智能地对待处理图片进行转换处理,以实现方便快捷地根据输入的待处理图片来自动生成对应的网页,使得不再需要开发人员将图片一个一个的进行切图布局等常规开发操作,有效地减少了人工开发工作量,提高了根据图片生成网页的生成效率,且生成的网页相较于原图片的还原度高。
附图说明
图1是本申请一实施例的将图片转换为网页的方法的流程示意图;
图2是本申请一实施例的将图片转换为网页的装置的结构示意图;
图3是本申请一实施例的计算机设备的结构示意图。
本发明的最佳实施方式
应当理解,此处所描述的具体实施例仅仅用于解释本申请,并不用于限定本申请。
参照图1,本申请一实施例的将图片转换为网页的方法,包括:
S1:获取输入的待处理图片;
S2:对所述待处理图片进行识别处理,识别出所述待处理图片中包含的素材特征信息;
S3:根据所述素材特征信息,对所述待处理图片进行分离处理,得到与所述素材特征信息对应的素材;
S4:按照预设的素材类别对所述素材进行分类,得到分类后的素材;
S5:获取所述分类后的素材在所述待处理图片中的位置信息,以及获取预设的网页组件模板;
S6:根据所述位置信息,将所述分类后的素材填充至所述网页组件模板内的对应位置处,生成与所述待处理图片对应的网页。
如上述步骤S1至S6所述,本方法实施例的执行主体为一种将图片转换为网页的的装置。在实际应用中,上述将图片转换为网页的装置可以通过虚拟装置,例如软件代码实现,也可以通过写入或集成有相关执行代码的实体装置实现,且可以与用户通过键盘、鼠标、遥控器、触摸板或声控设备等方式进行人机交互。举例地,上述将图片转换为网页的装置具体可以是移动终端。本实施例提供的将图片转换为网页的装置能够自动智能地将获取的待处理图片转换成对应的网页,有效地减少了人工开发工作量,有效地提高了根据图片生成网页的生成效率。具体地,首先获取输入的待处理图片。其中,上述待处理图片为用户需要用于转换为网页的图片数据,例如设计稿图片,可由用户输入至装置内。然后对上述待处理图片进行识别处理,识别出上述待处理图片中包含的素材特征信息。其中,可通过基于图像识别技术的图像识别算法来对上述待处理图片进行识别处理,对上述图像识别算法不作具体限定,例如可采用SURF算法或BRISK算法,等等。图像识别技术是人工智能的一个重要领域,图像识别技术用于对图像进行对象识别,以识别各种不同模式的目标和对像的技术,是以图像的主要特征为基础的,每个图像都有它的特征。另外,也可采用基于图像识别技术生成的图像识别模型来对上述待处理图片进行识别处理。上述图像识别模型具体可使用指定量的样本数据对卷积神经网络模型(CNN)进行训练生成的,且上述样本数据包括样本图片以及与该样本图片关联的素材数据。之后根据上述素材特征信息,对上述待处理图片进行分离处理,得到与上述素材特征信息对应的素材。其中,可以根据上述素材特征信息,可以利用预设的聚类算法对图片进行分割/分离处理,得到与上述素材特征信息对应的多个素材,上述聚类算法可包括K-means聚类算法。在得到了上述素材后,再按照预设的素材类别对上述素材进行分类,得到分类后的素材。其中,上述素材类别具体可包括图片类别、填充类别与文字类别。通过上述素材类别对上述素材进行分类后,得到的分类后的素材,具体可包括图片素材、填充素材与文字素材。之后获取上述分类后的素材在上述待处理图片中的位置信息,以及获取预设的网页组件模板。其中,上述网页模板组件具体可包括图片组件、填充组件与文字组件,且该网页模板组件可根据用户输入的配置代码来自动生成,用户可根据自身实际需求来编写相关的配置代码。最后根据上述位置信息,将上述分类后的素材填充至上述网页组件模板内的对应位置处,生成与上述待处理图片对应的网页。其中,可获取分类后的素材在上述待处理图片中的位置信息,再在网页组件模板中确定出与该位置信息相同的放置位置并根据该位置信息来将上述分类后的素材输入至预设的网页组件模版内的对应位置处,以生成与上述待处理图片对应的网页。通过本实施例能够智能地根据输入的待处理图片来自动生成对应的网页,有效地减少了人工开发工作量,提高了根据图片生成网页的生成效率,且生成的网页相较于原图片的还原度高。
进一步地,本申请一实施例中,上述按照预设的素材类别对所述素材进行分类,得到分类后的素材 的步骤S4,包括:
S400:获取预设的素材类别;
S401:根据所述素材类别,分别将每一个所述素材与所述素材类别进行类别匹配处理,得到与每一个所述素材对应的类别匹配结果;
S402:根据所述类别匹配结果,将所有所述素材划分为不同种类的素材。
如上述步骤S400至S402所述,上述按照预设的素材类别对上述素材进行分类,得到分类后的素材的步骤,具体可包括:首先获取预设的素材类别。其中,上述素材类别具体可包括图片类别、填充类别与文字类别。在得到了上述素材类别后,再根据上述素材类别,分别将每一个素材与上述素材类别进行类别匹配处理,得到与每一个上述素材对应的类别匹配结果。并在得到了上述类别匹配结果后,再根据上述类别匹配结果,将所有上述素材划分为不同种类的素材。其中,上述不同种类的素材包括具体可包括图片素材、填充素材与文字素材。具体地,通过将每一个素材分别与上述素材类别进行匹配处理来得到对应的类别匹配结果,从而可以根据该类别匹配结果,来将与素材类别中的图片类别相匹配的素材划分为图片素材,将与素材类别中的填充类别相匹配的素材划分为填充素材,以及将与素材类别中的文字类别相匹配的素材划分为文字素材。另外,上述图片素材具体是指某个特征物品的复杂图像,且不是由集合图形填充而来的图像。上述填充素材具体是指修饰部分,往往是画图或者几何图形直接填充颜色后生成的。在网页概念内,按钮、边框、背景色、标题、段落、列表、表单等都属于填充素材。上述文字素材具体指的是图片内的文字识别。本实施例根据预设的素材类别,来将每一个素材分别与上述素材类别进行匹配处理,进而实现将所有上述素材划分为不同种类的素材,以便后续根据分类后的素材在上述待处理图片中的位置信息,将上述分类后的素材填充至上述网页组件模板内的与该位置信息对应的位置处,以实现智能快速地生成与上述待处理图片对应的网页。
本申请一实施例中,所述网页组件模板包括图片组件、填充组件与文字组件,所述分类后的素材包括图片素材、填充素材与文字素材,上述根据所述位置信息,将所述分类后的素材填充至所述网页组件模板内的对应位置处,生成与所述待处理图片对应的网页的步骤S6,包括:
S600:获取所述图片素材在所述待处理图片中图片图层内的第一位置信息,在所述图片组件中确定出与所述第一位置信息相同的第一放置位置,并将所述图片素材填充至所述第一放置位置处;以及,
S601:获取所述填充素材在所述待处理图片中中填充图层内的第二位置信息,在述填充图层中确定出与所述第二位置信息相同的第二放置位置,并根据所述第二位置信息将所述填充素材填充至所述第二放置位置处;以及,
S602:获取所述文字素材在所述待处理图片中文字图层内的第三位置信息,在所述文字组件中确定出与所述第三位置信息相同的第三放置位置,并根据所述第三位置信息将所述文字素材填充至所述第三放置位置处,生成与所述待处理图片对应的网页。
如上述步骤S600至S602所述,上述网页组件模板具体可包括图片组件、填充组件与文字组件,上述分类后的素材具体可包括图片素材、填充素材与文字素材。上述根据上述位置信息,将上述分类后的素材填充至上述网页组件模板内的对应位置处,生成与上述待处理图片对应的网页的步骤,具体可包括:获取上述图片素材在上述待处理图片中图片图层内的第一位置信息,在上述图片组件中确定出与上述第一位置信息相同的第一放置位置,并将上述图片素材填充至上述图片组件内的第一放置位置处。以及获取上述填充素材在上述待处理图片中中填充图层内的第二位置信息,在述填充图层中确定出与上述第二位置信息相同的第二放置位置,并根据上述第二位置信息将上述填充素材填充至上述填充组件内的第二放置位置处。以及获取上述文字素材在上述待处理图片中文字图层内的第三位置信息,在上述文字组件中确定出与上述第三位置信息相同的第三放置位置,并根据上述第三位置信息将上述文字素材填充至上述文字组件内的第三放置位置,生成与上述待处理图片对应的网页。其中,对于对上述素材进行分类后得到的分类后的素材,每一种分类后的素材都会对应于上述网页组件模板内的一个组件。另外,通过获取各分类后的素材分别在上述待处理图片中图层内的位置信息,再在网页组件模板中确定出与该位置信息相同的放置位置,之后根据该位置信息来将各分类后的素材一一对应地填充至网页组件模板内的各组件内相应的放置位置处,进而能够准确快捷地生成与上述待处理图片视觉效果一致的网页。本实施例当获取到输入的待处理图片后,会基于图像识别技术对图片内容进行特征识别。并基于识别结果进行特征分离得到对应的素材,再对素材进行分类得到分类后的素材,以及获取分类后的素材在上述待处理图片中的位置信息,并在网页组件模板中确定出与该位置信息相同的放置位置,最后根据该位置信息来将上述分类后的素材输入至预设的网页组件模版内的对应位置处以生成对应的网页,从而有效地实现了智能快速将图片转换为对应的网页的效果。
进一步地,本申请一实施例中,上述根据所述位置信息,将所述素材填充至所述网页组件模板内的对应位置处,生成与所述待处理图片对应的网页的步骤S6之后,包括:
S610:展示所述网页;
S611:判断是否接收到对于所述网页的调整指令;
S612:若判断出接收到对于所述网页的调整指令,则提醒用户录入身份验证信息;
S613:获取指定次数的,且距离当前时间最近的正确输入的多个鉴权验证信息;
S614:判断在所述多个鉴权验证信息中,是否存在与所述身份验证信息匹配的指定鉴权验证信息;
S615:若判断出存在与所述身份验证信息匹配的指定鉴权验证信息,则响应所述调整指令,并根据所述调整指令对所述网页进行对应的调整。
如上述步骤S610至S615所述,在生成了与上述待处理图片对应的网页后,在判断出用户为具有对上述网页进行编辑的权限的开发人员时,还可进一步根据用户的个人实际需求对该网页进行相应的调整处理。具体地,上述根据上述位置信息,将上述素材填充至上述网页组件模板内的对应位置处,生成与上述待处理图片对应的网页的步骤之后,还可包括:首先展示上述网页,以便让用户可以对生成的该网页内包含的数据进行准确性判断与评价。然后判断是否接收对于上述网页的调整指令。其中,上述调整指令对应着用户反馈的修改信息。另外,上述调整指令可用户进行触发,且对该调整指令的触发形式不作具体限定,例如可采用文字形式或语音形式进行触发。此外,上述调整指令可对于网页内的具体某个元素进行自定义调整其标签样式和交互功能,以符合用户的期望效果。如果判断出接收到用户触发的对于上述网页的调整指令,则提醒用户录入身份验证信息。其中,上述身份验证信息是用于对触发上述调整指令的用户进行身份验证的信息。用户录入的身份验证信息包括但不限于:数字密码、面部信息、指纹信息、虹膜信息。另外,提示用户录入身份验证信息还可以通过语音提示,或是其他方式,在此不作限定。此外,装置内还可包括生物信息采集模块,生物信息采集模块包括以下至少一种:指纹信息采集模块、面部信息采集模块和虹膜信息采集模块,其中,指纹信息采集模块可以是指纹传感器模组;面部信息采集模块可以是通用摄像头模组,如前置摄像头;虹膜信息采集模块可以包括红外光源和虹膜摄像头。在接收到上述身份验证信息后,再获取指定次数的,且距离当前时间最近的正确输入的多个鉴权验证信息。其中,对于上述指定次数的数量不作具体限定,例如可设为3次。另外,上述鉴权验证信息是用于放行用户使用权限所对应的正确的验证信息,该鉴权验证信息包括但不限于:数字密码、面部信息、指纹信息、虹膜信息。在得到了上述多个鉴权验证信息后,再判断在上述多个鉴权验证信息中,是否存在与上述身份验证信息匹配的指定鉴权验证信息。如果判断出存在与上述身份验证信息匹配的指定鉴权验证信息,表明用户具有对于上述网页进行调整处理的权限,则会响应上述调整指令,并根据上述调整指令对上述网页进行对应的调整。。本实施例在生成了与待处理图片对应的网页后,在检测到用户触发的对于上述网页的调整指令时,会先提示用户进行身份验证,如果验证出当前用户为具有对上述网页进行编辑的权限的开发人员时,后续才会根据接收到的用户触发的调整指令来对该网页进行对应的调整处理以得到更加精准的网页内容,使得最后生成的网页能够贴合用户的实际需求,有效地保证了用户的使用体验。且这样还可以避免不具有对于网页的编辑权限的用户对网页进行非法处理,有效地保证了生成的网页的数据安全性。
进一步地,本申请一实施例中,上述展示所述网页的步骤S610,包括:
S6100:从预设的动画库内包含的所有动态效果中,提取出用户使用次数最多的指定动态效果;
S6101:将所述指定动态效果添加至所述网页中,得到更新后的网页;
S6102:展示所述更新后的网页。
如上述步骤S6100至S6102所述,在生成与上述待处理图片对应的上述网页后,在对该网页进行展示之前,还可包括对上述网页进行添加动效的处理,以向用户展示形式更加丰富的动态页面。具体地,上述展示上述网页的步骤的步骤,具体可包括:首先从预设的动画库内包含的所有动态效果中,提取出用户使用次数最多的指定动态效果。其中,上述预设的动画库中内置有各种动态效果,包括但不限于飞入、渐模块隐渐现、钟摆效果、延迟出现等,所有的动态效果,都可以设置各类属性,例如飞入的时间,模块是否有惯性,惯性时间,动画时间采用哪种函数(线性、非线性或者高阶函数)等等。且本实施例会根据技术和需求的更新,自动维护上述动画库,并且可以支持用户在上述动画库内添加自定义动态效果。在得到了用户使用次数最多的上述指定动态效果时,然后将上述指定动态效果添加至上述网页中,得到更新后的网页。其中,通过将上述指定动态效果添加至网页中,能够得到展示效果更加丰富的动态页面,有利于为用户提供一种新形式的输出网页。最后生成了上述更新后的网页时,再展示上述更新后的网页。本实施例在向用户展示生成的与待处理图片对应的网页之前,还会对智能对上述网页进行添加动效的处理,具体会从预设的动画库中提取出用户使用次数最多的指定动态效果,并将该指定动态效果添加至上述网页中来得到更新后的网页,从而能够为用户展示一种新形式的动态页面。另外,由于添加的指定动态效果是根据用户以往的使用习惯来智能选取的,能够满足用户的需求,有效地提高了用户的使用体验。
进一步地,本申请一实施例中,上述提醒用户录入身份验证信息的步骤S612,包括;
S6120:获取当前时间,以及距离当前时间最近的最新一次成功鉴权的指定时间;
S6121:计算所述当前时间减去所述指定时间得到的差值;
S6122:判断所述差值是否大于预设时间阈值;
S6123:若判断出所述差值大于预设时间阈值,则提醒用户录入身份验证信息。
如上述步骤S6120至S6123所述,上述提醒用户录入身份验证信息的步骤,具体可包括:首先获取当前时间,以及距离当前时间最近的最新一次成功鉴权的指定时间。然后计算上述当前时间减去上述指定时间得到的差值。举例地,假设当前时间为16:20,指定时间为16:00,则当前时间减去指定时间得到的差值为20分钟。之后判断上述差值是否大于预设时间阈值。其中,对于上述预设时间阈值的数值不作具体限定,例如可设置为10分钟。如果判断出上述差值大于预设时间阈值,则提醒用户录入身份验证信息。本实施例只有在当前时间距离最新一次成功鉴权的指定时间大于预设时间阔值的情况下,才会在响应用户触发的调整指令之前需要对用户身份验证,这样可在确保用户具有对于上述网页的处理权限的前提下,避免每次用户需要对网页进行调整处理之前都需要身份验证而给用户带来不必要的麻烦,进一步地提升了用户体验。
进一步地,本申请一实施例中,上述获取预设的网页组件模板的步骤S5之前,包括:
S500:接收输入的配置代码;
S501:对所述配置代码进行解析处理,生成与所述配置代码对应的解析结果;
S502:根据所述解析结果,生成所述网页组件模板。
如上述步骤S500至S502所述,在进行上述获取预设的网页组件模板的获取步骤之前,还可包括生成该网页组件模板的生成步骤。具体地,首先接收输入的配置代码。其中,上述配置代码为用于生成上述网页组件模板的代码,且该配置代码可由用户根据实际需求编写生成。然后对上述配置代码进行解析处理,生成与上述配置代码对应的解析结果。其中,上述对于配置代码的解析处理流程可参考现有的代码解析方法,在此不再赘述。最后根据上述解析结果,生成上述网页组件模板。其中,上述网页组件模板也可称为网页布局框架,且该网页组件模板为根据输入的配置代码生成的程序化的组件模板。另外,上述网页组件模板具体可包括图片组件、填充组件与文字组件。本实施例通过解析输入的配置代码来生成对应的网页组件模板,有利于后续将与待处理图片对应的素材填充至上述网页组件模板内,进而实现智能快捷地生成与上述待处理图片对应的网页。
进一步地,本申请一实施例中,上述按照预设的素材类别对所述素材进行分类,得到分类后的素材的步骤S4之后,包括:
S410:将所述分类后的素材存储至区块链系统的区块链上。
如上述步骤S410所述,在完成了对于上述图像素材的划分处理后,还可基于区块链来对经过划分处理得到的分类后的素材进行安全存储处理,以实现对于上述分类后的素材的安全存储。具体地,上述按照预设的素材类别对所述素材进行分类,得到分类后的素材的步骤之后,还可包括:将上述分类后的素材存储至区块链系统的区块链上。本实施例通过使用区块链来对经过划分处理后生成的上述分类后的素材进行存储和管理,有效地保证了上述分类后的素材的安全性与不可篡改性。
参照图2,本申请一实施例中还提供了一种将图片转换为网页的装置,包括:
第一获取模块1,用于获取输入的待处理图片;
识别模块2,用于对所述待处理图片进行识别处理,识别出所述待处理图片中包含的素材特征信息;
分离模块3,用于根据所述素材特征信息,对所述待处理图片进行分离处理,得到与所述素材特征信息对应的素材;
分类模块4,用于按照预设的素材类别对所述素材进行分类,得到分类后的素材;
第二获取模块5,用于获取所述分类后的素材在所述待处理图片中的位置信息,以及获取预设的网页组件模板;
填充模块6,用于根据所述位置信息,将所述分类后的素材填充至所述网页组件模板内的对应位置处,生成与所述待处理图片对应的网页。
本实施例中,上述将图片转换为网页的装置中的第一获取模块、识别模块、分类模块、分类模块、第二获取模块与填充模块的功能和作用的实现过程具体详见上述将图片转换为网页的方法中对应步骤S1至S6的实现过程,在此不再赘述。
进一步地,本申请一实施例中,上述分类模块,包括:
第一获取单元,用于获取预设的素材类别;
第二匹配单元,用于根据所述素材类别,分别将每一个所述素材与所述素材类别进行类别匹配处理,得到与每一个所述素材对应的类别匹配结果;
划分单元,用于根据所述类别匹配结果,将所有所述素材划分为不同种类的素材。
本实施例中,上述将图片转换为网页的装置中的第一获取单元、第二匹配单元与划分单元的功能和作用的实现过程具体详见上述将图片转换为网页的方法中对应步骤S300至S302的实现过程,在此不再赘述。
进一步地,本申请一实施例中,所述网页组件模板包括图片组件、填充组件与文字组件,所述分类后的素材包括图片素材、填充素材与文字素材,上述填充模块,包括:
第一填充单元,用于获取所述图片素材在所述待处理图片中图片图层内的第一位置信息,在所述图片组件中确定出与所述第一位置信息相同的第一放置位置,并将所述图片素材填充至所述第一放置位置处;以及,
第二填充单元,用于获取所述填充素材在所述待处理图片中中填充图层内的第二位置信息,在述填充图层中确定出与所述第二位置信息相同的第二放置位置,并根据所述第二位置信息将所述填充素材填充至所述第二放置位置处;以及,
第三填充单元,用于获取所述文字素材在所述待处理图片中文字图层内的第三位置信息,在所述文字组件中确定出与所述第三位置信息相同的第三放置位置,并根据所述第三位置信息将所述文字素材填充至所述第三放置位置处,生成与所述待处理图片对应的网页。
本实施例中,上述将图片转换为网页的装置中的第一填充单元、第二填充单元与第三填充单元的功能和作用的实现过程具体详见上述将图片转换为网页的方法中对应步骤S600至S602的实现过程,在此不再赘述。
进一步地,本申请一实施例中,上述将图片转换为网页的装置,包括:
展示模块,用于展示所述网页;
第一判断模块,用于判断是否接收到对于所述网页的调整指令;
提醒模块,用于若判断出接收到对于所述网页的调整指令,则提醒用户录入身份验证信息;
第三获取模块,用于获取指定次数的,且距离当前时间最近的正确输入的多个鉴权验证信息;
第二判断模块,用于判断在所述多个鉴权验证信息中,是否存在与所述身份验证信息匹配的指定鉴权验证信息;
调整模块,用于若判断出存在与所述身份验证信息匹配的指定鉴权验证信息,则响应所述调整指令,并根据所述调整指令对所述网页进行对应的调整。
本实施例中,上述将图片转换为网页的装置中的展示模块、第一判断模块、提醒模块、第三获取模块、第二判断模块与调整模块的功能和作用的实现过程具体详见上述将图片转换为网页的方法中对应步骤S610至S615的实现过程,在此不再赘述。
进一步地,本申请一实施例中,上述展示模块,包括:
提取单元,用于从预设的动画库内包含的所有动态效果中,提取出用户使用次数最多的指定动态效果;
添加单元,用于将所述指定动态效果添加至所述网页中,得到更新后的网页;
展示单元,用于展示所述更新后的网页。
本实施例中,上述将图片转换为网页的装置中的提取单元、添加单元与展示单元的功能和作用的实现过程具体详见上述将图片转换为网页的方法中对应步骤S6100至S6102的实现过程,在此不再赘述。
进一步地,本申请一实施例中,上述第一提醒模块,包括:
第二获取单元,用于获取当前时间,以及距离当前时间最近的最新一次成功鉴权的指定时间;
计算单元,用于计算所述当前时间减去所述指定时间得到的差值;
判断单元,用于判断所述差值是否大于预设时间阈值;
提醒单元,用于若判断出所述差值大于预设时间阈值,则提醒用户录入身份验证信息。
本实施例中,上述将图片转换为网页的装置中的第二获取单元、计算单元、判断单元与提醒单元的功能和作用的实现过程具体详见上述将图片转换为网页的方法中对应步骤S6120至S6123的实现过程,在此不再赘述。
进一步地,本申请一实施例中,上述将图片转换为网页的装置,包括:
接收模块,用于接收输入的配置代码;
解析模块,用于对所述配置代码进行解析处理,生成与所述配置代码对应的解析结果;
生成模块,用于根据所述解析结果,生成所述网页组件模板。
本实施例中,上述将图片转换为网页的装置中的接收模块、解析模块与生成模块的功能和作用的实现过程具体详见上述将图片转换为网页的方法中对应步骤S500至S502的实现过程,在此不再赘述。
进一步地,本申请一实施例中,上述将图片转换为网页的装置,包括:
存储模块,用于将所述分类后的素材存储至区块链系统的区块链上。
本实施例中,上述将图片转换为网页的装置中的存储模块的功能和作用的实现过程具体详见上述将图片转换为网页的方法中对应步骤S410的实现过程,在此不再赘述。
参照图3,本申请实施例中还提供一种计算机设备,该计算机设备可以是服务器,其内部结构可以如图3所示。该计算机设备包括通过系统总线连接的处理器、存储器、网络接口和数据库。其中,该计 算机设备设计的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统、计算机程序和数据库。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的数据库用于存储素材、网页组件模板以及与待处理图片对应的网页等数据。该计算机设备的网络接口用于与外部的终端通过网络连接通信。该计算机程序被处理器执行时以实现一种将图片转换为网页的方法。
上述处理器执行上述将图片转换为网页的方法的步骤:
获取输入的待处理图片;
对所述待处理图片进行识别处理,识别出所述待处理图片中包含的素材特征信息;
根据所述素材特征信息,对所述待处理图片进行分离处理,得到与所述素材特征信息对应的素材;
按照预设的素材类别对所述素材进行分类,得到分类后的素材;
获取所述分类后的素材在所述待处理图片中的位置信息,以及获取预设的网页组件模板;
根据所述位置信息,将所述分类后的素材填充至所述网页组件模板内的对应位置处,生成与所述待处理图片对应的网页。
本领域技术人员可以理解,图3中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的装置、计算机设备的限定。
本申请一实施例还提供一种计算机可读存储介质,所述计算机可读存储介质可以是非易失性,也可以是易失性,其上存储有计算机程序,计算机程序被处理器执行时实现上述任一个示例性实施例所示出的将图片转换为网页的方法,所述将图片转换为网页的方法包括以下步骤:
获取输入的待处理图片;
对所述待处理图片进行识别处理,识别出所述待处理图片中包含的素材特征信息;
根据所述素材特征信息,对所述待处理图片进行分离处理,得到与所述素材特征信息对应的素材;
按照预设的素材类别对所述素材进行分类,得到分类后的素材;
获取所述分类后的素材在所述待处理图片中的位置信息,以及获取预设的网页组件模板;
根据所述位置信息,将所述分类后的素材填充至所述网页组件模板内的对应位置处,生成与所述待处理图片对应的网页。
综上所述,本申请实施例中提供的将图片转换为网页的方法、装置、计算机设备和存储介质,获取输入的待处理图片;对所述待处理图片进行识别处理,识别出所述待处理图片中包含的素材特征信息;根据所述素材特征信息,对所述待处理图片进行分离处理,得到与所述素材特征信息对应的素材;按照预设的素材类别对所述素材进行分类,得到分类后的素材;获取所述分类后的素材在所述待处理图片中的位置信息,以及获取预设的网页组件模板;根据所述位置信息,将所述分类后的素材填充至所述网页组件模板内的对应位置处,生成与所述待处理图片对应的网页。通过本申请实施例能够智能地根据输入的待处理图片来自动生成对应的网页,有效地减少了人工开发工作量,提高了根据图片生成网页的生成效率,且生成的网页相较于原图片的还原度高。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储与一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的和实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可以包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM通过多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双速据率SDRAM(SSRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。
进一步地,所述计算机可用存储介质可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序等;存储数据区可存储根据区块链节点的使用所创建的数据等。
本发明所指区块链是分布式数据存储、点对点传输、共识机制、加密算法等计算机技术的新型应用模式。区块链(Blockchain),本质上是一个去中心化的数据库,是一串使用密码学方法相关联产生的数据块,每一个数据块中包含了一批次网络交易的信息,用于验证其信息的有效性(防伪)和生成下一个区块。区块链可以包括区块链底层平台、平台产品服务层以及应用服务层等。
区块链底层平台可以包括用户管理、基础服务、智能合约以及运营监控等处理模块。其中,用户管理模块负责所有区块链参与者的身份信息管理,包括维护公私钥生成(账户管理)、密钥管理以及用户真实身份和区块链地址对应关系维护(权限管理)等,并且在授权的情况下,监管和审计某些真实身份的交易情况,提供风险控制的规则配置(风控审计);基础服务模块部署在所有区块链节点设备上,用来验证 业务请求的有效性,并对有效请求完成共识后记录到存储上,对于一个新的业务请求,基础服务先对接口适配解析和鉴权处理(接口适配),然后通过共识算法将业务信息加密(共识管理),在加密之后完整一致的传输至共享账本上(网络通信),并进行记录存储;智能合约模块负责合约的注册发行以及合约触发和合约执行,开发人员可以通过某种编程语言定义合约逻辑,发布到区块链上(合约注册),根据合约条款的逻辑,调用密钥或者其它的事件触发执行,完成合约逻辑,同时还提供对合约升级注销的功能;运营监控模块主要负责产品发布过程中的部署、配置的修改、合约设置、云适配以及产品运行中的实时状态的可视化输出,例如:告警、监控网络情况、监控节点设备健康状态等。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其它变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、装置、物品或者方法不仅包括那些要素,而且还包括没有明确列出的其它要素,或者是还包括为这种过程、装置、物品或者方法所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、装置、物品或者方法中还存在另外的相同要素。
以上所述仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。

Claims (20)

  1. 一种将图片转换为网页的方法,其中,包括:
    获取输入的待处理图片;
    对所述待处理图片进行识别处理,识别出所述待处理图片中包含的素材特征信息;
    根据所述素材特征信息,对所述待处理图片进行分离处理,得到与所述素材特征信息对应的素材;
    按照预设的素材类别对所述素材进行分类,得到分类后的素材;
    获取所述分类后的素材在所述待处理图片中的位置信息,以及获取预设的网页组件模板;
    根据所述位置信息,将所述分类后的素材填充至所述网页组件模板内的对应位置处,生成与所述待处理图片对应的网页。
  2. 根据权利要求1所述的将图片转换为网页的方法,其中,所述按照预设的素材类别对所述素材进行分类,得到分类后的素材的步骤,包括:
    获取预设的素材类别;
    根据所述素材类别,分别将每一个所述素材与所述素材类别进行类别匹配处理,得到与每一个所述素材对应的类别匹配结果;
    根据所述类别匹配结果,将所有所述素材划分为不同种类的素材。
  3. 根据权利要求1所述的将图片转换为网页的方法,其中,所述网页组件模板包括图片组件、填充组件与文字组件,所述分类后的素材包括图片素材、填充素材与文字素材,所述根据所述位置信息,将所述分类后的素材填充至所述网页组件模板内的对应位置处,生成与所述待处理图片对应的网页的步骤,包括:
    获取所述图片素材在所述待处理图片中图片图层内的第一位置信息,在所述图片组件中确定出与所述第一位置信息相同的第一放置位置,并将所述图片素材填充至所述第一放置位置处;以及,
    获取所述填充素材在所述待处理图片中中填充图层内的第二位置信息,在述填充图层中确定出与所述第二位置信息相同的第二放置位置,并根据所述第二位置信息将所述填充素材填充至所述第二放置位置处;以及,
    获取所述文字素材在所述待处理图片中文字图层内的第三位置信息,在所述文字组件中确定出与所述第三位置信息相同的第三放置位置,并根据所述第三位置信息将所述文字素材填充至所述第三放置位置处,生成与所述待处理图片对应的网页。
  4. 根据权利要求1所述的将图片转换为网页的方法,其中,所述根据所述位置信息,将所述素材填充至所述网页组件模板内的对应位置处,生成与所述待处理图片对应的网页的步骤之后,包括:
    展示所述网页;
    判断是否接收到对于所述网页的调整指令;
    若判断出接收到对于所述网页的调整指令,则提醒用户录入身份验证信息;
    获取指定次数的,且距离当前时间最近的正确输入的多个鉴权验证信息;
    判断在所述多个鉴权验证信息中,是否存在与所述身份验证信息匹配的指定鉴权验证信息;
    若判断出存在与所述身份验证信息匹配的指定鉴权验证信息,则响应所述调整指令,并根据所述调整指令对所述网页进行对应的调整。
  5. 根据权利要求4所述的将图片转换为网页的方法,其中,所述展示所述网页的步骤,包括:
    从预设的动画库内包含的所有动态效果中,提取出用户使用次数最多的指定动态效果;
    将所述指定动态效果添加至所述网页中,得到更新后的网页;
    展示所述更新后的网页。
  6. 根据权利要求4所述的将图片转换为网页的方法,其中,所述提醒用户录入身份验证信息的步骤,包括;
    获取当前时间,以及距离当前时间最近的最新一次成功鉴权的指定时间;
    计算所述当前时间减去所述指定时间得到的差值;
    判断所述差值是否大于预设时间阈值;
    若判断出所述差值大于预设时间阈值,则提醒用户录入身份验证信息。
  7. 根据权利要求1所述的将图片转换为网页的方法,其中,所述获取预设的网页组件模板的步骤之前,包括:
    接收输入的配置代码;
    对所述配置代码进行解析处理,生成与所述配置代码对应的解析结果;
    根据所述解析结果,生成所述网页组件模板。
  8. 一种将图片转换为网页的装置,其中,包括:
    第一获取模块,用于获取输入的待处理图片;
    识别模块,用于对所述待处理图片进行识别处理,识别出所述待处理图片中包含的素材特征信息;
    分离模块,用于根据所述素材特征信息,对所述待处理图片进行分离处理,得到与所述素材特征信息对应的素材;
    分类模块,用于按照预设的素材类别对所述素材进行分类,得到分类后的素材;
    第二获取模块,用于获取所述分类后的素材在所述待处理图片中的位置信息,以及获取预设的网页组件模板;
    填充模块,用于根据所述位置信息,将所述分类后的素材填充至所述网页组件模板内的对应位置处,生成与所述待处理图片对应的网页。
  9. 一种计算机设备,包括存储器和处理器,所述存储器中存储有计算机程序,其中,所述处理器执行所述计算机程序时实现一种将图片转换为网页的方法:
    其中,所述将图片转换为网页的方法包括:
    获取输入的待处理图片;
    对所述待处理图片进行识别处理,识别出所述待处理图片中包含的素材特征信息;
    根据所述素材特征信息,对所述待处理图片进行分离处理,得到与所述素材特征信息对应的素材;
    按照预设的素材类别对所述素材进行分类,得到分类后的素材;
    获取所述分类后的素材在所述待处理图片中的位置信息,以及获取预设的网页组件模板;
    根据所述位置信息,将所述分类后的素材填充至所述网页组件模板内的对应位置处,生成与所述待处理图片对应的网页。
  10. 根据权利要求9所述的计算机设备,其中,所述按照预设的素材类别对所述素材进行分类,得到分类后的素材的步骤,包括:
    获取预设的素材类别;
    根据所述素材类别,分别将每一个所述素材与所述素材类别进行类别匹配处理,得到与每一个所述素材对应的类别匹配结果;
    根据所述类别匹配结果,将所有所述素材划分为不同种类的素材。
  11. 根据权利要求9所述的计算机设备,其中,所述网页组件模板包括图片组件、填充组件与文字组件,所述分类后的素材包括图片素材、填充素材与文字素材,所述根据所述位置信息,将所述分类后的素材填充至所述网页组件模板内的对应位置处,生成与所述待处理图片对应的网页的步骤,包括:
    获取所述图片素材在所述待处理图片中图片图层内的第一位置信息,在所述图片组件中确定出与所述第一位置信息相同的第一放置位置,并将所述图片素材填充至所述第一放置位置处;以及,
    获取所述填充素材在所述待处理图片中中填充图层内的第二位置信息,在述填充图层中确定出与所述第二位置信息相同的第二放置位置,并根据所述第二位置信息将所述填充素材填充至所述第二放置位置处;以及,
    获取所述文字素材在所述待处理图片中文字图层内的第三位置信息,在所述文字组件中确定出与所述第三位置信息相同的第三放置位置,并根据所述第三位置信息将所述文字素材填充至所述第三放置位置处,生成与所述待处理图片对应的网页。
  12. 根据权利要求9所述的计算机设备,其中,所述根据所述位置信息,将所述素材填充至所述网页组件模板内的对应位置处,生成与所述待处理图片对应的网页的步骤之后,包括:
    展示所述网页;
    判断是否接收到对于所述网页的调整指令;
    若判断出接收到对于所述网页的调整指令,则提醒用户录入身份验证信息;
    获取指定次数的,且距离当前时间最近的正确输入的多个鉴权验证信息;
    判断在所述多个鉴权验证信息中,是否存在与所述身份验证信息匹配的指定鉴权验证信息;
    若判断出存在与所述身份验证信息匹配的指定鉴权验证信息,则响应所述 调整指令,并根据所述调整指令对所述网页进行对应的调整。
  13. 根据权利要求12所述的计算机设备,其中,所述展示所述网页的步骤,包括:
    从预设的动画库内包含的所有动态效果中,提取出用户使用次数最多的指定动态效果;
    将所述指定动态效果添加至所述网页中,得到更新后的网页;
    展示所述更新后的网页。
  14. 根据权利要求12所述的计算机设备,其中,所述提醒用户录入身份验证信息的步骤,包括;
    获取当前时间,以及距离当前时间最近的最新一次成功鉴权的指定时间;
    计算所述当前时间减去所述指定时间得到的差值;
    判断所述差值是否大于预设时间阈值;
    若判断出所述差值大于预设时间阈值,则提醒用户录入身份验证信息。
  15. 根据权利要求9所述的计算机设备,其中,所述获取预设的网页组件模板的步骤之前,包括:
    接收输入的配置代码;
    对所述配置代码进行解析处理,生成与所述配置代码对应的解析结果;
    根据所述解析结果,生成所述网页组件模板。
  16. 一种计算机可读存储介质,其上存储有计算机程序,其中,所述计算机程序被处理器执行时实现一种将图片转换为网页的方法,其中,所述将图片转换为网页的方法包括以下步骤:
    获取输入的待处理图片;
    对所述待处理图片进行识别处理,识别出所述待处理图片中包含的素材特征信息;
    根据所述素材特征信息,对所述待处理图片进行分离处理,得到与所述素材特征信息对应的素材;
    按照预设的素材类别对所述素材进行分类,得到分类后的素材;
    获取所述分类后的素材在所述待处理图片中的位置信息,以及获取预设的网页组件模板;
    根据所述位置信息,将所述分类后的素材填充至所述网页组件模板内的对应位置处,生成与所述待处理图片对应的网页。
  17. 根据权利要求16所述的计算机可读存储介质,其中,所述按照预设的素材类别对所述素材进行分类,得到分类后的素材的步骤,包括:
    获取预设的素材类别;
    根据所述素材类别,分别将每一个所述素材与所述素材类别进行类别匹配处理,得到与每一个所述素材对应的类别匹配结果;
    根据所述类别匹配结果,将所有所述素材划分为不同种类的素材。
  18. 根据权利要求16所述的计算机可读存储介质,其中,所述根据所述位置信息,将所述素材填充至所述网页组件模板内的对应位置处,生成与所述 待处理图片对应的网页的步骤之后,包括:
    展示所述网页;
    判断是否接收到对于所述网页的调整指令;
    若判断出接收到对于所述网页的调整指令,则提醒用户录入身份验证信息;
    获取指定次数的,且距离当前时间最近的正确输入的多个鉴权验证信息;
    判断在所述多个鉴权验证信息中,是否存在与所述身份验证信息匹配的指定鉴权验证信息;
    若判断出存在与所述身份验证信息匹配的指定鉴权验证信息,则响应所述调整指令,并根据所述调整指令对所述网页进行对应的调整。
  19. 根据权利要求18所述的计算机可读存储介质,其中,所述展示所述网页的步骤,包括:
    从预设的动画库内包含的所有动态效果中,提取出用户使用次数最多的指定动态效果;
    将所述指定动态效果添加至所述网页中,得到更新后的网页;
    展示所述更新后的网页。
  20. 根据权利要求18所述的计算机可读存储介质,其中,所述提醒用户录入身份验证信息的步骤,包括;
    获取当前时间,以及距离当前时间最近的最新一次成功鉴权的指定时间;
    计算所述当前时间减去所述指定时间得到的差值;
    判断所述差值是否大于预设时间阈值;
    若判断出所述差值大于预设时间阈值,则提醒用户录入身份验证信息。
PCT/CN2021/091697 2020-08-28 2021-04-30 将图片转换为网页的方法、装置、计算机设备和存储介质 WO2022041825A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010888465.0 2020-08-28
CN202010888465.0A CN112036147B (zh) 2020-08-28 2020-08-28 将图片转换为网页的方法、装置、计算机设备和存储介质

Publications (1)

Publication Number Publication Date
WO2022041825A1 true WO2022041825A1 (zh) 2022-03-03

Family

ID=73586313

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/091697 WO2022041825A1 (zh) 2020-08-28 2021-04-30 将图片转换为网页的方法、装置、计算机设备和存储介质

Country Status (2)

Country Link
CN (1) CN112036147B (zh)
WO (1) WO2022041825A1 (zh)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112036147B (zh) * 2020-08-28 2024-01-30 平安科技(深圳)有限公司 将图片转换为网页的方法、装置、计算机设备和存储介质
CN112558958B (zh) * 2020-12-16 2023-07-25 中国平安人寿保险股份有限公司 基于模板的推送内容生成方法、装置及计算机设备
CN112669090A (zh) * 2021-01-06 2021-04-16 广东创意热店互联网科技有限公司 一种智能生成广告海报的方法、电子设备、计算机可读存储介质
CN114201168A (zh) * 2021-12-13 2022-03-18 贝壳找房网(北京)信息技术有限公司 网页组件捕获、展示方法、装置及系统
CN117891446B (zh) * 2024-03-14 2024-06-14 北京展鸿软通科技股份有限公司 一种基于推广信息的用户入口生成方法及系统

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170039745A1 (en) * 2015-08-07 2017-02-09 Canon Kabushiki Kaisha Information processing apparatus and method of controlling the same
CN106777077A (zh) * 2016-12-13 2017-05-31 网易(杭州)网络有限公司 网页的生成方法及装置
CN106910195A (zh) * 2017-01-22 2017-06-30 北京奇艺世纪科技有限公司 一种网页页面布局监测方法及装置
CN108230090A (zh) * 2017-12-12 2018-06-29 阿里巴巴集团控股有限公司 页面生成方法、装置及电子设备
CN109388759A (zh) * 2017-08-02 2019-02-26 阿里巴巴集团控股有限公司 一种网页界面构建方法和系统、数据处理方法
CN112036147A (zh) * 2020-08-28 2020-12-04 平安科技(深圳)有限公司 将图片转换为网页的方法、装置、计算机设备和存储介质

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101071426A (zh) * 2006-05-10 2007-11-14 北京锐科天智科技有限责任公司 个性网页生成方法及装置
GB2464313A (en) * 2008-10-10 2010-04-14 Mtld Top Level Domain Ltd Trancoding a web page
CN105739963B (zh) * 2014-12-12 2019-03-15 博雅网络游戏开发(深圳)有限公司 生成网页的方法和装置
CN106446055B (zh) * 2016-08-31 2020-10-30 陶德龙 网页的生成方法及系统
CN110795666B (zh) * 2019-10-18 2024-01-09 腾讯科技(深圳)有限公司 一种网页生成方法、装置、终端及存储介质
CN110968299A (zh) * 2019-11-20 2020-04-07 北京工业大学 一种基于手绘网页图像的前端工程化代码生成方法

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170039745A1 (en) * 2015-08-07 2017-02-09 Canon Kabushiki Kaisha Information processing apparatus and method of controlling the same
CN106777077A (zh) * 2016-12-13 2017-05-31 网易(杭州)网络有限公司 网页的生成方法及装置
CN106910195A (zh) * 2017-01-22 2017-06-30 北京奇艺世纪科技有限公司 一种网页页面布局监测方法及装置
CN109388759A (zh) * 2017-08-02 2019-02-26 阿里巴巴集团控股有限公司 一种网页界面构建方法和系统、数据处理方法
CN108230090A (zh) * 2017-12-12 2018-06-29 阿里巴巴集团控股有限公司 页面生成方法、装置及电子设备
CN112036147A (zh) * 2020-08-28 2020-12-04 平安科技(深圳)有限公司 将图片转换为网页的方法、装置、计算机设备和存储介质

Also Published As

Publication number Publication date
CN112036147A (zh) 2020-12-04
CN112036147B (zh) 2024-01-30

Similar Documents

Publication Publication Date Title
WO2022041825A1 (zh) 将图片转换为网页的方法、装置、计算机设备和存储介质
CN112528259B (zh) 身份验证方法、装置、计算机设备和存储介质
CN104391934B (zh) 数据校验方法和装置
US20190294900A1 (en) Remote user identity validation with threshold-based matching
WO2021151270A1 (zh) 图像结构化数据提取方法、装置、设备及存储介质
CN112347310A (zh) 事件处理信息的查询方法、装置、计算机设备和存储介质
CN111414122B (zh) 一种智能文本处理方法、装置、电子设备及存储介质
US20200111188A1 (en) Digitized test management center
CN112380240A (zh) 基于语义识别的数据查询方法、装置、设备及存储介质
CN111625809A (zh) 数据授权方法及装置、电子设备、存储介质
CN112988997A (zh) 智能客服的应答方法、系统、计算机设备及存储介质
CN111813946A (zh) 医疗信息反馈方法、装置、设备及可读存储介质
WO2024045955A1 (zh) 结合rpa和ai实现ia的文书处理方法、装置、设备及介质
CN112417315A (zh) 基于网站注册的用户画像生成方法、装置、设备和介质
CN110874570A (zh) 面部识别方法、装置、设备及计算机可读存储介质
CN114840387A (zh) 微服务监控方法、装置、计算机设备和存储介质
CN114004639B (zh) 优惠信息的推荐方法、装置、计算机设备和存储介质
US20200111379A1 (en) Mitigating variance in standardized test administration using machine learning
CN113918609A (zh) 试卷创建方法、装置、计算机设备和存储介质
CN114036117A (zh) 日志查看方法、装置、计算机设备和存储介质
US20240020459A1 (en) Using machine learning to predict performance of secure documents
CN116681045A (zh) 报表生成方法、装置、计算机设备及存储介质
CN116842909A (zh) 一种智能化签章方法及系统
CN113703898A (zh) 一种卡片式交互方法、装置、设备和介质
WO2022267181A1 (zh) 代码清单的生成方法、装置、计算机设备和存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21859672

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21859672

Country of ref document: EP

Kind code of ref document: A1