CN114745268A - Method for online updating and loading algorithm library of network camera - Google Patents
Method for online updating and loading algorithm library of network camera Download PDFInfo
- Publication number
- CN114745268A CN114745268A CN202210328871.0A CN202210328871A CN114745268A CN 114745268 A CN114745268 A CN 114745268A CN 202210328871 A CN202210328871 A CN 202210328871A CN 114745268 A CN114745268 A CN 114745268A
- Authority
- CN
- China
- Prior art keywords
- library
- network camera
- algorithm
- algorithm library
- steps
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0813—Configuration setting characterised by the conditions triggering a change of settings
- H04L41/082—Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/04—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
- H04L63/0428—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Abstract
The invention relates to the technical field of network cameras, and discloses a method for updating a loading algorithm library on line by a network camera, wherein the network camera loads a default algorithm library for operation when being started; after the network camera is added, the user sets a corresponding use scene; the network camera actively connects the algorithm library downloading server through the set use scene, and acquires corresponding algorithm library information through https; after the size of the algorithm library is verified, starting downloading; checking after downloading is completed; and after the verification is passed, the network camera closes the default algorithm, resets the variable and loads a new algorithm to operate. The problems of rapidness, simplicity, convenience and safety requirements of the network camera updating algorithm library and reduction of occupied flash space are solved; after the network camera is downloaded on line, a new algorithm library is loaded; the method and the device meet the requirements of updating the algorithm library, reducing the occupied space of a plurality of algorithm libraries which are pre-installed, and being more convenient and efficient.
Description
Technical Field
The invention relates to the technical field of network cameras, in particular to a method for updating and loading an algorithm library on line by a network camera.
Background
The network camera is adapted to different scenes, and needs to use different algorithm configurations; in order to be compatible with various algorithm libraries, the current network camera has the following solutions:
1. increasing flash storage;
2. updating algorithm libraries through peripherals such as TF cards
3. Integrated in firmware and then updating the entire firmware package online
In the scheme 1, by adding flash storage, a plurality of algorithm libraries can be installed on the network camera in advance and then directly called when in use. Multiple algorithm libraries can be used without an external network but this approach increases hardware costs.
And 2, updating the algorithm library through an external device such as a TF card, putting the downloaded algorithm library into the TF card by a user, putting the TF card into the equipment, and updating and loading the corresponding algorithm library from the TF card by the equipment. Although the scheme reduces the cost, the using steps are increased, and the usability is poor.
Scheme 3, integrated in the firmware, and then updates the entire firmware package online. Downloading the whole firmware containing the specific algorithm library in an online firmware updating mode, and then automatically burning the flash of the network camera. Although the cost is reduced, the updating process is long, the problem that the firmware is frequently written by switching the algorithm library and the flash fails, the service life of the network camera is shortened, equipment must be restarted, and the stability is not high.
In view of this, in order to save the storage space and quickly update the algorithm, a method for online updating and loading the algorithm library by the network camera is provided, and the algorithm is matched by the online loading algorithm library.
Disclosure of Invention
The invention aims to solve the problem that different algorithm libraries need to be updated when the network camera is matched with different scenes, and the algorithm libraries can be conveniently updated on the premise of not increasing the hardware cost and the use cost.
In order to achieve the purpose, the invention provides the following technical scheme: a method for updating and loading an algorithm library on line by a network camera comprises the following steps;
the method comprises the following steps: starting to update the algorithm library process after receiving the scene change;
step two: acquiring a set scene;
step three: judging whether the camera supports the scene;
step four: acquiring the space size S of the residual placeable algorithm library of the network camera;
step five: initializing an HTTPS link;
step six: connecting an algorithm library downloading server through HTTPS encryption;
step seven: judging whether the connection is successful or not, and if not, performing the step eight; if the connection is successful, performing step ten;
step eight: recording the connection times A + 1;
step nine: judging whether the connection times are more than 3;
step ten: acquiring information of a new algorithm library through a download server;
step eleven: judging whether the information is successfully acquired, if not, acquiring the information to be null, indicating that the information does not support returning, and if so, performing the next step;
step twelve: calculating whether the currently used library version numbers are the same; if the two are the same, returning to be updated; if not, carrying out the first step;
step thirteen: comparing the size of the residual space with the size of the new library, and if the size of the new library is larger than the residual space, returning to the non-support; if the new library is smaller than the residual space, the next step is carried out;
fourteen steps: downloading a new library file through https encryption;
step fifteen: after downloading is completed, closing https;
sixthly, the steps are as follows: calculating a new library MD 5;
seventeen steps: checking whether the calculated MD5 is the same as the MAD5 in the library information acquired before; if not, returning to the step fourteen to download again; if the two are the same, the next step is carried out;
eighteen steps: the network camera exits the current algorithm;
nineteen steps: dynamically loading a new library through a system function;
twenty steps: deleting the old library and releasing the space;
twenty one: and returning to the successful end.
Preferably, in step three, if not, returning; if so, the next step is performed.
Preferably, in the ninth step, if yes, the connection failure is returned; otherwise, after waiting for 3S, continuing the step six.
Preferably, step ten includes the system supported by the new library, size, version number, MD 5.
Preferably, in step twelve, version and type information is included in the version number.
The method for updating the loading algorithm library on line by the network camera has the advantages that:
1. the cost is saved, and the method can be realized without adding a hardware flash;
2. the method is easier to use, and the equipment automatically updates the algorithm library only by clicking the APP end without the operation of a user at the equipment end;
3. the safety is higher, the safety of the operation of the user through TF is eliminated through network downloading;
4. the fast-reading switching algorithm has a fast-reading iteration function, and is realized by network downloading without restarting;
in summary, the invention adopts a mode of downloading the algorithm library dynamic library online, after selecting a specific use scene, the network camera automatically downloads the corresponding algorithm library, and after downloading the algorithm library to the network camera, the algorithm library is directly loaded and operated without restarting and taking effect more quickly, and without needing to install a TF card more easily, and without needing to write the whole firmware partition to increase the stability.
Drawings
FIG. 1 is a flow chart of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, 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 invention.
Referring to fig. 1, the present invention provides a technical solution: a method for online updating and loading an algorithm library by a network camera comprises the following steps;
the method comprises the following steps: starting to update the algorithm library process after receiving the scene change;
step two: acquiring a set scene;
step three: judging whether the camera supports the scene or not, and returning if the camera does not support the scene; if yes, carrying out the next step;
step four: acquiring the space size S of the residual placeable algorithm library of the network camera;
step five: initializing an HTTPS link;
step six: connecting an algorithm library downloading server through HTTPS encryption;
step seven: judging whether the connection is successful or not, and if not, performing the step eight; if the connection is successful, performing step ten;
step eight: recording the connection times A + 1;
step nine: judging whether the connection times are more than 3, if so, returning connection failure; otherwise, after waiting for 3S, continuing the step six;
step ten: acquiring information of a new algorithm library through a download server, wherein the information comprises a system supported by the new library, the size, the version number and MD 5;
step eleven: judging whether the information is successfully acquired, if not, acquiring to be null, indicating that the information does not support returning, and if the information is successfully acquired, performing the next step;
step twelve: calculating whether the version numbers of the currently used libraries are the same, wherein the version numbers contain version and type information; if the two are the same, returning to be updated; if not, carrying out the first step;
step thirteen: comparing the size of the residual space with the size of the new library, and if the size of the new library is larger than the residual space, returning to the non-support; if the new library is smaller than the residual space, the next step is carried out;
fourteen steps: downloading a new library file through https encryption;
step fifteen: after downloading is completed, closing https;
sixthly, the steps are as follows: calculating a new library MD 5;
seventeen steps: checking whether the calculated MD5 is the same as the MAD5 in the library information obtained before; if not, returning to the step fourteen to download again; if the two are the same, the next step is carried out;
eighteen, the steps are: the network camera exits the current algorithm;
nineteen steps: dynamically loading a new library through a system function;
twenty steps: deleting the old library and releasing the space;
twenty one: and returning to the successful end.
In the embodiment, the network camera is started by loading a default algorithm library for operation; after the network camera is added, the user sets a corresponding use scene; the network camera actively connects the algorithm library downloading server through the set use scene, and obtains corresponding algorithm library information through https; after the size of the verification algorithm library passes, starting downloading; verifying after downloading is completed; and after the verification is passed, the network camera closes the default algorithm, resets the variable and loads a new algorithm to operate.
The problems of rapidness, simplicity, convenience and safety requirements of the network camera updating algorithm library and reduction of occupied flash space are solved; after the network camera is downloaded on line, a new algorithm library is loaded; the method and the device meet the requirements of updating the algorithm library, reducing the occupied space of a plurality of algorithm libraries which are pre-installed, and being more convenient and efficient.
Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that changes, modifications, substitutions and alterations can be made in these embodiments without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.
Claims (5)
1. A method for online updating and loading an algorithm library by a network camera is characterized by comprising the following steps: comprises the following steps;
the method comprises the following steps: starting to update the algorithm library process after receiving the scene change;
step two: acquiring a set scene;
step three: judging whether the camera supports the scene;
step four: obtaining the space size S of the residual placeable algorithm library of the network camera;
step five: initializing an HTTPS link;
step six: connecting an algorithm library downloading server through HTTPS encryption;
step seven: judging whether the connection is successful or not, and if not, performing the step eight; if the connection is successful, performing step ten;
step eight: recording the connection times A + 1;
step nine: judging whether the connection times are more than 3;
step ten: acquiring information of a new algorithm library through a download server;
step eleven: judging whether the information is successfully acquired, if not, acquiring the information to be null, indicating that the information does not support returning, and if so, performing the next step;
step twelve: calculating whether the currently used library version numbers are the same; if the two are the same, returning to be updated; if not, carrying out the first step;
step thirteen: comparing the size of the residual space with the size of the new library, and if the size of the new library is larger than the residual space, returning to the non-support; if the new library is smaller than the residual space, the next step is carried out;
fourteen steps: downloading a new library file through https encryption;
step fifteen: after downloading is completed, closing https;
sixthly, the steps are as follows: calculating a new library MD 5;
seventeen steps: checking whether the calculated MD5 is the same as the MAD5 in the library information acquired before; if not, returning to the step fourteen to download again; if the two are the same, the next step is carried out;
eighteen steps: the network camera exits the current algorithm;
nineteen steps: dynamically loading a new library through a system function;
twenty steps: deleting the old library and releasing the space;
twenty one: and returning to the successful end.
2. The method for online updating of the loading algorithm library by the network camera according to claim 1, characterized in that: in the third step, if not, returning; if so, the next step is performed.
3. The method for online updating of the loading algorithm library by the network camera according to claim 1, characterized in that: in the ninth step, if yes, the connection failure is returned; otherwise, after waiting for 3S, continuing the step six.
4. The method for online updating of the loading algorithm library by the network camera according to claim 1, characterized in that: in the tenth step, the system supported by the new library, size, version number and MD5 are included.
5. The method for online updating of the loading algorithm library by the network camera according to claim 1, characterized in that: in step twelve, version and type information exists in the version number.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210328871.0A CN114745268A (en) | 2022-03-31 | 2022-03-31 | Method for online updating and loading algorithm library of network camera |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210328871.0A CN114745268A (en) | 2022-03-31 | 2022-03-31 | Method for online updating and loading algorithm library of network camera |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114745268A true CN114745268A (en) | 2022-07-12 |
Family
ID=82279814
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210328871.0A Pending CN114745268A (en) | 2022-03-31 | 2022-03-31 | Method for online updating and loading algorithm library of network camera |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114745268A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115474000A (en) * | 2022-08-16 | 2022-12-13 | 支付宝(杭州)信息技术有限公司 | Data processing method and device |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1300761A1 (en) * | 2001-10-04 | 2003-04-09 | Brendan Tschabold | Methods for upgrading or updating data and software on computers |
WO2015133719A1 (en) * | 2014-03-04 | 2015-09-11 | 삼성테크윈 주식회사 | Network camera update-automation apparatus |
WO2018098919A1 (en) * | 2016-12-01 | 2018-06-07 | 武汉斗鱼网络科技有限公司 | Automatic update method and device for qt program |
CN108419006A (en) * | 2017-12-13 | 2018-08-17 | 天津天地伟业机器人技术有限公司 | A kind of big packet upgrade method based on web camera |
WO2019071858A1 (en) * | 2017-10-09 | 2019-04-18 | 武汉斗鱼网络科技有限公司 | File update method, apparatus, and device |
CN110955441A (en) * | 2018-09-27 | 2020-04-03 | 华为技术有限公司 | Algorithm updating method and device |
CN111414885A (en) * | 2020-03-27 | 2020-07-14 | 海信集团有限公司 | Intelligent household equipment, server and image processing method |
CN114205526A (en) * | 2021-12-09 | 2022-03-18 | 重庆紫光华山智安科技有限公司 | Network camera algorithm access method, system, medium and electronic terminal |
-
2022
- 2022-03-31 CN CN202210328871.0A patent/CN114745268A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1300761A1 (en) * | 2001-10-04 | 2003-04-09 | Brendan Tschabold | Methods for upgrading or updating data and software on computers |
WO2015133719A1 (en) * | 2014-03-04 | 2015-09-11 | 삼성테크윈 주식회사 | Network camera update-automation apparatus |
WO2018098919A1 (en) * | 2016-12-01 | 2018-06-07 | 武汉斗鱼网络科技有限公司 | Automatic update method and device for qt program |
WO2019071858A1 (en) * | 2017-10-09 | 2019-04-18 | 武汉斗鱼网络科技有限公司 | File update method, apparatus, and device |
CN108419006A (en) * | 2017-12-13 | 2018-08-17 | 天津天地伟业机器人技术有限公司 | A kind of big packet upgrade method based on web camera |
CN110955441A (en) * | 2018-09-27 | 2020-04-03 | 华为技术有限公司 | Algorithm updating method and device |
CN111414885A (en) * | 2020-03-27 | 2020-07-14 | 海信集团有限公司 | Intelligent household equipment, server and image processing method |
CN114205526A (en) * | 2021-12-09 | 2022-03-18 | 重庆紫光华山智安科技有限公司 | Network camera algorithm access method, system, medium and electronic terminal |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115474000A (en) * | 2022-08-16 | 2022-12-13 | 支付宝(杭州)信息技术有限公司 | Data processing method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7971199B1 (en) | Mobile device with a self-updating update agent in a wireless network | |
US20120102477A1 (en) | Firmware update method and apparatus for a mobile device | |
US20180322013A1 (en) | Method for recovering basic input/output system image file of a computer system and the computer system | |
CN108829431A (en) | Update method, device, equipment and the storage medium of iOS application program | |
CN106775873B (en) | Method and equipment for updating mobile phone software and acquiring patch file | |
CN111813428A (en) | Method and device for upgrading terminal firmware, electronic equipment and storage medium | |
CN111309354A (en) | OTA (over the air) upgrading method and device of networking equipment | |
CN110597545A (en) | Hot patch intelligent upgrading method and system based on OTA component | |
CN114443081A (en) | Terminal upgrading method and terminal | |
CN110083379A (en) | A kind of server component upgrade method and relevant apparatus | |
CN111562934A (en) | Software system upgrading method based on hot patch, terminal and storage medium | |
CN114115984A (en) | Server firmware upgrading method, storage device and terminal | |
CN114745268A (en) | Method for online updating and loading algorithm library of network camera | |
CN110750280A (en) | Application upgrading method and system based on Android platform and storage medium | |
CN114780019A (en) | Electronic device management method and device, electronic device and storage medium | |
CN105700903A (en) | User terminal upgrading method and user terminal | |
CN113032183A (en) | System management method, device, computer equipment and storage medium | |
CN114296764A (en) | System upgrading method and device, storage medium and electronic equipment | |
CN111611000B (en) | High-reliability firmware air upgrading method and system | |
CN104683594A (en) | SIM card-oriented method for loading mobile phone operating system | |
CN113010195A (en) | System upgrading method, storage medium and terminal equipment | |
WO2017097180A1 (en) | Method and apparatus for quickly starting base station | |
CN111949278B (en) | Method, system, terminal and storage medium for automatically installing MCS system | |
CN117270914B (en) | System upgrading method, device, equipment and medium of terminal equipment | |
CN112015431B (en) | Method, device, computer equipment and storage medium for modifying firmware information by one key |
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 |