Camera equipment control method, electronic equipment and storage medium
By obtaining the usage and weight values of the camera equipment, determining its lifespan, and performing scheduling control, the problem of rapid equipment loss caused by scheduling problems in the existing camera system is solved, and the system life is extended and load balancing is achieved.
Patent Information
- Application Number
- CN202411614502.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-12
- Publication Date
- 2025-04-22
- Estimated Expiration
- 2044-11-12
AI Technical Summary
In high passenger flow and complex traffic environments, the existing camera systems are rapidly exhausted due to scheduling problems, affecting the system life.
By obtaining the usage degree and corresponding weight values of each part of each camera device in the networking environment, the lifespan of each camera device is determined, and the lifespan is used for scheduling and controlling, ensuring that devices with higher lifespans perform camera tasks first.
It effectively reduces the overuse of camera equipment, extends the life of the entire camera system, and realizes load balancing and scheduling strategies optimization.
Smart Images

Figure CN119865685A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of intelligent camera and management, and in particular to a camera device control method, electronic device and storage medium. Background Art
[0002] With the explosive growth of computer applications, intelligent cameras and their management have entered a stage of rapid development. More and more scenes require cameras to record, and more and more cameras need to be managed, such as traffic intersections, subway stations, passenger stations, supermarkets and other scenes.
[0003] At present, in high passenger flow and complex traffic environments, multi-camera camera systems are widely used for real-time video capture and target tracking. Multi-camera camera systems usually use centralized or distributed servers to control camera devices to automatically track and shoot specific targets. However, the current camera system often causes some camera devices to wear out quickly due to scheduling problems, which affects the life of the entire camera system. Summary of the invention
[0004] The main technical problem solved by the present application is to provide a camera device control method, electronic device and storage medium. By obtaining the usage and corresponding weight value of each part of each camera device in the networking environment, the life span of each camera device is determined, and then the life span is used for scheduling control, which can effectively reduce the excessive use of the camera equipment and improve the life span of the entire camera system.
[0005] In order to solve the above technical problems, a technical solution adopted in the present application is: to provide a camera device control method, including: in response to a received camera instruction, obtaining the usage degree corresponding to each component of each camera device that can be scheduled in a networking environment, wherein the usage degree represents the degree of use of the component; using a preset weight value and the usage degree, determining the life span of each camera device, wherein the life span represents the safe working time of the camera device; controlling the camera device with a high priority corresponding to the life span that can be scheduled in the networking environment to perform a camera task.
[0006] In some embodiments, obtaining the usage level corresponding to each component of each camera device that can be scheduled in the networking environment includes: obtaining multiple camera devices that are currently schedulable in the networking environment, and determining the number of times each component in each camera device has been used and the total number of times available; using the number of times used and the total number of times available, determining the usage level of each component.
[0007] In some embodiments, the use of preset weight values and the usage level to determine the life span of each of the imaging devices includes: assigning a weight value to each component of each of the imaging devices; and determining the life span of each of the imaging devices using the weight value and usage level of each component in the imaging devices.
[0008] In some embodiments, assigning a weight value to each component of each of the camera devices includes: obtaining at least one core component in each of the camera devices and assigning a first score value to each of the core components; obtaining a second score value corresponding to all core components in each of the camera devices, wherein the second score value is the sum of multiple first score values; and determining the weight value corresponding to each component using the first score value and the second score value.
[0009] In some embodiments, the obtaining of at least one core component in each of the imaging devices and assigning a first score value to each of the core components includes: obtaining a first score for each component in each of the imaging devices, wherein the first score represents a ratio of a first price of the current component to a second price of the current imaging device; obtaining a second score for each component in each of the imaging devices, wherein the second score represents an installation time of the current component; obtaining a third score for each component in each of the imaging devices, wherein the third score represents a requirement setting for the current component; determining a fourth score using the first score, the second score, and the third score, and determining that the current component is a core component when the fourth score is greater than a score threshold, and using the fourth score as the first score value.
[0010] In some embodiments, the use of the weight value and usage of each component in the imaging device to determine the life span of each imaging device includes: determining the core component of each imaging device; and determining the life span of each imaging device using the weight value and usage corresponding to the core component.
[0011] In some embodiments, the controlling of the high-priority camera device corresponding to the schedulable lifespan in the networking environment to perform the camera task includes: using the lifespan to determine the priority of each camera device in the networking environment, wherein the lifespan and the priority are positively correlated; using the high-priority camera device as the target camera device in the networking environment, and then controlling the target camera device to perform the camera task.
[0012] In some embodiments, it also includes: in response to the usage level corresponding to the components of the camera device reaching a warning value, triggering a warning message; using the warning message, controlling other camera devices with high priority corresponding to the life span that can be scheduled in the networking environment to perform camera tasks.
[0013] To solve the above technical problems, another technical solution adopted in the present application is: to provide an electronic device, the electronic device comprising a memory and a processor coupled to the memory, the memory storing at least one computer program, and the at least one computer program, when loaded and executed by the processor, is used to implement the camera device control method as described above.
[0014] To solve the above technical problems, another technical solution adopted in the present application is: providing a computer-readable storage medium, wherein the computer-readable storage medium has at least one program, and when the at least one program is loaded and executed by the processor, it is used to implement the camera device control method as described above.
[0015] Different from the current technology, the camera device control method provided by the present application includes: in response to the received camera instruction, obtaining the usage corresponding to each component of each camera device that can be scheduled in the networking environment, wherein the usage represents the degree of use of the component; determining the life span of each camera device using a preset weight value and usage, wherein the life span represents the safe working time of the camera device; controlling the camera device with a high priority corresponding to the life span that can be scheduled in the networking environment to perform the camera task; that is, in the present application, by obtaining the usage and preset weight value of each component of the camera device, the life span of each camera device that can be scheduled in the networking environment is determined, and then the camera device with a higher life span can be effectively controlled to perform the camera task, so that the load of the camera devices in the networking environment is balanced, the scheduling strategy of the camera devices is optimized, and the overall service life of the camera system in the networking environment is extended. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. Among them:
[0017] Figure 1 It is a flowchart of an embodiment of a camera device control method in the present application;
[0018] Figure 2 It is a structural schematic diagram of an embodiment of a camera device control system in the present application;
[0019] Figure 3 It is a structural schematic diagram of an embodiment of an electronic device in the present application;
[0020] Figure 4It is a structural diagram of an embodiment of a computer-readable storage medium in the present application. DETAILED DESCRIPTION
[0021] The present invention will be further described in detail below in conjunction with the accompanying drawings and examples. It is particularly noted that the following examples are only used to illustrate the present invention, but are not intended to limit the scope of the present invention. Similarly, the following examples are only partial embodiments of the present invention rather than all embodiments, and all other embodiments obtained by those of ordinary skill in the art without creative work are within the scope of protection of the present invention.
[0022] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0023] Traditional camera control methods usually schedule cameras based on the user's priority and the priority of the tracking target, and schedule them by recording the device's current sleep or tracking time. This can easily lead to large differences in the number of scheduling times for different camera devices, and the number of times a single device is used reaches the upper limit quickly, resulting in a short life cycle of the camera system; or by polling multiple camera devices based on the thread running status and the camera device polling status, without paying attention to the calling priority of the camera devices that are available at the same time; that is, the use of camera devices is usually unbalanced, and some high-load camera devices are prone to failure, while low-load camera devices have idle resources. This imbalance not only affects the overall efficiency of the system, but also shortens the effective life of the camera device.
[0024] Therefore, a camera device control method is provided. By obtaining the usage degree and preset weight value of each component of the camera device, the life span of each camera device in the networking environment is determined, and the camera devices with higher life spans can be effectively controlled to perform camera tasks, so that the load of the camera devices in the networking environment is balanced, the scheduling strategy of the camera devices is optimized, and the overall service life of the camera system in the networking environment is extended.
[0025] See also Figure 1 , Figure 1 is a flow chart of an embodiment of a camera device control method in the present application; it should be noted that if there is a substantial result, the method of the present application is not limited to Figure 1 The process sequence shown is limited.
[0026] like Figure 1 As shown, the camera device control method may include the following steps.
[0027] S10. In response to the received camera instruction, obtain the usage degree corresponding to each component of each camera device that can be scheduled in the networking environment, wherein the usage degree represents the degree of use of the component.
[0028] Among them, the networking environment refers to multiple camera devices connected in the same network, which can be controlled and scheduled by a unified control system; the camera device refers to the camera device used to acquire images and videos; the component refers to each component included in the camera device; the usage degree refers to the degree of usage.
[0029] Specifically, the camera devices included in the networking environment are obtained, and the usage degree corresponding to each component in each camera device is determined based on the number of times it is used. The usage degree represents the degree to which the component has been used in the camera device performing camera tasks, and the usage degree increases exponentially with the increase in the number of times it is used.
[0030] S20. Determine the life span of each camera device by using a preset weight value and usage degree, wherein the life span represents the safe working time of the camera device.
[0031] The weight value refers to the ratio of the score of a component to the score of all components; the life span refers to the remaining usable time, that is, the remaining safe working time.
[0032] Specifically, a corresponding weight value is assigned to each component in advance according to the importance of each component, and after the usage of each component is obtained, the life span of each camera device is determined using the preset weight value corresponding to each component and the usage of each component; wherein the life span represents the safe working time that the camera device can still be used in performing camera tasks.
[0033] S30: Controlling the camera device with a high priority corresponding to the schedulable life span in the networking environment to execute the camera task.
[0034] In order to balance the load of the camera devices in the networking environment, it is necessary to set the camera devices with longer service life to have higher priority.
[0035] Specifically, after obtaining the lifespan of each camera device in the networking environment, the lifespan is used to determine the priority of each camera device in the networking environment, and then the camera devices with high priorities corresponding to the lifespan in the networking environment are controlled to perform camera tasks; that is, the camera devices that can be scheduled in the networking environment are given priorities by sorting them by high and low lifespans, and the higher the lifespan, the higher the priority, wherein the lifespan represents the safe working time of the camera device.
[0036] In this embodiment, the life span of each camera device in the networking environment is determined by obtaining the usage degree and preset weight value of each component of the camera device, and the priority of the camera device in the networking environment is determined by using the life span. The camera device with a high priority corresponding to the life span can be effectively controlled to perform the camera task, so that the load of the camera devices in the networking environment is balanced, the scheduling strategy of the camera devices is optimized, and the overall service life of the camera system in the networking environment is extended.
[0037] In some embodiments, step S10 obtains the usage degree corresponding to each component of each schedulable camera device in the networking environment in response to the received camera instruction, wherein the usage degree represents the degree of use of the component, and may include the following operations.
[0038] First, in response to the received camera instruction, a plurality of camera devices that are currently schedulable in the networking environment are acquired, and the number of times each component in each camera device has been used and the total number of times available are determined.
[0039] Among them, there may be two or more camera devices in the networking environment, and the schedulable ones may be all the camera devices in the networking environment or some of the camera devices in the networking environment. There may also be multiple components in each camera device. For example, the components of the camera device may include a switch button, a pan / tilt, a dual filter switch (IR-Cut Removable, ICR), an aperture, etc. The number of times used refers to the number of times the component has been used so far; the total number of times it can be used can be set by the manufacturer at the factory.
[0040] Specifically, multiple camera devices that can be connected to the networking environment are determined, and the number of times they have been used and the total number of times available are determined for each component in each camera device; for example, the number of times the camera device is turned on determines the number of times the switch button has been used, the number of times the pan-tilt movement determines the number of times the pan-tilt has been used, the number of times the dual filter switch is switched determines the number of times the dual filter switch has been used, and the number of aperture changes determines the number of times the aperture has been used.
[0041] Then, using the number of times used and the total number of times available, the utilization of each component is determined.
[0042] The usage degree represents the degree to which each component is used, that is, the degree of use.
[0043] Specifically, after obtaining the number of times each component has been used and the total number of times available, the component utilization rate corresponding to each component is determined using the number of times used and the total number of times available, and then the usage degree corresponding to each component is determined using natural constants and the component utilization rate.
[0044] The usage of a component is calculated as follows:
[0045]
[0046] Among them, r is the usage of the component, x is the number of times the component has been used, k is the total number of times the component can be used, and e is a natural constant. is the component utilization rate.
[0047] It can be understood that the above formula characterizes the usage degree of the camera equipment, that is, the usage degree, by the ratio of the number of times a component has been used to the total number of times it can be used. In addition, the natural constant e is used as the base so that the usage degree of the camera equipment increases exponentially with the number of times it has been used. For example, when the number of times it has been used x=0, the usage degree r=0; when the number of times it has been used x=n, the usage degree r=1.
[0048] In some embodiments, step S20 determines the life span of each camera device using a preset weight value and usage, wherein the life span represents the safe working time of the camera device; and may include the following operations.
[0049] First, a weight value is assigned to each component of each imaging device.
[0050] The weight value is determined by the ratio of the score value of each component to the total score value of all components.
[0051] Furthermore, in some embodiments, the following operations may also be included.
[0052] At least one core component in each camera device is obtained, and a first score value is assigned to each core component.
[0053] Each camera device may include one, two or more core components. Therefore, it is necessary to determine the score value of each component to determine whether the current component is a core component.
[0054] Specifically, the score value of each component is determined using the material economic value, material installation time, and demand settings.
[0055] Furthermore, in some embodiments, the following operations may also be included.
[0056] A first score of each component in each imaging device is obtained, wherein the first score represents a ratio of a first price of the current component to a second price of the current imaging device.
[0057] The first score is the score corresponding to the material economic value of the current component.
[0058] Specifically, the material economic value corresponding to the current component, i.e., the first price, and the material economic value of the current camera device corresponding to the current component, i.e., the second price, are obtained, and then the first score corresponding to the current component is determined by the ratio of the first price to the second price, and the material economic value of each component is calculated in turn to determine the first score of each component in each camera device. For example, if the first price accounts for 0-5% of the second price, the first score of the current component is 1 point; if the first price accounts for 5%-10% of the second price, the first score of the current component is 2 points; if the second price accounts for 10%-15% of the second price, the first score of the current component is 3 points; and so on, the better the ratio of the first price to the second price, the higher the first score, that is, the ratio of the first price to the second price is positively correlated with the first score.
[0059] A second score of each component in each camera device is obtained, wherein the second score represents the installation time of the current component.
[0060] The second score is the score corresponding to the material installation time of the current component.
[0061] Specifically, the material installation time corresponding to the current component is obtained, and the material installation time of the replacement installation is determined according to the installation quantity and installation complexity of the current component, and then the second score corresponding to the current component is determined according to the material installation time, and the material installation time of each component is calculated in turn to determine the second score of each component in each camera device. For example, if the material installation time of the current component is 0-2h, the second score of the current component is 1 point; if the material installation time of the current component is 2h-4h, the second score of the current component is 2 points, and so on. The longer the material installation time, the higher the second score corresponding to the component, that is, the material installation time is positively correlated with the second score.
[0062] A third score of each component in each camera device is obtained, wherein the third score represents a requirement setting of the current component.
[0063] The third score is a score corresponding to the requirement setting of the current component, and the requirement setting is the installation requirement corresponding to the installation.
[0064] Specifically, the requirement settings corresponding to the current component are obtained, and the third score corresponding to the current component is determined according to the number of requirement settings, and the number of requirement settings for each component is determined in turn to determine the third score of each component in each camera device. For example, if the installation of the current component requires a professional skill certificate, the number of requirement settings is increased by one. If the installation of the current component requires hole turning and cable arrangement operations, the number of requirement settings is increased by one, and so on. Special installation requirements are then obtained, and each requirement setting is assigned one point, and so on. The more the number of requirement settings required, the higher the corresponding third score, that is, the number of requirement settings is positively correlated with the third score.
[0065] A fourth score is determined using the first score, the second score, and the third score, and when the fourth score is greater than the score threshold, the current component is determined to be a core component, and the fourth score is used as the first score value.
[0066] The score threshold can be set according to actual conditions, for example, the score threshold can be set to 3 points, 5 points, etc.
[0067] Specifically, the sum of the first score, the second score and the third score is taken as the fourth score. When the fourth score corresponding to the current component is greater than the score threshold, the current component is determined to be a core component, and the obtained fourth score is taken as the first score value of the current component; for example, the sum of the first score, the second score and the third score of the current component is g, when g is greater than 3 points, the current component is a core component.
[0068] Then, the second score values corresponding to all the core components in each camera device are obtained.
[0069] Among them, the scores of the components in each camera device are calculated as the counting method mentioned above, and then the number of core components contained in each camera device is determined, which will not be repeated here. Therefore, the second score value corresponding to all core components in each camera device can be obtained, wherein the second score value is the sum of multiple first score values, that is, the sum of the first score values of multiple core components contained in each camera device, as the second score value.
[0070] The weight value corresponding to each component is determined using the first score value and the second score value.
[0071] Specifically, after obtaining the first score value corresponding to each core component in the camera device and the second score values corresponding to all core components, the weight value corresponding to each component is determined using the ratio of the first score value to the second score value.
[0072] The weight value is calculated as follows:
[0073]
[0074] Among them, w is the weight value, g i is the first score value corresponding to the i-th core component, is the second score value corresponding to all core components in the current camera device, and n is the number of core components in the current camera device.
[0075] Then, the life span of each imaging device is determined by using the weight value and usage degree of each component in the imaging device.
[0076] Among them, because the correlation between core components and camera equipment is relatively high, and the more times the core components are used, the fewer times the camera equipment can be used, the weight value and usage degree corresponding to the core components can be directly used to determine the life span of each camera equipment.
[0077] In some embodiments, the core components included in each camera device may be determined first; the specific determination of the core components may refer to the above content and will not be repeated here. Then, the weight value and usage degree corresponding to the core components are used to determine the life span of each camera device.
[0078] Specifically, after obtaining the weight values and usage levels of the core components contained in each camera device, the weight values and usage levels are used to determine the first numerical value corresponding to each core component. If each camera device contains multiple core components, the first numerical value is used to determine the second numerical value corresponding to all core components in each camera device, and then the life span corresponding to the camera device is determined based on the difference between the preset parameters and the second numerical value.
[0079] The life span is calculated as follows:
[0080]
[0081] Where L is the life span of the camera equipment, r i is the usage degree corresponding to the i-th core component, w i is the weight value corresponding to the i-th core component, n is the number of core components in the current camera device, 1 is the preset parameter, and r i *w i is the first value, is the second value.
[0082] In some embodiments, step S30 controls the high-priority camera devices corresponding to the schedulable life span in the networking environment to perform the camera task, which may include the following operations.
[0083] First, the priority of each camera device that can be scheduled in the networking environment is determined by using the life span.
[0084] Among them, life span and priority are positively correlated.
[0085] Specifically, after obtaining the lifespan of each camera device, the order of multiple camera devices in the networking environment is determined using the order of the lifespans, and then the priority of each camera device in the networking environment is determined using the order; for example, the higher the lifespan of a camera device, the higher its corresponding priority; and the lower the lifespan of a camera device, the lower its corresponding priority.
[0086] Then, the camera device with a high priority is used as the target camera device in the networking environment, and the target camera device is controlled to perform the camera task.
[0087] The target camera device refers to a camera device determined according to the priority, which may be one or more cameras selected as the target camera devices according to actual conditions.
[0088] Specifically, after obtaining the priority of each camera device in the networking environment, the priority is used to sort the devices, and the camera device with the highest priority is determined as the target camera device, and then the target camera device is controlled to perform the camera task.
[0089] For example: a) The scheduling system can be performed by a network video recorder (NVR), which calculates the life span of each camera device in each camera intersection area in the networking environment. b) Compare the life span of the camera devices in the intersection area. The higher the life span of the camera device, the higher the scheduling priority is given to the camera device with the higher life span. c) When multiple cameras in the intersection area find that the same target object needs to be automatically tracked and shot (the camera uploads the characteristic value and video timestamp of the target object, and the scheduling system distinguishes whether it is the same target object), notify the scheduling system to give priority to assigning tasks to the camera device with the highest life span to perform the target tracking and shooting tasks, so as to balance the load and extend the overall service life of the system.
[0090] In some embodiments, the same area that can be photographed by multiple cameras can be divided into multiple sub-areas, and a camera with the highest priority is determined in each sub-area, so that multi-angle cameras can be used to track and shoot target objects in the same area.
[0091] In some embodiments, for intersection areas, when multiple camera devices discover that the same target object needs to be tracked and photographed, the camera device with the highest priority can be determined in each time period or in each area, and then the target object can be tracked and photographed for different time periods or different areas using the camera device with the highest priority in the current time period or current area.
[0092] In some embodiments, it also includes triggering a warning message in response to the usage level corresponding to a component of the camera device reaching a warning value, and then using the warning information to adjust the camera task, that is, using the warning information to control other high-priority camera devices corresponding to the schedulable life span in the networking environment to perform the camera task.
[0093] The warning value refers to the usage reaching a specified value, which can be set to 0.9. For example, the warning value can be set to 90% of the total available times. The total available times are set to 10,000 times. When it is used 9,000 times, the warning information is triggered.
[0094] Specifically, the status data of all camera devices in the camera networking environment can be obtained in real time and feedback can be provided through a visual interface; when the usage corresponding to the components of the camera device reaches the warning value, a warning message will be triggered on the management terminal, and then the management terminal will use the warning information to adjust the camera task, for example, switching the camera device with the second priority to perform the camera task.
[0095] In some embodiments, it can be divided into three parties: camera equipment, server and management terminal, wherein the camera equipment records the number of times each component in the camera equipment is used, and can trigger an alarm according to the usage of each component reaching the warning value; the server uses the obtained number of times used to determine the usage and weight value of each component of the camera equipment, and calculates the life of each camera equipment in the networking environment, and uses the life to control the camera equipment with high priority in the networking environment to perform camera tasks; the management terminal can display the life of each camera equipment through a visual interface, and determine whether the usage corresponding to the component of each camera equipment has reached the warning value, and trigger a warning message when the warning value is reached.
[0096] In this embodiment, by obtaining the usage and corresponding weight value of each part of each camera device that can be scheduled in the networking environment, the life span of each camera device is determined, and then the life span is used for scheduling control, which can effectively reduce the excessive use of the camera equipment and improve the life span of the entire camera system.
[0097] In some embodiments, a camera device control system is also provided.
[0098] See also Figure 2 , Figure 2 It is a structural diagram of an embodiment of a camera device control system in the present application.
[0099] like Figure 2As shown, the camera device control system 400 includes: an acquisition module 410, a determination module 420 and a control module 430; wherein the acquisition module 410 obtains the usage corresponding to each component of each camera device that can be scheduled in the networking environment in response to the received camera instruction, wherein the usage represents the degree of use of the component; the determination module 420 determines the life span of each camera device using a preset weight value and the usage span, wherein the life span represents the safe working time of the camera device; the control module 430 is used to control the camera device with a high priority corresponding to the life span that can be scheduled in the networking environment to perform the camera task.
[0100] In some embodiments, an electronic device is also provided.
[0101] See also Figure 3 , Figure 3 1 is a schematic diagram of the structure of an electronic device in an embodiment of the present application. The electronic device can execute the steps of the camera device control method in the above method.
[0102] The electronic device 500 includes a memory 520, a processor 510 coupled to the memory, and at least one computer program stored in the memory 520 and executable on the processor 510; when the processor 510 loads and executes the at least one computer program, it is used to implement the steps of the camera device control method in the above method. For related contents, please refer to the detailed description of the above method, which will not be repeated here.
[0103] In some embodiments, a computer-readable storage medium is also included.
[0104] See also Figure 4 , Figure 4 It is a structural diagram of an embodiment of a computer-readable storage medium in the present application.
[0105] The computer readable storage medium 600 stores at least one program 610, which is used to implement the steps of the camera device control method in the above method when loaded and executed by the processor. For related contents, please refer to the detailed description of the above method, which will not be repeated here.
[0106] The above scheme determines the life span of each camera device that can be scheduled in the networking environment by obtaining the usage degree and preset weight value of each component of the camera equipment, and uses the life span to determine the priority of the camera equipment in the networking environment. The camera device with a high priority corresponding to the life span can then be effectively controlled to perform the camera task, so that the load of the camera devices in the networking environment is balanced, the scheduling strategy of the camera equipment is optimized, and the overall service life of the camera system in the networking environment is extended.
[0107] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device implementation described above is only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0108] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0109] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0110] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0111] The above description is only an implementation mode of the present invention, and does not limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made by using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A camera device control method, characterized in that: include: In response to the received camera instruction, obtaining the usage degree corresponding to each component of each camera device that can be scheduled in the networking environment, wherein the usage degree represents the degree of use of the component; Determine the life span of each of the camera devices by using a preset weight value and the usage degree, wherein the life span represents the safe working time of the camera device; The camera devices with high priority corresponding to the life span that can be scheduled in the networking environment are controlled to perform camera tasks.
2. The method according to claim 1, characterized in that The obtaining of the usage degree corresponding to each component of each camera device that can be scheduled in the networking environment includes: Acquire multiple camera devices that are currently schedulable in the networking environment, and determine the number of times each component in each camera device has been used and the total number of times it is available; The usage degree of each component is determined using the used count and the total available count.
3. The method according to claim 1, characterized in that The method of determining the life span of each of the camera devices by using a preset weight value and the usage degree includes: Assigning a weight value to each component of each of the camera devices; The life span of each of the imaging devices is determined by using the weight value and usage degree of each component in the imaging device.
4. The method according to claim 3, characterized in that The step of assigning a weight value to each component of each camera device comprises: Acquire at least one core component in each of the camera devices, and assign a first score value to each of the core components; Obtaining a second score value corresponding to all core components in each of the camera devices, wherein the second score value is the sum of multiple first score values; The weight value corresponding to each component is determined by using the first score value and the second score value.
5. The method according to claim 4, characterized in that The obtaining of at least one core component in each of the camera devices and assigning a first score value to each of the core components includes: Obtaining a first score for each component in each of the imaging devices, wherein the first score represents a ratio of a first price of the current component to a second price of the current imaging device; Obtaining a second score for each component in each of the camera devices, wherein the second score represents the installation time of the current component; Obtaining a third score for each component in each of the camera devices, wherein the third score represents a requirement setting of the current component; A fourth score is determined using the first score, the second score, and the third score, and when the fourth score is greater than a score threshold, the current component is determined to be a core component, and the fourth score is used as the first score value.
6. The method according to claim 3, characterized in that The method of determining the life span of each of the imaging devices by using the weight value and the usage degree of each component in the imaging device comprises: Identify the core components of each camera device; The life span of each of the camera devices is determined by using the weight values and usage levels corresponding to the core components.
7. The method according to claim 1, characterized in that The controlling the high-priority camera devices corresponding to the life span that can be scheduled in the networking environment to perform the camera task includes: Determine the priority of each camera device in the networking environment by using the life span, wherein the life span and the priority are positively correlated; The camera device with the high priority is used as the target camera device in the networking environment, and then the target camera device is controlled to perform the camera task.
8. The method according to claim 1, characterized in that Also includes: In response to the usage degree corresponding to the component of the camera device reaching the warning value, triggering a warning message; By using the early warning information, other camera devices with high priority corresponding to the life span that can be scheduled in the networking environment are controlled to perform camera tasks.
9. An electronic device, characterized in that: The electronic device includes a memory and a processor coupled to the memory, the memory stores at least one computer program, and when the at least one computer program is loaded and executed by the processor, it is used to implement the camera device control method as described in any one of claims 1-8.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium has at least one program, and when the at least one program is loaded and executed by the processor, it is used to implement the camera device control method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Spare part demand predicting method based on state monitoring and reliability of equipment part
CN103632054A
Hardware fault monitoring method and system based on IT operation and maintenance
CN115225463A
Control method and system of kitchen electric equipment and linkage device of kitchen electric equipment
CN118011852A
Life estimation device and life estimation method
JP2003090868A
Light exposing method, light emitting apparatus and image forming apparatus
JP2007030234A
Cited By
Intelligent management and scheduling method and system for management and control cabinet of mobile portable terminal
CN121920791A
Intelligent management and dispatching method and system for mobile portable terminal management and control cabinet
CN121920791B