CN110557555B - Function starting method, device, equipment and system of intelligent camera - Google Patents
Function starting method, device, equipment and system of intelligent camera Download PDFInfo
- Publication number
- CN110557555B CN110557555B CN201810557526.8A CN201810557526A CN110557555B CN 110557555 B CN110557555 B CN 110557555B CN 201810557526 A CN201810557526 A CN 201810557526A CN 110557555 B CN110557555 B CN 110557555B
- Authority
- CN
- China
- Prior art keywords
- intelligent
- function
- system resource
- item
- intelligent function
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5011—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
- G06F9/5016—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5011—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
- G06F9/5022—Mechanisms to release resources
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5027—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/62—Control of parameters via user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2209/00—Indexing scheme relating to G06F9/00
- G06F2209/50—Indexing scheme relating to G06F9/50
- G06F2209/504—Resource capping
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Studio Devices (AREA)
- Stored Programmes (AREA)
Abstract
The embodiment of the invention provides a method, a device, equipment and a system for starting functions of an intelligent camera, wherein the method comprises the following steps: acquiring a target intelligent function list; acquiring system resource values required to be consumed by various intelligent functions item by item, accumulating the currently acquired system resource values after acquiring the system resource values each time to obtain a current system resource accumulated value, and comparing the current system resource accumulated value with a system resource threshold value acquired in advance; if the accumulated value of the current system resources is not larger than the threshold value of the system resources, taking the intelligent function corresponding to each currently acquired system resource value as the current intelligent function to be started; if the accumulated value of the current system resources is larger than the threshold value of the system resources, other intelligent functions except the intelligent function to be started are closed, and the intelligent function to be started is started. The method provided by the invention can greatly improve the adaptability of the intelligent camera to the user requirements in different scenes.
Description
Technical Field
The invention relates to the technical field of artificial intelligence, in particular to a method, a device, equipment and a system for starting functions of an intelligent camera.
Background
With the continuous development of artificial intelligence technology, many intelligent functions, such as face detection, license plate recognition, scene change detection, audio anomaly detection, etc., can be integrated into the intelligent camera. However, many system resources such as memory and CPU are occupied when multiple intelligent functions are operated together, and the operation of the intelligent functions is seriously affected when the system resources are insufficient.
In the prior art, the method for solving the problems is as follows: and in the allowable range of system resources, a few intelligent functions are fixedly integrated, and various intelligent cameras with low integration level are introduced. For example, the smart camera 1 only integrates functions of "face detection" and "license plate recognition", and the smart camera 2 only integrates functions of "scene change detection" and "audio anomaly detection". But as the variety of intelligent functions increases, the number of combinations also needs to increase. Moreover, the selection of various intelligent functions by the user varies according to the scene, so that the existing method is not flexible enough to adapt to the variable requirements of the user, i.e. the adaptability is too low.
Disclosure of Invention
The embodiment of the invention aims to provide a method, a device, equipment and a system for starting functions of an intelligent camera so as to improve the adaptability of the intelligent camera to user requirements in different scenes. The specific technical scheme is as follows:
the embodiment of the invention provides a function starting method of an intelligent camera, which comprises the following steps:
acquiring a target intelligent function list, wherein the target intelligent function list comprises intelligent function items selected by a user;
acquiring system resource values required to be consumed by each intelligent function item by item based on the target intelligent function list, accumulating the currently acquired system resource values after acquiring the system resource values each time to obtain a current system resource accumulated value, and comparing the current system resource accumulated value with a system resource threshold value acquired in advance;
if the accumulated value of the current system resource is not larger than the threshold value of the system resource, taking the intelligent function corresponding to each system resource value which is obtained currently as the intelligent function to be started currently;
if the accumulated value of the current system resources is larger than the threshold value of the system resources, stopping the step of acquiring the system resource values required to be consumed by each intelligent function item by item, closing other intelligent functions except the intelligent function to be started currently, and starting the intelligent function to be started currently.
Optionally, the intelligent function items selected by the user have different priorities, and the sequence of the priorities from high to low is consistent with the sequence selected by the user;
the acquiring system resource values needed to be consumed by each intelligent function item by item includes:
and acquiring the system resource values required to be consumed by each intelligent function item by item according to the sequence of the priority from high to low.
Optionally, the system resource values include:
CPU resource value and memory resource value;
the acquiring system resource values needed to be consumed by each intelligent function item by item includes:
and determining the intelligent functions item by item, and inquiring a system resource value required to be consumed by the intelligent function in a system resource table based on the determined intelligent functions, wherein the system resource table is prestored with a CPU resource value and a memory resource value required to be consumed by each intelligent function.
Optionally, the closing other intelligent functions except the current intelligent function to be opened, and opening the current intelligent function to be opened includes:
determining intelligent functions supported by the intelligent camera based on a general function list, wherein the general function list is pre-stored with identifications of various intelligent functions supported by the intelligent camera;
determining intelligent functions except the intelligent function to be started currently in the intelligent functions supported by the intelligent camera as the intelligent function to be closed currently;
detecting whether the current intelligent function to be closed is in an opening state item by item;
if the current intelligent function to be closed is detected to be in an open state, closing the intelligent function;
detecting whether the current intelligent function to be started is in a closed state item by item;
and if the current intelligent function to be started is detected to be in a closed state, starting the intelligent function.
The embodiment of the invention also provides a function starting system of the intelligent camera, which comprises the intelligent camera and a client,
the intelligent camera is used for acquiring the target intelligent function list; acquiring system resource values required to be consumed by each intelligent function item by item based on the target intelligent function list, accumulating the currently acquired system resource values after acquiring the system resource values each time to obtain a current system resource accumulated value, and comparing the current system resource accumulated value with a system resource threshold value acquired in advance; if the accumulated value of the current system resource is not larger than the threshold value of the system resource, taking the intelligent function corresponding to each system resource value which is obtained currently as the intelligent function to be started currently; if the accumulated value of the current system resources is larger than the threshold value of the system resources, stopping the step of acquiring the system resource values required to be consumed by each intelligent function item by item, closing other intelligent functions except the intelligent function to be started currently, and starting the intelligent function to be started currently; sending the actual opening list to the client;
the client is used for determining the intelligent function item selected by the user; sending a target intelligent function list to the intelligent camera, wherein the target intelligent function list comprises the intelligent function items selected by the user; and displaying an actual opening list to a user, wherein the actual opening list comprises the intelligent function items actually opened by the intelligent camera.
The embodiment of the invention also provides a function opening device of the intelligent camera, which comprises:
the system comprises a list acquisition module, a target intelligent function list and a display module, wherein the list acquisition module is used for acquiring the target intelligent function list which comprises intelligent function items selected by a user;
the resource value calculation module is used for acquiring system resource values required to be consumed by each intelligent function item by item based on the target intelligent function list, accumulating the currently acquired system resource values after acquiring the system resource values each time to obtain a current system resource accumulated value, and comparing the current system resource accumulated value with a system resource threshold value acquired in advance;
the to-be-started function determining module is used for taking the intelligent function corresponding to each currently acquired system resource value as the current to-be-started intelligent function if the current system resource accumulated value is not greater than the system resource threshold value;
and the function starting module is used for stopping acquiring the system resource values required to be consumed by each intelligent function item by item if the current system resource accumulated value is larger than the system resource threshold value, closing other intelligent functions except the current intelligent function to be started and starting the current intelligent function to be started.
Optionally, the intelligent function items selected by the user have different priorities, and the sequence of the priorities from high to low is consistent with the sequence selected by the user;
the resource value calculation module is specifically configured to obtain system resource values required to be consumed by each intelligent function item by item according to a sequence from high to low in priority.
Optionally, the resource value includes:
CPU resource value and memory resource value;
the resource value calculation module is specifically configured to determine the intelligent functions item by item, and query a system resource value required to be consumed by the intelligent function in a system resource table based on the determined intelligent functions, where the system resource table stores in advance a CPU resource value and a memory resource value required to be consumed by each intelligent function.
Optionally, the function starting module is specifically configured to:
determining intelligent functions supported by the intelligent camera based on a general function list, wherein the general function list is pre-stored with identifications of various intelligent functions supported by the intelligent camera;
determining intelligent functions except the intelligent function to be started currently in the intelligent functions supported by the intelligent camera as the intelligent function to be closed currently;
detecting whether the current intelligent function to be closed is in an opening state item by item;
if the current intelligent function to be closed is detected to be in an open state, closing the intelligent function;
detecting whether the current intelligent function to be started is in a closed state item by item;
and if the current intelligent function to be started is detected to be in a closed state, starting the intelligent function.
The embodiment of the invention also provides an intelligent camera which comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete mutual communication through the bus; a memory for storing a computer program; and the processor is used for executing the program stored in the memory and realizing any method step.
By using the method, the device, the equipment and the system for starting the functions of the intelligent camera provided by the embodiment of the invention, the intelligent camera firstly acquires the target intelligent function list which comprises the intelligent function items selected by the user, and then the intelligent camera preferentially starts the intelligent function selected by the user on the premise that the system resources meet the requirements. Thereby eliminating the need to introduce a variety of low-integration smart cameras. The intelligent camera can meet the requirements of a user on various intelligent functions by using one intelligent camera, so that the adaptability of the intelligent camera to the requirements of the user in different scenes is greatly improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a function startup method of an intelligent camera according to an embodiment of the present invention;
fig. 2 is a signaling diagram of a function startup system of a smart camera according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a function opening device of an intelligent camera according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an intelligent camera according to an embodiment 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.
In order to solve the problems in the prior art, the embodiment of the invention discloses a method, a device, equipment and a system for starting functions of an intelligent camera, which can improve the adaptability of the intelligent camera to user requirements in different scenes.
First, a method for starting a function of an intelligent camera according to an embodiment of the present invention is described, referring to fig. 1, where fig. 1 is a flowchart of the method for starting a function of an intelligent camera according to an embodiment of the present invention. May include the steps of:
step S101: acquiring a target intelligent function list, wherein the target intelligent function list comprises intelligent function items selected by a user;
in the embodiment of the invention, when some intelligent functions of the intelligent camera need to be started, a target intelligent function list can be obtained firstly, wherein the target intelligent function list comprises the intelligent function items selected by the user. When the user selects the intelligent function, the user can select the intelligent function at the client, and then the client can send the intelligent function item selected by the user to the intelligent camera in a list form, so that the intelligent camera can know the intelligent function item selected by the user.
Of course, the smart camera may also obtain the smart function item selected by the user in other manners, for example, the user directly selects the smart function item on a display page of the smart camera, or selects the smart function item through application software associated with the smart camera, which is not limited herein.
Step S102: acquiring system resource values required to be consumed by each intelligent function item by item based on a target intelligent function list, accumulating the currently acquired system resource values after acquiring the system resource values each time to obtain a current system resource accumulated value, and comparing the current system resource accumulated value with a system resource threshold value acquired in advance;
step S103: if the accumulated value of the current system resources is not larger than the threshold value of the system resources, taking the intelligent function corresponding to each currently acquired system resource value as the current intelligent function to be started;
in the embodiment of the present invention, after the smart camera acquires the target smart function list, the smart camera may acquire the system resource value required to be consumed by each smart function item by item based on the target smart function list, and after acquiring the system resource value each time, accumulate the currently acquired system resource values to obtain the current system resource accumulated value, and compare the current system resource accumulated value with the system resource threshold value. The system resources may include memory resources and CPU resources.
The intelligent camera can acquire system resources required to be consumed by each intelligent function in a table look-up mode. For example, a memory value and a CPU resource value corresponding to each intelligent function may be stored in a system resource table in advance, where the memory value is generally a fixed value, for example, 50M of memory is consumed for starting a certain intelligent function, and for a CPU resource, the same intelligent function may be evaluated according to different CPUs, and the CPU with a higher dominant frequency needs to consume a lower percentage of the CPU resource.
The above process is explained below with reference to examples:
for example, the system resources that a certain smart camera can provide are 200 units of memory and CPU, and the smart function item selected by the user is A, B, C, where 50 units of memory and CPU are the system resources that item a needs to occupy, 100 units of memory and CPU are the system resources that item B needs to occupy, and 60 units of memory and CPU are the system resources that item C needs to occupy, then the system resources of the smart camera can support A, B two smart functions but cannot support C smart functions, and the smart camera will take A, B two smart functions as the smart function to be turned on.
Step S104: if the accumulated value of the current system resources is larger than the threshold value of the system resources, stopping the step of acquiring the system resource values required to be consumed by each intelligent function item by item, closing other intelligent functions except the intelligent function to be started currently, and starting the intelligent function to be started currently.
In the embodiment of the invention, if the accumulated value of the current system resources exceeds the pre-acquired system resource threshold value, which indicates that the intelligent camera cannot support the full opening of the intelligent functions, the step of acquiring the system resource values required to be consumed by each intelligent function is stopped, other intelligent functions except the intelligent function to be opened currently are closed, and the intelligent function to be opened currently is opened.
Still referring to the above example, the smart camera may turn off all but A, B smart functions and then turn on A, B two smart functions.
Therefore, by using the function starting method of the intelligent camera provided by the embodiment of the invention, the intelligent camera firstly acquires the target intelligent function list which comprises the intelligent function items selected by the user, and then the intelligent camera preferentially starts the intelligent function selected by the user on the premise that the system resources meet the requirements. Thereby eliminating the need to introduce a variety of low-integration smart cameras. The intelligent camera can meet the requirements of a user on various intelligent functions by using one intelligent camera, so that the adaptability of the intelligent camera to the requirements of the user in different scenes is greatly improved.
In the embodiment of the invention, the intelligent function items selected by the user can also have different priorities, and the sequence of the priorities from high to low is consistent with the sequence selected by the user. The system resource values required to be consumed by the intelligent functions can be acquired item by item according to the sequence of the priorities from high to low, so that the intelligent function items can be started according to the sequence of the priorities from high to low.
In actual use, a user may have a great demand on a certain intelligent function, so that the intelligent function can be selected preferentially, and the intelligent camera can start the intelligent function preferentially, so that the intelligent function which is most needed by the user is ensured to be in a starting state.
In the embodiment of the present invention, turning off other intelligent functions except the intelligent function to be turned on currently, and turning on the intelligent function to be turned on currently may include:
determining intelligent functions supported by the intelligent camera based on a total function list, wherein the total function list is prestored with identifications of all the intelligent functions supported by the intelligent camera;
determining intelligent functions except the intelligent function to be opened currently in the intelligent functions supported by the intelligent camera as the intelligent function to be closed currently;
detecting whether the current intelligent function to be closed is in an open state item by item; if the current intelligent function to be closed is detected to be in an open state, closing the intelligent function;
detecting whether the current intelligent function to be started is in a closed state item by item; and if the intelligent function to be started is detected to be in a closed state, starting the intelligent function.
In the embodiment of the present invention, the identifier of the intelligent function item supported by the intelligent camera itself may be stored in a list in advance, after the current intelligent function item to be turned on is obtained, the current intelligent function item to be turned on may be removed based on the list, and the remaining intelligent function item may be used as the current intelligent function item to be turned off.
The current intelligent function item to be closed can be closed first, so that system resources are released, and then the current intelligent function to be opened is opened. Specifically, whether the current intelligent function to be closed is in an open state or not can be detected item by item based on the list of the intelligent function items to be closed; if the current intelligent function to be closed is detected to be in an open state, closing the intelligent function; then, detecting whether the current intelligent function to be started is in a closed state item by item based on the list of the intelligent function items to be started; and if the intelligent function to be started is detected to be in a closed state, starting the intelligent function.
An embodiment of the present invention further provides a function startup system of an intelligent camera, which may include an intelligent camera and a client, and refer to fig. 2, where fig. 2 is a signaling diagram of the function startup system of the intelligent camera provided in the embodiment of the present invention.
The camera is used for acquiring a target intelligent function list; acquiring system resource values required to be consumed by each intelligent function item by item based on a target intelligent function list, accumulating the currently acquired system resource values after acquiring the system resource values each time to obtain a current system resource accumulated value, and comparing the current system resource accumulated value with a system resource threshold value acquired in advance; if the accumulated value of the current system resources is not larger than the threshold value of the system resources, taking the intelligent function corresponding to each currently acquired system resource value as the current intelligent function to be started; if the accumulated value of the current system resources is larger than the threshold value of the system resources, stopping the step of acquiring the system resource values required to be consumed by each intelligent function item by item, closing other intelligent functions except the intelligent function to be started currently, and starting the intelligent function to be started currently; sending an actual opening list to the client;
the client is used for determining the intelligent function item selected by the user; sending a target intelligent function list to the intelligent camera, wherein the target intelligent function list comprises intelligent function items selected by a user; and displaying an actual opening list to a user, wherein the actual opening list comprises intelligent function items actually opened by the intelligent camera.
In the embodiment of the present invention, a user may select an intelligent function item through a client, where the client may be a web page client, or may also be application software, and the like, which is not limited herein.
The user can select the intelligent function item in the client page, and then the client can send a target intelligent function list to the intelligent camera, wherein the target intelligent function list comprises the intelligent function item selected by the user. The intelligent camera starts part or all of the intelligent functions selected by the user according to the intelligent function starting method, then the actually started intelligent functions can be sent to the client side, and the client side displays the actually started intelligent functions to the user.
Specifically, when the system resources of the smart camera can meet all the smart function items selected by the user, the smart camera may open all the smart function items selected by the user and feed back the result to the client, and the client may display the actually opened smart function items to the user and prompt "successful opening".
If the system resources of the intelligent camera cannot meet all the intelligent function items selected by the user, the intelligent camera starts part of the intelligent function items selected by the user, the result is fed back to the client, and the client can show the actually started intelligent function items to the user and prompt that the system resources are insufficient.
Of course, as to how the client displays the result of actually starting the intelligent function, the user-defined setting may be performed, which is not limited in the embodiment of the present invention.
For the system embodiment, since it is basically similar to the method embodiment, the description is simple, and the relevant points can be referred to the partial description of the method embodiment.
Corresponding to the embodiment of the method shown in fig. 1, an embodiment of the present invention further provides a function starting apparatus for a smart camera, as shown in fig. 3, which may include the following modules:
a list obtaining module 301, configured to obtain a target intelligent function list, where the target intelligent function list includes an intelligent function item selected by a user;
a resource value calculating module 302, configured to obtain system resource values that need to be consumed by each intelligent function item by item based on the target intelligent function list, and after obtaining the system resource values each time, accumulate the currently obtained system resource values to obtain a current system resource accumulated value, and compare the current system resource accumulated value with a system resource threshold value obtained in advance;
a to-be-started function determining module 303, configured to, if the current accumulated value of the system resources is not greater than the threshold value of the system resources, take the intelligent function corresponding to each currently acquired system resource value as the current to-be-started intelligent function;
the function starting module 304 is configured to stop the step of obtaining the system resource values required to be consumed by each intelligent function item by item, close other intelligent functions except the intelligent function to be currently started, and start the intelligent function to be currently started if the current accumulated value of the system resources is greater than the threshold value of the system resources.
Therefore, by using the function starting device of the intelligent camera provided by the embodiment of the invention, the intelligent camera firstly acquires the target intelligent function list which comprises the intelligent function items selected by the user, and then the intelligent camera preferentially starts the intelligent function selected by the user on the premise that the system resources meet the requirements. Thereby eliminating the need to introduce a variety of low-integration smart cameras. The intelligent camera can meet the requirements of a user on various intelligent functions by using one intelligent camera, so that the adaptability of the intelligent camera to the requirements of the user in different scenes is greatly improved.
In the embodiment of the invention, the intelligent function items selected by the user can have different priorities, and the sequence of the priorities from high to low can be consistent with the sequence selected by the user;
the resource value calculating module 302 may be specifically configured to obtain the system resource values required to be consumed by each intelligent function item by item according to the order from high priority to low priority.
In the embodiment of the present invention, the resource value may include: CPU resource value and memory resource value;
the resource value calculating module 302 may be further configured to determine the intelligent functions item by item, and query the system resource value that needs to be consumed by the intelligent function in the system resource table based on the determined intelligent functions, where the system resource table stores in advance the CPU resource value and the memory resource value that need to be consumed by each intelligent function.
In this embodiment of the present invention, the function starting module 304 may be specifically configured to:
determining intelligent functions supported by the intelligent camera based on a total function list, wherein the total function list is prestored with identifications of all the intelligent functions supported by the intelligent camera;
determining intelligent functions except the intelligent function to be opened currently in the intelligent functions supported by the intelligent camera as the intelligent function to be closed currently;
detecting whether the current intelligent function to be closed is in an open state item by item; if the current intelligent function to be closed is detected to be in an open state, closing the intelligent function;
detecting whether the current intelligent function to be started is in a closed state item by item; and if the intelligent function to be started is detected to be in a closed state, starting the intelligent function.
For the device embodiment, because it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The embodiment of the present invention further provides an intelligent camera, as shown in fig. 4, which includes a processor 401, a communication interface 402, a memory 403, and a communication bus 404, where the processor 401, the communication interface 402, and the memory 403 complete mutual communication through the communication bus 404,
a memory 403 for storing a computer program;
the processor 401, when executing the program stored in the memory 403, implements the following steps:
acquiring a target intelligent function list; acquiring system resource values required to be consumed by each intelligent function item by item based on a target intelligent function list, accumulating the currently acquired system resource values after acquiring the system resource values each time to obtain a current system resource accumulated value, and comparing the current system resource accumulated value with a system resource threshold value acquired in advance; if the accumulated value of the current system resources is not larger than the threshold value of the system resources, taking the intelligent function corresponding to each currently acquired system resource value as the current intelligent function to be started; if the accumulated value of the current system resources is larger than the threshold value of the system resources, stopping the step of acquiring the system resource values required to be consumed by each intelligent function item by item, closing other intelligent functions except the intelligent function to be started currently, and starting the intelligent function to be started currently; and sending the actual opening list to the client.
The communication bus mentioned in the above smart camera may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.
Claims (10)
1. A method for starting functions of a smart camera, the method comprising:
acquiring a target intelligent function list, wherein the target intelligent function list comprises intelligent function items selected by a user;
acquiring system resource values required to be consumed by each intelligent function item by item based on the target intelligent function list, accumulating the currently acquired system resource values after acquiring the system resource values each time to obtain a current system resource accumulated value, and comparing the current system resource accumulated value with a system resource threshold value acquired in advance;
if the accumulated value of the current system resource is not larger than the threshold value of the system resource, taking the intelligent function corresponding to each system resource value which is obtained currently as the intelligent function to be started currently;
if the accumulated value of the current system resources is larger than the threshold value of the system resources, stopping the step of acquiring the system resource values required to be consumed by each intelligent function item by item, closing other intelligent functions except the intelligent function to be started currently, and starting the intelligent function to be started currently.
2. The method according to claim 1, wherein the intelligent function items selected by the user have different priorities, and the priority order is consistent with the user-selected precedence order;
the acquiring system resource values needed to be consumed by each intelligent function item by item includes:
and acquiring the system resource values required to be consumed by each intelligent function item by item according to the sequence of the priority from high to low.
3. The method of claim 1 or 2, wherein the system resource values comprise:
CPU resource value and memory resource value;
the acquiring system resource values needed to be consumed by each intelligent function item by item includes:
and determining the intelligent functions item by item, and inquiring a system resource value required to be consumed by the intelligent function in a system resource table based on the determined intelligent functions, wherein the system resource table is prestored with a CPU resource value and a memory resource value required to be consumed by each intelligent function.
4. The method according to claim 3, wherein the turning off other intelligent functions except the intelligent function to be turned on currently and turning on the intelligent function to be turned on currently comprises:
determining intelligent functions supported by the intelligent camera based on a general function list, wherein the general function list is pre-stored with identifications of various intelligent functions supported by the intelligent camera;
determining intelligent functions except the intelligent function to be started currently in the intelligent functions supported by the intelligent camera as the intelligent function to be closed currently;
detecting whether the current intelligent function to be closed is in an opening state item by item;
if the current intelligent function to be closed is detected to be in an open state, closing the intelligent function;
detecting whether the current intelligent function to be started is in a closed state item by item;
and if the current intelligent function to be started is detected to be in a closed state, starting the intelligent function.
5. A function starting system of an intelligent camera is characterized by comprising the intelligent camera and a client,
the intelligent camera is used for acquiring a target intelligent function list sent by the client; acquiring system resource values required to be consumed by each intelligent function item by item based on the target intelligent function list, accumulating the currently acquired system resource values after acquiring the system resource values each time to obtain a current system resource accumulated value, and comparing the current system resource accumulated value with a system resource threshold value acquired in advance; if the accumulated value of the current system resource is not larger than the threshold value of the system resource, taking the intelligent function corresponding to each system resource value which is obtained currently as the intelligent function to be started currently; if the accumulated value of the current system resources is larger than the threshold value of the system resources, stopping the step of acquiring the system resource values required to be consumed by each intelligent function item by item, closing other intelligent functions except the intelligent function to be started currently, and starting the intelligent function to be started currently; sending an actual opening list to the client, wherein the actual opening list comprises intelligent function items actually opened by the intelligent camera;
the client is used for determining the intelligent function item selected by the user; sending the target intelligent function list to the intelligent camera, wherein the target intelligent function list comprises the intelligent function items selected by the user; and displaying the actual opening list to a user.
6. A function opening apparatus of a smart camera, the apparatus comprising:
the system comprises a list acquisition module, a target intelligent function list and a display module, wherein the list acquisition module is used for acquiring the target intelligent function list which comprises intelligent function items selected by a user;
the resource value calculation module is used for acquiring system resource values required to be consumed by each intelligent function item by item based on the target intelligent function list, accumulating the currently acquired system resource values after acquiring the system resource values each time to obtain a current system resource accumulated value, and comparing the current system resource accumulated value with a system resource threshold value acquired in advance;
the to-be-started function determining module is used for taking the intelligent function corresponding to each currently acquired system resource value as the current to-be-started intelligent function if the current system resource accumulated value is not greater than the system resource threshold value;
and the function starting module is used for stopping acquiring the system resource values required to be consumed by each intelligent function item by item if the current system resource accumulated value is larger than the system resource threshold value, closing other intelligent functions except the current intelligent function to be started and starting the current intelligent function to be started.
7. The apparatus according to claim 6, wherein the intelligent function items selected by the user have different priorities, and the priority order from high to low is consistent with the precedence order selected by the user;
the resource value calculation module is specifically configured to obtain system resource values required to be consumed by each intelligent function item by item according to a sequence from high to low in priority.
8. The apparatus of claim 6 or 7, wherein the resource values comprise:
CPU resource value and memory resource value;
the resource value calculation module is specifically configured to determine the intelligent functions item by item, and query a system resource value required to be consumed by the intelligent function in a system resource table based on the determined intelligent functions, where the system resource table stores in advance a CPU resource value and a memory resource value required to be consumed by each intelligent function.
9. The apparatus according to claim 8, wherein the function activation module is specifically configured to:
determining intelligent functions supported by the intelligent camera based on a general function list, wherein the general function list is pre-stored with identifications of various intelligent functions supported by the intelligent camera;
determining intelligent functions except the intelligent function to be started currently in the intelligent functions supported by the intelligent camera as the intelligent function to be closed currently;
detecting whether the current intelligent function to be closed is in an opening state item by item;
if the current intelligent function to be closed is detected to be in an open state, closing the intelligent function;
detecting whether the current intelligent function to be started is in a closed state item by item;
and if the current intelligent function to be started is detected to be in a closed state, starting the intelligent function.
10. The intelligent camera is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing the communication between the processor and the memory through the bus; a memory for storing a computer program; a processor for executing a program stored in the memory to perform the method steps of any of claims 1-4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810557526.8A CN110557555B (en) | 2018-06-01 | 2018-06-01 | Function starting method, device, equipment and system of intelligent camera |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810557526.8A CN110557555B (en) | 2018-06-01 | 2018-06-01 | Function starting method, device, equipment and system of intelligent camera |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110557555A CN110557555A (en) | 2019-12-10 |
CN110557555B true CN110557555B (en) | 2021-03-02 |
Family
ID=68734511
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810557526.8A Active CN110557555B (en) | 2018-06-01 | 2018-06-01 | Function starting method, device, equipment and system of intelligent camera |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110557555B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113312103A (en) * | 2021-05-31 | 2021-08-27 | 浙江商汤科技开发有限公司 | Software definition method and device for intelligent camera, electronic equipment and storage medium |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101650590B (en) * | 2008-08-15 | 2013-06-05 | 联想(北京)有限公司 | System and method for managing functions of equipment |
CN102306095B (en) * | 2011-07-21 | 2017-04-05 | 宇龙计算机通信科技(深圳)有限公司 | Application management method and terminal |
US9116744B2 (en) * | 2012-09-07 | 2015-08-25 | International Business Machines Corporation | Resource management within a process via iterative negotiation |
CN105302566A (en) * | 2015-11-10 | 2016-02-03 | 上海卓易科技股份有限公司 | Process optimizing method and system |
CN105718286A (en) * | 2016-01-18 | 2016-06-29 | 努比亚技术有限公司 | Information processing method and device, electronic device |
CN105824673A (en) * | 2016-03-21 | 2016-08-03 | 乐视网信息技术(北京)股份有限公司 | Method and device for operating application program |
CN107391254B (en) * | 2017-06-14 | 2021-03-26 | 深圳天珑无线科技有限公司 | Intelligent terminal, resource allocation method thereof and computer-readable storage medium |
CN107395978A (en) * | 2017-08-14 | 2017-11-24 | 维沃移动通信有限公司 | The control method and mobile terminal of a kind of camera module |
-
2018
- 2018-06-01 CN CN201810557526.8A patent/CN110557555B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN110557555A (en) | 2019-12-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106507445B (en) | Wireless fidelity Wi-Fi scanning method and mobile terminal | |
EP3270619B1 (en) | Network connection control method and system for mobile terminal | |
CN106060909B (en) | A kind of method for connecting network and mobile terminal | |
WO2019120016A1 (en) | Image processing method and apparatus, storage medium, and electronic device | |
CN103941871A (en) | Method and equipment for controlling hardware operating state of intelligent terminal | |
WO2019024641A1 (en) | Data synchronization method and apparatus, storage medium and electronic device | |
CN107943570B (en) | Application management method and device, storage medium and electronic equipment | |
CN111988240B (en) | Data transmission method and device, electronic equipment and storage medium | |
CN110557555B (en) | Function starting method, device, equipment and system of intelligent camera | |
CN110502320B (en) | Thread priority adjusting method and device, electronic equipment and storage medium | |
CN108062405B (en) | Picture classification method and device, storage medium and electronic equipment | |
US9386061B2 (en) | Electronic device and method for managing network bandwidth distribution | |
CN106200866A (en) | A kind of application freezing method and mobile terminal | |
US20160065437A1 (en) | Method And Apparatus For Determining Application To Be Recommended | |
US10599195B2 (en) | Method and apparatus for controlling hot plug operation of CPU in mobile terminal | |
CN107809533A (en) | A kind of information interacting method and device, terminal and readable storage medium storing program for executing | |
CN109470303B (en) | Method and device for acquiring temperature and humidity data information | |
CN107566673A (en) | A kind of message prompt method and server | |
CN108989244B (en) | Data processing method, data processing device, storage medium and electronic equipment | |
CN110795239A (en) | Application memory leakage detection method and device | |
CN108924366B (en) | Low-voltage reminding method and device, electronic equipment and storage medium | |
CN112596426B (en) | Control and networking method and device of single-live-wire Bluetooth intelligent switch and electronic equipment | |
CN113668211B (en) | Control method of air supply device, intelligent airing system and medium | |
CN104991867B (en) | A kind of eMMC service lifes management method and system | |
WO2019169692A1 (en) | Smartphone-based method for prompting download completion, electronic device and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |