CN114205526A - Network camera algorithm access method, system, medium and electronic terminal - Google Patents

Network camera algorithm access method, system, medium and electronic terminal Download PDF

Info

Publication number
CN114205526A
CN114205526A CN202111500815.2A CN202111500815A CN114205526A CN 114205526 A CN114205526 A CN 114205526A CN 202111500815 A CN202111500815 A CN 202111500815A CN 114205526 A CN114205526 A CN 114205526A
Authority
CN
China
Prior art keywords
algorithm
page
network camera
rule file
configuration
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.)
Granted
Application number
CN202111500815.2A
Other languages
Chinese (zh)
Other versions
CN114205526B (en
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.)
Chongqing Unisinsight Technology Co Ltd
Original Assignee
Chongqing Unisinsight 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 Chongqing Unisinsight Technology Co Ltd filed Critical Chongqing Unisinsight Technology Co Ltd
Priority to CN202111500815.2A priority Critical patent/CN114205526B/en
Publication of CN114205526A publication Critical patent/CN114205526A/en
Application granted granted Critical
Publication of CN114205526B publication Critical patent/CN114205526B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/617Upgrading or updating of programs or applications for camera control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0246Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
    • H04L41/0253Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols using browsers or web-pages for accessing management information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/12Applying verification of the received information
    • H04L63/123Applying verification of the received information received data contents, e.g. message integrity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/66Remote control of cameras or camera parts, e.g. by remote control devices
    • H04N23/661Transmitting camera control signals through networks, e.g. control via the Internet

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer Security & Cryptography (AREA)
  • Multimedia (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Studio Devices (AREA)

Abstract

The invention provides a network camera algorithm access method, a system, a medium and an electronic terminal, wherein the method comprises the following steps: acquiring an algorithm packet to be accessed; setting a page generation rule file and a result field rule file in an algorithm package to be accessed, and acquiring a target algorithm package; deploying the target algorithm package to the network camera; acquiring an algorithm using request, and rendering a page according to a page generation rule file and the algorithm using request to generate an algorithm configuration page; triggering an algorithm configuration request on an algorithm configuration page, generating algorithm configuration information according to the algorithm configuration request, and synchronizing the algorithm configuration information to the network camera; obtaining an algorithm operation result according to the algorithm configuration information; displaying the algorithm operation result according to the result field rule file to finish the algorithm access of the network camera; the method realizes automatic adaptation and access when the algorithm is accessed into the network camera, can automatically generate the algorithm configuration page, and effectively reduces the cost of accessing the algorithm into the network camera.

Description

Network camera algorithm access method, system, medium and electronic terminal
Technical Field
The invention relates to the technical field of internet, in particular to a network camera algorithm access method, a system, a medium and an electronic terminal.
Background
With the rapid development of AI (Artificial Intelligence) technology, algorithms in the field of video surveillance are also rapidly developed, and algorithms suitable for internet protocol CAMERAs (IPC, IP CAMERA) are also emerging in a large number. The intelligent algorithm under a specific scene can be generated by training through machine learning, and in most cases, the application scene of the algorithm is high in pertinence, and a detection target is single.
However, when these algorithms need to be accessed to the IPC, the IPC needs to develop corresponding functions such as WEB client, algorithm configuration, algorithm result analysis, and the like in a targeted manner, which means that much manpower and material resources need to be invested to perform adaptation and development work of the algorithms, which results in a lengthening of the whole algorithm access cycle, and adaptation development needs to be performed again every time a new algorithm appears, which is high in cost and troublesome to implement.
Disclosure of Invention
The invention provides a network camera algorithm access method, a system, a medium and an electronic terminal, which are used for solving the problems that when an algorithm needs to be accessed into IPC, the IPC is required to develop corresponding functions of a WEB client, algorithm configuration, algorithm result analysis and the like in a targeted manner, so that the algorithm access cost is high, the period is long, and the user experience is poor in the prior art.
The network camera algorithm access method provided by the invention comprises the following steps:
acquiring an algorithm packet to be accessed;
setting a page generation rule file and a result field rule file in an algorithm package to be accessed, and acquiring a target algorithm package;
deploying the target algorithm package to a network camera;
acquiring an algorithm using request, and rendering a page according to the page generation rule file and the algorithm using request to generate an algorithm configuration page; triggering an algorithm configuration request on the algorithm configuration page, generating algorithm configuration information according to the algorithm configuration request, and synchronizing the algorithm configuration information to the network camera; acquiring an algorithm operation result according to the algorithm configuration information;
and displaying the operation result of the algorithm according to the result field rule file to finish the algorithm access of the network camera.
Optionally, the step of obtaining the page generation rule file includes:
presetting a standard control rule for representing standard control information, wherein the standard control rule and a control for generating an algorithm configuration page have a first mapping relation;
and adjusting and modifying the standard control rule to obtain a page generation rule file, and further setting the page generation rule file in the algorithm package to be accessed.
Optionally, the step of deploying the target algorithm package to the webcam includes:
transmitting the target algorithm packet to a preset network camera;
according to a preset verification rule, verifying the target algorithm packet to obtain a verification result;
deploying the target algorithm package to the network camera according to the checking result;
and reading and storing the page generation rule file and the result field rule file in the target algorithm package to complete the deployment of the target algorithm package.
Optionally, the page rendering is performed according to the page generation rule file and the algorithm use request, and the step of generating the algorithm configuration page includes:
acquiring a standard page template according to a preset standard control rule;
when the algorithm in the target algorithm package needs to be used, page generation rule information is obtained by reading the page generation rule file;
and rendering the standard page template according to the page generation rule information, and further generating the algorithm configuration page.
Optionally, the algorithm configuration page includes a plurality of controls; the algorithm configuration request includes: the method comprises the steps of obtaining a page key value and a value corresponding to the page key value, wherein the page key value is a control name of an algorithm configuration page, and the value corresponding to the page key value is data input by a user;
the step of triggering an algorithm configuration request at the algorithm configuration page comprises:
inputting a value corresponding to the control name on the algorithm configuration page according to a preset control value range;
and generating the algorithm configuration request according to the control name and the value corresponding to the control name.
Optionally, the step of generating algorithm configuration information according to the algorithm configuration request includes:
assembling data in the algorithm configuration request according to a preset configuration protocol to acquire algorithm configuration information;
and storing the algorithm configuration information, transmitting the algorithm configuration information to a network camera, and further performing algorithm operation by using the algorithm configuration information.
Optionally, a value range of an algorithm operation result is preset in the target algorithm packet; the result field rule file comprises a plurality of values of algorithm operation results, display information and a second mapping relation between the algorithm operation results and the display information;
the step of displaying the operation result of the algorithm according to the result field rule file comprises the following steps:
inquiring and acquiring the result field rule file in real time;
and converting the obtained algorithm operation result according to the second mapping relation in the result field rule file, obtaining corresponding display information and displaying the display information.
The invention also provides a network camera algorithm access system, which comprises:
the preprocessing module is used for acquiring an algorithm packet to be accessed; setting a page generation rule file and a result field rule file in an algorithm package to be accessed, and acquiring a target algorithm package;
the deployment module is used for deploying the target algorithm package to a network camera;
the processing module is used for acquiring the algorithm using request, performing page rendering according to the page generating rule file and the algorithm using request and generating an algorithm configuration page; triggering an algorithm configuration request on the algorithm configuration page, generating algorithm configuration information according to the algorithm configuration request, and synchronizing the algorithm configuration information to the network camera; acquiring an algorithm operation result according to the algorithm configuration information;
the display module is used for displaying the algorithm operation result according to the result field rule file to finish the algorithm access of the network camera; the preprocessing module, the deployment module, the processing module and the display module are connected.
The invention also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method as defined in any one of the above.
The present invention also provides an electronic terminal, comprising: a processor and a memory;
the memory is adapted to store a computer program and the processor is adapted to execute the computer program stored by the memory to cause the terminal to perform the method as defined in any one of the above.
The invention has the beneficial effects that: according to the network camera algorithm access method, the system, the medium and the electronic terminal, the target algorithm package is generated by setting the corresponding page generation rule file and the result field rule file in the algorithm package to be accessed, the target algorithm package is deployed to the network camera, when the algorithm in the target algorithm package needs to be used, the rule file is generated according to the page, page rendering is carried out, an algorithm configuration page is generated, an algorithm configuration request is triggered on the algorithm configuration page, algorithm configuration information is generated according to the algorithm configuration request, and the algorithm configuration information is synchronized to the network camera; running the algorithm according to the algorithm configuration information to obtain an algorithm running result; displaying the algorithm operation result according to the result field rule file to finish the algorithm access of the network camera; the method and the device have the advantages that automatic adaptation and access of the algorithm when the algorithm is accessed into the network camera are achieved, the algorithm configuration page can be automatically generated, algorithm configuration parameters can be automatically issued and stored, the algorithm result can be automatically analyzed and displayed, software function adaptation and software version iteration are not needed to be performed on the network camera, the cost of accessing the algorithm into the network camera is effectively reduced, the algorithm access period is shortened, and user experience is improved.
Drawings
Fig. 1 is a flowchart illustrating a network camera algorithm access method according to an embodiment of the present invention.
Fig. 2 is a schematic flow chart of acquiring a page generation rule file in the network camera algorithm access method in the embodiment of the present invention.
Fig. 3 is a schematic flowchart of the algorithm deployed to the network camera in the network camera access method in the embodiment of the present invention.
Fig. 4 is a schematic flowchart of generating an algorithm configuration page in the network camera access method in the embodiment of the present invention.
Fig. 5 is a schematic flow chart of acquiring an algorithm configuration request in the network camera access method in the embodiment of the present invention.
Fig. 6 is a schematic flow chart of acquiring algorithm configuration information in the network camera access method in the embodiment of the present invention.
Fig. 7 is a schematic flow chart illustrating displaying an algorithm operation result in the network camera access method according to the embodiment of the present invention.
Fig. 8 is a schematic structural diagram of a network camera algorithm access system in the embodiment of the present invention.
Fig. 9 is another schematic structural diagram of the network camera algorithm access system in the embodiment of the present invention.
Fig. 10 is a schematic operation flow diagram of the network camera algorithm access system in the embodiment of the invention.
Fig. 11 is another operation flow diagram of the network camera algorithm access system in the embodiment of the invention.
Detailed Description
The embodiments of the present invention are described below with reference to specific embodiments, and other advantages and effects of the present invention will be easily understood by those skilled in the art from the disclosure of the present specification. The invention is capable of other and different embodiments and of being practiced or of being carried out in various ways, and its several details are capable of modification in various respects, all without departing from the spirit and scope of the present invention. It is to be noted that the features in the following embodiments and examples may be combined with each other without conflict.
It should be noted that the drawings provided in the following embodiments are only for illustrating the basic idea of the present invention, and the components related to the present invention are only shown in the drawings rather than drawn according to the number, shape and size of the components in actual implementation, and the type, quantity and proportion of the components in actual implementation may be changed freely, and the layout of the components may be more complicated.
The inventor finds that at present, algorithms suitable for the network cameras are endless, and intelligent algorithms under specific scenes can be generated by training through machine learning, and in most cases, the application scenes of the algorithms are high in pertinence, and detection targets are single. However, when the algorithms need to access to the WEB camera, the WEB camera needs to develop corresponding functions such as WEB client, algorithm configuration, algorithm result analysis, and the like in a targeted manner, which means that more manpower and material resources need to be invested to perform adaptation and development work of the algorithms, so that the whole algorithm access period is lengthened, and adaptation development needs to be performed again every time a new algorithm appears, which is high in cost and troublesome to implement. Therefore, the inventor provides a network camera algorithm access method, a system, a medium and an electronic terminal, a target algorithm package is generated by setting a corresponding page generation rule file and a result field rule file in an algorithm package to be accessed, the target algorithm package is deployed to a network camera, when an algorithm in the target algorithm package needs to be used, the page rendering is performed according to the page generation rule file, an algorithm configuration page is generated, an algorithm configuration request is triggered at the algorithm configuration page, algorithm configuration information is generated according to the algorithm configuration request, and the algorithm configuration information is synchronized to the network camera; running the algorithm according to the algorithm configuration information to obtain an algorithm running result; displaying the algorithm operation result according to the result field rule file to finish the algorithm access of the network camera; the method and the device have the advantages that automatic adaptation and access of the algorithm when the algorithm is accessed into the network camera are achieved, the algorithm configuration page can be automatically generated, algorithm configuration parameters can be automatically issued and stored, the algorithm result can be automatically analyzed and displayed, software function adaptation and software version iteration are not needed to be performed on the network camera, the cost of accessing the algorithm into the network camera is effectively reduced, the algorithm access period is shortened, user experience is improved, and the method and the device are high in practicability and flexibility.
As shown in fig. 1, the network camera access method in this embodiment includes:
s101: and acquiring an algorithm packet to be accessed. And the algorithm packet to be accessed is an algorithm packet ready for accessing the network camera.
S102: and setting a page generation rule file and a result field rule file in the algorithm packet to be accessed to obtain a target algorithm packet. The page generation rule file comprises a display rule of a control required by the algorithm configuration page, and the result field rule file comprises a field display rule corresponding to the operation result of the algorithm. The page generation rule file and the result field rule file are preset in the algorithm package to be accessed to obtain the target algorithm package, so that the subsequent generation of the page configuration by the WEB algorithm and the automatic analysis and display of the operation result of the algorithm can be conveniently realized according to the page generation rule file and the result field rule file, the automation degree of the algorithm for accessing the network camera is improved, and the efficiency of the algorithm for accessing the network camera is improved.
S103: and deploying the target algorithm package to a network camera. By deploying the target algorithm package containing the page generation rule file and the result field rule file to the corresponding network cameras, an algorithm configuration page or a parameter configuration page of the algorithm is generated conveniently during subsequent algorithm use, and the running result of the algorithm is conveniently and accurately displayed.
S104: and acquiring an algorithm use request, and rendering a page according to the page generation rule file and the algorithm use request to generate an algorithm configuration page. Namely, when the algorithm deployed in the network camera needs to be used, the rule file is generated according to the page, page rendering is carried out, and a corresponding algorithm configuration page is generated. The accuracy and the adaptability of the algorithm configuration page can be improved by rendering the page according to the page generation rule file.
S105: triggering an algorithm configuration request on the algorithm configuration page, generating algorithm configuration information according to the algorithm configuration request, and synchronizing the algorithm configuration information to the network camera; and obtaining an algorithm operation result according to the algorithm configuration information. The method comprises the steps of clicking or inputting an algorithm configuration page, triggering an algorithm configuration request, assembling information in the algorithm configuration request by using a preset configuration protocol, and obtaining algorithm configuration information, wherein the algorithm configuration information comprises a plurality of algorithm configuration parameters, the algorithm configuration parameters are configuration parameters of an algorithm in a network camera, and then operating the algorithm in the network camera according to the algorithm configuration information to obtain an algorithm operation result. Through the processing, the automatic issuing and storing of the configuration parameters of the algorithm in the network camera are realized, the configuration of the algorithm in the network camera is realized, the configured algorithm is further utilized to obtain the corresponding algorithm operation result, and the parameter configuration efficiency of the algorithm is high.
S106: and displaying the operation result of the algorithm according to the result field rule file to finish the algorithm access of the network camera. And then, the display information is displayed according to the display rule in the result field rule file. Through the steps, automatic adaptation and access of the algorithm when the algorithm is accessed into the network camera are achieved, for example, for the access of the detection algorithm into the network camera in a simple scene, automatic adaptation can be achieved well, automatic generation of a web algorithm configuration page, automatic issuing and storing of algorithm configuration information, automatic conversion and display of algorithm results and the like can be achieved automatically, software function adaptation is not needed, software version iteration is not needed, applicability is strong, cost of the algorithm for accessing into the network camera is effectively reduced, and efficiency of the algorithm for accessing into the network camera is improved.
The algorithm configuration page mainly comprises a plurality of controls, and common controls comprise check boxes, drop-down boxes, digital input boxes and the like, so that in order to realize automatic generation of the algorithm configuration page, the inventor proposes that a page generation rule file is set in an algorithm package to be detected, and the page generation rule file comprises a plurality of control rules, so as to realize automatic generation of a subsequent algorithm configuration page. Further, as shown in fig. 2, the step of obtaining the page generation rule file includes:
s201: the method comprises the steps of presetting a standard control rule for expressing standard control information, wherein the standard control rule and a control for generating an algorithm configuration page have a first mapping relation. In some embodiments, control information commonly used in an existing algorithm configuration page may be used as standard control information, and the standard control information may be written into a standard control rule, where the standard control rule includes: control display name, field variable name, minimum, maximum, control component type, whether padding is necessary, default values, and the like.
S202: and adjusting and modifying the standard control rule to obtain a page generation rule file, and further setting the page generation rule file in the algorithm package to be accessed. Correspondingly, a first mapping relation exists between the page generation rule in the page generation rule file and the control. For example: and adjusting and modifying the standard control rule according to the actual condition of the algorithm in the current algorithm package to be accessed, defining a corresponding page generation rule file, and embedding the page generation rule file in the algorithm package to be accessed.
As shown in fig. 3, in order to improve the security degree of the algorithm deployed to the webcam, the inventor proposes that the step of deploying the target algorithm package to the webcam includes:
s301: and transmitting the target algorithm packet to a preset network camera.
S302: and checking the target algorithm packet according to a preset checking rule to obtain a checking result. For example: according to a preset check rule, whether the target algorithm package contains preset check data or not is judged, if the target algorithm package contains the check data, the check is passed, if the target algorithm package does not contain the check data, the check is failed, algorithm package deployment is cancelled, the check data can be check codes or necessary data in the algorithm package, and the like, the necessary data of the algorithm package is used for verifying the integrity degree of the algorithm package, and the target algorithm package is checked, so that the safety of the algorithm deployment in the network camera is improved, and the deployment failure is avoided.
S303: and deploying the target algorithm package to the network camera according to the checking result. And if the verification is passed, deploying the target algorithm package to the corresponding network camera.
S304: and reading and storing the page generation rule file and the result field rule file in the target algorithm package to complete the deployment of the target algorithm package. After the target algorithm package is deployed and the network camera is used, the network camera reads and stores the page generation rule file and the result field rule file in the target algorithm package, and therefore the page generation rule file and the result field rule file can be inquired and obtained conveniently when a user needs to use the algorithm.
As shown in fig. 4, in some embodiments, the page rendering is performed according to the page generation rule file and the algorithm use request, and the step of generating the algorithm configuration page includes:
s401: and acquiring a standard page template according to a preset standard control rule. For example: according to the preset standard control rule, a corresponding standard page template is preset in advance at a WEB client, and when the algorithm configuration page is generated, the standard page template can be directly rendered without building a page frame again, so that the generation efficiency of the algorithm configuration page is improved, the data processing difficulty and complexity are reduced, and the operation load of equipment is reduced.
S402: and when the algorithm in the target algorithm package needs to be used, page generation rule information is obtained by reading the page generation rule file.
S403: and rendering the standard page template according to the page generation rule information, and further generating the algorithm configuration page. By utilizing the page generation rule information to generate the algorithm configuration page, the automatic generation of the algorithm configuration page is realized, the automation degree is higher, and the implementation is more convenient.
In some embodiments, the algorithm configuration request comprises: the page key value is the control name of the algorithm configuration page, and the value corresponding to the page key value is data input by a user. Further, as shown in fig. 5, the step of obtaining the algorithm configuration request includes:
s501: and inputting or selecting a value corresponding to the control name on the algorithm configuration page according to a preset control value range. The control dereferencing range is used for limiting the configuration content of the control, and the control dereferencing range can be set according to the actual situation, which is not described herein again.
S502: and generating the algorithm configuration request according to the control name and the value corresponding to the control name. For example: and generating an algorithm configuration request by integrating the control name and the value corresponding to the control name.
As shown in fig. 6, in order to implement automatic configuration of algorithm parameters, the inventor proposes that, according to the algorithm configuration request, the step of obtaining algorithm configuration parameters includes:
s601: and assembling the information in the algorithm configuration request according to a preset configuration protocol to acquire algorithm configuration information. The configuration protocol may be set according to the actual situation of the algorithm, and is not described herein again. The information in the algorithm configuration request is assembled according to a preset configuration protocol to obtain corresponding algorithm configuration information, so that complete algorithm configuration information can be obtained, and algorithm configuration is further carried out by utilizing the algorithm configuration information.
S602: and storing the algorithm configuration information, transmitting the algorithm configuration information to a network camera, and further performing algorithm operation by using the algorithm configuration information. That is, when the algorithm configuration information is assembled by a preset configuration protocol, the algorithm configuration information is not analyzed, and the algorithm configuration information is directly stored, so that the persistence of the algorithm configuration is completed. And transmitting the algorithm configuration information to the network camera, performing algorithm configuration by using the algorithm configuration information, and further operating the configured algorithm.
In some embodiments, a value range of an algorithm operation result is preset in the target algorithm packet; the result field rule file comprises a plurality of values of algorithm operation results, display information and a second mapping relation between the algorithm operation results and the display information. The result field rule file defines Chinese and English names, field types, field values and the like in the operation result of each algorithm.
As shown in fig. 7, the step of displaying the operation result of the algorithm according to the result field rule file includes:
s701: and inquiring and acquiring the result field rule file in real time.
S702: and converting the obtained algorithm operation result according to the second mapping relation in the result field rule file, obtaining corresponding display information and displaying the display information. For example: the method comprises the steps of utilizing a WEB client and an OCX (Object Linking and Embedding Control Extension) plug-in to display information in real time, such as displaying a target tracking frame in a display interface, displaying a target sectional drawing, displaying a statistic value on a page and the like.
For example: assuming that the current algorithm supports detection of the vehicle body color, the actual values of the vehicle body color are listed in advance in a key value pair mode, such as "1: black, 2: white, 3: and gray and the like, the obtained algorithm operation result takes the key value 1 when a black automobile body is detected, and corresponding display information black is obtained according to the key value and the mapping relation in the result field rule file, so that the result display is performed.
For another example: assuming that the current algorithm supports target matting, the mapping relationship between the target frame coordinates and the field names is agreed in advance, if the field names of the target frame coordinates can be defined as [ rect _ x, rect _ y, rect _ width, rect _ height ], and when the target frame coordinates in the algorithm operation result are obtained, the target frames are overlapped on the result display page by using OCX according to the mapping relationship between the target frame coordinates and the field names.
The first embodiment is as follows:
firstly, before an algorithm packet to be accessed leaves a factory, formulating a page generation rule file according to an algorithm configuration page required by the algorithm, formulating a result field rule file according to a detection target actually supported by the algorithm in the algorithm packet to be accessed and a target result value, and embedding the two files in the algorithm packet to be accessed to generate a target algorithm packet;
secondly, deploying the target algorithm package into the corresponding network cameras, respectively reading and storing the page generation rule file and the result field rule file in the target algorithm package, and acquiring page generation rule information and result field rule information, wherein the deployment of the target algorithm package can be performed in a page import mode;
when a user needs to use an algorithm deployed in the network camera, the WEB client actively inquires corresponding page generation rule information of the network camera, performs page rendering according to the page generation rule information, generates an algorithm configuration page, uses the automatically generated algorithm configuration page to perform parameter configuration by the user, acquires algorithm configuration information, and stores the algorithm configuration information, sends the algorithm configuration information to the network camera, and performs algorithm operation by using the algorithm configuration parameters;
the Web client actively inquires result field rule information;
when the algorithm package detects a target, an algorithm operation result is obtained, the WEB client and the OCX obtain display information corresponding to the algorithm operation result according to the result field rule information, and then the display information is subjected to result display, such as statistics display, target cutout display, rule frame superposition and the like, so that automatic adaptation and access of the algorithm when the algorithm is accessed to the network camera are realized, an algorithm configuration page can be automatically generated, algorithm configuration parameters can be automatically issued and stored, automatic analysis and display of the algorithm result are realized, software function adaptation and software version iteration of the network camera are not needed, the cost of accessing the algorithm to the network camera is effectively reduced, the algorithm access period is reduced, user experience is improved, and the practicability is high.
Referring to fig. 8, the present embodiment further provides a network camera algorithm access system, including:
the preprocessing module is used for acquiring an algorithm packet to be accessed; setting a page generation rule file and a result field rule file in an algorithm package to be accessed, and acquiring a target algorithm package;
the deployment module is used for deploying the target algorithm package to a network camera;
the processing module is used for acquiring the algorithm using request, performing page rendering according to the page generating rule file and the algorithm using request and generating an algorithm configuration page; triggering an algorithm configuration request on the algorithm configuration page, generating algorithm configuration information according to the algorithm configuration request, and synchronizing the algorithm configuration information to the network camera; acquiring an algorithm operation result according to the algorithm configuration information;
the display module is used for displaying the algorithm operation result according to the result field rule file to finish the algorithm access of the network camera; the preprocessing module, the deployment module, the processing module and the display module are connected.
In the network camera algorithm access system in the embodiment, a target algorithm package is generated by setting a corresponding page generation rule file and a result field rule file in an algorithm package to be accessed, the target algorithm package is deployed to a network camera, when an algorithm in the target algorithm package needs to be used, the rule file is generated according to the page, page rendering is performed, an algorithm configuration page is generated, an algorithm configuration request is triggered on the algorithm configuration page, algorithm configuration information is generated according to the algorithm configuration request, and the algorithm configuration information is synchronized to the network camera; running the algorithm according to the algorithm configuration information to obtain an algorithm running result; displaying the algorithm operation result according to the result field rule file to finish the algorithm access of the network camera; the method and the device have the advantages that automatic adaptation and access of the algorithm when the algorithm is accessed into the network camera are achieved, the algorithm configuration page can be automatically generated, algorithm configuration parameters can be automatically issued and stored, the algorithm result can be automatically analyzed and displayed, software function adaptation and software version iteration are not needed to be performed on the network camera, the cost of accessing the algorithm into the network camera is effectively reduced, the algorithm access period is shortened, user experience is improved, flexibility is high, and practicability is high.
Referring to fig. 9-11, in some embodiments, a webcam algorithm access system includes:
the system comprises a WEB client, an algorithm deployment service, an algorithm configuration service, an algorithm service and an algorithm result analysis service; the WEB client comprises an OCX plug-in;
the WEB client is used for importing a target algorithm package, namely importing a new algorithm package, and sending the target algorithm package to an algorithm deployment service for algorithm deployment, namely message transmission;
the algorithm deployment service is used for verifying the input target algorithm package, if the verification is successful, the target algorithm package is deployed to the algorithm service, and after the deployment is completed, the page generation rule file and the result field rule file in the target algorithm package are read and stored to obtain corresponding page generation rule information and result field rule information;
the WEB client is also used for acquiring an algorithm using request when an algorithm is ready to be used, actively inquiring page rules from the algorithm deployment service according to the algorithm using request, namely inquiring and acquiring page generation rule information, rendering a preset standard page template according to the returned page generation rule information, generating an algorithm configuration page and displaying the page; a user triggers an algorithm configuration request on the algorithm configuration page, a WEB client assembles data in the algorithm configuration request according to a preset configuration protocol, acquires algorithm configuration information and transmits the algorithm configuration information to a configuration management service, and when the configuration management service identifies that the algorithm configuration information is information assembled according to the configuration protocol, the algorithm configuration information is not analyzed, and is directly stored in a preset database, so that the algorithm configuration is persistent;
the algorithm configuration service issues the algorithm configuration information to an algorithm service, and the algorithm service runs an algorithm according to the algorithm configuration information to complete algorithm configuration;
the web client is also used for inquiring result rules in real time, namely field rule information of the result is inquired to the algorithm result analysis service, the algorithm result analysis service acquires the field rule information of the result from the algorithm service and sequentially transmits the acquired field rule information of the result to the algorithm result analysis service and the web client, when the algorithm is operated, the algorithm service transmits the algorithm result, namely the algorithm operation result to the web client through the algorithm result analysis service, and the web client displays the result according to the field rule information of the result and the acquired algorithm operation result. Transparent transmission refers to transparent transmission. The algorithm deployment service, the algorithm configuration service and the algorithm service are arranged in the network camera.
In some embodiments, the obtaining of the page generation rule file includes:
presetting a standard control rule for representing standard control information, wherein the standard control rule and a control for generating an algorithm configuration page have a first mapping relation;
and adjusting and modifying the standard control rule to obtain a page generation rule file, and further setting the page generation rule file in the algorithm package to be accessed.
In some embodiments, the step of deploying the target algorithm package to a webcam comprises:
transmitting the target algorithm packet to a preset network camera;
according to a preset verification rule, verifying the target algorithm packet to obtain a verification result;
deploying the target algorithm package to the network camera according to the checking result;
and reading and storing the page generation rule file and the result field rule file in the target algorithm package to complete the deployment of the target algorithm package.
In some embodiments, the page rendering is performed according to the page generation rule file and the algorithm use request, and the step of generating the algorithm configuration page includes:
acquiring a standard page template according to a preset standard control rule;
when the algorithm in the target algorithm package needs to be used, page generation rule information is obtained by reading the page generation rule file;
and rendering the standard page template according to the page generation rule information, and further generating the algorithm configuration page.
In some embodiments, the algorithm configuration page includes a plurality of controls; the algorithm configuration request includes: the method comprises the steps of obtaining a page key value and a value corresponding to the page key value, wherein the page key value is a control name of an algorithm configuration page, and the value corresponding to the page key value is data input by a user;
the step of triggering an algorithm configuration request at the algorithm configuration page comprises:
inputting a value corresponding to the control name on the algorithm configuration page according to a preset control value range;
and generating the algorithm configuration request according to the control name and the value corresponding to the control name.
In some embodiments, the step of generating algorithm configuration information according to the algorithm configuration request comprises:
assembling data in the algorithm configuration request according to a preset configuration protocol to acquire algorithm configuration information;
and storing the algorithm configuration information, transmitting the algorithm configuration information to a network camera, and further performing algorithm operation by using the algorithm configuration information.
In some embodiments, a value range of an algorithm operation result is preset in the target algorithm packet; the result field rule file comprises a plurality of values of algorithm operation results, display information and a second mapping relation between the algorithm operation results and the display information;
the step of displaying the operation result of the algorithm according to the result field rule file comprises the following steps:
inquiring and acquiring the result field rule file in real time;
and converting the obtained algorithm operation result according to the second mapping relation in the result field rule file, obtaining corresponding display information and displaying the display information.
The present embodiment also provides a computer-readable storage medium on which a computer program is stored, which when executed by a processor implements any of the methods in the present embodiments.
The present embodiment further provides an electronic terminal, including: a processor and a memory;
the memory is used for storing computer programs, and the processor is used for executing the computer programs stored by the memory so as to enable the terminal to execute the method in the embodiment.
The computer-readable storage medium in the present embodiment can be understood by those skilled in the art as follows: all or part of the steps for implementing the above method embodiments may be performed by hardware associated with a computer program. The aforementioned computer program may be stored in a computer readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
The electronic terminal provided by the embodiment comprises a processor, a memory, a transceiver and a communication interface, wherein the memory and the communication interface are connected with the processor and the transceiver and are used for completing mutual communication, the memory is used for storing a computer program, the communication interface is used for carrying out communication, and the processor and the transceiver are used for operating the computer program so that the electronic terminal can execute the steps of the method.
In this embodiment, the Memory may include a Random Access Memory (RAM), and may also include a non-volatile Memory (non-volatile Memory), such as at least one disk Memory.
The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the Integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.
The foregoing embodiments are merely illustrative of the principles and utilities of the present invention and are not intended to limit the invention. Any person skilled in the art can modify or change the above-mentioned embodiments without departing from the spirit and scope of the present invention. Accordingly, it is intended that all equivalent modifications or changes which can be made by those skilled in the art without departing from the spirit and technical spirit of the present invention be covered by the claims of the present invention.

Claims (10)

1. A network camera algorithm access method is characterized by comprising the following steps:
acquiring an algorithm packet to be accessed;
setting a page generation rule file and a result field rule file in an algorithm package to be accessed, and acquiring a target algorithm package;
deploying the target algorithm package to a network camera;
acquiring an algorithm using request, and rendering a page according to the page generation rule file and the algorithm using request to generate an algorithm configuration page; triggering an algorithm configuration request on the algorithm configuration page, generating algorithm configuration information according to the algorithm configuration request, and synchronizing the algorithm configuration information to the network camera; acquiring an algorithm operation result according to the algorithm configuration information;
and displaying the operation result of the algorithm according to the result field rule file to finish the algorithm access of the network camera.
2. The network camera algorithm access method according to claim 1, wherein the step of acquiring the page generation rule file comprises:
presetting a standard control rule for representing standard control information, wherein the standard control rule and a control for generating an algorithm configuration page have a first mapping relation;
and adjusting and modifying the standard control rule to obtain a page generation rule file, and further setting the page generation rule file in the algorithm package to be accessed.
3. The network camera algorithm access method according to claim 1, wherein the step of deploying the target algorithm package to the network camera comprises:
transmitting the target algorithm packet to a preset network camera;
according to a preset verification rule, verifying the target algorithm packet to obtain a verification result;
deploying the target algorithm package to the network camera according to the checking result;
and reading and storing the page generation rule file and the result field rule file in the target algorithm package to complete the deployment of the target algorithm package.
4. The network camera algorithm access method according to claim 1, wherein page rendering is performed according to the page generation rule file and the algorithm use request, and the step of generating an algorithm configuration page includes:
acquiring a standard page template according to a preset standard control rule;
when the algorithm in the target algorithm package needs to be used, page generation rule information is obtained by reading the page generation rule file;
and rendering the standard page template according to the page generation rule information, and further generating the algorithm configuration page.
5. The web camera algorithm access method of claim 1, wherein the algorithm configuration page includes a plurality of controls; the algorithm configuration request includes: the method comprises the steps of obtaining a page key value and a value corresponding to the page key value, wherein the page key value is a control name of an algorithm configuration page, and the value corresponding to the page key value is data input by a user;
the step of triggering an algorithm configuration request at the algorithm configuration page comprises:
inputting a value corresponding to the control name on the algorithm configuration page according to a preset control value range;
and generating the algorithm configuration request according to the control name and the value corresponding to the control name.
6. The network camera algorithm access method according to claim 1, wherein the step of generating algorithm configuration information according to the algorithm configuration request comprises:
assembling data in the algorithm configuration request according to a preset configuration protocol to acquire algorithm configuration information;
and storing the algorithm configuration information, transmitting the algorithm configuration information to a network camera, and further performing algorithm operation by using the algorithm configuration information.
7. The network camera algorithm access method according to claim 1, characterized in that a value range of an algorithm operation result is preset in the target algorithm packet; the result field rule file comprises a plurality of values of algorithm operation results, display information and a second mapping relation between the algorithm operation results and the display information;
the step of displaying the operation result of the algorithm according to the result field rule file comprises the following steps:
inquiring and acquiring the result field rule file in real time;
and converting the obtained algorithm operation result according to the second mapping relation in the result field rule file, obtaining corresponding display information and displaying the display information.
8. A webcam algorithm access system, comprising:
the preprocessing module is used for acquiring an algorithm packet to be accessed; setting a page generation rule file and a result field rule file in an algorithm package to be accessed, and acquiring a target algorithm package;
the deployment module is used for deploying the target algorithm package to a network camera;
the processing module is used for acquiring the algorithm using request, performing page rendering according to the page generating rule file and the algorithm using request and generating an algorithm configuration page; triggering an algorithm configuration request on the algorithm configuration page, generating algorithm configuration information according to the algorithm configuration request, and synchronizing the algorithm configuration information to the network camera; acquiring an algorithm operation result according to the algorithm configuration information;
the display module is used for displaying the algorithm operation result according to the result field rule file to finish the algorithm access of the network camera; the preprocessing module, the deployment module, the processing module and the display module are connected.
9. A computer-readable storage medium having stored thereon a computer program, characterized in that: the computer program, when executed by a processor, implements the method of any one of claims 1 to 7.
10. An electronic terminal, comprising: a processor and a memory;
the memory is for storing a computer program and the processor is for executing the computer program stored by the memory to cause the terminal to perform the method of any of claims 1 to 7.
CN202111500815.2A 2021-12-09 2021-12-09 Network camera algorithm access method, system, medium and electronic terminal Active CN114205526B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111500815.2A CN114205526B (en) 2021-12-09 2021-12-09 Network camera algorithm access method, system, medium and electronic terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111500815.2A CN114205526B (en) 2021-12-09 2021-12-09 Network camera algorithm access method, system, medium and electronic terminal

Publications (2)

Publication Number Publication Date
CN114205526A true CN114205526A (en) 2022-03-18
CN114205526B CN114205526B (en) 2022-11-15

Family

ID=80651758

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111500815.2A Active CN114205526B (en) 2021-12-09 2021-12-09 Network camera algorithm access method, system, medium and electronic terminal

Country Status (1)

Country Link
CN (1) CN114205526B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114745268A (en) * 2022-03-31 2022-07-12 杭州视洞科技有限公司 Method for online updating and loading algorithm library of network camera

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104702982A (en) * 2013-12-20 2015-06-10 杭州海康威视数字技术股份有限公司 Method and system for configuring algorithms for video analysis equipment
CN109325900A (en) * 2018-09-19 2019-02-12 北京润科通用技术有限公司 A kind of dispositions method and system of algorithm
CN109635170A (en) * 2018-12-13 2019-04-16 成都四方伟业软件股份有限公司 Algorithm cut-in method, device, electronic equipment and readable storage medium storing program for executing
CN110955441A (en) * 2018-09-27 2020-04-03 华为技术有限公司 Algorithm updating method and device
CN112330519A (en) * 2020-11-17 2021-02-05 珠海大横琴科技发展有限公司 Data processing method and device
CN112579144A (en) * 2019-09-30 2021-03-30 杭州海康机器人技术有限公司 Data processing method and device
WO2021093625A1 (en) * 2019-11-14 2021-05-20 杭州海康威视数字技术股份有限公司 Intelligent analysis algorithm selection method, apparatus and system, and electronic device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104702982A (en) * 2013-12-20 2015-06-10 杭州海康威视数字技术股份有限公司 Method and system for configuring algorithms for video analysis equipment
CN109325900A (en) * 2018-09-19 2019-02-12 北京润科通用技术有限公司 A kind of dispositions method and system of algorithm
CN110955441A (en) * 2018-09-27 2020-04-03 华为技术有限公司 Algorithm updating method and device
US20210216301A1 (en) * 2018-09-27 2021-07-15 Huawei Technologies Co., Ltd. Algorithm update method and apparatus
CN109635170A (en) * 2018-12-13 2019-04-16 成都四方伟业软件股份有限公司 Algorithm cut-in method, device, electronic equipment and readable storage medium storing program for executing
CN112579144A (en) * 2019-09-30 2021-03-30 杭州海康机器人技术有限公司 Data processing method and device
WO2021093625A1 (en) * 2019-11-14 2021-05-20 杭州海康威视数字技术股份有限公司 Intelligent analysis algorithm selection method, apparatus and system, and electronic device
CN112330519A (en) * 2020-11-17 2021-02-05 珠海大横琴科技发展有限公司 Data processing method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114745268A (en) * 2022-03-31 2022-07-12 杭州视洞科技有限公司 Method for online updating and loading algorithm library of network camera

Also Published As

Publication number Publication date
CN114205526B (en) 2022-11-15

Similar Documents

Publication Publication Date Title
CN109492536B (en) Face recognition method and system based on 5G framework
CN109905293B (en) Terminal equipment identification method, system and storage medium
CN110275831B (en) Mock data verification method and device of protocol interface
EP4176602A1 (en) Method and apparatus for updating gateway resource, and iot control platform
CN114205526B (en) Network camera algorithm access method, system, medium and electronic terminal
CN107203470B (en) Page adjustment method and device
CN108090747A (en) Self-service method, apparatus of validating the car, equipment and the computer storage media that vehicle insurance core is protected
CN113918232B (en) Algorithm service calling method, device, server and storage medium
CN103246606A (en) Method and system for testing performances of ESB (enterprises service bus) platform
CN111106899B (en) Data verification method and device in Internet of things, computer equipment and storage medium
CN115049057B (en) Model deployment method and device, electronic equipment and storage medium
CN109510738B (en) Communication link test method and device
CN111508033A (en) Camera parameter determination method, image processing method, storage medium, and electronic apparatus
CN113762197A (en) Transformer substation fire detection method and device based on terminal power business edge calculation
CN113391992A (en) Test data generation method and device, storage medium and electronic equipment
CN112749746A (en) Method, system and device for iteratively updating defect sample
CN112468439A (en) Internet of things DDoS attack traffic detection system based on deep learning method
CN112115041A (en) Dynamic point burying method and device for application program, storage medium and computer equipment
CN113742408B (en) Protobuf protocol dynamic analysis-based data interaction method
CN105162799A (en) Method for checking whether client is legal mobile terminal or not and server
CN113505844A (en) Label generation method, device, equipment, storage medium and program product
CN114371982A (en) Simulation test method, device, equipment and readable storage medium
CN111917604A (en) Method for automatically testing SONiC based on virtual switch simulation platform
CN111914429A (en) Power simulation training learning data management system and method based on block chain
CN112394809A (en) Method, device and communication equipment for realizing augmented reality

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
GR01 Patent grant
GR01 Patent grant