power adjustment method and device, computer equipment and storage medium

文档序号:1708372 发布日期:2019-12-13 浏览:40次 中文

阅读说明:本技术 功率调整方法、装置、计算机设备和存储介质 (power adjustment method and device, computer equipment and storage medium ) 是由 司楠 于 2019-07-24 设计创作,主要内容包括:本申请涉及一种功率调整方法、装置、计算机设备和存储介质,计算机设备通过将摄像设备即将转换状态下的需要开启的模块的功率总和,与该摄像设备在当前环境的最大功率限值进行对比,若摄像设备待转换状态的功率总和大于摄像设备的最大功率限值,则执行降功率策略,以保证该摄像设备可以正常工作,由于该方法中,计算机设备对其外围功率模块进行了全部掌控,保证了所有功率模块的功率总和不超过整个供电环境的限制,计算机设备通过软件降功率策略流程方法,实现摄像设备自动配合功率限制较大的供电环境调整设备工作状态,保证摄像设备主要功能正常运行。(the application relates to a power adjusting method, a device, a computer device and a storage medium, wherein the computer device adds the power of modules needing to be started in the state that a camera device is about to be converted, comparing with the maximum power limit of the camera device in the current environment, if the power sum of the state to be converted of the camera device is greater than the maximum power limit of the camera device, executing a power reduction strategy to ensure that the camera device can work normally, according to the method, the computer device completely masters the peripheral power modules, so that the power sum of all the power modules is not more than the limit of the whole power supply environment, the computer device adjusts the working state of the device by automatically matching with the power supply environment with larger power limit through a software power reduction strategy flow method, and the normal operation of the main functions of the camera device is guaranteed.)

1. A method of power adjustment, the method comprising:

Acquiring a maximum power limit value of the camera equipment; the maximum power limit value represents a maximum power value allowed to be increased when the camera equipment works normally;

Judging whether the total power of the states to be converted of the camera equipment is larger than the maximum power limit value or not;

if the total power of the states to be converted of the camera equipment is greater than the maximum power limit value, executing a power reduction strategy; the power reduction strategy is used for reducing the total power of the to-be-converted state of the image pickup device.

2. the method of claim 1, wherein the camera device comprises only an infrared module; the acquiring a maximum power limit of the image pickup apparatus includes:

acquiring a power value and an input voltage value of the camera equipment when the infrared module has different current values;

determining a power supply voltage value and a cable impedance value of the image pickup device according to the power value and the input voltage value of the image pickup device;

and determining the maximum power limit value of the camera equipment according to the power supply voltage value of the camera equipment and the cable impedance value.

3. the method according to claim 1 or 2, wherein the image pickup apparatus includes an infrared module and a peripheral module other than the infrared module; then the executing the power-down strategy includes:

acquiring the priority sequence of the infrared module and the priority sequence of the peripheral module; the priority of the current minimum limit value of the infrared module is greater than the priority of the current maximum limit value of the infrared module;

and reducing the total power of the states to be converted of the camera equipment according to the priority sequence of the infrared modules and the priority sequence of the peripheral modules.

4. The method according to claim 3, wherein the reducing the total power of the states to be switched of the image pickup apparatus according to the priority order of the infrared modules and the priority order of the peripheral modules comprises:

If the current of the infrared module is the maximum current limit value, judging whether the total power of the state to be converted of the camera shooting equipment is larger than the maximum power limit value;

if the total power of the to-be-converted state of the camera equipment is larger than the maximum power limit value, detecting whether the to-be-converted state of the camera equipment comprises starting an infrared module or not to obtain a detection result;

And reducing the total power of the states to be converted of the image pickup equipment according to the detection result.

5. the method according to claim 4, wherein the reducing the total power of the states to be switched of the image pickup apparatus according to the detection result comprises:

If the detection result is that the infrared module is started, reducing the total power of the camera equipment in the state to be converted according to the size relation between the total power of the camera equipment in the state to be converted when the current of the infrared module is the current minimum limit value and the maximum power limit value;

and if the detection result is that the infrared module is not started, reducing the total power of the to-be-converted state of the camera equipment according to the priority sequence of the peripheral modules.

6. The method according to claim 5, wherein the reducing the total power of the image pickup apparatus in the to-be-converted state according to the magnitude relation between the maximum power limit and the total power of the image pickup apparatus in the to-be-converted state when the current of the infrared module takes the current minimum limit comprises:

If the total power of the states to be converted of the camera equipment is larger than or equal to the maximum power limit when the current of the infrared module is the minimum limit, determining that the current value of the infrared module is the minimum limit of the current of the infrared module, and reducing the total power of the states to be converted of the camera equipment according to the priority sequence of the peripheral modules;

If the total power of the states to be converted of the camera equipment is smaller than the maximum power limit value when the current of the infrared module is the minimum limit value, determining that the current value of the infrared module is larger than or equal to the infrared module current minimum limit value and smaller than or equal to the infrared module current peak value; and the infrared module current peak value represents a current value corresponding to the infrared module when the total power of the states to be converted of the camera equipment is equal to the maximum power limit value.

7. the method of claim 6, wherein the reducing the total power of the states of the infrared camera to be switched according to the priority order of the peripheral modules comprises:

judging whether the number of peripheral modules in a state to be converted of the camera equipment is greater than 0 or not;

If the number of the peripheral modules in the state to be converted of the camera equipment is greater than 0, sequentially forbidding the starting of the peripheral modules according to the sequence of the priority of the peripheral modules from low to high and the number of the peripheral modules from small to large until the total power of the state to be converted of the camera equipment is less than the maximum power limit value;

if the number of the peripheral modules in the state to be converted of the camera equipment is equal to 0, sending out warning information, and forbidding to start all the peripheral modules in the state to be converted of the camera equipment; and the warning information is used for prompting that the current power supply environment does not meet the functional requirement of the conversion state of the camera equipment.

8. A power regulation apparatus, characterized in that the apparatus comprises:

the limiting value acquisition module is used for acquiring the maximum power limiting value of the camera equipment; the maximum power limit value represents a maximum power value allowed to be increased when the camera equipment works normally;

The judging module is used for judging whether the total power of the states to be converted of the camera equipment is larger than the maximum power limit value or not;

The power reducing module is used for executing a power reducing strategy if the total power of the states to be converted of the camera equipment is greater than the maximum power limit value; the power reduction strategy is used for reducing the total power of the to-be-converted state of the image pickup device.

9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.

Technical Field

The present application relates to the field of security camera power supply technologies, and in particular, to a power adjustment method and apparatus, a computer device, and a storage medium.

background

The infrared camera is mainly used for projecting infrared light onto an object by adopting an infrared emitting device under a dark environment without visible light or low light, and the infrared light enters the lens for imaging after being reflected by the object. Generally, in order to ensure that the infrared camera normally works, it is necessary to ensure that the power supply voltage of the infrared camera can meet the total power of the whole infrared camera at present.

the infrared camera usually comprises an infrared lamp and many other power elements, such as a dual-filter switcher, an electric lens, a heating film and the like, the infrared camera needs to start an infrared fill-in lamp when working at night, at this time, because the infrared fill-in lamp is started, the power consumption of the device will rise along with the rise, similarly, other power elements similar to the infrared lamp will start working under a specific scene, for example, after the infrared fill-in lamp of the infrared camera is started, if the electric lens starts to zoom and zoom to generate a part of power consumption at this time, the power consumption of the whole device will also increase instantaneously, thus, the power supply voltage of the infrared camera will inevitably drop the low-voltage threshold, and the infrared camera will often be pulled longer and the quality of the cable itself is uneven, so that the impedance of the power supply cable is larger, and the shortage of the power supply voltage of the infrared camera will also be aggravat, resulting in an abnormal restart of the device.

therefore, the infrared camera has the technical problem of abnormal restart during normal operation.

Disclosure of Invention

In view of the foregoing, it is necessary to provide a power adjustment method, apparatus, computer device and storage medium for solving the technical problem of abnormal restart of the infrared camera during normal operation.

in a first aspect, an embodiment of the present application provides a power adjustment method, where the method includes:

Acquiring a maximum power limit value of the camera equipment; the maximum power limit value represents the maximum power value allowed to be increased when the camera equipment normally works;

Judging whether the total power of the states to be converted of the camera equipment is larger than a maximum power limit value or not;

If the total power of the states to be converted of the camera equipment is greater than the maximum power limit value, executing a power reduction strategy; wherein the power reduction strategy is used for reducing the total power of the states to be converted of the image pickup device.

In one embodiment, the image pickup apparatus includes only an infrared module; acquiring a maximum power limit of the image pickup device, including:

Acquiring a power value and an input voltage value of the camera equipment when the infrared module has different current values;

determining a power supply voltage value and a cable impedance value of the image pickup device according to the power value and the input voltage value of the image pickup device;

And determining the maximum power limit value of the camera equipment according to the power supply voltage value of the camera equipment and the cable impedance value.

In one embodiment, the image pickup apparatus includes an infrared module and a peripheral module other than the infrared module; the executing the power reduction strategy includes:

acquiring the priority sequence of the infrared module and the priority sequence of the peripheral module; the priority of the current minimum limit value of the infrared module is greater than the priority of the current maximum limit value of the infrared module;

and reducing the total power of the states to be converted of the camera equipment according to the priority sequence of the infrared modules and the priority sequence of the peripheral modules.

In one embodiment, the above reducing the total power of the states to be converted of the image capturing apparatus according to the priority order of the infrared modules and the priority order of the peripheral modules includes:

If the current of the infrared module is the maximum current limit value, judging whether the total power of the state to be converted of the camera equipment is greater than the maximum power limit value;

If the total power of the state to be converted of the camera equipment is larger than the maximum power limit value, detecting whether the state to be converted of the camera equipment comprises the step of starting an infrared module or not, and obtaining a detection result;

and according to the detection result, reducing the total power of the to-be-converted state of the image pickup device.

in one embodiment, the above reducing the total power of the states to be converted of the image capturing apparatus according to the detection result includes:

if the detection result is that the infrared module is started, reducing the total power of the camera equipment in the state to be converted according to the size relation between the total power of the camera equipment in the state to be converted when the current of the infrared module is the current minimum limit value and the maximum power limit value;

and if the detection result is that the infrared module is not started, reducing the total power of the to-be-converted state of the camera equipment according to the priority sequence of the peripheral modules.

in one embodiment, the reducing the total power of the image capturing apparatus in the state to be converted according to the magnitude relationship between the maximum power limit and the total power of the image capturing apparatus in the state to be converted when the current of the infrared module is the minimum current limit includes:

If the total power of the states to be converted of the camera equipment is larger than or equal to the maximum power limit when the current of the infrared module is the minimum limit, determining that the current value of the infrared module is the minimum limit of the current of the infrared module, and reducing the total power of the states to be converted of the camera equipment according to the priority sequence of the peripheral modules;

If the total power of the states to be converted of the camera equipment is smaller than the maximum power limit value when the current of the infrared module is the minimum limit value, determining that the current value of the infrared module is larger than or equal to the current minimum limit value of the infrared module and smaller than or equal to the current peak value of the infrared module; the current peak value of the infrared module represents a current value corresponding to the infrared module when the total power of the states to be converted of the camera equipment is equal to the maximum power limit value.

in one embodiment, the reducing the total power of the states to be converted of the infrared camera according to the priority order of the peripheral modules includes:

Judging whether the number of peripheral modules in a state to be converted of the camera equipment is greater than 0 or not;

if the number of the peripheral modules in the state to be converted of the camera equipment is greater than 0, sequentially forbidding the starting of the peripheral modules according to the sequence that the priority of the peripheral modules is from low to high and the number of the peripheral modules is from small to large until the total power of the state to be converted of the camera equipment is less than the maximum power limit value;

if the number of the peripheral modules in the state to be converted of the camera equipment is equal to 0, sending out warning information, and forbidding starting all the peripheral modules in the state to be converted of the camera equipment; the warning information is used for prompting that the current power supply environment does not meet the functional requirement of the conversion state of the camera equipment.

in a second aspect, an embodiment of the present application provides a power adjustment apparatus, including:

The limiting value acquisition module is used for acquiring the maximum power limiting value of the camera equipment; the maximum power limit value represents the maximum power value allowed to be increased when the camera equipment normally works;

the judging module is used for judging whether the total power of the to-be-converted state of the camera equipment is larger than the maximum power limit value or not;

the power reducing module is used for executing a power reducing strategy if the total power of the states to be converted of the camera equipment is greater than the maximum power limit value; the power reduction strategy is used for reducing the total power of the to-be-converted state of the image pickup device.

In a third aspect, an embodiment of the present application provides a computer device, including a memory and a processor, where the memory stores a computer program, and the processor implements the steps of any one of the methods provided in the embodiments of the first aspect when executing the computer program.

In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of any one of the methods provided in the embodiments of the first aspect.

In the power adjustment method, the power adjustment device, the computer device and the storage medium provided by the embodiment of the application, the computer device sums the power of the modules needing to be started in the camera device to be in the conversion state, comparing with the maximum power limit of the camera device in the current environment, if the power sum of the state to be converted of the camera device is greater than the maximum power limit of the camera device, executing a power reduction strategy to ensure that the camera device can work normally, according to the method, the computer device completely masters the peripheral power modules, so that the power sum of all the power modules is not more than the limit of the whole power supply environment, the computer device adjusts the working state of the device by automatically matching with the power supply environment with larger power limit through a software power reduction strategy flow method, and the normal operation of the main shooting function is ensured.

Drawings

fig. 1 is a diagram illustrating an application environment of a power adjustment method according to an embodiment;

Fig. 2 is a flowchart illustrating a power adjustment method according to an embodiment;

FIG. 2a is a diagram illustrating a power adjustment method according to an embodiment;

Fig. 3 is a flowchart illustrating a power adjustment method according to an embodiment;

FIG. 3a is a diagram illustrating a power adjustment method according to an embodiment;

Fig. 4 is a flowchart illustrating a power adjustment method according to an embodiment;

fig. 5 is a flowchart illustrating a power adjustment method according to an embodiment;

FIG. 5a is a diagram illustrating a power adjustment method according to an embodiment;

Fig. 6 is a flowchart illustrating a power adjustment method according to an embodiment;

FIG. 6a is a diagram illustrating a power adjustment method according to an embodiment;

Fig. 7 is a block diagram of a power adjustment apparatus according to an embodiment;

Fig. 8 is a block diagram of a power adjustment apparatus according to an embodiment;

Fig. 9 is a block diagram of a power adjustment apparatus according to an embodiment;

Fig. 10 is a block diagram of a power adjustment apparatus according to an embodiment.

Detailed Description

in order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.

The power adjustment method provided by the present application can be applied to an application environment as shown in fig. 1, where the computer device may be a server, and its internal structure diagram may be as shown in fig. 1. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used to store power adjustment data. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a power adjustment method.

The embodiment of the application provides a power adjustment method, a power adjustment device, computer equipment and a storage medium, and aims to solve the technical problem that an infrared camera is abnormally restarted during normal work. The following describes in detail the technical solutions of the present application and how the technical solutions of the present application solve the above technical problems by embodiments and with reference to the drawings. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. It should be noted that, in the power adjustment method provided in the present application, the execution main bodies of fig. 2 to fig. 6 are computer devices, where the execution main body may also be a power adjustment apparatus, where the apparatus may be implemented as part or all of power adjustment by software, hardware, or a combination of software and hardware.

In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments.

in an embodiment, fig. 2 provides a power adjustment method, where the embodiment relates to a specific process in which a computer device executes a power reduction strategy when a total power of states to be converted of an image pickup device is greater than a maximum power limit of the image pickup device, based on an obtained maximum power limit of the image pickup device, as shown in fig. 2, the method includes:

S101, acquiring a maximum power limit value of the camera equipment; wherein the maximum power limit represents a maximum power value allowed to be increased when the image pickup apparatus is operating normally.

In this embodiment, the image capturing apparatus may be any image capturing apparatus, which is not limited in this embodiment, and may be, for example, an infrared camera or the like. The maximum power limit of the image pickup apparatus represents a maximum power value allowed to be increased when the image pickup apparatus normally operates, that is, a maximum value of a sum of powers of all modules to be turned on that can be borne by the image pickup apparatus. Taking the example that the image pickup apparatus is an infrared camera, the infrared camera includes a core module and a peripheral power module on a circuit, wherein the core module may be, for example, a main chip, an image sensor, etc., and the peripheral power module may be, for example, an infrared lamp, an electric lens, an ICR, an electric heater, etc., then the maximum power limit value of the infrared camera represents a value of total power increase of the core module and the peripheral power module in an allowable operating state of the infrared camera in the current environment. For example, in practical application, the mode of obtaining the maximum power limit of the image capturing device by the computer device may be to obtain the maximum power limit by testing in a mode of building an analog circuit, or may be to input a pre-recorded parameter of the image capturing device into a pre-trained neural network to obtain the maximum power limit, or may be in other modes, which is not limited in this embodiment.

and S102, judging whether the total power of the to-be-converted state of the camera equipment is larger than the maximum power limit value.

in this step, based on the maximum power limit of the image capturing apparatus obtained in the step S101, the computer apparatus determines whether the total power of the states to be converted of the image capturing apparatus is greater than the maximum power limit, where the total power of the states to be converted of the image capturing apparatus indicates the total power of all modules to be started of the image capturing apparatus when the image capturing apparatus is about to be converted into a certain state, the state to be converted may be any state, and the embodiment of the power module started in any state is not limited. In practical application, as shown in fig. 2a, the computer device obtains the total power of all modules that need to be started in the state that the image capturing apparatus is about to be switched, compares the total power of all modules that need to be started with the maximum power limit of the image capturing apparatus in step S101, and determines whether the total power of all modules that need to be started is greater than the maximum power limit of the image capturing apparatus.

S103, if the total power of the states to be converted of the camera equipment is larger than the maximum power limit value, a power reduction strategy is executed; wherein the power reduction strategy is used for reducing the total power of the states to be converted of the image pickup device.

based on the determination in the step S102, if the determination result is that the total power of the to-be-converted state of the image pickup apparatus is greater than the maximum power limit value of the image pickup apparatus, continuing as shown in fig. 2a, the power reduction policy is started to be executed, otherwise, the power reduction policy is not executed. Wherein the power reduction strategy is used for reducing the total power of the states to be converted of the image pickup device. For example, the power reduction policy may be a preset sequence for turning off each peripheral power module to be started, and in practical application, when detecting that the total power of the state to be converted of the image pickup apparatus is greater than the maximum power limit value, the computer apparatus may turn off each module according to the preset sequence for turning off each power module to be started until the total power of the power modules to be started of the image pickup apparatus is less than the maximum power limit value, so as to ensure that the image pickup apparatus operates normally.

In the power adjustment method provided by this embodiment, the computer device compares the power sum of the modules to be turned on in the state to be converted of the camera device with the maximum power limit of the camera device in the current environment, and executes a power reduction strategy to ensure that the camera device can normally operate if the power sum of the state to be converted of the camera device is greater than the maximum power limit of the camera device.

On the basis of the above embodiment, an embodiment of the present application further provides a power adjustment method, which relates to a specific process in which a computer device determines a maximum power limit value of an image pickup device according to parameters of the image pickup device when an infrared module is at different current values, as shown in fig. 3, the image pickup device only includes the infrared module; acquiring a maximum power limit of the image pickup apparatus, wherein the step S102 includes:

s201, acquiring a power value and an input voltage value of the image pickup device when the infrared module has different current values.

in this embodiment, the computer device obtains the power value and the input voltage value of the imaging device when the infrared module has different current values. For example, taking the circuit model diagram of the infrared camera power supply shown in fig. 3a as an example, the power supply voltage Vp reaches the infrared camera through the cable, and the input voltage Vd is lowered to Vp due to the cable impedance Rc. The infrared camera is internally composed of a core module Rd and an external power module, wherein the external power module is composed of an infrared module Rir and a plurality of power modules R1, R2 and R3 … … Rn. The power consumption P of the whole infrared camera is defined, the power consumption of the external power module is PRIr, PR1, PR2 and PR3 … … PRn in sequence, and the current I on the power supply loop is defined. There is the following equation:

Then the correspondence is available:

Based on this, when the computer device obtains the power value and the input voltage value of the image pickup device at different current values of the infrared module, the power value and the input voltage value of the image pickup device may be obtained by turning off the infrared module and other power modules, detecting the input voltage value Vd1 of the current image pickup device, defining the total power of the current image pickup device as P1, then turning on the infrared module, setting the current of the infrared module to 10% brightness, that is, the infrared power as 10% PRir, detecting the input voltage value Vd2 of the current image pickup device, defining the total power of the current image pickup device as P2, finally setting the current of the infrared module to 20% brightness, that is, the infrared power as 20% PRir, detecting the input voltage value Vd3 of the current image pickup device, defining the total power of the current image pickup device as P3,

And S202, determining a power supply voltage value and a cable impedance value of the image pickup device according to the power value and the input voltage value of the image pickup device.

Based on the power value and the input voltage value of the image pickup apparatus when the infrared module is at different current values acquired in the above step S201, the computer apparatus determines the power supply voltage value and the cable impedance value of the image pickup apparatus. Illustratively, still taking fig. 2a as an example, based on the above-noted values of power and input voltage, the equation can be derived:

since in this equation P2-P1 and P3-P1 are 10% luminance 10% power PRir and 20% luminance power 20% PRir of infrared lamps, the power values of which have been recorded in advance by the software are known quantities; vd1, Vd2, Vd3 are input voltage values detected in real time and are also known quantities. A solution of the unknown quantities of supply voltage Vp and cable impedance Rc can be obtained:

And S203, determining the maximum power limit value of the image pickup equipment according to the power supply voltage value of the image pickup equipment and the cable impedance value.

in this step, the computer device determines the maximum power limit value of the image pickup device according to the power supply voltage value of the image pickup device and the cable impedance value in the above step S202. For example, with reference to fig. 2a, assuming that the lowest input voltage allowed by the normal operation of the infrared camera is Vdmin, the power of the corresponding infrared camera at this time is defined as Pmax, and the infrared camera in this state is set to allow the total power of the infrared module and other power modules to increase by Δ Pmax. From the Vp, Rc calculated above, the Vd1 measured when the infrared and other power modules are both off, and the predetermined Vdmin, the value of Δ Pmax can be calculated by the following equation.

In the power adjustment method provided by this embodiment, the computer device records different parameters, that is, power values or input voltage values, of the camera device when acquiring different currents according to the infrared module, and calculates the power supply voltage and the cable impedance of the camera device according to the parameters, thereby determining the maximum power limit value allowed to be increased by the camera device.

the specific process of executing the power reduction strategy by the computer device when the total power of the to-be-converted state of the image capturing device is greater than the maximum power limit value will be described by several embodiments below.

In an embodiment, as shown in fig. 4, an embodiment of the present application provides a power adjustment method, where the image pickup apparatus includes an infrared module and a peripheral module other than the infrared module, and S103 includes:

s301, acquiring the priority sequence of the infrared module and the priority sequence of the peripheral module; the priority of the current minimum limit value of the infrared module is greater than the priority of the current maximum limit value of the infrared module.

In this embodiment, the computer device obtains a priority order of the infrared module and a priority order of the peripheral module, where the priority order of the infrared module and the priority order of the peripheral module are predefined and stored orders, and the priority order of the infrared module includes a priority that a priority of a current minimum limit of the infrared module is greater than a priority of a current maximum limit of the infrared module, that is, the priority order of the infrared module is gradually decreased in an order of current from small to large. The priority order of the peripheral modules means the order of priority of modules other than the infrared module, which is determined according to the actual situation since the peripheral modules included in the image pickup apparatus are different in number and kind according to the actual situation.

and S302, reducing the total power of the states to be converted of the camera equipment according to the priority sequence of the infrared modules and the priority sequence of the peripheral modules.

In this step, based on the priority order of the infrared module and the priority order of the peripheral module obtained in step S301, the computer device reduces the total power of the state to be converted of the image capturing apparatus, that is, starts to execute the power reduction policy, and it can be understood that the computer device preferentially ensures that the module with the high priority normally operates in the power reduction process.

As for the computer device reducing the total power of the states to be converted of the image capturing device according to the priority order of the infrared modules and the priority order of the peripheral modules, an embodiment of the present application further provides a power adjustment method, as shown in fig. 5, then the foregoing S302 includes:

s401, if the current of the infrared module is the maximum current limit, whether the total power of the state to be converted of the camera device is larger than the maximum power limit is judged.

In this embodiment, as shown in fig. 5a, the computer device first determines whether the total power of the state to be converted of the image capturing device is greater than the maximum power limit when the current of the infrared module is equal to the maximum current limit, that is, in this step, when the computer device obtains the maximum power of the infrared module, the image capturing device is to turn on the total power of all modules, and then determines whether the total power of the state to be converted is lower than the maximum power value allowed to be increased when the image capturing device normally operates.

s402, if the total power of the state to be converted of the camera equipment is larger than the maximum power limit value, whether the state to be converted of the camera equipment comprises the step of starting an infrared module is detected, and a detection result is obtained.

based on the determination result in the step S401, referring to fig. 5a, if the total power of the states to be converted of the image pickup apparatus is greater than the maximum power limit value, the computer apparatus continues to detect whether the state to be converted of the image pickup apparatus includes turning on the infrared module, so as to obtain a detection result, where the detection result is that the infrared module is turned on or the infrared module is not turned on.

And S403, reducing the total power of the states to be converted of the image pickup equipment according to the detection result.

Based on the detection result in the step S402, the computer device reduces the total power of the states to be switched of the image capturing apparatus, and optionally, the manner for the computer device to reduce the total power of the states to be switched of the image capturing apparatus according to the detection result includes two schemes:

in the scheme A, if the infrared module is started according to the detection result, the total power of the camera equipment in the state to be converted is reduced according to the size relation between the total power of the camera equipment in the state to be converted and the maximum power limit value when the current of the infrared module is the current minimum limit value.

in this scheme, if the detection result is that the infrared module is turned on, the computer device obtains the total power of the state to be converted of the image capturing device when the current of the infrared module is the current minimum limit value, and based on the total power in the state, the computer device compares the size relationship between the total power of the state to be converted of the image capturing device and the maximum power limit value when the current of the infrared module is the current minimum limit value, please refer to fig. 5a, and reduce the total power of the state to be converted of the image capturing device according to the size relationship. If the computer device reduces the total power of the states to be converted of the image capturing device according to the size relationship, optionally, the scheme a includes:

in the scheme a1, if the total power of the states to be converted of the image pickup apparatus is greater than or equal to the maximum power limit when the current of the infrared module is the minimum limit, it is determined that the current value of the infrared module is the minimum limit of the current of the infrared module, and the total power of the states to be converted of the image pickup apparatus is reduced according to the priority order of the peripheral modules.

the scheme is that when the current of the infrared module is the minimum limit value, the total power of the states to be converted of the camera equipment is greater than or equal to the maximum power limit value, it means that in this case, the image capturing apparatus needs to start the infrared module, but the power of the minimum current value of the infrared module exceeds the maximum power limit of the image capturing apparatus, please continue to refer to fig. 5a, the computer device determines that the current value of the infrared module is the current minimum limit value of the infrared module, that is, allows the infrared module to be turned on in the minimum current state, and, at the same time, since the total power of the states to be converted of the image pickup apparatus in this state is still larger than the maximum power limit, in order to ensure that the image pickup apparatus operates normally, the computer device continues to decrease the total power of the states to be switched of the image pickup device according to the priority order of the peripheral modules until the total power of the states to be switched of the image pickup device is equal to the maximum power value allowed to be increased when the image pickup device is operating normally.

in the scheme A2, if the total power of the states to be converted of the camera device is smaller than the maximum power limit when the current of the infrared module is the minimum limit, determining that the current value of the infrared module is greater than or equal to the minimum limit of the current of the infrared module and less than or equal to the current peak value of the infrared module; the current peak value of the infrared module represents a current value corresponding to the infrared module when the total power of the states to be converted of the camera equipment is equal to the maximum power limit value.

in the scheme, when the current of the infrared module is the minimum limit value, the total power of the states to be converted of the camera device is smaller than the maximum power limit value, which means that the camera device needs to start the infrared module under the condition, but the power of the infrared module with the minimum current value does not have the maximum power limit value of the camera device, that is, the current of the infrared module allowed by the current voltage is a current value higher than the minimum value, please refer to fig. 5a continuously, the computer device needs to determine an infrared module current peak value, which means that the current value corresponding to the infrared module when the total power of the states to be converted of the camera device is equal to the maximum power limit value, and is equivalent to that the current value of the infrared module is greater than or equal to the infrared module current minimum limit value and less than or.

and in the scheme B, if the infrared module is not started according to the detection result, the total power of the states to be converted of the camera equipment is reduced according to the priority sequence of the peripheral modules.

In the present embodiment, as shown in fig. 5a, for example, if the camera device does not need to start the infrared module in practical application, the computer device first obtains the priority order of the peripheral modules, and then reduces the total power of the camera device in the state to be converted according to the order, so as to ensure the normal operation of the camera device.

In one embodiment, as shown in fig. 6, the present application provides a power adjustment method, where the "reducing the total power of the states to be converted of the infrared camera according to the priority order of the peripheral modules" in the steps of the above-mentioned schemes B and S302 includes:

S501, judging whether the number of the peripheral modules in the state of waiting conversion of the image pickup device is larger than 0.

In this embodiment, the computer device compares the number of peripheral modules in the to-be-converted state of the image capturing device, where the number of peripheral modules in the to-be-converted state of the image capturing device indicates the number of peripheral modules to be started by the image capturing device in the to-be-converted state, please continue to refer to fig. 6a, the computer device determines whether the number of peripheral modules to be started is greater than 0, and indicates that the peripheral modules to be started in the to-be-converted state of the image capturing device are not all the peripheral modules of the computer device, may only be a part of the peripheral modules, or may not be started by one peripheral module.

S501, if the number of the peripheral modules in the state to be converted of the camera equipment is larger than 0, the starting of the peripheral modules is forbidden in sequence according to the sequence that the priority of the peripheral modules is from low to high and the number of the peripheral modules is from small to large until the total power of the state to be converted of the camera equipment is smaller than the maximum power limit value.

In this step, when the number of the peripheral modules in the state to be converted of the image capturing apparatus is greater than 0, as shown in fig. 6a, the computer apparatus sequentially prohibits the peripheral modules from being turned on according to the sequence of the priority of the peripheral modules from low to high and the number of the peripheral modules from small to large until the total power of the state to be converted of the image capturing apparatus is less than the maximum power limit value, specifically, the computer apparatus first prohibits the peripheral module with the lowest priority from being turned on, then recalculates whether the total power of the state to be converted of the image capturing apparatus is less than the maximum power limit value, and if the total power of the state to be converted of the image capturing apparatus is still greater than the maximum power limit value, the computer apparatus continues to prohibit the peripheral module with the lowest priority from being turned on, and thus, the detection is performed cyclically.

S502, if the number of the peripheral modules in the to-be-converted state of the camera equipment is equal to 0, sending out warning information, and forbidding starting of all the peripheral modules in the to-be-converted state of the camera equipment; the warning information is used for prompting that the current power supply environment does not meet the functional requirement of the conversion state of the camera equipment.

the method comprises the following steps that if the number of peripheral modules in a to-be-converted state of the camera equipment is 0, the situation indicates that other peripheral modules except an infrared module in the to-be-converted state of the camera equipment are not started, the computer equipment sends out warning information, and simultaneously all peripheral modules in the to-be-converted state of the camera equipment are forbidden to be started; the warning information is used for prompting that the current power supply environment does not meet the functional requirement of the conversion state of the camera equipment.

according to the power adjustment method provided by the embodiment, the computer device takes different measures according to different starting conditions of other peripheral modules except the infrared module in the state to be converted of the camera device, so that the normal work of the camera device is ensured.

It should be understood that although the various steps in the flow charts of fig. 2-6 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-6 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.

in one embodiment, as shown in fig. 7, a power adjustment apparatus is provided, which includes a limit value obtaining module 10, a determining module 11 and a power reducing module 12, wherein,

a limit value obtaining module 10, configured to obtain a maximum power limit value of the image capturing apparatus; the maximum power limit value represents the maximum power value allowed to be increased when the camera equipment normally works;

The judging module 11 is configured to judge whether a total power of the to-be-converted state of the image pickup apparatus is greater than a maximum power limit value;

the power reducing module 12 is configured to execute a power reducing strategy if the total power of the to-be-converted state of the image pickup apparatus is greater than a maximum power limit value; the power reduction strategy is used for reducing the total power of the to-be-converted state of the image pickup device.

The implementation principle and technical effect of the power adjustment apparatus provided in the above embodiments are similar to those of the above method embodiments, and are not described herein again.

In one embodiment, as shown in fig. 8, there is provided a power adjustment apparatus, where the limit value obtaining module 10 includes: a parameter acquisition unit 101, a parameter determination unit 102, and a limit determination unit 112, wherein,

The parameter acquiring unit 101 is used for acquiring a power value and an input voltage value of the camera equipment when the infrared module has different current values;

A parameter determination unit 102 for determining a power supply voltage value and a cable impedance value of the image pickup apparatus based on the power value and the input voltage value of the image pickup apparatus;

a limit value determining unit 112 for determining a maximum power limit value of the image pickup apparatus based on the power supply voltage value of the image pickup apparatus and the cable impedance value.

the implementation principle and technical effect of the power adjustment apparatus provided in the above embodiments are similar to those of the above method embodiments, and are not described herein again.

In one embodiment, as shown in fig. 9, the power reduction module 12 includes: a priority acquiring unit 121, a power reducing unit 122, wherein,

A priority acquiring unit 121 configured to acquire a priority order of the infrared modules and a priority order of the peripheral modules; the priority of the current minimum limit value of the infrared module is greater than the priority of the current maximum limit value of the infrared module;

and the power reducing unit 122 is configured to reduce the total power of the states to be converted of the image capturing apparatus according to the priority order of the infrared modules and the priority order of the peripheral modules.

The implementation principle and technical effect of the power adjustment apparatus provided in the above embodiments are similar to those of the above method embodiments, and are not described herein again.

in one embodiment, as shown in fig. 10, the power reducing unit 122 includes: a judging subunit 1221, a detecting subunit 1222, and a power down subunit 1223, wherein,

A determining subunit 1221, configured to determine, if the current of the infrared module is a current maximum limit value, whether a total power of states to be converted of the image capture apparatus is greater than a maximum power limit value;

the detection subunit 1222 is configured to, if the total power of the to-be-converted state of the image pickup apparatus is greater than the maximum power limit value, detect whether the to-be-converted state of the image pickup apparatus includes turning on the infrared module, and obtain a detection result;

and a power reducing subunit 1223, configured to reduce, according to the detection result, total power of states to be converted of the image capturing apparatus.

The implementation principle and technical effect of the power adjustment apparatus provided in the above embodiments are similar to those of the above method embodiments, and are not described herein again.

In one embodiment, the power reducing subunit 1223 is specifically configured to, if the detection result is that the infrared module is turned on, reduce the total power of the state to be converted of the image capturing apparatus according to a size relationship between the maximum power limit and the total power of the state to be converted of the image capturing apparatus when the current of the infrared module is the current minimum limit; and if the detection result is that the infrared module is not started, reducing the total power of the to-be-converted state of the camera equipment according to the priority sequence of the peripheral modules.

in an embodiment, the power reducing subunit 1223 is further specifically configured to determine, if the total power of the states to be converted of the image capturing apparatus is greater than or equal to the maximum power limit when the current of the infrared module is the minimum limit, that the current value of the infrared module is the minimum limit of the current of the infrared module, and reduce the total power of the states to be converted of the image capturing apparatus according to the priority order of the peripheral modules; if the total power of the states to be converted of the camera equipment is smaller than the maximum power limit value when the current of the infrared module is the minimum limit value, determining that the current value of the infrared module is larger than or equal to the current minimum limit value of the infrared module and smaller than or equal to the current peak value of the infrared module; the current peak value of the infrared module represents a current value corresponding to the infrared module when the total power of the states to be converted of the camera equipment is equal to the maximum power limit value.

in an embodiment, the power reducing subunit 1223 is further specifically configured to determine whether the number of peripheral modules in the to-be-converted state of the image capturing apparatus is greater than 0; if the number of the peripheral modules in the state to be converted of the camera equipment is greater than 0, sequentially forbidding the starting of the peripheral modules according to the sequence that the priority of the peripheral modules is from low to high and the number of the peripheral modules is from small to large until the total power of the state to be converted of the camera equipment is less than the maximum power limit value; if the number of the peripheral modules in the state to be converted of the camera equipment is equal to 0, sending out warning information, and forbidding starting all the peripheral modules in the state to be converted of the camera equipment; the warning information is used for prompting that the current power supply environment does not meet the functional requirement of the conversion state of the camera equipment.

for specific limitations of the power adjusting apparatus, reference may be made to the above limitations of the power adjusting method, which is not described herein again. The various modules in the power regulating apparatus described above may be implemented in whole or in part by software, hardware, and combinations thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.

In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 1. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a power adjustment method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.

those skilled in the art will appreciate that the architecture shown in fig. 1 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.

in one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:

acquiring a maximum power limit value of the camera equipment; the maximum power limit value represents the maximum power value allowed to be increased when the camera equipment normally works;

Judging whether the total power of the states to be converted of the camera equipment is larger than a maximum power limit value or not;

If the total power of the states to be converted of the camera equipment is greater than the maximum power limit value, executing a power reduction strategy; wherein the power reduction strategy is used for reducing the total power of the states to be converted of the image pickup device.

The implementation principle and technical effect of the computer device provided by the above embodiment are similar to those of the above method embodiment, and are not described herein again.

In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:

acquiring a maximum power limit value of the camera equipment; the maximum power limit value represents the maximum power value allowed to be increased when the camera equipment normally works;

Judging whether the total power of the states to be converted of the camera equipment is larger than a maximum power limit value or not;

if the total power of the states to be converted of the camera equipment is greater than the maximum power limit value, executing a power reduction strategy; wherein the power reduction strategy is used for reducing the total power of the states to be converted of the image pickup device.

The implementation principle and technical effect of the computer-readable storage medium provided by the above embodiments are similar to those of the above method embodiments, and are not described herein again.

it will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.

the above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

22页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:多档位恒功率输出装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类