CN114153730A - Method for generating buried point configuration page and related equipment - Google Patents

Method for generating buried point configuration page and related equipment Download PDF

Info

Publication number
CN114153730A
CN114153730A CN202111462662.7A CN202111462662A CN114153730A CN 114153730 A CN114153730 A CN 114153730A CN 202111462662 A CN202111462662 A CN 202111462662A CN 114153730 A CN114153730 A CN 114153730A
Authority
CN
China
Prior art keywords
control
buried point
cut
page image
interactive page
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202111462662.7A
Other languages
Chinese (zh)
Inventor
李洁辰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Rox Intelligent Technology Co Ltd
Original Assignee
Shanghai Rox Intelligent Technology Co Ltd
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 Shanghai Rox Intelligent Technology Co Ltd filed Critical Shanghai Rox Intelligent Technology Co Ltd
Priority to CN202111462662.7A priority Critical patent/CN114153730A/en
Publication of CN114153730A publication Critical patent/CN114153730A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • 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/957Browsing optimisation, e.g. caching or content distillation

Abstract

The application discloses a buried point configuration page generation method and related equipment. The method comprises the following steps: acquiring an interactive page image; identifying a first control cut in an interactive page image, a control type associated with the first control cut, and layout parameters of the first control cut in the interactive page image; associating the first control cutting graph with a target embedded point event, wherein the target embedded point event is a preset embedded point event corresponding to the control type; and generating a buried point configuration page corresponding to the interactive page image according to the target buried point event and the layout parameters. By the method, the visual embedded point configuration page can be generated, so that the embedded point object of the interactive page can be visually displayed, and whether the embedded point object of the page meets the user requirement can be quickly judged.

Description

Method for generating buried point configuration page and related equipment
Technical Field
The application belongs to the technical field of computers, and particularly relates to a buried point configuration page generation method and related equipment.
Background
In order to test the performance of an application, a collection analysis of the data of the application is required. The data collection of the application is usually completed by embedding points in the page of the application. Most of the existing embedded point setting modes adopt a hard coding mode, namely, a developer inserts embedded point codes into application page codes, however, by adopting the above mode to set embedded points, the developer cannot determine whether the page embedded points in the application are correct or not and cannot learn whether the acquired embedded point data are complete or not.
Disclosure of Invention
In view of this, the method, the apparatus, the computer device, the computer storage medium, and the computer program product for generating a buried point configuration page provided in the embodiments of the present application can generate a visual buried point configuration page, so that a buried point object of an interactive page can be visually displayed, and whether the page buried point object meets a user requirement can be quickly determined.
In a first aspect, an embodiment of the present application provides a method for generating a buried point configuration page, where the method includes:
acquiring an interactive page image;
identifying a first control cut in an interactive page image, a control type associated with the first control cut, and layout parameters of the first control cut in the interactive page image;
associating the first control cutting graph with a target embedded point event, wherein the target embedded point event is a preset embedded point event corresponding to the control type;
and generating a buried point configuration page corresponding to the interactive page image according to the target buried point event and the layout parameters.
In a second aspect, an embodiment of the present application provides an apparatus for generating a buried point configuration page, where the apparatus includes:
the image acquisition module is used for acquiring an interactive page image;
the identification module is used for identifying a first control cut in the interactive page image, a control type associated with the first control cut and layout parameters of the first control cut in the interactive page image;
the association module is used for associating the first control cutting graph with a target buried point event, wherein the target buried point event is a preset buried point event corresponding to the control type;
and the generating module is used for generating a buried point configuration page corresponding to the interactive page image according to the target buried point event and the layout parameters.
In a third aspect, an embodiment of the present application provides a computer device, where the computer device includes: a processor and a memory storing computer program instructions;
the processor, when executing the computer program instructions, implements the method for generating a buried point configuration page as described in the first aspect.
In a fourth aspect, an embodiment of the present application provides a computer storage medium, where computer program instructions are stored on the computer storage medium, and when executed by a processor, the computer program instructions implement the method for generating a page of buried point configuration according to the first aspect.
According to the page method, the page device, the computer equipment, the computer storage medium and the computer program product, the control area and the control type of the embedded point required in the interactive page can be quickly determined by identifying the first control cut in the interactive page image, the control type associated with the first control cut and the layout parameter of the first control cut in the interactive page image. And associating the first control cutting graph with a target embedded point event corresponding to the control type of the first control cutting graph, and generating an embedded point configuration page corresponding to the interactive page image according to the target embedded point event and the layout parameters. Therefore, the embedded point objects of the interactive page can be visually displayed by generating the visual embedded point configuration page, so that whether the embedded point objects of the interactive page are correct or not can be quickly detected, the page embedded point detection operation is simplified, and the accuracy of page embedded point detection is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the embodiments of the present application will be briefly described below, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart illustrating a method for generating a buried point configuration page according to an embodiment of the present application;
fig. 2 is a schematic flow chart illustrating a process for identifying a third control section according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram illustrating a device for generating a buried point configuration page according to an embodiment of the present application;
fig. 4 is a schematic structural diagram illustrating another device for generating a buried point configuration page according to an embodiment of the present application;
fig. 5 shows a hardware structure diagram of a computer device according to an embodiment of the present application.
Detailed Description
Features and exemplary embodiments of various aspects of the present application will be described in detail below, and in order to make objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are intended to be illustrative only and are not intended to be limiting. It will be apparent to one skilled in the art that the present application may be practiced without some of these specific details. The following description of the embodiments is merely intended to provide a better understanding of the present application by illustrating examples thereof.
Before describing the method for generating a buried point configuration page provided by the embodiment of the present application in detail, a brief description is first given to the technology related to the present application.
The buried point is a professional term in the field of data and is also a common name in internet application, the name of the buried point is called tracking, and the buried point is mainly related to the technology and implementation process for capturing, processing and transmitting specific user behaviors or events.
The inventor finds that when the hard coding mode is adopted for embedding points in the interactive page of the application program, developers cannot confirm whether the embedded points of the interactive page are correct or not, and therefore whether the acquired embedded point data are perfect or not cannot be known.
In addition, in order to detect whether the page embedding point is correct, the developer needs to compile the page code added with the embedding point code again, and regenerate a new interactive page. And then, the developer executes the trigger buried point event operation on the new interactive page, so as to detect whether buried point data of the required buried point is generated. Meanwhile, in the detection process, when a data packet with a large data amount is received, developers need to analyze the data of the embedded points from the data packet, so that whether the embedded points of the page are correct or not is analyzed. However, the above detection operation is cumbersome and has a low accuracy.
In view of this, an embodiment of the present application provides a method for generating a buried point configuration page, where an interactive page image is obtained, a first control cut in the interactive page image, a control type of the control cut, and a layout parameter of the first control cut in the interactive page image are identified, the first control cut is associated with a target buried point event, and a buried point configuration page corresponding to the interactive page image is generated according to the target buried point event and the layout parameter. Therefore, by identifying the first control cut graph in the interactive page image and associating the first control cut graph with the corresponding buried point event, the buried point event of the interactive page can be quickly determined. And based on the layout parameters and the embedded point events, a visual embedded point configuration page is generated, and the embedded point region of the interactive page can be visualized, so that whether the embedded point of the interactive page is correct can be quickly detected, the embedded point detection operation of the page is simplified, the embedded point detection accuracy of the page is improved, and the detection scheme that whether the embedded point of the page is correct or not is determined by acquiring embedded point data from a large amount of page data and detecting the embedded point data of the page is avoided.
Fig. 1 shows a schematic flow chart of a method for generating a buried point configuration page according to an embodiment of the present application, and as shown in fig. 1, the method for generating a buried point configuration page may be applied to a device for generating a buried point configuration page, and may include the following steps:
and S11, acquiring the interactive page image.
And S12, identifying a first control cut in the interactive page image, a control type associated with the first control cut, and layout parameters of the first control cut in the interactive page image.
And S13, associating the first control cutting graph with a target buried point event, wherein the target buried point event is a preset buried point event corresponding to the control type.
And S14, generating a buried point configuration page corresponding to the interactive page image according to the target buried point event and the layout parameters.
Specific implementations of the above steps are described in detail below.
In the embodiment, by identifying the first control cut in the interactive page image, the control type associated with the first control cut, and the layout parameter of the first control cut in the interactive page image, the control region and the control type of the point to be embedded in the interactive page are quickly determined by identifying the interactive page image. And associating the first control cutting graph with a target embedded point event corresponding to the control type of the first control cutting graph, and generating an embedded point configuration page corresponding to the interactive page image according to the target embedded point event and the layout parameters. Therefore, the embedded point objects of the interactive page can be visually displayed by generating the visual embedded point configuration page, so that whether the embedded point objects of the interactive page are correct or not can be quickly detected, the page embedded point detection operation is simplified, and the accuracy of page embedded point detection is improved.
The following describes the steps and specific implementation of the above steps.
In S11, the interactive page image may refer to a static page design overview of the application. The interactive page image may include a static image of all page elements in the interactive page. The page elements may include, but are not limited to, text, controls, and the like.
In an embodiment of the application, the interactive page image may be a static page design summary of at least one interactive page of at least one application. For example, the interactive page image may be a static page design overview of an interactive page of a music application on the in-vehicle terminal.
Here, the interactive page image may be designed according to Human Machine Interface (HMI) specifications, for example, the interactive page image may satisfy design specifications of an in-vehicle HMI.
In S12, the first control cut may be an image including one control. The first control cut in the interactive page image may refer to an image area corresponding to the control in the interactive page image. The control type associated with the first control cut may refer to the control type associated with the control corresponding to the first control cut. Here, the control types may include, but are not limited to, buttons, horizontal sliders, vertical sliders, data links, operation links, and the like.
In S12, the layout parameter may refer to a layout parameter at which the first control cut is located in the interactive page image. In the embodiment of the application, the buried point configuration page generation device can position the first control cutting in the interactive page image through the layout parameters.
In some embodiments, the layout parameters may include, but are not limited to, the relative position and relative size of the first control cut in the interactive page image. In this way, the position and the shape size of the first control cutout in the interactive page image can be unambiguously determined by the layout parameters.
In one example, the layout parameter of the first control cut in the interactive page image may be left-20, top-50, height-30, and width-50. The left may be a parameter indicating that the first control cutout is away from the left boundary of the interactive page image, the top may be a parameter indicating that the first control cutout is away from the upper boundary of the interactive page image, the height may be a parameter indicating that the first control cutout is high, and the width may be a parameter indicating that the first control cutout is wide. They may be in units of millimeters or pixels.
Here, S12 may be executed such that the buried point configuration page generating apparatus may identify, from the interactive page image, a first control cut containing a control through an image recognition technique, so that a layout parameter of the first control cut may be determined, and may determine a control type associated with the first control cut by identifying the control contained in the first control cut.
It should be noted that the image recognition technology may include, but is not limited to, an artificial intelligence image recognition method, an image matching recognition method, and the like.
In S13, the target buried point event may be a control type corresponding buried point event associated with the first control cut. The target embedded point event can be determined according to the incidence relation between the preset control type and the embedded point event. The buried point event may be an event that triggers the operation of the control corresponding to the first control map cut.
For example, the control type corresponding to the first control map is a button type, and the associated target buried point events are a single-click event and a double-click event.
Here, S13 may be implemented that the buried point configuration page generating device associates the first control cut with the target buried point event corresponding to the control type of the first control cut based on a preset association relationship between the control type and the buried point event.
It should be noted that the first control cut and the corresponding buried point event thereof may be used as the buried point object.
In S14, the buried point configuration page may refer to an interactive page containing selectable controls. And the embedded point configuration page generation device determines an image area corresponding to the cutting of the first control according to the layout parameters, converts the image area in the interactive page image into a selectable control, and associates the control with a target embedded point event, thereby generating the embedded point configuration page. Wherein, the selectable control can mean that the control can be selected and highlighted. The selectable control is also the buried point object of the interactive page.
In this embodiment, the buried point configuration page may be an interactive page where the buried point object is visualized, that is, the user may directly observe the buried point object on the interactive page. Therefore, the user can detect whether the buried point object set by the interactive page is correct or not through the buried point configuration page.
In actual page design, a user usually designs an interactive page through a cut graph containing a control, and therefore, in order to improve the identification speed and accuracy, a control area in an interactive page image can be identified through a separate control cut graph. In some embodiments, identifying the first control cut in the interactive page image, the control type associated with the first control cut, S12, may include:
acquiring a control diagram list;
and identifying a first control cutting graph and a control type associated with the first control cutting graph in the interactive page image based on the control graph list.
Here, the control diagram list includes N second control cutdiagrams, and a control type associated with each second control cutdiagram. The control graph list can be determined from an HMI development specification. The control map list may be used to indicate the user's buried point requirements. That is, the second control cut in the control graph list may represent an object for which the user needs to bury data.
In the embodiment of the application, the control graph list includes N second control cut graphs, and it can be understood that, for an interactive page corresponding to the interactive page image, a user may need buried point data of controls corresponding to the N second control cut graphs.
Here, the control type associated with the first control cut may include, but is not limited to, a button, a horizontal slider, a vertical slider, a data link, an operation link, and the like.
In the embodiment of the application, the buried point configuration page generation device matches each second control cut in the control graph list with the interactive page image to obtain at least one first control cut in the interactive page image. Wherein, a first control map cut corresponds to a second control map cut.
And the buried point configuration page generating device can determine the control type associated with the first control cutting chart according to the corresponding relation between the first control cutting chart and the second control cutting chart and the control type associated with the second control cutting chart. That is to say, the control type associated with the first control cut is the control type associated with the second control cut corresponding to the first control cut.
In the embodiment, the embedded point object required by the user can be determined through the control graph list, and the embedded point area in the interactive page image can be quickly determined by matching the second control cutting graph in the control graph list with the interactive page image.
In some embodiments, to identify distinct control cut diagrams, the control diagram list may also include a control number.
In some embodiments, to distinguish the control cut of different applications, the control graph list may also include the application name.
In this embodiment of the application, in order to identify a second control cut in the control graph list, second identification information may be added to the second control cut. Wherein the second identification information may include at least one of: control type, control number, and application name.
In one example, in a control diagram list corresponding to an interactive page of a music program, a second control diagram corresponding to a button is cut, and second identification information can be associated. Wherein the second identification information may be music _ button _ 00001.
In some embodiments, to quickly distinguish the first control cut, after identifying the first control cut in the interactive page image, the control type associated with the first control cut, and the layout parameter of the first control cut in the interactive page image at S12, the generating of the buried point configuration page further includes:
and generating first identification information associated with the cutting of the first control based on second identification information associated with the cutting of the second control corresponding to the cutting of the first control and layout parameters of the cutting of the first control.
Here, the buried point configuration page generating device generates unique first identification information of the first control cut graph based on the second identification information and the layout parameter, so as to distinguish the first control cut graph and quickly know the relevant information of the first control cut graph.
In one example, one button cut in one interactive page image of the music application (i.e. the first control cut) may be associated with the first identification information, which may be music _ button _00001, left-20, top-50, height-30, and width-50. It can be understood that the first identification information indicates that the control cutout is a control cutout of which the first control type in the music application is a button, and the position and the size of the control cutout are 20 units away from the left boundary of the interactive page image and 50 units away from the upper boundary of the interactive page image, the height of the control cutout is 30 units, and the width of the control cutout is 50 units.
In the embodiment, through the first identification information, the relevant information of the first control cut graph can be quickly determined, which is beneficial to distinguishing the first control cut graph and is convenient for subsequent association of default buried point events.
In some embodiments, after obtaining the list of control diagrams at S11, S12, identifying layout parameters of the first control diagram in the interactive page image may include:
and determining a third control cutting chart and layout parameters thereof in the interactive page image from the image according to the second control cutting chart in the control chart list.
In this embodiment of the present application, the third control cut is the first control cut corresponding to the second control cut. And the attribute parameters of the third control map are matched with the attribute parameters of the second control map. The attribute parameters include shape parameters and pixel values.
Here, fig. 2 shows a schematic flow chart of identifying a third control section according to an embodiment of the present application. As shown in fig. 2, for each second control segment in the control segment list, the buried point configuration page generating device searches an image area matching the shape parameter and the pixel value of the second control segment in the interactive page image, determines the image area as a third control segment corresponding to the second control segment, and determines the position parameter and the size parameter of the image area as the layout parameters of the third control segment in the interactive page image.
In an example, the buried point configuration page generating apparatus searches for an image region matching a shape parameter and a pixel value of a second control cutout in the interactive page image, and may be specifically implemented by first determining a size of the second control cutout and a pixel value of each pixel of the second control cutout, then cyclically intercepting an image region equal to the size of the second control cutout from an origin coordinate of the interactive page image, calculating a pixel value of each pixel in the image region, comparing the image region with a gray level value of each pixel in the second control cutout, and finally calculating an overall matching degree of the two images according to a comparison result.
And if the matching degree is not less than the preset threshold value, judging that the image area is matched with the second control tangent image, and stopping circularly intercepting the image area. If the matching degree is smaller than the preset threshold value, judging that the image area is not matched with the second control tangent image, and repeatedly executing the steps of intercepting the image area and comparing the pixel values of the two images.
In addition, after the interactive page image is completely intercepted, the image area corresponding to the second control cut graph is not matched, it can be determined that the interactive page image does not have a third control cut graph matched with the second control cut graph, and abnormal information is recorded.
In the embodiment, the first control cut graph corresponding to the second control in the interactive page image is quickly identified through the shape parameters and the pixel values of the second control cut graph, and the accuracy of identifying the first control cut graph is improved.
In some embodiments, in order to facilitate a user to accurately modify the buried point configuration page, in S14, after generating the buried point configuration page corresponding to the interactive page image according to the target buried point event and the layout parameter, the method of the buried point configuration page generating apparatus further includes:
and under the condition that the N first control cut pictures corresponding to the N second control cut pictures one by one are not identified from the interactive page image, generating first abnormal information.
In the embodiment of the application, the N first control cut maps corresponding to the N second control cut maps in a one-to-one manner are not identified from the interactive page image, which may mean that there are unrecognized second control cut maps. That is, at least one of the second control icons does not intercept a matching image region in the interactive page image.
In an embodiment of the application, the first exception information includes information of the unrecognized second control cutting. The unrecognized second control cut may refer to a second control cut that fails recognition. The first exception information may be used to prompt a user that an exception condition exists when generating the buried point configuration page.
Here, the buried point arrangement page generation means detects that N first control cut maps are not recognized from the interactive page image, records a second control cut map whose recognition fails, and generates first abnormality information.
In this embodiment of the application, the buried point configuration page generation device may determine whether to identify N first control cut graphs according to the number of the first control cut graphs. Or, the buried point configuration page generating device may further determine whether to identify N first control cut diagrams by comparing the control numbers in the first identification information of the first control cut diagram and the second identification information of the second control cut diagram.
In the embodiment, the unrecognized second control cut graph is detected, and the first abnormal information is generated based on the unrecognized second control cut graph, so that the abnormal condition can be reported to the user, and the user can modify the buried point object of the page conveniently and accurately.
In some embodiments, in order to facilitate a user to accurately modify the buried point configuration page, in S14, after generating the buried point configuration page corresponding to the interactive page image according to the target buried point event and the layout parameter, the method of the buried point configuration page generating apparatus further includes:
and under the condition that at least one first control cutting chart is not associated with the embedded point event corresponding to the control type, generating second abnormal information.
In this embodiment of the present application, the fact that the at least one first control cut is not associated with the buried point event corresponding to the control type of the first control cut may mean that the at least one control cut cannot be associated with the buried point event corresponding to the control type of the first control cut. That is to say, in the association relationship between the preset control type and the buried point event, there is no default buried point event corresponding to the control type associated with the at least one first control cut graph.
In an embodiment of the present application, the second anomaly information may include information of the first control cut of the unassociated buried point event. The second exception information may be used to prompt the user that an exception condition exists when generating the buried point configuration page.
Here, the buried point arrangement page generating device detects that at least one first control cut graph cannot be associated with the target buried point event in the process of S13, records information of the first control cut graph that cannot be associated with the buried point event, and generates second abnormal information.
In the above embodiment, by detecting the unassociated second control cut map and generating the second abnormal information based on the unassociated second control cut map, an abnormal situation can be reported to the user, and the user can modify the buried point object of the page accurately.
In some embodiments, at S12, after generating a buried point configuration page corresponding to the interactive page image according to the target buried point event and the layout parameter of the first control cut diagram, the buried point configuration page generation method further includes:
and under the condition that the N first control cutting pictures which are in one-to-one correspondence with the N second control cutting pictures are not identified from the interactive page image, updating the buried point configuration page so that the controls which are in one-to-one correspondence with the N first control cutting pictures exist in the updated buried point configuration page.
Here, since the interactive page image has defects, for example, image defects such as an excessively large control area, the N first control cut maps corresponding to the N second control cut maps one to one cannot be identified from the interactive page image. Therefore, the user can directly modify the buried point configuration page based on the unidentified second control cut graph, so that the controls corresponding to the N first control cut graphs exist in the modified buried point configuration page.
Specifically, the embedded point configuration page generation device receives a modification operation of a user on the embedded point configuration page based on an unidentified second control cutting diagram, updates the embedded point configuration page, identifies a first control cutting diagram corresponding to the unidentified second control cutting diagram, and associates a corresponding target embedded point event with the first control cutting diagram, so that a control corresponding to the first control cutting diagram is newly added to the updated embedded point configuration page, and further controls corresponding to the N first control cutting diagrams exist in the updated embedded point configuration page.
In addition, the user can modify the interactive page image, so that the generation operation of the buried point configuration page is repeatedly executed, and the buried point configuration page is updated.
Here, the user may modify an image area similar to the second control cut on the interactive page image based on the unrecognized second control cut, so that N first control cuts corresponding to the N second control cuts one-to-one are recognized in the interactive page image.
Specifically, the embedded point configuration page generation device receives modification information of a user for the interactive page image, the modified interactive page image and the embedded point configuration page generation step are executed again, so that the purpose of updating the embedded point configuration page is achieved, and the updated embedded point configuration page has controls corresponding to the N first control tangent graphs
In the above embodiment, the embedded point configuration page may be updated based on the unrecognized second control graph, so that the user may modify the embedded point object in the embedded point configuration page accurately in real time, so that the embedded point configuration page meets the embedded point requirement of the user.
In some embodiments, at S14, after generating a buried point configuration page corresponding to the interactive page image according to the target buried point event and the layout parameter, the buried point configuration page generating method further includes:
and under the condition that at least one first control cutting chart is not associated with the embedded point event corresponding to the control type of the first control cutting chart, adding the embedded point event corresponding to the control type of the unassociated first control cutting chart, so that all the first control cutting charts in the embedded point configuration page are associated with the embedded point event corresponding to the control type of the first control cutting chart.
Here, there may not be a buried point event associated with at least one first control cut map in the association relationship between the preset control type and the buried point event. Thus, the user may augment the buried point events such that each first control cut has its associated default buried point event.
Specifically, the embedded point configuration page generation device may receive a new embedded point event operation performed by a user based on a control type of an unassociated first control cutting diagram, increase an association relationship between the control type and the embedded point event, and re-associate the unassociated first control cutting diagram with the new embedded point event corresponding to the control type, so as to update the embedded point configuration page, so that all the first control cutting diagrams in the updated embedded point configuration page are associated with the embedded point event corresponding to the control type.
In the above embodiment, the buried point object in the buried point configuration page may be modified by adding the buried point event, so that the buried point configuration page meets the buried point requirement of the user.
Based on the same technical concept as the buried point configuration page generation method, the embodiment of the application further provides a buried point configuration page generation device. Fig. 3 shows a schematic structural diagram of a device for generating a buried point configuration page according to an embodiment of the present application. As shown in fig. 3, the buried point configuration page generating device may include: an image identification module 31, an image classification module 32, a page generation module 33 and an abnormality reporting module 34.
An image recognition module 31 for acquiring the HMI deliverable; and identifying the relative position and the relative size (namely layout parameters) of the second control cutting graph in the overall interactive graph (namely the interactive page image) of the page to obtain the first control cutting graph.
Here, the HMI delivery can include an overall interaction map for each page, a second control cut for each page, and identification information for the second control cut. The identification information of the second control cut graph can be generated by adopting a standard naming mode. For example, the identification information of the control cutout of one button is "control type _ control number".
In some embodiments, the image recognition module 31 is further configured to generate new identification information of the first control cut graph based on the original identification information of the second control cut graph and the relative position and relative size of the second control cut graph in the overall interaction graph of the page.
Here, the new identification information may be generated in a canonical naming manner. For example, the new identification information is music _ button _00001, left is 20, top is 50, height is 30, and width is 50.
The image classification module 32 may be configured to classify the various second control cut graphs according to the HMI specification, and record the control types of the various control cut graphs; and the controller is further configured to associate each first control with a corresponding default buried point event (i.e., a target buried point event).
Here, control types include, but are not limited to, buttons, horizontal sliders, vertical sliders, data links, action links, and the like.
The image classification module 32 may be further configured to associate each first control with a corresponding default buried point event. For example, a button-type control icon is associated with a single-click buried point event and a double-click buried point event.
A page generating module 33, configured to associate all the first control cut graphs together, and generate a configurable management page (i.e., a buried point configuration page); and the information of each first control cut is also recorded.
And the exception reporting module 34 is configured to record the second control map cut which fails to be resolved, generate an exception report (i.e., exception information), and send the exception report to the HMI designer, so that the designer can process the exception information.
Here, the second control cut graph with failed parsing may refer to an unrecognized second control cut graph, or a first control cut graph corresponding to the second control cut graph is not associated with a default buried point event.
In the embodiment, the control needing to be provided with the embedded point in the interactive page image is quickly identified through an image identification technology, and the embedded point event corresponding to the control is associated according to the control type corresponding to the control, so that the embedded point object in the interactive page can be quickly determined. And by generating the configurable management page, the embedded object is visualized, and the management page is convenient to modify.
Based on the same technical concept as the above method for generating the embedded point configuration page, the embodiment of the present application further provides another device for generating the embedded point configuration page. Fig. 4 is a schematic structural diagram of another device for generating a buried point configuration page according to an embodiment of the present application. As shown in fig. 4, the buried point configuration page generating device may include: an image acquisition module 41, a recognition module 42, an association module 43, and a generation module 44.
And an image obtaining module 41, configured to obtain an interactive page image.
The identification module 42 is configured to identify a first control cut in the interactive page image, a control type associated with the first control cut, and a layout parameter of the first control cut in the interactive page image.
And the association module 44 is configured to generate a buried point configuration page corresponding to the interactive page image according to the target buried point event and the layout parameter.
In the embodiment, the control area and the control type of the embedded point required in the interactive page can be quickly determined by identifying the interactive page image through identifying the first control cut in the interactive page image, the control type associated with the first control cut and the layout parameter of the first control cut in the interactive page image. And associating the first control cutting graph with a target embedded point event corresponding to the control type of the first control cutting graph, and generating an embedded point configuration page corresponding to the interactive page image according to the target embedded point event and the layout parameters. Therefore, the embedded point objects of the interactive page can be visually displayed by generating the visual embedded point configuration page, so that whether the embedded point objects of the interactive page are correct or not can be quickly detected, the page embedded point detection operation is simplified, and the accuracy of page embedded point detection is improved.
In some embodiments, the identification module 42 may include:
and the obtaining sub-module is used for obtaining a control diagram list, wherein the control diagram list comprises N second control cutting diagrams and a control type associated with each second control cutting diagram.
And the identification sub-module is used for identifying a first control cutting chart in the interactive page image and a control type associated with the first control cutting chart based on the control chart list. And one first control cutting graph corresponds to one second control cutting graph, and the control type associated with the first control cutting graph is the control type associated with the second control cutting graph corresponding to the first control cutting graph.
In some embodiments, the identification module 42 may include:
and the layout parameter identification submodule is used for determining a third control cutting chart and layout parameters of the third control cutting chart in the interactive page image from the image according to the second control cutting chart in the control chart list after the control chart list is obtained.
Here, the third control cut is the first control cut corresponding to the second control cut. And the attribute parameters of the third control cut map are matched with the attribute parameters of the second control cut map, and the attribute parameters comprise shape parameters and pixel values.
In some embodiments, the buried point configuration page generating device may further include:
and the first generation module is used for generating first abnormal information under the condition that N first control cutting pictures corresponding to the N second control cutting pictures in a one-to-one manner are not identified from the interactive page image after a buried point configuration page corresponding to the interactive page image is generated according to the target buried point event and the layout parameters, wherein the first abnormal information comprises the information of the unidentified second control cutting pictures.
A second generating module, configured to generate, after a buried point configuration page corresponding to the interactive page image is generated according to the target buried point event and the layout parameter, second exception information when at least one first control map is not associated with a buried point event corresponding to the control type of the first control map, where the second exception information includes: information of a first control cut not associated with a buried point event.
In some embodiments, the buried point configuration page generating device may further include:
and the updating module is used for updating the embedded point configuration page under the condition that N first control tangent diagrams which are in one-to-one correspondence with the N second control tangent diagrams are not identified from the interactive page image after the embedded point configuration page corresponding to the interactive page image is generated according to the target embedded point event and the layout parameters, so that the controls corresponding to the N first control tangent diagrams exist in the updated embedded point configuration page.
In some embodiments, the buried point configuration page generating device may further include:
and the adding module is used for adding the embedded point event corresponding to the control type of the unassociated first control cutting chart under the condition that at least one first control cutting chart is not associated with the embedded point event corresponding to the control type of the first control cutting chart after the embedded point configuration page corresponding to the interactive page image is generated according to the target embedded point event and the layout parameters, so that all the first control cutting charts in the embedded point configuration page are associated with the embedded point event corresponding to the control type of the first control cutting chart.
Fig. 5 shows a hardware structure diagram of a computer device according to an embodiment of the present application. As shown in fig. 5. The computer device may comprise a processor 51 and a memory 52 in which computer program instructions are stored.
Specifically, the processor 51 may include a Central Processing Unit (CPU), or an Application Specific Integrated Circuit (ASIC), or may be configured to implement one or more Integrated circuits of the embodiments of the present Application.
Memory 52 may include mass storage for data or instructions. By way of example, and not limitation, memory 52 may include a Hard Disk Drive (HDD), a floppy Disk Drive, flash memory, an optical Disk, a magneto-optical Disk, tape, or a Universal Serial Bus (USB) Drive or a combination of two or more of these. Memory 52 may include removable or non-removable (or fixed) media, where appropriate. The memory 52 may be internal or external to the integrated gateway disaster recovery device, where appropriate. In a particular embodiment, the memory 52 is a non-volatile solid-state memory.
The memory 52 may include Read Only Memory (ROM), Random Access Memory (RAM), magnetic disk storage media devices, optical storage media devices, flash memory devices, electrical, optical, or other physical/tangible memory storage devices. Thus, in general, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software comprising computer-executable instructions and when the software is executed (e.g., by one or more processors), it is operable to perform operations described with reference to the methods according to an aspect of the application.
The processor 51 may read and execute the computer program instructions stored in the memory 52 to implement any one of the above-described methods for generating a buried point configuration page.
In one example, the computer device may also include a communication interface 53 and a bus 54. As shown in fig. 5, the processor 51, the memory 52, and the communication interface 53 are connected via a bus 54 to complete mutual communication.
The communication interface 53 is mainly used for implementing communication between modules, apparatuses, units and/or devices in the embodiments of the present application.
The bus 54 comprises hardware, software, or both to couple the components of the computer device to each other. By way of example, and not limitation, a bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hypertransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an infiniband interconnect, a Low Pin Count (LPC) bus, a memory bus, a Micro Channel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a video electronics standards association local (VLB) bus, or other suitable bus or a combination of two or more of these. The bus 54 may include one or more buses, where appropriate. Although specific buses are described and shown in the embodiments of the application, any suitable buses or interconnects are contemplated by the application.
The computer device may implement the method and apparatus for generating a buried point configuration page described in conjunction with fig. 1 to 4 based on executing the method in the embodiment of the present application.
In addition, in combination with the method for generating a buried point configuration page in the foregoing embodiment, the embodiment of the present application may provide a computer storage medium to implement. The computer storage medium having computer program instructions stored thereon; the computer program instructions, when executed by a processor, implement any of the above-described embodiments of the method for generating a buried point configuration page.
In addition, in combination with the method for generating a buried point configuration page in the foregoing embodiments, an embodiment of the present application provides a computer program product, which includes a computer program or instructions, and when the computer program or instructions are executed by a processor, the method for generating a buried point configuration page in any one of the foregoing embodiments is implemented.
It is to be understood that the present application is not limited to the particular arrangements and instrumentality described above and shown in the attached drawings. A detailed description of known methods is omitted herein for the sake of brevity. In the above embodiments, several specific steps are described and shown as examples. However, the method processes of the present application are not limited to the specific steps described and illustrated, and those skilled in the art can make various changes, modifications, and additions or change the order between the steps after comprehending the spirit of the present application.
The functional blocks shown in the above-described structural block diagrams may be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, it may be, for example, an electronic circuit, an Application Specific Integrated Circuit (ASIC), suitable firmware, plug-in, function card, or the like. When implemented in software, the elements of the present application are the programs or code segments used to perform the required tasks. The program or code segments may be stored in a machine-readable medium or transmitted by a data signal carried in a carrier wave over a transmission medium or a communication link. A "machine-readable medium" may include any medium that can store or transfer information. Examples of a machine-readable medium include electronic circuits, semiconductor memory devices, ROM, flash memory, Erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, Radio Frequency (RF) links, and so forth. The code segments may be downloaded via computer networks such as the internet, intranet, etc.
It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, the present application is not limited to the order of the above-described steps, that is, the steps may be performed in the order mentioned in the embodiments, may be performed in an order different from the order in the embodiments, or may be performed simultaneously.
Aspects of the present application are described above with reference to flowchart illustrations and/or block diagrams of methods, apparatus, computer devices, computer storage media and computer program products for generating a buried point configuration page according to embodiments of the application. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, enable the implementation of the functions/acts specified in the flowchart and/or block diagram block or blocks. Such a processor may be, but is not limited to, a general purpose processor, a special purpose processor, an application specific processor, or a field programmable logic circuit. It will also be understood that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware for performing the specified functions or acts, or combinations of special purpose hardware and computer instructions.
As described above, only the specific embodiments of the present application are provided, and it can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the system, the module and the unit described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. It should be understood that the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the present application, and these modifications or substitutions should be covered within the scope of the present application.

Claims (11)

1. A method for generating a buried point configuration page is characterized by comprising the following steps:
acquiring an interactive page image;
identifying a first control cut in the interactive page image, a control type associated with the first control cut, and layout parameters of the first control cut in the interactive page image;
associating the first control cutting graph with a target embedded point event, wherein the target embedded point event is a preset embedded point event corresponding to the control type;
and generating a buried point configuration page corresponding to the interactive page image according to the target buried point event and the layout parameters.
2. The method of claim 1, wherein the layout parameters include a relative position and a relative size of the first control cut on the interactive page image.
3. The method of claim 1, wherein the identifying a first control cut in the interactive page image, a control type associated with the first control cut, comprises:
acquiring a control diagram list, wherein the control diagram list comprises N second control diagrams and a control type associated with each second control diagram;
and identifying a first control cutting graph and a control type associated with the first control cutting graph in the interactive page image based on the control graph list, wherein one first control cutting graph corresponds to one second control cutting graph, and the control type associated with the first control cutting graph is the control type associated with the second control cutting graph corresponding to the first control cutting graph.
4. The method of claim 3, wherein after obtaining the control map list, the identifying layout parameters of the first control map in the interactive page image comprises:
determining a third control map and layout parameters thereof in the interactive page image from the image according to a second control map in the control map list, wherein the third control map is a first control map corresponding to the second control map; and matching the attribute parameters of the third control cut map with the attribute parameters of the second control cut map, wherein the attribute parameters comprise shape parameters and pixel values.
5. The method of claim 3, wherein after the generating a buried point configuration page corresponding to the interactive page image according to the target buried point event and the layout parameters, the method further comprises:
under the condition that N first control cut pictures corresponding to the N second control cut pictures in a one-to-one mode are not identified from the interactive page image, first abnormal information is generated, and the first abnormal information comprises information of the unidentified second control cut pictures;
under the condition that at least one first control cutting chart is not associated with the embedded point event corresponding to the control type of the first control cutting chart, second abnormal information is generated, and the second abnormal information comprises: information of a first control cut not associated with a buried point event.
6. The method of claim 1, wherein after the generating a buried point configuration page corresponding to the interactive page image according to the target buried point event and the layout parameters, the method further comprises:
and under the condition that the N first control cutting pictures which are in one-to-one correspondence with the N second control cutting pictures are not identified from the interactive page image, updating the buried point configuration page so that the controls which are in one-to-one correspondence with the N first control cutting pictures exist in the updated buried point configuration page.
7. The method of claim 1, wherein after the generating a buried point configuration page corresponding to the interactive page image according to the target buried point event and the layout parameters, the method further comprises:
and under the condition that at least one first control cutting chart is not associated with the embedded point event corresponding to the control type of the first control cutting chart, adding the embedded point event corresponding to the control type of the unassociated first control cutting chart, so that all the first control cutting charts in the embedded point configuration page are associated with the embedded point event corresponding to the control type of the first control cutting chart.
8. An apparatus for generating a buried point configuration page, the apparatus comprising:
the image acquisition module is used for acquiring an interactive page image;
the identification module is used for identifying a first control cut in the interactive page image, a control type associated with the first control cut and layout parameters of the first control cut in the interactive page image;
the association module is used for associating the first control cutting graph with a target buried point event, wherein the target buried point event is a preset buried point event corresponding to the control type;
and the generating module is used for generating a buried point configuration page corresponding to the interactive page image according to the target buried point event and the layout parameters.
9. A computer device, the device comprising: a processor and a memory storing computer program instructions;
the processor, when executing the computer program instructions, implements the method of generating a buried point configuration page as recited in any of claims 1-7.
10. A computer storage medium having computer program instructions stored thereon which, when executed by a processor, implement the method of generating a buried point configuration page as claimed in any one of claims 1 to 7.
11. A computer program product comprising a computer program or instructions which, when executed by a processor, implement a buried point configuration page generation method according to any one of claims 1 to 7.
CN202111462662.7A 2021-12-02 2021-12-02 Method for generating buried point configuration page and related equipment Pending CN114153730A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111462662.7A CN114153730A (en) 2021-12-02 2021-12-02 Method for generating buried point configuration page and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111462662.7A CN114153730A (en) 2021-12-02 2021-12-02 Method for generating buried point configuration page and related equipment

Publications (1)

Publication Number Publication Date
CN114153730A true CN114153730A (en) 2022-03-08

Family

ID=80455966

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111462662.7A Pending CN114153730A (en) 2021-12-02 2021-12-02 Method for generating buried point configuration page and related equipment

Country Status (1)

Country Link
CN (1) CN114153730A (en)

Similar Documents

Publication Publication Date Title
CN109325538B (en) Object detection method, device and computer-readable storage medium
US20220269996A1 (en) Information processing apparatus, information processing method, and storage medium
CN108664364B (en) Terminal testing method and device
US10796796B2 (en) Fault diagnosis apparatus, fault diagnosis method, and fault diagnosis program
CN109740609B (en) Track gauge detection method and device
CN110610127B (en) Face recognition method and device, storage medium and electronic equipment
CN112580734B (en) Target detection model training method, system, terminal equipment and storage medium
CN104572436B (en) Automatic debugging and error proofing method and device
CN110533654A (en) The method for detecting abnormality and device of components
CN113032792A (en) System service vulnerability detection method, system, equipment and storage medium
CN105653171A (en) Fingerprint identification based terminal control method, terminal control apparatus and terminal
CN111803022A (en) Vision detection method, detection device, terminal equipment and readable storage medium
CN116168351B (en) Inspection method and device for power equipment
CN111508588A (en) Training apparatus, training method, and computer-readable recording medium
CN108182444A (en) The method and device of video quality diagnosis based on scene classification
CN115471824A (en) Eye state detection method and device, electronic equipment and storage medium
CN111783812A (en) Method and device for identifying forbidden images and computer readable storage medium
CN112966687B (en) Image segmentation model training method and device and communication equipment
CN112637888B (en) Coverage hole area identification method, device, equipment and readable storage medium
KR101774815B1 (en) Cursor location recognition test automation system and test automation method using the same
CN114153730A (en) Method for generating buried point configuration page and related equipment
CN114240926B (en) Board card defect type identification method, device and equipment and readable storage medium
CN111800790B (en) Information analysis method based on cloud computing and 5G interconnection and man-machine cooperation cloud platform
CN114153734A (en) Buried point data management method and related equipment
CN114741690A (en) Network security monitoring method, device, equipment and computer storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination