CN114546389A - Front-end page generation method, audio and video analysis method, device and medium - Google Patents

Front-end page generation method, audio and video analysis method, device and medium Download PDF

Info

Publication number
CN114546389A
CN114546389A CN202210439188.4A CN202210439188A CN114546389A CN 114546389 A CN114546389 A CN 114546389A CN 202210439188 A CN202210439188 A CN 202210439188A CN 114546389 A CN114546389 A CN 114546389A
Authority
CN
China
Prior art keywords
rule configuration
end page
rule
configuration
template file
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
CN202210439188.4A
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.)
Zhejiang Dahua Technology Co Ltd
Original Assignee
Zhejiang Dahua 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 Zhejiang Dahua Technology Co Ltd filed Critical Zhejiang Dahua Technology Co Ltd
Priority to CN202210439188.4A priority Critical patent/CN114546389A/en
Publication of CN114546389A publication Critical patent/CN114546389A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24564Applying rules; Deductive queries
    • 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
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/36Software reuse
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Human Computer Interaction (AREA)
  • Computational Linguistics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application provides a front-end page generation method and device, an audio and video analysis method and device and a computer readable storage medium. The front-end page generation method comprises the following steps: acquiring a rule configuration file and a template file, wherein the template file comprises a plurality of preset rule configuration categories and preset rule configuration values thereof; analyzing the rule configuration file to obtain a target rule configuration category and a target rule configuration value thereof in the rule configuration file; matching the target rule configuration type with the preset rule configuration type; replacing the successfully matched preset rule configuration type in the template file with a corresponding target rule configuration value corresponding to a preset rule configuration value; and generating a rule configuration front-end page according to the template file after the replacement of the rule configuration value. By the mode, the front-end page generation device can improve the development efficiency of the front-end page and has good code reusability and low maintenance cost.

Description

Front-end page generation method, audio and video analysis method, device and medium
Technical Field
The present application relates to the field of front-end processing technology of pages, and in particular, to a front-end page generation method and apparatus, an audio/video analysis method and apparatus, and a computer-readable storage medium.
Background
At present, with the development of artificial intelligence in the field of video monitoring, services of different intelligent types are increasingly enriched, and the content displayed at the front end of a web page is more intelligent and diversified. In the existing video monitoring intelligent service scheme, an intelligent service is newly added, an intelligent service rule configuration page needs to be developed based on the corresponding intelligent service, and after the intelligent service is started, a web page issuing rule is configured to an intelligent program of a server.
However, the existing video intelligent monitoring technical solution has a problem of repeated development, for example, when an intelligent service is newly added each time, because the configuration required by different intelligent solutions is different, a rule configuration page needs to be repeatedly developed.
Disclosure of Invention
The application provides a front-end page generation method and device, an audio and video analysis method and device and a computer readable storage medium.
The application provides a front-end page generation method, which comprises the following steps:
acquiring a rule configuration file and a template file, wherein the template file comprises a plurality of preset rule configuration categories and preset rule configuration values thereof;
analyzing the rule configuration file to obtain a target rule configuration category and a target rule configuration value thereof in the rule configuration file;
matching the target rule configuration type with the preset rule configuration type;
replacing the successfully matched preset rule configuration type in the template file with a corresponding target rule configuration value corresponding to a preset rule configuration value;
and generating a rule configuration front-end page according to the template file after the replacement of the rule configuration value.
After the target rule configuration category is matched with the preset rule configuration category, the front-end page generation method further includes:
adding the target rule configuration category which fails to be matched into the template file;
and setting the target rule configuration value corresponding to the target rule configuration category which fails to be matched as an initial value in the template file.
The generating of the rule configuration front-end page according to the template file after the replacement of the rule configuration value includes:
and generating the rule configuration front-end page according to the preset rule configuration category and the rule configuration value thereof which are successfully matched in the template file, and the newly added rule configuration category and the rule configuration value thereof.
The generating of the rule configuration front-end page according to the template file after the replacement of the rule configuration value includes:
constructing an initial rule configuration front-end page according to the preset rule configuration category and the rule configuration value of the preset rule configuration category which fails to be matched in the template file;
and updating the initial rule configuration front-end page according to the successfully matched preset rule configuration type and the rule configuration value thereof in the template file, and the newly added rule configuration type and the rule configuration value thereof to generate a final rule configuration front-end page.
The generating of the rule configuration front-end page according to the template file after the replacement of the rule configuration value includes:
pre-compiling the rule configuration category in the template file after the replacement of the rule configuration value into a function object in a code form;
and giving the rule configuration value in the template file after the replacement of the rule configuration value to the function object, executing the function object, and generating a final rule configuration front-end page.
After generating the rule configuration front-end page according to the template file after the replacement of the rule configuration value, the front-end page generating method further includes:
in response to an update rule configuration value input by a user, replacing a rule configuration value of a corresponding rule configuration category in the rule configuration front-end page with the update rule configuration value;
and updating the rule configuration front-end page according to the updated rule configuration value and the corresponding rule configuration type.
The application also provides an audio and video analysis method, which comprises the following steps:
displaying a rule configuration front-end page, wherein the rule configuration front-end page is generated by the front-end page generation method;
acquiring configuration rule parameters from the rule configuration front-end page;
and generating a monitoring service by using the configuration rule parameters, and monitoring and analyzing scenes in the audio and video by using the monitoring service to generate an analysis result of the audio and video.
Wherein, the generating the monitoring service by using the configuration rule parameter includes:
generating a rule configuration protocol by using the configuration rule parameters, and sending the rule configuration protocol to an audio and video intelligent analysis module;
and analyzing by the audio and video intelligent analysis module to obtain configuration rule parameters in the rule configuration protocol, and starting the monitoring service according to the configuration rule parameters.
The application also provides a front-end page generating device, which comprises an acquisition module, an analysis module, a matching module, a replacement module and a generating module; wherein,
the acquisition module is used for acquiring a rule configuration file and a template file, wherein the template file comprises a plurality of preset rule configuration categories and preset rule configuration values thereof;
the analysis module is used for analyzing the rule configuration file and acquiring a target rule configuration category and a target rule configuration value thereof in the rule configuration file;
the matching module is used for matching the target rule configuration type with the preset rule configuration type;
the replacement module is used for replacing the preset rule configuration value corresponding to the successfully matched preset rule configuration category in the template file with the corresponding target rule configuration value;
and the generating module is used for generating a rule configuration front-end page according to the template file after the replacement of the rule configuration value.
The application also provides an audio and video analysis device, which comprises a display module, an acquisition module and an analysis module; wherein,
the display module is used for displaying a rule configuration front-end page, wherein the rule configuration front-end page is generated by the front-end page generation method;
the acquisition module is used for acquiring configuration rule parameters from the rule configuration front-end page;
the analysis module is used for generating a monitoring service by using the configuration rule parameters, monitoring and analyzing scenes in the audio and video by using the monitoring service, and generating an analysis result of the audio and video.
The application further provides a terminal device, the terminal device comprises a processor and a memory, program data are stored in the memory, and the processor is used for executing the program data to realize the front-end page generation method and/or the audio and video analysis method.
The present application further provides a computer-readable storage medium for storing program data, which when executed by a processor, is used to implement the above-mentioned front-end page generation method and/or audio-video analysis method.
The beneficial effect of this application is: the front-end page generation device acquires a rule configuration file and a template file, wherein the template file comprises a plurality of preset rule configuration categories and preset rule configuration values thereof; analyzing the rule configuration file to obtain a target rule configuration category and a target rule configuration value thereof in the rule configuration file; matching the target rule configuration type with the preset rule configuration type; replacing the successfully matched preset rule configuration type in the template file with a corresponding target rule configuration value corresponding to a preset rule configuration value; and generating a rule configuration front-end page according to the template file after the replacement of the rule configuration value. By the mode, the front-end page generation device can improve the development efficiency of the front-end page and has good code reusability and low maintenance cost.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts. Wherein:
fig. 1 is a schematic flowchart of an embodiment of a front-end page generation method provided in the present application;
FIG. 2 is a schematic flow chart of the method for obtaining rule configuration parameter data provided by the present application;
FIG. 3 is a schematic flow chart illustrating the determination of whether a rule configuration parameter type is supported according to the present application;
FIG. 4 is a schematic flow chart of a generating rule configuration front-end page provided by the present application;
fig. 5 is a schematic flowchart of an embodiment of an audio/video analysis method provided in the present application;
fig. 6 is an overall flowchart of a front-end page generation method and an audio-video analysis method provided in the present application;
FIG. 7 is a schematic flow chart illustrating parsing of issued rule configuration parameters provided herein;
FIG. 8 is a schematic diagram of an embodiment of a front end page generating apparatus provided herein;
fig. 9 is a schematic structural diagram of an embodiment of an audio/video analysis apparatus provided in the present application;
fig. 10 is a schematic structural diagram of an embodiment of a terminal device provided in the present application;
FIG. 11 is a schematic structural diagram of an embodiment of a computer-readable storage medium provided in the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In order to solve the problems existing in the prior art, the method for configuring the rule of the front-end page of the video monitoring web based on the template has the advantages of high development efficiency, good code reusability and low maintenance cost.
Referring to fig. 1 in detail, fig. 1 is a schematic flowchart of an embodiment of a front-end page generation method provided in the present application.
The front-end page generation method is applied to a front-end page generation device, wherein the front-end page generation device can be a server, and can also be a system formed by the server and terminal equipment in a mutual matching mode. Accordingly, the front-end page generation apparatus includes various parts, such as various units, sub-units, modules, and sub-modules, which may be all disposed in the server, or may be disposed in the server and the terminal device, respectively.
Further, the server may be hardware or software. When the server is hardware, it may be implemented as a distributed server cluster formed by multiple servers, or may be implemented as a single server. When the server is software, it may be implemented as a plurality of software or software modules, for example, software or software modules for providing distributed servers, or as a single software or software module, and is not limited herein. In some possible implementations, the face picture archiving method according to the embodiment of the present application may be implemented by a processor calling a computer readable instruction stored in a memory.
Specifically, as shown in fig. 1, the front-end page generation method in the embodiment of the present application specifically includes the following steps:
step S11: the method comprises the steps of obtaining a rule configuration file and a template file, wherein the template file comprises a plurality of preset rule configuration categories and preset rule configuration values thereof.
In the embodiment of the present application, the front-end page generation apparatus acquires a rule configuration file and a template file. The rule configuration file may be a configuration of a solution of an audio/video intelligent analysis service, and the configuration function includes, but is not limited to: calling a corresponding model based on the rule configuration, generating an intelligent result of a specified service based on the rule configuration, adjusting the detection sensitivity based on the rule configuration, and the like. In other embodiments, the rule configuration file may also be configured for other solutions for intelligently analyzing services, and may also be configured for solutions in other application fields, where no limitation is made to specific fields and services. The template file is a universal configuration of solutions of all services, wherein the template file is provided with a plurality of preset rule configuration categories and preset rule configuration values thereof in advance.
In the embodiment of the present application, the front-end page generation apparatus may generate a general front-end page by directly compiling the template file, and may generate a front-end page for a specific service, such as an audio/video intelligent analysis front-end page, by using the template file and the rule configuration file. Because the template file provides the universal rule configuration, the rule configuration file which the user needs to write only needs to record the rule configuration difference, namely the rule configuration file only records the rule configuration which is different from the universal rule configuration. Therefore, a specific front-end page generation process can be realized by using a small amount of writing contents of the rule configuration file, the template file provides a large amount of universal codes, and a user can write different rule configuration files and generate front-end pages for different services only by writing the specific rule configuration file and spending lower dimensionality cost.
Specifically, the front-end page generation device comprises an intelligent business APP module and a template engine module. The intelligent business APP module specifically comprises an audio and video intelligent module and a rule configuration file module, wherein the audio and video intelligent module is a solution delivery part of the audio and video intelligent business, comprises an intelligent APP and an operator model, and can perform intelligent analysis on the audio and video. And the front-end page generating device can acquire the rule configuration file input by the user through the rule configuration file module.
Step S12: and analyzing the rule configuration file, and acquiring the target rule configuration type and the target rule configuration value in the rule configuration file.
In the embodiment of the application, the front-end page generation device analyzes the obtained rule configuration file, and obtains a target rule configuration category and a target rule configuration value thereof in the rule configuration file. The rule configuration file single configuration parameter protocol is shown as the following table:
parameter(s) Type (B) Description of the invention
Key String Rule configuration classes
Value Array[string] Rule configuration values
Wherein, value is a given default rule configuration parameter, and the finally generated rule configuration front-end page can be assigned and modified.
Specifically, the template engine module specifically includes a configuration parsing unit and a template file module. The configuration analysis unit is configured to analyze the rule configuration file to obtain specific rule configuration parameter data, please refer to fig. 2 for a process of analyzing and obtaining the rule configuration parameter data by the configuration analysis unit, and fig. 2 is a schematic flow diagram for obtaining the rule configuration parameter data provided in the present application.
As shown in fig. 2, the configuration analysis unit obtains the character string content in the rule configuration file, further extracts the parameter category in the protocol table by identifying the character string content, specifically including the rule configuration category and the rule configuration value thereof, and finally, the configuration analysis unit saves the extracted rule configuration category as a rule parameter category set S.
Step S13: and matching the target rule configuration type with a preset rule configuration type.
In the embodiment of the present application, the template file module is configured to maintain a specific template file, and the template file is a rule configuration front-end page module, and a supported rule configuration category is maintained in the template file.
Referring to fig. 3, fig. 3 is a schematic flow chart illustrating the determination of whether the rule configuration parameter type is supported according to the present application. As shown in fig. 3, the template file module obtains the rule parameter category set S of the source rule configuration file on the one hand, and obtains the rule category set S1 already supported in the source template file on the other hand, and further determines whether all elements in the set S are in the set S1, that is, determines whether all rule configuration categories in the rule configuration file are already supported by the template file.
Step S14: and replacing the preset rule configuration value corresponding to the successfully matched preset rule configuration category in the template file with the corresponding target rule configuration value.
In the embodiment of the present application, if the elements of the set S are in the set S1, the template file does not need to add new rule configuration categories; if the elements of set S are not all in set S1, the template file will need to newly add the rule configuration categories in set S to set S1.
Further, after completing the matching of the rule configuration categories, the template file module needs to assign the rule configuration values in the rule configuration file to the template file.
Specifically, the template engine module searches a corresponding rule configuration category in the template file according to the rule configuration value in the rule configuration file. For the successfully matched rule configuration type, the template file module replaces the original rule configuration value in the template file with the rule configuration value in the rule configuration file; and for the rule configuration type with failed matching, the template file module directly takes the rule configuration value in the rule configuration file as the initial value of the newly added rule configuration type.
Step S15: and generating a rule configuration front-end page according to the template file after the replacement of the rule configuration value.
In the embodiment of the application, the template engine module pre-compiles the template file to process the template file into a function object in the form of javascript code based on the template file and the analyzed rule configuration parameters. Further, the analyzed key category value in the rule configuration parameter is matched with the category parameter in the template file based on the template engine module. Further, the template engine module gives a value in the rule configuration parameter to the function object, and further generates a final rule configuration front-end page.
The template engine module can directly compile the updated template file after the template file is updated to generate a final rule configuration front-end page, or can pre-compile an initial rule configuration front-end page according to the original template file, and then update and generate the final rule configuration front-end page on the basis of the initial rule configuration front-end page according to the matching result of the rule configuration file and the template file.
Referring specifically to fig. 4, fig. 4 is a schematic flow chart of generating a rule configuration front-end page provided in the present application.
The template engine module acquires a rule parameter category set S extracted from the rule configuration file, and then pre-compiles the template file to generate an initial rule configuration front-end page. The template engine module then matches the set S with the set of template files S1, replacing elements in the set S with elements of the set S1 that match. Wherein, the elements in the set S include rule configuration categories and rule configuration values thereof. Finally, the template engine module generates the final rule configuration front-end page using the permuted set S1.
In other embodiments, the front-end page generating means may further provide the update interface after generating and displaying the rule configuration front-end page. The user inputs the update rule configuration value and/or the update rule configuration category and the like through the update interface, and the front-end page generation device can update the currently displayed rule configuration front-end page according to the update rule configuration value and/or the update rule configuration category, and the specific process is the same as the front-end page generation method, and is not described herein again.
In the embodiment of the application, a front-end page generation device acquires a rule configuration file and a template file, wherein the template file comprises a plurality of preset rule configuration categories and preset rule configuration values thereof; analyzing the rule configuration file to obtain a target rule configuration category and a target rule configuration value thereof in the rule configuration file; matching the target rule configuration type with the preset rule configuration type; replacing the successfully matched preset rule configuration type in the template file with a corresponding target rule configuration value corresponding to a preset rule configuration value; and generating a rule configuration front-end page according to the template file after the replacement of the rule configuration value. By the mode, the front-end page generation device can improve the development efficiency of the front-end page and has good code reusability and low maintenance cost.
With continuing reference to fig. 5 and fig. 6, fig. 5 is a schematic flowchart of an embodiment of an audio/video analysis method provided by the present application, and fig. 6 is a schematic overall flowchart of a front-end page generation method and an audio/video analysis method provided by the present application.
The audio and video analysis method is applied to an audio and video analysis device, wherein the audio and video analysis device can be a server or a system formed by the cooperation of the server and terminal equipment. Accordingly, the front-end page generation apparatus includes various parts, such as various units, sub-units, modules, and sub-modules, which may be all disposed in the server, or may be disposed in the server and the terminal device, respectively.
Further, the server may be hardware or software. When the server is hardware, it may be implemented as a distributed server cluster composed of multiple servers, or may be implemented as a single server. When the server is software, it may be implemented as a plurality of software or software modules, for example, software or software modules for providing distributed servers, or as a single software or software module, and is not limited herein. In some possible implementation manners, the face picture archiving method according to the embodiment of the present application may be implemented by a processor calling computer readable instructions stored in a memory.
Specifically, as shown in fig. 5, the audio and video analysis method in the embodiment of the present application specifically includes the following steps:
step S21: and displaying the rule configuration front-end page.
In this embodiment, the audio/video analysis device displays a rule configuration front-end page, where the rule configuration front-end page may be generated by the front-end page generation method shown in fig. 1 to 4, and the specific process is not described herein again.
Step S22: and acquiring configuration rule parameters from the rule configuration front-end page.
In the embodiment of the present application, as shown in fig. 6, after the final front-end rule configuration page is generated, the audio/video analysis device issues a rule based on the rule configuration page, and starts an intelligent service analysis function. Specifically, a user, such as an operator, enters configuration rule parameters based on specific intelligent business requirements on a rule configuration front-end page.
Step S23: and generating a monitoring service by using the configuration rule parameters, and monitoring and analyzing scenes in the audio and video by using the monitoring service to generate an analysis result of the audio and video.
In the embodiment of the application, the audio and video analysis device can directly use the configuration rule parameters and the service parameters in the rule configuration front-end page to generate specific monitoring services, and use the execution of the monitoring services to monitor and analyze the scenes in the audio and video so as to obtain the analysis result of the audio and video. For example, the audio and video analysis device uses the monitoring service generated by the configuration rule parameter as the monitoring pedestrian flow, and after the monitoring service is executed, the audio and video analysis device counts the number of pedestrians in a scene within a preset time by identifying the pedestrians in the audio and video, so that the number of pedestrians is output as the analysis result of the audio and video.
In other embodiments, as shown in fig. 7, fig. 7 is a schematic flowchart illustrating a process of parsing a rule configuration parameter sent down according to the present application. The audio and video analysis device obtains a configuration rule from a front-end rule page, generates a rule configuration json protocol based on the rule configuration front-end page, and further configures the json protocol based on the generated rule and issues the json protocol to the audio and video intelligent APP, wherein the rule configuration json protocol is shown as a rule configuration file protocol in a protocol table.
The json protocol has the advantages that json is light in weight and small in size, flow is saved, loading speed is increased, the JS object is analyzed into the primary JS object, the primary JS object is analyzed, data are searched faster than XML, tags do not need to be searched, and efficiency is high.
The method comprises the steps that an audio and video intelligent APP receives a rule configuration json protocol sent by a front end, traverses the json protocol, obtains a key value and a value after analysis, obtains rule configuration parameters needed by the audio and video intelligent APP from the protocol, and finally starts an audio and video intelligent service function based on the obtained rule configuration parameters.
In the front-end page generation method and the audio and video analysis method, services in a front-end rule configuration page on which audio and video intelligent services depend each time are extracted into a configuration file, differences in different intelligent service schemes are extracted, and a template engine module is packaged based on a front-end template file and a template engine and serves as a universal module, so that development of repeated codes is reduced, a product development period is shortened, the production efficiency of products is improved, and meanwhile, if the rule configuration of a specific intelligent service scheme needs to be changed, only the rule configuration file needs to be modified, so that the change range is greatly reduced, and the development and maintenance cost is saved. Therefore, through the scheme of the application, the repeated development workload of video intelligent monitoring can be reduced, the development period can be shortened, and the production efficiency of products can be improved.
It will be understood by those skilled in the art that in the method of the present invention, the order of writing the steps does not imply a strict order of execution and any limitations on the implementation, and the specific order of execution of the steps should be determined by their function and possible inherent logic.
To implement the front-end page generating method of the foregoing embodiment, the present application further provides a front-end page generating device, and please refer to fig. 8 specifically, where fig. 8 is a schematic structural diagram of an embodiment of the front-end page generating device provided in the present application.
The front-end page generation apparatus 300 of the embodiment of the present application includes an acquisition module 31, an analysis module 32, a matching module 33, a replacement module 34, and a generation module 35.
The obtaining module 31 is configured to obtain a rule configuration file and a template file, where the template file includes a plurality of preset rule configuration categories and preset rule configuration values thereof.
The analysis module 32 is configured to analyze the rule configuration file, and obtain a target rule configuration category and a target rule configuration value thereof in the rule configuration file.
The matching module 33 is configured to match the target rule configuration category with the preset rule configuration category.
The replacing module 34 is configured to replace the preset rule configuration value corresponding to the successfully matched preset rule configuration category in the template file with the corresponding target rule configuration value.
The generating module 35 is configured to generate a rule configuration front-end page according to the template file after the replacement of the rule configuration value.
In order to implement the audio and video analysis method of the foregoing embodiment, the present application further provides an audio and video analysis device, and please refer to fig. 9 specifically, where fig. 9 is a schematic structural diagram of an embodiment of the audio and video analysis device provided in the present application.
The audio/video analysis apparatus 400 according to the embodiment of the present application includes a display module 41, an acquisition module 42, and an analysis module 43.
The display module 41 is configured to display a rule configuration front-end page, where the rule configuration front-end page is generated by the front-end page generation method.
The obtaining module 42 is configured to obtain configuration rule parameters from the rule configuration front-end page.
The analysis module 43 is configured to generate a monitoring service by using the configuration rule parameter, and monitor and analyze a scene in the audio and video by using the monitoring service to generate an analysis result of the audio and video.
In order to implement the front-end page generating method and/or the audio/video analyzing method of the foregoing embodiments, the present application further provides a terminal device, and please refer to fig. 10 specifically, where fig. 10 is a schematic structural diagram of an embodiment of the terminal device provided in the present application.
The terminal device 500 of the embodiment of the present application includes a memory 51 and a processor 52, wherein the memory 51 and the processor 52 are coupled.
The memory 51 is used for storing program data, and the processor 52 is used for executing the program data to implement the front-end page generating method and/or the audio/video analyzing method described in the above embodiments.
In the present embodiment, the processor 52 may also be referred to as a CPU (Central Processing Unit). Processor 52 may be an integrated circuit chip having signal processing capabilities. The processor 52 may also be a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components. A general purpose processor may be a microprocessor or the processor 52 may be any conventional processor or the like.
In order to implement the front-end page generating method and/or the audio/video analyzing method of the foregoing embodiments, the present application further provides a computer-readable storage medium, as shown in fig. 11, where the computer-readable storage medium 600 is used for storing program data 61, and when the program data 61 is executed by a processor, the computer-readable storage medium is used for implementing the front-end page generating method and/or the audio/video analyzing method of the foregoing embodiments.
The present application further provides a computer program product, where the computer program product includes a computer program operable to cause a computer to execute a front-end page generation method and/or an audio/video analysis method according to an embodiment of the present application. The computer program product may be a software installation package.
The front-end page generation method and/or the audio/video analysis method described in the above embodiments of the present application may be stored in a device, for example, a computer-readable storage medium, when the front-end page generation method and/or the audio/video analysis method is implemented in the form of a software functional unit and sold or used as an independent product. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the purpose of illustrating embodiments of the present application and is not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application or are directly or indirectly applied to other related technical fields, are also included in the scope of the present application.

Claims (12)

1. A front-end page generation method, comprising:
acquiring a rule configuration file and a template file, wherein the template file comprises a plurality of preset rule configuration categories and preset rule configuration values thereof;
analyzing the rule configuration file to obtain a target rule configuration category and a target rule configuration value thereof in the rule configuration file;
matching the target rule configuration type with the preset rule configuration type;
replacing the successfully matched preset rule configuration type in the template file with a corresponding target rule configuration value corresponding to a preset rule configuration value;
and generating a rule configuration front-end page according to the template file after the replacement of the rule configuration value.
2. The front-end page generating method of claim 1,
after the target rule configuration category is matched with the preset rule configuration category, the front-end page generation method further includes:
adding the target rule configuration category which fails to be matched into the template file;
and setting the target rule configuration value corresponding to the target rule configuration category which fails to be matched as an initial value in the template file.
3. The front-end page generating method of claim 2,
the generating of the rule configuration front-end page according to the template file after the replacement of the rule configuration value comprises the following steps:
and generating the rule configuration front-end page according to the preset rule configuration category and the rule configuration value thereof which are successfully matched in the template file, and the newly added rule configuration category and the rule configuration value thereof.
4. The front-end page generating method of claim 3,
the generating of the rule configuration front-end page according to the template file after the replacement of the rule configuration value comprises the following steps:
constructing an initial rule configuration front-end page according to the preset rule configuration category and the rule configuration value of the preset rule configuration category which fails to be matched in the template file;
and updating the initial rule configuration front-end page according to the successfully matched preset rule configuration type and the rule configuration value thereof in the template file, and the newly added rule configuration type and the rule configuration value thereof to generate a final rule configuration front-end page.
5. The front-end page generating method of claim 1,
the generating of the rule configuration front-end page according to the template file after the replacement of the rule configuration value comprises the following steps:
the rule configuration category in the template file after the replacement of the rule configuration value is utilized to be pre-compiled into a function object in a code form;
and giving the rule configuration value in the template file after the replacement of the rule configuration value to the function object, executing the function object, and generating a final rule configuration front-end page.
6. The front-end page generating method of claim 1,
after the template file replaced according to the rule configuration value generates the rule configuration front-end page, the front-end page generating method further includes:
in response to an update rule configuration value input by a user, replacing a rule configuration value of a corresponding rule configuration category in the rule configuration front-end page with the update rule configuration value;
and updating the rule configuration front-end page according to the updated rule configuration value and the corresponding rule configuration type.
7. An audio and video analysis method, characterized in that the audio and video analysis method comprises:
displaying a rule configuration front-end page, wherein the rule configuration front-end page is generated by the front-end page generation method of any one of claims 1 to 6;
acquiring configuration rule parameters from the rule configuration front-end page;
and generating a monitoring service by using the configuration rule parameters, and monitoring and analyzing scenes in the audio and video by using the monitoring service to generate an analysis result of the audio and video.
8. Audio-visual analysis method according to claim 7,
the generating of the monitoring service by using the configuration rule parameter includes:
generating a rule configuration protocol by using the configuration rule parameters, and sending the rule configuration protocol to an audio and video intelligent analysis module;
and analyzing by the audio and video intelligent analysis module to obtain configuration rule parameters in the rule configuration protocol, and starting the monitoring service according to the configuration rule parameters.
9. The front-end page generation device is characterized by comprising an acquisition module, an analysis module, a matching module, a replacement module and a generation module; wherein,
the acquisition module is used for acquiring a rule configuration file and a template file, wherein the template file comprises a plurality of preset rule configuration categories and preset rule configuration values thereof;
the analysis module is used for analyzing the rule configuration file and acquiring a target rule configuration category and a target rule configuration value thereof in the rule configuration file;
the matching module is used for matching the target rule configuration type with the preset rule configuration type;
the replacement module is used for replacing the preset rule configuration value corresponding to the successfully matched preset rule configuration category in the template file with the corresponding target rule configuration value;
and the generating module is used for generating a rule configuration front-end page according to the template file after the replacement of the rule configuration value.
10. The audio and video analysis device is characterized by comprising a display module, an acquisition module and an analysis module; wherein,
the display module is used for displaying a rule configuration front-end page, wherein the rule configuration front-end page is generated by the front-end page generation method of any one of claims 1 to 6;
the acquisition module is used for acquiring configuration rule parameters from the rule configuration front-end page;
the analysis module is used for generating a monitoring service by using the configuration rule parameters, monitoring and analyzing scenes in the audio and video by using the monitoring service, and generating an analysis result of the audio and video.
11. A terminal device, characterized in that the terminal device comprises a processor and a memory, wherein the memory stores program data, and the processor is used for executing the program data to realize the front-end page generating method according to any one of claims 1 to 6 and/or the audio/video analyzing method according to any one of claims 7 or 8.
12. A computer-readable storage medium for storing program data which, when executed by a processor, is adapted to implement the front-end page generation method of any of claims 1 to 6 and/or the audio-visual analysis method of any of claims 7 or 8.
CN202210439188.4A 2022-04-25 2022-04-25 Front-end page generation method, audio and video analysis method, device and medium Pending CN114546389A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210439188.4A CN114546389A (en) 2022-04-25 2022-04-25 Front-end page generation method, audio and video analysis method, device and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210439188.4A CN114546389A (en) 2022-04-25 2022-04-25 Front-end page generation method, audio and video analysis method, device and medium

Publications (1)

Publication Number Publication Date
CN114546389A true CN114546389A (en) 2022-05-27

Family

ID=81666857

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210439188.4A Pending CN114546389A (en) 2022-04-25 2022-04-25 Front-end page generation method, audio and video analysis method, device and medium

Country Status (1)

Country Link
CN (1) CN114546389A (en)

Citations (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080196002A1 (en) * 2007-02-09 2008-08-14 Klaus Koster Template-based rule generation
CN101350915A (en) * 2008-09-01 2009-01-21 北京中星微电子有限公司 Method for self-adapting regulation of running parameter and monitoring frontend equipment
CN101751382A (en) * 2008-11-28 2010-06-23 方正国际软件(北京)有限公司 Data acquisition method based on labels and system thereof
US20110296391A1 (en) * 2010-05-28 2011-12-01 Albrecht Gass Systems and Methods for Dynamically Replacing Code Objects Via Conditional Pattern Templates
WO2012083780A1 (en) * 2010-12-20 2012-06-28 中兴通讯股份有限公司 Vehicle mounted front end apparatus based on the internet of things
CN103777989A (en) * 2012-10-25 2014-05-07 阿里巴巴集团控股有限公司 Method and system for generating HTML mark for vision draft source file
US20170063653A1 (en) * 2015-08-25 2017-03-02 Google Inc. Systems and methods for configuring a resource for network traffic analysis
CN106933552A (en) * 2015-12-30 2017-07-07 中国移动通信集团公司 A kind of data processing method and front-end code generating means
CN109358843A (en) * 2018-09-30 2019-02-19 苏州浪潮智能软件有限公司 A kind of Fast Page building method towards financial terminal transaction
CN110531968A (en) * 2019-08-20 2019-12-03 广州华资软件技术有限公司 A method of detaching web front-end function code generates independent template automatically
CN111552506A (en) * 2020-02-24 2020-08-18 远景智能国际私人投资有限公司 Business rule configuration method, device and storage medium
CN111552903A (en) * 2020-04-09 2020-08-18 深圳壹账通智能科技有限公司 Page generation method and device based on HTML (Hypertext markup language) template and computer equipment
CN111708957A (en) * 2020-05-29 2020-09-25 平安科技(深圳)有限公司 Method, device and computer equipment for updating front-end page based on index and value index
CN112380239A (en) * 2020-11-17 2021-02-19 平安普惠企业管理有限公司 Script generation method, device, equipment and storage medium
CN112562732A (en) * 2020-12-24 2021-03-26 北京睿芯高通量科技有限公司 Audio analysis system and analysis method thereof
CN113656124A (en) * 2021-07-30 2021-11-16 北京百度网讯科技有限公司 Login page generation method and device
CN113805871A (en) * 2021-09-26 2021-12-17 平安国际智慧城市科技股份有限公司 Front-end code generation method and device and computer equipment
CN113901371A (en) * 2021-10-12 2022-01-07 广州通则康威智能科技有限公司 Webpage content control method and device, computer equipment and storage medium
CN114189659A (en) * 2021-12-20 2022-03-15 上海众恒信息产业股份有限公司 Video monitoring system

Patent Citations (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080196002A1 (en) * 2007-02-09 2008-08-14 Klaus Koster Template-based rule generation
CN101350915A (en) * 2008-09-01 2009-01-21 北京中星微电子有限公司 Method for self-adapting regulation of running parameter and monitoring frontend equipment
CN101751382A (en) * 2008-11-28 2010-06-23 方正国际软件(北京)有限公司 Data acquisition method based on labels and system thereof
US20110296391A1 (en) * 2010-05-28 2011-12-01 Albrecht Gass Systems and Methods for Dynamically Replacing Code Objects Via Conditional Pattern Templates
WO2012083780A1 (en) * 2010-12-20 2012-06-28 中兴通讯股份有限公司 Vehicle mounted front end apparatus based on the internet of things
CN103777989A (en) * 2012-10-25 2014-05-07 阿里巴巴集团控股有限公司 Method and system for generating HTML mark for vision draft source file
US20170063653A1 (en) * 2015-08-25 2017-03-02 Google Inc. Systems and methods for configuring a resource for network traffic analysis
CN106933552A (en) * 2015-12-30 2017-07-07 中国移动通信集团公司 A kind of data processing method and front-end code generating means
CN109358843A (en) * 2018-09-30 2019-02-19 苏州浪潮智能软件有限公司 A kind of Fast Page building method towards financial terminal transaction
CN110531968A (en) * 2019-08-20 2019-12-03 广州华资软件技术有限公司 A method of detaching web front-end function code generates independent template automatically
CN111552506A (en) * 2020-02-24 2020-08-18 远景智能国际私人投资有限公司 Business rule configuration method, device and storage medium
CN111552903A (en) * 2020-04-09 2020-08-18 深圳壹账通智能科技有限公司 Page generation method and device based on HTML (Hypertext markup language) template and computer equipment
CN111708957A (en) * 2020-05-29 2020-09-25 平安科技(深圳)有限公司 Method, device and computer equipment for updating front-end page based on index and value index
CN112380239A (en) * 2020-11-17 2021-02-19 平安普惠企业管理有限公司 Script generation method, device, equipment and storage medium
CN112562732A (en) * 2020-12-24 2021-03-26 北京睿芯高通量科技有限公司 Audio analysis system and analysis method thereof
CN113656124A (en) * 2021-07-30 2021-11-16 北京百度网讯科技有限公司 Login page generation method and device
CN113805871A (en) * 2021-09-26 2021-12-17 平安国际智慧城市科技股份有限公司 Front-end code generation method and device and computer equipment
CN113901371A (en) * 2021-10-12 2022-01-07 广州通则康威智能科技有限公司 Webpage content control method and device, computer equipment and storage medium
CN114189659A (en) * 2021-12-20 2022-03-15 上海众恒信息产业股份有限公司 Video monitoring system

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
尹航等: "基于配置文件的web页面自动生成系统", 《软件》 *
张立忠等: "DWT网页模板在Web报表生成中的应用", 《计算机应用与软件》 *
李海光, 李立新: "《计算机应用基础》", 31 August 2012 *

Similar Documents

Publication Publication Date Title
US10824691B2 (en) Page rendering method, device, and data storage medium
CN111651468A (en) Data updating method and device based on SQL analysis, electronic equipment and storage medium
CN113076729B (en) Method and system for importing report, readable storage medium and electronic equipment
CN112182359A (en) Feature management method and system of recommendation model
CN114707474A (en) Report generation method and device, electronic equipment and computer readable storage medium
US20160019266A1 (en) Query generating method and query generating device
CN113326238A (en) Data processing method, device, equipment and storage medium
CN112423151A (en) Video strip splitting method, system, device, equipment and storage medium
CN115510361A (en) Data chart page generation method based on visual configuration and related equipment
CN111611276A (en) Data query method, device and storage medium
CN113760242B (en) Data processing method, device, server and medium
CA3153550A1 (en) Core recommendation method, device and system
CN114546389A (en) Front-end page generation method, audio and video analysis method, device and medium
US10003492B2 (en) Systems and methods for managing data related to network elements from multiple sources
CN111158654A (en) Algorithm calling method, device, server and storage medium
US20220164377A1 (en) Method and apparatus for distributing content across platforms, device and storage medium
CN115795212A (en) Page display method and device, electronic equipment and storage medium
CN114968960A (en) Log processing method and device, computer equipment and storage medium
CN114116866A (en) Data acquisition method and device, terminal equipment and storage medium
CN114385155A (en) vue project visualization tool generation method, device, equipment and storage medium
CN114169318A (en) Process identification method, apparatus, device, medium, and program
CN113190236A (en) HQL script checking method and device
CN116483872B (en) Complex data processing method and device and electronic equipment
CN113485799B (en) Method, device, equipment and storage medium for executing same timing task by multiple libraries
JP7481056B2 (en) Operation support device, system, method and program

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20220527