Monitoring upgrading method and system
Technical Field
The present disclosure relates to the field of software technologies, and in particular, to a monitoring upgrade method and system.
Background
The construction of bright kitchen ranges is developed, which is beneficial to guiding social public to actively participate in food preparation, processing and supervision, and leading consumers to see clearly and feel relieved to eat. Kitchen waste is generated in the food manufacturing and processing process.
The existing kitchen waste treatment technology in China basically adopts a rear-end treatment mode, and usually only simple garbage cans or container equipment are used for collection at the front end of a kitchen waste source, and some kitchens have the conditions of randomly dumping kitchen waste and randomly stacking kitchen waste, and the kitchen waste cannot be identified by the existing kitchen monitoring equipment, so that the kitchen waste is not monitored enough, and the kitchen waste is not monitored, and therefore the monitoring equipment needs to be upgraded urgently.
Disclosure of Invention
In view of this, the present disclosure provides a monitoring upgrading method and system, which are used for solving the problem that the existing kitchen monitoring equipment cannot identify kitchen waste and is not beneficial to monitoring the kitchen waste.
According to one aspect of the disclosure, a monitoring upgrading method is provided, which is characterized by comprising a testing device, a server and a monitoring device, wherein the monitoring device is installed in a kitchen, and the monitoring upgrading method comprises the following steps:
the testing equipment acquires source codes of the image recognition kitchen waste, and packs the source codes of the image recognition kitchen waste into a kitchen monitoring plug-in;
the testing equipment encodes reserved bits of the kitchen monitoring plug-in so as to write scene identification codes and category identification codes into the reserved bits;
the testing equipment uploads the kitchen monitoring plug-in, the scene identification code and the category identification code to the server, wherein the category identification code is used for identifying whether the kitchen monitoring plug-in is a first kitchen monitoring plug-in or a second kitchen monitoring plug-in;
the server receives the kitchen monitoring plug-in, the scene identification code and the category identification code, identifies the kitchen monitoring plug-in as the first kitchen monitoring plug-in or as the second kitchen monitoring plug-in through the category identification code, and distributes version numbers to the first kitchen monitoring plug-in and the second kitchen monitoring plug-in;
the monitoring equipment sends a kitchen monitoring plug-in acquisition request to the server periodically, wherein the kitchen monitoring plug-in acquisition request carries a scene identification code of a target kitchen monitoring plug-in;
the server receives a kitchen monitoring plug-in acquisition request periodically sent by the monitoring equipment, and judges whether a kitchen monitoring plug-in identical with the scene identification code of the target kitchen monitoring plug-in exists in the kitchen monitoring plug-ins in the first directory;
the server acquires kitchen monitoring plugins which are sequenced according to the level of the version number, and issues the kitchen monitoring plugins which are the same as the scene identification code of the target kitchen monitoring plugin and have the first sequence of the version number to the monitoring equipment;
and the monitoring equipment receives and runs the kitchen monitoring plug-ins with the scene identification codes which are the same as those of the target kitchen monitoring plug-ins and the first version numbers, and identifies the kitchen wastes in the monitored videos.
In a possible implementation manner, in the method, before the testing device codes the reserved bit of the kitchen monitoring plug-in unit so as to write the scene identification code and the category identification code into the reserved bit, after the testing device obtains the source code for identifying the kitchen waste by using the image and packages the source code for identifying the kitchen waste by using the image into the kitchen monitoring plug-in unit, the method includes:
the kitchen monitoring plug-in is operated by the testing equipment in a kitchen monitoring scene, a scene identification code corresponding to the kitchen monitoring scene is obtained, and the use frequency, the network flow consumption threshold value and the kitchen waste identification success rate of the kitchen monitoring plug-in the kitchen monitoring scene are obtained;
the testing equipment divides the kitchen monitoring plug-in into the first kitchen monitoring plug-in or the second kitchen monitoring plug-in according to the use frequency of the kitchen monitoring plug-in under the kitchen monitoring scene, the network flow consumption threshold value and the identification success rate of kitchen waste.
In a possible implementation manner, in the method, the test device divides the kitchen monitoring plug-in into the first kitchen monitoring plug-in or the second kitchen monitoring plug-in according to a usage frequency of the kitchen monitoring plug-in the kitchen monitoring scene, a network flow consumption threshold, and a kitchen waste identification success rate, and specifically includes:
the kitchen monitoring plug-in is identified as the first kitchen monitoring plug-in by the testing equipment when the use frequency of the kitchen monitoring plug-in is greater than a use frequency threshold value, or the identification success rate of the kitchen waste is greater than a preset success rate, or the value occupied by the memory is smaller than a memory occupation threshold value;
the kitchen monitoring plug-in is identified as the second kitchen monitoring plug-in by the testing equipment when the using frequency of the kitchen monitoring plug-in is not greater than the using frequency threshold, or the identification success rate of kitchen waste is not greater than the preset success rate, or the value occupied by the memory is not less than the memory occupation threshold.
In a possible implementation manner, in the method, the server obtains kitchen monitoring plugins ordered according to the version number, and issues the kitchen monitoring plugins with the same scene identification code as the target kitchen monitoring plugin and the first ordered version number to the monitoring device, specifically:
and the server acquires the kitchen monitoring plug-ins which are sequenced according to the level of the version number, adopts a 5G communication mode and issues the kitchen monitoring plug-ins which have the same scene identification code as the target kitchen monitoring plug-ins and have the first sequence number to the monitoring equipment.
In a possible implementation manner, in the method, the server obtains kitchen monitoring plug-ins that are ranked according to the levels of the version numbers, and issues the kitchen monitoring plug-ins that are the same as the scene identification codes of the target kitchen monitoring plug-ins and have the first ranked version numbers to the monitoring device in a 5G communication mode, specifically:
the server acquires a transmission channel in an idle state when kitchen monitoring plug-ins with the same scene identification codes as the target kitchen monitoring plug-ins exist in the kitchen monitoring plug-ins of the first directory, sorts the kitchen monitoring plug-ins according to the levels of the version numbers, and outputs the kitchen monitoring plug-ins with the same scene identification codes as the target kitchen monitoring plug-ins and the first version numbers through an input queue of the transmission channel, and the kitchen monitoring plug-ins with the same scene identification codes as the target kitchen monitoring plug-ins and the first version numbers are output through an output queue of the transmission channel, and after the output is finished, the kitchen monitoring plug-ins with the same scene identification codes as the target kitchen monitoring plug-ins and the first version numbers are issued to monitoring equipment.
On the other hand of this disclosure, a control upgrading system is provided, the system includes test equipment, server, supervisory equipment installs in the kitchen, test equipment is including obtaining the module, writing in the module, uploading the module, the server includes first receiving module, second receiving module, sends down the module, supervisory equipment includes sending module, identification module:
the acquisition module is used for acquiring the source code of the image recognition kitchen waste by the testing equipment and packaging the source code of the image recognition kitchen waste into a kitchen monitoring plug-in;
the writing module is used for the testing equipment to encode reserved bits of the kitchen monitoring plug-in unit so as to write the scene identification code and the category identification code into the reserved bits;
the uploading module is used for uploading the kitchen monitoring plug-in, the scene identification code and the category identification code to the server by the testing equipment, wherein the category identification code is used for identifying whether the kitchen monitoring plug-in is a first kitchen monitoring plug-in or a second kitchen monitoring plug-in;
the first receiving module is used for receiving the kitchen monitoring plug-in, the scene identification code and the category identification code by the server, identifying the kitchen monitoring plug-in as the first kitchen monitoring plug-in or as the second kitchen monitoring plug-in through the category identification code, and distributing version numbers to the first kitchen monitoring plug-in and the second kitchen monitoring plug-in;
the system comprises a sending module, a receiving module and a processing module, wherein the sending module is used for the monitoring equipment to send a kitchen monitoring plug-in obtaining request to the server periodically, and the kitchen monitoring plug-in obtaining request carries a scene identification code of a target kitchen monitoring plug-in;
the second receiving module is used for receiving a kitchen monitoring plug-in acquisition request periodically sent by the monitoring equipment by the server and judging whether a kitchen monitoring plug-in identical to the scene identification code of the target kitchen monitoring plug-in exists in the kitchen monitoring plug-ins of the first directory;
the issuing module is used for acquiring the kitchen monitoring plugins which are sequenced according to the level of the version number and issuing the kitchen monitoring plugins which are the same as the scene identification code of the target kitchen monitoring plugin and have the first sequenced version number to the monitoring equipment;
and the identification module is used for receiving and operating the kitchen monitoring plug-ins with the scene identification codes which are the same as those of the target kitchen monitoring plug-ins and with the first version numbers in sequence by the monitoring equipment, and identifying the kitchen wastes in the monitored videos.
In a possible implementation manner, in the system, the test device further includes:
the operation module is used for operating the kitchen monitoring plug-in unit in a kitchen monitoring scene by the testing equipment, acquiring a scene identification code corresponding to the kitchen monitoring scene, and acquiring the use frequency, a network flow consumption threshold value and the kitchen waste identification success rate of the kitchen monitoring plug-in unit in the kitchen monitoring scene;
and the dividing module is used for dividing the kitchen monitoring plug-in into the first kitchen monitoring plug-in or the second kitchen monitoring plug-in by the testing equipment according to the use frequency of the kitchen monitoring plug-in, the network flow consumption threshold value and the identification success rate of kitchen waste in the kitchen monitoring scene.
In one possible implementation manner, in the system, the dividing module includes:
the first identification unit is used for identifying the kitchen monitoring plug-in as the first kitchen monitoring plug-in when the use frequency of the kitchen monitoring plug-in is greater than a use frequency threshold value, or the identification success rate of kitchen waste is greater than a preset success rate, or the value of memory occupied is less than a memory occupied threshold value;
and the second identification unit is used for identifying that the kitchen monitoring plug-in is the second kitchen monitoring plug-in when the using frequency of the kitchen monitoring plug-in is not greater than the using frequency threshold value or the identification success rate of the kitchen waste is not greater than the preset success rate or the value occupied by the memory is not less than the memory occupation threshold value.
In a possible implementation manner, in the system, the issuing module is specifically configured to:
and the server acquires and sorts according to the level of the version number, and issues the kitchen monitoring plug-ins with the same scene identification codes as the target kitchen monitoring plug-ins and the first sorted version number to the monitoring equipment in a 5G communication mode.
In a possible implementation manner, in the system, the issuing module is specifically configured to:
the server is in the kitchen monitoring plug-in of first catalogue have with when the kitchen monitoring plug-in that the scene identification code of target kitchen monitoring plug-in is the same, acquire idle state's transmission channel, sort according to the height of version number, will with the first kitchen monitoring plug-in of the same scene identification code of target kitchen monitoring plug-in and the version number of sequencing passes through the input queue of transmission channel inputs, will with the first kitchen monitoring plug-in of the same scene identification code of target kitchen monitoring plug-in and the version number of sequencing passes through the output queue of transmission channel outputs, after the output finishes, to supervisory equipment issue with the first kitchen monitoring plug-in of the same scene identification code of target kitchen monitoring plug-in and the first version number of sequencing.
The beneficial effect of this disclosure: the server issues the kitchen monitoring plug-in with the same scene identification code and the first version number sequence of the target kitchen monitoring plug-in to the monitoring equipment, the monitoring equipment can realize monitoring updating according to the kitchen monitoring plug-in, and monitors kitchen waste according to the kitchen monitoring plug-in, and monitoring equipment monitoring kitchen waste is facilitated.
Other features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments, which proceeds with reference to the accompanying drawings.
Drawings
Fig. 1 shows a flowchart of a monitoring upgrade method according to an embodiment of the present disclosure.
Fig. 2 shows a block diagram of a monitoring upgrade system according to an embodiment of the present disclosure.
Detailed Description
Fig. 1 shows a flowchart of a monitoring upgrade method according to an embodiment of the present disclosure, where the monitoring upgrade method may be used for kitchen monitoring. As shown in fig. 1, the monitoring upgrading method may include a testing device, a server, and a monitoring device, where the monitoring device is installed in a kitchen, and the monitoring upgrading method includes:
step 1, the testing equipment acquires source codes of image recognition kitchen waste, and packs the source codes of the image recognition kitchen waste into a kitchen monitoring plug-in;
the kitchen waste open source code identification method comprises the steps that test equipment is a monitoring camera of a manufacturer, the test equipment is connected with an open source website, source codes for identifying the opening of kitchen waste are obtained through a download interface of the open source codes, and then the source codes for identifying the opening of the kitchen waste are packaged into a kitchen monitoring plug-in.
And each developer uploads an open source code for identifying the kitchen waste to an open source website for downloading by the testing equipment.
It should be noted that the open source code for identifying the kitchen waste is similar to the source code for identifying the garbage, and the image feature of the garbage is replaced with the image feature of the kitchen waste, and the specific replacement process is the prior art and is not described herein again.
Step 2, the testing equipment encodes reserved bits of the kitchen monitoring plug-in so as to write scene identification codes and category identification codes into the reserved bits;
the scene identification codes correspond to the kitchen monitoring scenes one by one, and each kitchen monitoring scene has a unique scene identification code corresponding to the kitchen monitoring scene. The kitchen monitoring scene comprises a noodle making monitoring scene, a Chinese food making monitoring scene, a western-style cake making monitoring scene, a western-style food making monitoring scene, a cold meat making monitoring scene and a milk tea making monitoring scene. Because different kitchen wastes exist in different kitchen monitoring scenes, and the needed kitchen monitoring plug-ins are different relatively, the kitchen monitoring plug-ins for the kitchen monitoring scenes can be obtained through the scene identification codes, and the kitchen waste identification success rate of the kitchen waste in the kitchen monitoring scenes can be greatly improved.
Step 3, the testing equipment uploads the kitchen monitoring plug-in, the scene identification code and the category identification code to the server, wherein the category identification code is used for identifying whether the kitchen monitoring plug-in is a first kitchen monitoring plug-in or a second kitchen monitoring plug-in;
the kitchen monitoring plug-in is obtained, and is divided into a first kitchen monitoring plug-in or a second kitchen monitoring plug-in according to the using frequency of the kitchen monitoring plug-in and the occupied value of the memory or the occupied size of the memory, so that the kitchen monitoring plug-in can be classified, the first kitchen monitoring plug-in can be directly used, and the second kitchen monitoring plug-in is standby.
Step 4, the server receives the kitchen monitoring plug-in, the scene identification code and the category identification code, identifies the kitchen monitoring plug-in as the first kitchen monitoring plug-in or as the second kitchen monitoring plug-in through the category identification code, and distributes version numbers to the first kitchen monitoring plug-in and the second kitchen monitoring plug-in;
it should be noted that, step 4 specifically includes:
the server receives kitchen control plug-in components the scene identification code and the classification identification code, through the classification identification code discernment kitchen control plug-in components do first kitchen control plug-in components or do second kitchen control plug-in components, if kitchen control plug-in components do first kitchen control plug-in components just will kitchen control plug-in components save first catalogue, if the kitchen control plug-in components of first catalogue exist more than one during first kitchen control plug-in components, just press the generating time of first kitchen control plug-in components, give in proper order first kitchen control plug-in components distribution version number, if the kitchen control plug-in components of second catalogue exist more than one during second kitchen control plug-in components, just press the generating time of second kitchen control plug-in components, give in proper order second kitchen control plug-in components distribution version number.
The first kitchen monitoring plug-in is stored in the first directory, and the second kitchen monitoring plug-in is stored in the second directory, so that the kitchen monitoring plug-ins can be stored dispersedly, and the storage pressure of the server can be reduced. The first directory is positioned as the currently used directory, the second directory is positioned as the standby directory, and related developers can modify the second kitchen monitoring plug-in, and retest the test equipment after the modification is completed.
Step 5, the monitoring equipment periodically sends a kitchen monitoring plug-in obtaining request to the server, wherein the kitchen monitoring plug-in obtaining request carries a scene identification code of a target kitchen monitoring plug-in;
step 6, the server receives a kitchen monitoring plug-in acquisition request periodically sent by the monitoring equipment, and judges whether a kitchen monitoring plug-in identical to the scene identification code of the target kitchen monitoring plug-in exists in the kitchen monitoring plug-ins of the first directory;
step 7, the server acquires kitchen monitoring plugins which are sequenced according to the level of the version number, and issues kitchen monitoring plugins which are the same as the scene identification code of the target kitchen monitoring plugin and have the first sequence of the version number to the monitoring equipment;
and 8, the monitoring equipment receives and runs the kitchen monitoring plug-in with the scene identification code same as the scene identification code of the target kitchen monitoring plug-in and the first version number sequence, and identifies the kitchen waste in the monitored video.
It should be noted that, step 8 specifically includes:
the kitchen monitoring plug-in components are received and operated by the monitoring equipment, the scene identification codes of the target kitchen monitoring plug-in components are the same, the version numbers of the kitchen monitoring plug-in components are sequenced first, kitchen waste is identified in monitored videos, if kitchen waste is identified in the monitored videos, the time axis of identifying the kitchen waste is set as a starting endpoint, the time length is preset after the starting endpoint is delayed to serve as an ending endpoint, the monitored videos are intercepted, the videos between the starting endpoint and the ending endpoint serve as kitchen waste collection videos, and the kitchen waste collection videos are uploaded to the server.
For ease of illustration, the following are exemplified:
taking an example that the time axis for identifying the kitchen waste is 9 points and 15 points, setting the 9 points and 15 points as starting end points, taking 30 minutes after the 9 points and 15 points are delayed as ending end points, namely 9 points and 45 points, and intercepting videos between the 9 points and 15 points and the 9 points and 45 points from a monitored video as kitchen waste collection videos.
The server receives the kitchen waste collection video, the link of the kitchen waste collection video is sent to the appointed mobile terminal, related monitoring personnel open the link of the kitchen waste collection video through the mobile terminal, and the kitchen waste collection video is checked anytime and anywhere.
The beneficial effect of this disclosure: the server issues the kitchen monitoring plug-in with the same scene identification code and the first version number sequence of the target kitchen monitoring plug-in to the monitoring equipment, the monitoring equipment can realize monitoring updating according to the kitchen monitoring plug-in, and monitors kitchen waste according to the kitchen monitoring plug-in, and monitoring of the kitchen waste is facilitated.
Fig. 2 shows a block diagram of a monitoring upgrade system according to an embodiment of the present disclosure. The system is applied to kitchen monitoring, as shown in fig. 2, the system includes test equipment, server, supervisory equipment installs in the kitchen, test equipment is including obtaining the module, writing in the module, uploading the module, the server includes first receiving module, second receiving module, issues the module, supervisory equipment is including sending module, identification module:
the acquisition module is used for acquiring the source code of the image recognition kitchen waste by the testing equipment and packaging the source code of the image recognition kitchen waste into a kitchen monitoring plug-in;
the writing module is used for the testing equipment to encode reserved bits of the kitchen monitoring plug-in unit so as to write the scene identification code and the category identification code into the reserved bits;
the uploading module is used for uploading the kitchen monitoring plug-in, the scene identification code and the category identification code to the server by the testing equipment, wherein the category identification code is used for identifying whether the kitchen monitoring plug-in is a first kitchen monitoring plug-in or a second kitchen monitoring plug-in;
the first receiving module is used for receiving the kitchen monitoring plug-in, the scene identification code and the category identification code by the server, identifying the kitchen monitoring plug-in as the first kitchen monitoring plug-in or as the second kitchen monitoring plug-in through the category identification code, and distributing a version number to the first kitchen monitoring plug-in and the second kitchen monitoring plug-in;
the system comprises a sending module, a receiving module and a processing module, wherein the sending module is used for the monitoring equipment to send a kitchen monitoring plug-in obtaining request to the server periodically, and the kitchen monitoring plug-in obtaining request carries a scene identification code of a target kitchen monitoring plug-in;
the second receiving module is used for receiving a kitchen monitoring plug-in acquisition request periodically sent by the monitoring equipment by the server and judging whether a kitchen monitoring plug-in identical to the scene identification code of the target kitchen monitoring plug-in exists in the kitchen monitoring plug-ins of the first directory;
the issuing module is used for acquiring the kitchen monitoring plugins which are sequenced according to the level of the version number and issuing the kitchen monitoring plugins which are the same as the scene identification code of the target kitchen monitoring plugin and have the first sequenced version number to the monitoring equipment;
and the identification module is used for receiving and operating the kitchen monitoring plug-ins with the scene identification codes which are the same as those of the target kitchen monitoring plug-ins and with the first version numbers in sequence by the monitoring equipment, and identifying the kitchen wastes in the monitored videos.
The above description of the embodiments is only intended to facilitate the understanding of the method of the invention and its core ideas; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.