Camera control method, device and equipment and storage medium

By acquiring the target scene and working mode of the camera, determining and controlling its working state, the problem of high power consumption in existing camera technology is solved, and the monitoring effect with low power consumption and high stability is achieved.

CN119854626APending Publication Date: 2025-04-18TOPSEE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411966922.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-30
Publication Date
2025-04-18

AI Technical Summary

Technical Problem

The existing camera technology only switches the working state according to time, resulting in high power consumption and cannot meet the needs of low power consumption and high stability.

Method used

By acquiring the camera's target scene and target working mode, including energy state, working time and acquisition screen, the target working state is determined, and the camera is controlled to work in real time to optimize power consumption.

Benefits of technology

Without affecting the monitoring effect, the power consumption of the camera is effectively saved, the accuracy of the control method is improved, and the power consumption of irrelevant scenes is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119854626A_ABST
    Figure CN119854626A_ABST
Patent Text Reader

Abstract

The invention discloses a camera control method and device, equipment and a storage medium, and belongs to the technical field of computers. The method comprises the steps of obtaining a target scene and a target working mode corresponding to a camera; wherein the target scene is determined on the basis of at least one of the following items: the energy state of the camera, the working time of the camera, and an acquisition picture of the camera; the target working mode is a low-power-consumption working mode or a normal working mode; determining a target working state according to the target scene and the target working mode; and controlling the camera to work in the target working state. The problem of high power consumption of a current camera is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a camera control method, device, equipment and storage medium. Background Art

[0002] With the development of technology, the demand for cameras in the field of security monitoring is growing. Especially in the field of low-power IP Camera (IPC), the market demand for products that can achieve all-weather monitoring, low power consumption and high stability is increasing.

[0003] However, the existing camera technology only switches the working state of the camera according to the time, resulting in high power consumption of the camera.

[0004] The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art. Summary of the invention

[0005] The main purpose of the embodiments of the present application is to provide a camera control method, device, equipment and storage medium, aiming to solve the technical problem of high power consumption of existing camera technology.

[0006] In a first aspect, an embodiment of the present application provides a method for controlling a camera, the method comprising:

[0007] Obtaining a target scene and a target working mode corresponding to the camera; wherein the target scene is determined based on at least one of the following: the energy state of the camera, the working time of the camera, and the captured image of the camera; the target working mode is a low power working mode or a normal working mode;

[0008] Determining a target working state according to the target scenario and the target working mode;

[0009] The camera is controlled to operate in the target operating state.

[0010] In some embodiments, the target scenario is determined based on the energy state; and determining the target working state according to the target scenario and the target working mode includes:

[0011] When the target scene is a first scene and the target working mode is a first working mode, determining the target working state to be a first working state; wherein the energy state of the first scene is a first energy state;

[0012] When the target scene is the second scene and the target operating mode is the first operating mode, the target operating state is determined to be the second operating state; wherein the energy state of the second scene is the second energy state, and the second energy state is lower than the first energy state; the power consumption of the camera in the second operating state is lower than the power consumption of the camera in the first operating state.

[0013] In some embodiments, the target scene is determined based on the energy state and the acquisition screen; and the determining the target working state according to the target scene and the target working mode includes:

[0014] When the target scene is the third scene and the target working mode is the second working mode, determining that the target working state is the third working state; wherein the energy state of the third scene is the third energy state, the acquisition screen is the first screen, and the movement amplitude of the object in the first screen is within the first range;

[0015] When the target scene is the fourth scene and the target working mode is the second working mode, the target working state is determined to be the fourth working state; wherein the energy state of the fourth scene is the third energy state, the captured screen is the second screen, the movement amplitude of the object in the second screen is within a second range, and the maximum value of the second range is less than the minimum value of the first range; the power consumption of the camera in the fourth working state is lower than the power consumption of the camera in the third working state.

[0016] In some embodiments, determining the target working state according to the target scenario and the target working mode includes:

[0017] When the target scene is the fifth scene and the target working mode is the normal working mode, determining the target working state to be the fifth working state;

[0018] When the target scene is the fifth scene and the target working mode is the low power consumption working mode, the target working state is determined to be the sixth working state; wherein the power consumption of the camera in the sixth working state is lower than the power consumption of the camera in the fifth working state.

[0019] In some embodiments, determining the target working state according to the target scenario and the target working mode includes:

[0020] When the target working mode is a normal working mode, obtaining a detection result of the camera on the target object; wherein the detection result is that the target object is detected or not detected; and the target object is an object that can be moved;

[0021] A target working state is determined according to the target scene and the detection result.

[0022] In some embodiments, determining the target working state according to the target scene and the detection result includes:

[0023] When the target scene is the sixth scene and the detection result is that the target object is detected, determining that the target working state is the seventh working state;

[0024] When the target scene is the sixth scene and the detection result is that the target object is not detected, the target working state is determined to be the eighth working state; wherein the power consumption of the camera in the eighth working state is lower than the power consumption of the camera in the eighth working state.

[0025] In some embodiments, the target working state includes at least one of the following: the resolution of the camera; the frame rate of the camera; the working state of the communication module of the camera; the working state of the infrared light board of the camera.

[0026] In a second aspect, an embodiment of the present application provides a camera control device, the device comprising:

[0027] An acquisition module is used to acquire a target scene and a target working mode corresponding to the camera; wherein the target scene is determined based on at least one of the following: the energy state of the camera, the working time of the camera, and the captured image of the camera; the target working mode is a low power working mode or a normal working mode;

[0028] A determination module, used to determine a target working state according to the target scenario and the target working mode;

[0029] The control module is used to control the camera to operate in the target operating state.

[0030] In a third aspect, an embodiment of the present application provides a camera control device, the device comprising: a memory, a processor, and a computer processing program stored in the memory and executable on the processor, the computer processing program being configured to implement the steps of the camera control method as described in the first aspect.

[0031] In a third aspect, an embodiment of the present application provides a storage medium having a computer processing program stored thereon, and when the computer processing program is executed by a processor, the steps of the camera control method described in the first aspect are implemented.

[0032] In a fifth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the first aspect.

[0033] The present application proposes a camera control method, device, equipment and storage medium, by obtaining the target scene and target working mode corresponding to the camera; wherein the target scene is determined based on at least one of the following: the energy state of the camera, the working time of the camera and the captured image of the camera; the target working mode is a low power working mode or a normal working mode; then, according to the target scene and the target working mode, the target working state is determined; finally, the camera is controlled to work in the target working state. In this way, the working state of the camera is controlled in real time through the target scene and the target working mode, which solves the problem that the existing camera technology only switches the working state of the camera according to the time difference, resulting in high power consumption of the camera. The present application saves the power consumption of the camera as much as possible without affecting the effect. At the same time, through at least one of the energy state of the camera, the working time of the camera, and the captured image of the camera, combined with the comprehensive judgment of the target working mode, the possible state conditions are refined, the accuracy of the control method is improved, and at the same time, the power consumption of irrelevant scenes is controlled. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 It is a flowchart of a camera control method provided in an embodiment of the present application;

[0035] Figure 2 A schematic diagram of a device for a camera control method provided in an embodiment of the present application;

[0036] Figure 3 It is one of the structural schematic diagrams of the electronic device provided in the embodiment of the present application;

[0037] Figure 4 This is the second structural schematic diagram of the electronic device provided in the embodiment of the present application;

[0038] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0039] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.

[0040] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0041] The display method provided in the embodiment of the present application is described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.

[0042] Reference Figure 1 , Figure 1 This is a flow chart of an embodiment of a method for controlling a camera of the present application.

[0043] The embodiment of the present application provides a camera control method, which is applied to an electronic device including a camera. For ease of description, the following embodiments are described with a camera as the execution subject, and the camera has a data processing function and a network communication function. In this embodiment, the camera control method includes the following steps:

[0044] Step S101, obtaining a target scene and a target working mode corresponding to a camera; wherein the target scene is determined based on at least one of the following: an energy state of the camera, a working time of the camera, and a captured image of the camera; and the target working mode is a low power working mode or a normal working mode;

[0045] Step S102, determining a target working state according to the target scenario and the target working mode;

[0046] Step S103, controlling the camera to operate in the target operating state.

[0047] The embodiment of the present application obtains the target scene and target working mode corresponding to the camera; wherein the target scene is determined based on at least one of the following: the energy state of the camera, the working time of the camera and the collection picture of the camera; the target working mode is a low power working mode or a normal working mode; then, according to the target scene and the target working mode, the target working state is determined; finally, the camera is controlled to work in the target working state. In this way, the working state of the camera is controlled in real time through the target scene and the target working mode, which solves the problem that the existing camera technology only switches the working state of the camera according to the time difference, resulting in high power consumption of the camera. The present application saves the power consumption of the camera as much as possible without affecting the effect. At the same time, through at least one of the energy state of the camera, the working time of the camera, and the collection picture of the camera, combined with the comprehensive judgment of the target working mode, the possible state conditions are refined, the accuracy of the control method is improved, and at the same time, the power consumption of irrelevant scenes is controlled.

[0048] In some embodiments, in the above step S101, the real-time scene data and working mode data of the camera are first obtained, and the scene data includes at least one of the energy state, working time and collected images of the camera.

[0049] In this embodiment, it should be noted that the target scene may be a specific working condition or environment determined by the camera according to its energy state, working environment, and captured images. The target working mode may be one of two working modes of the camera, including a low power working mode and a normal working mode. The energy state may be characterized by a power level and / or a charging state.

[0050] In some embodiments, in the above step S102, based on the acquired data, the camera determines its target scene and target working mode, and according to the target scene and target working mode, the camera determines its target working state.

[0051] It should be noted that, when the target working mode is the normal working mode, the detection result of the target object can be further obtained, and then the target working state can be determined according to the target scene and the target working mode.

[0052] In the above step S103, finally, the camera works according to the determined target working state to achieve the effect of controlling power consumption.

[0053] In some embodiments, the target working state described above may include but is not limited to at least one of the following: the resolution of the camera; the frame rate of the camera; the working state of the communication module of the camera; the working state of the infrared light board of the camera.

[0054] In this embodiment, the target working state includes at least one of the resolution of the camera, the frame rate of the camera, the working state of the communication module of the camera, and the working state of the infrared light board of the camera.

[0055] It should be noted that the resolution can be the clarity of the image that the camera can capture, usually in pixels. The higher the resolution, the richer the details of the image, but it also means a higher amount of data and possibly higher power consumption. The frame rate can be the number of image frames that the camera can capture and transmit per second, usually expressed in frames per second. The higher the frame rate, the smoother the video, but it also increases the amount of data and power consumption. The working status of the communication module of the camera can be the working status of the 4G module in the camera. The infrared light board is a device used by the camera to assist imaging in low-light or no-light environments. The working status can be whether the device is turned on and its activity intensity.

[0056] The target scenario is determined based on the energy state; in some embodiments, the above-mentioned determining the target working state according to the target scenario and the target working mode includes:

[0057] When the target scene is a first scene and the target working mode is a first working mode, determining the target working state to be a first working state; wherein the energy state of the first scene is a first energy state;

[0058] When the target scene is the second scene and the target operating mode is the first operating mode, the target operating state is determined to be the second operating state; wherein the energy state of the second scene is the second energy state, and the second energy state is lower than the first energy state; the power consumption of the camera in the second operating state is lower than the power consumption of the camera in the first operating state.

[0059] In this embodiment, the camera first monitors its current energy state. Based on the monitored energy state, the camera determines whether it is currently in the first scene or the second scene. When the camera is in the same working mode, if the camera is in the first scene (first energy state), the target working state is determined to be the first working state; if the camera is in the second scene (second energy state), the target working state is determined to be the second working state. The camera automatically adjusts its working parameters, such as resolution, frame rate, working state of the communication module, working state of the infrared light board, etc., according to the determined working state to adapt to the current energy state. The second energy state is less than the first energy state, and in the second working state, the power consumption of the camera is lower than that of the first working state, thereby achieving energy-saving operation when the power is insufficient. In this way, by adjusting the working state according to the energy state, the camera can achieve dynamic management of power consumption. In different energy states, the camera adopts different working configurations to ensure that energy consumption is minimized while maintaining monitoring quality.

[0060] In this embodiment, it should be noted that the first scene may be a working condition or environment determined based on the first energy state of the camera. The first working mode may be a low-power working mode or a normal working mode. The first energy state may be a state in which the power level of the camera is high or charging, which is sufficient to support a working mode of power consumption corresponding to the energy state. The second scene may be a working condition or environment based on the second energy state of the camera. The second energy state may be a power state of the camera that is lower than the first energy state, and energy-saving measures need to be taken to extend the use time. The first working state may be the working configuration of the camera in the first energy state, which may include adjusting the resolution, frame rate, working state of the 4G module, working state of the infrared light board, etc., to provide the best monitoring effect while reducing power consumption. The second working state may be the working configuration of the camera in the second energy state, which may include adjusting the resolution, frame rate, working state of the 4G module, working state of the infrared light board, etc., to reduce power consumption.

[0061] In some embodiments, if the target scene is determined based on the energy state and the working time, then the difference in the target working state determined according to the target scene and the target working mode is that the working state of the infrared light board is different. The working state of the infrared light board is determined according to the actual shooting needs, for example, during the day, the infrared light board is turned off; at night, the infrared light board is flashing or turned on.

[0062] The target scene is determined based on the energy state and the acquisition screen. In some embodiments, the above-mentioned determining the target working state according to the target scene and the target working mode includes:

[0063] When the target scene is the third scene and the target working mode is the second working mode, determining that the target working state is the third working state; wherein the energy state of the third scene is the third energy state, the acquisition screen is the first screen, and the movement amplitude of the object in the first screen is within the first range;

[0064] When the target scene is the fourth scene and the target working mode is the second working mode, the target working state is determined to be the fourth working state; wherein the energy state of the fourth scene is the third energy state, the captured screen is the second screen, the movement amplitude of the object in the second screen is within a second range, and the maximum value of the second range is less than the minimum value of the first range; the power consumption of the camera in the fourth working state is lower than the power consumption of the camera in the third working state.

[0065] In this embodiment, the camera first monitors its current energy state and analyzes the movement amplitude of the object in the collected picture to determine the current picture type (first picture or second picture). If the camera collects the first picture (the movement amplitude of the object is within the first range), it is determined that the current scene is the third scene. If the camera collects the second picture (the movement amplitude of the object is within the second range), it is determined that the current scene is the fourth scene. When the camera is in the same working mode, if the camera is in the third scene, the target working state is determined to be the third working state, and the camera operates in a power consumption mode corresponding to the current energy state and the current collected picture to capture dynamic pictures. If the camera is in the fourth scene, the target working state is determined to be the fourth working state, and the camera operates in a power consumption mode lower than the third working state to adapt to the situation where the object moves less. In the fourth working state, the power consumption of the camera is lower than that of the third working state. Furthermore, the camera automatically adjusts its working parameters, such as resolution, frame rate, working state of the communication module, working state of the infrared light board, etc., according to the determined working state to adapt to the current energy state and the collected picture. In this way, the camera can dynamically adjust the working state according to the energy state and the movement amplitude of the object in the collected picture to adapt to different monitoring scenes and optimize power consumption. This adaptive adjustment helps to reduce unnecessary energy consumption while maintaining monitoring quality.

[0066] In this embodiment, it should be noted that the third scene may be a working condition or environment in which the camera is in a specific energy state and the movement amplitude of the object in the captured picture is within a certain range. The third energy state may be the power level or charging state of the camera, which is used to determine the specific conditions of the third scene. The second working mode may be a low power consumption mode or a normal working mode, and the second working mode may be the same as or different from the first working mode. The third working state may be the working configuration of the camera in the third scene and the second working mode. The fourth scene may be a working condition or environment in which the camera is in the same energy state, but the movement amplitude of the object in the captured picture is smaller. The fourth working state may be the working configuration of the camera in the fourth scene and the second working mode, and may include a lower power consumption setting to adapt to the situation where the object movement amplitude is smaller. The first picture may be a picture captured by the camera in the third scene, in which the movement amplitude of the object is within the first range. The second picture may be a picture captured by the camera in the fourth scene, in which the movement amplitude of the object is within the second range, and the maximum value of the second range is less than the minimum value of the first range. The first range may be the movement amplitude of the object in the set camera capture picture, which may be divided into static, small movement, and large movement. The second range may be the movement amplitude of the object in the image captured by the set camera, which may be divided into stationary, small movement, and large movement. The maximum value of the second range is smaller than the minimum value of the first range.

[0067] In some implementations, the above-mentioned determining the target working state according to the target scenario and the target working mode includes:

[0068] When the target scene is the fifth scene and the target working mode is the normal working mode, determining the target working state to be the fifth working state;

[0069] When the target scene is the fifth scene and the target working mode is the low power consumption working mode, the target working state is determined to be the sixth working state; wherein the power consumption of the camera in the sixth working state is lower than the power consumption of the camera in the fifth working state.

[0070] In this embodiment, the camera first identifies whether the current target scene is the fifth scene, and determines whether the target working mode selected by the user is a normal working mode or a low power working mode. If the target working mode is the normal working mode, the target working state is determined to be the fifth working state. If the target working mode is the low power working mode, the target working state is determined to be the sixth working state. The camera automatically adjusts its working parameters, such as resolution, frame rate, working state of the communication module, working state of the infrared light board, etc., according to the determined working state to adapt to the current working mode. In the sixth working state, the power consumption of the camera is lower than that of the fifth working state, achieving energy-saving operation in the low power mode. In this way, the camera can optimize power consumption while maintaining the monitoring quality by adjusting the working state according to the working mode. When high-quality monitoring is not required, switching to low power mode can reduce energy consumption, and when high-quality monitoring is required, switching back to the normal working mode.

[0071] In this embodiment, it should be noted that the fifth scene can be the working environment of the camera under specific conditions, and this condition can include specific energy states, working hours or captured images, etc. The low-power working mode can be a suspend to RAM state (Suspend to RAM, STR). When the camera is in the STR state, the camera will store the working status data in the memory to ensure that the data is not lost. At this time, the power supply continues to power the most necessary devices such as the memory, and the power consumption of the camera is extremely low. The normal working mode can be a non-STR state, providing monitoring with higher performance than the STR state, which can be achieved by adjusting the resolution, etc. The fifth working state can be the working state when the camera is running in the normal working mode in the fifth scene, providing monitoring. The sixth working state can be the working state when the camera is running in the low-power working mode in the fifth scene, reducing power consumption to extend battery life or reduce energy consumption.

[0072] In some implementations, determining the target working state according to the target scenario and the target working mode includes:

[0073] When the target working mode is a normal working mode, obtaining a detection result of the camera on the target object; wherein the detection result is that the target object is detected or not detected; and the target object is an object that can be moved;

[0074] A target working state is determined according to the target scene and the detection result.

[0075] In this embodiment, the camera first identifies whether the current target working mode is a normal working mode. In the normal working mode, the camera detects the target object (the target object is an object in a movable position) and obtains the detection result. The target scene and the detection result are analyzed, and based on the analysis result, the camera determines the final working state to adapt to the current monitoring needs and energy conditions. In this way, the camera can dynamically adjust the working state according to the target working mode and the detection result of the target object, thereby realizing a more intelligent and responsive monitoring system. In addition, by detecting the presence or absence of the target object, the camera can decide whether the working state needs to be adjusted. This adjustment helps to optimize resource utilization and reduce power consumption while ensuring the quality of monitoring.

[0076] In this embodiment, it should be noted that the target object may be an object that can move within the monitoring range of the camera, such as a vehicle, a pedestrian, a non-motor vehicle, an animal, etc. The detection result may be the detection result of the target object by the camera, including detecting the target object or not detecting the target object.

[0077] In some implementations, the target working state may be determined based on the detection result of this embodiment.

[0078] In other implementations, the target working state may be determined through the settings of the mobile phone software.

[0079] In some implementations, the above-mentioned determining the target working state according to the target scene and the detection result includes:

[0080] When the target scene is the sixth scene and the detection result is that the target object is detected, determining that the target working state is the seventh working state;

[0081] When the target scene is the sixth scene and the detection result is that the target object is not detected, the target working state is determined to be the eighth working state; wherein the power consumption of the camera in the eighth working state is lower than the power consumption of the camera in the eighth working state.

[0082] In this embodiment, the camera first identifies whether the current target scene is the sixth scene, and detects whether there is a target object. If the detection result is "target object detected", the next step is to determine the seventh working state, at which time the camera may need to increase the resolution, increase the frame rate, or start other monitoring functions. If the detection result is "target object not detected", the next step is to determine the eighth working state, at which time the camera can reduce the resolution, reduce the frame rate, or turn off some unnecessary monitoring functions to reduce power consumption. In the eighth working state, the power consumption of the camera is lower than that of the seventh working state, because the eighth working state is designed to save energy when the target object is not detected. In this way, the camera can adjust its working state according to whether the target object is detected, thereby realizing intelligent power consumption management. When the target object is detected, the camera needs higher performance to monitor, and when the target object is not detected, the camera can reduce power consumption and save energy. This adjustment of the working state enables the camera to adapt to different monitoring scenarios, ensuring that sufficient monitoring capabilities are provided when needed, and reducing energy consumption when not needed.

[0083] In this embodiment, it should be noted that the sixth scene may be a working environment of the camera under specific conditions, and the conditions may include specific energy states, working hours, or captured images. The seventh working state may be a working state that the camera enters when a target object is detected. In this state, the camera operates at a higher performance to ensure that the target object can be effectively monitored. The eighth working state may be a working state that the camera enters when the target object is not detected, and in this state the camera reduces performance to reduce power consumption.

[0084] In some embodiments, the content of the above embodiment can be represented by and is not limited to Table 1. Among them, the camera is a solar camera, and the target scene is divided into energy state, working time, and acquisition picture. Specifically, the energy state includes charging and power level. The charging time period is 9:00-15:00, and the power level is divided into power>=95%, 95%>power>=60%, 60%>power>=20%, 20%>power>=5%, and power<5%. The working time is divided into day and night. The daytime time period is 6:00-14:00, and the night time period is 14:00-00:00, 00:00-6:00. The acquisition picture is divided into static, small movement and large movement according to the movement amplitude. Static means that the picture is still, small movement means slight changes, and large movement means that a moving body event is detected. Among them, the target working mode is divided into STR state (low power consumption state) and non-STR state (normal working state). Specifically, in the non-STR state, the presence of pedestrians, vehicles, non-motor vehicles, animals, and the awakening of mobile phone software in the scene is classified as an event, and the absence of pedestrians, vehicles, non-motor vehicles, animals, and the awakening of mobile phone software is classified as no event. The working state is controlled by adjusting the resolution of the camera, the frame rate of the camera, the working state of the camera's communication module (4G module, hereinafter referred to as 4G), and the working state of the camera's infrared light board.

[0085] Among them, the camera can only be in one of the non-STR state and the STR state. The conversion between the STR state and the non-STR state can be done in the following two ways: First, the conversion from the STR state to the non-STR state can be due to external events or user operations (which can include events and no events), which requires the device to wake up from the low-power state and start normal working state operation. The conversion from the non-STR state to the STR state can be due to the device not detecting activity for a period of time, automatically entering the low-power mode to save energy, or the user actively setting the device to standby mode. Second, the conversion between the STR state and the non-STR state can be when the storage space is full, to avoid data overflow and loss. The x in the table means that this situation does not exist. Table 1 is as follows:

[0086]

[0087]

[0088]

[0089]

[0090]

[0091] Reference Figure 2The camera control method embodiment of the present application provides a camera control device, the device comprising:

[0092] The acquisition module 201 is used to acquire a target scene and a target working mode corresponding to the camera; wherein the target scene is determined based on at least one of the following: the energy state of the camera, the working time of the camera, and the captured image of the camera; the target working mode is a low power working mode or a normal working mode;

[0093] A determination module 202, configured to determine a target working state according to the target scenario and the target working mode;

[0094] The control module 203 is used to control the camera to work in the target working state.

[0095] The control device of the camera in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or a device other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc. It can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0096] The camera control device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0097] The camera control device provided in the embodiment of the present application can achieve Figure 1 The various processes implemented by the method embodiment can achieve the same technical effect, and to avoid repetition, they will not be described here.

[0098] Alternatively, if Figure 3As shown, an embodiment of the present application further provides an electronic device 300, including a processor 301 and a memory 302, wherein the memory 302 stores programs or instructions that can be executed on the processor 301, and when the program or instructions are executed by the processor 301, the various steps of the above-mentioned display method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, they are not described here.

[0099] It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.

[0100] Figure 4 A schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application.

[0101] The electronic device 400 includes but is not limited to: a radio frequency unit 401, a network module 402, an audio output unit 403, an input unit 404, a sensor 405, a display unit 406, a user input unit 407, an interface unit 404, a memory 409, and a processor 410.

[0102] Those skilled in the art will appreciate that the electronic device 400 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 410 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 4 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.

[0103] The processor 410 is used for:

[0104] Obtaining a target scene and a target working mode corresponding to the camera; wherein the target scene is determined based on at least one of the following: the energy state of the camera, the working time of the camera, and the captured image of the camera; the target working mode is a low power working mode or a normal working mode;

[0105] Determining a target working state according to the target scenario and the target working mode;

[0106] The camera is controlled to operate in the target operating state.

[0107] In some implementations, the processor 410 is further configured to:

[0108] When the target scene is a first scene and the target working mode is a first working mode, determining the target working state to be a first working state; wherein the energy state of the first scene is a first energy state;

[0109] When the target scene is the second scene and the target operating mode is the first operating mode, the target operating state is determined to be the second operating state; wherein the energy state of the second scene is the second energy state, and the second energy state is lower than the first energy state; the power consumption of the camera in the second operating state is lower than the power consumption of the camera in the first operating state.

[0110] In some implementations, the processor 410 is further configured to:

[0111] When the target scene is the third scene and the target working mode is the second working mode, determining that the target working state is the third working state; wherein the energy state of the third scene is the third energy state, the acquisition screen is the first screen, and the movement amplitude of the object in the first screen is within the first range;

[0112] When the target scene is the fourth scene and the target working mode is the second working mode, the target working state is determined to be the fourth working state; wherein the energy state of the fourth scene is the third energy state, the captured screen is the second screen, the movement amplitude of the object in the second screen is within a second range, and the maximum value of the second range is less than the minimum value of the first range; the power consumption of the camera in the fourth working state is lower than the power consumption of the camera in the third working state.

[0113] In some implementations, the processor 410 is further configured to:

[0114] When the target scene is the fifth scene and the target working mode is the normal working mode, determining the target working state to be the fifth working state;

[0115] When the target scene is the fifth scene and the target working mode is the low power consumption working mode, the target working state is determined to be the sixth working state; wherein the power consumption of the camera in the sixth working state is lower than the power consumption of the camera in the fifth working state.

[0116] In some implementations, the processor 410 is further configured to:

[0117] When the target working mode is a normal working mode, obtaining a detection result of the camera on the target object; wherein the detection result is that the target object is detected or not detected; and the target object is an object that can be moved;

[0118] A target working state is determined according to the target scene and the detection result.

[0119] In some implementations, the processor 410 is further configured to:

[0120] When the target scene is the sixth scene and the detection result is that the target object is detected, determining that the target working state is the seventh working state;

[0121] When the target scene is the sixth scene and the detection result is that the target object is not detected, the target working state is determined to be the eighth working state; wherein the power consumption of the camera in the eighth working state is lower than the power consumption of the camera in the eighth working state.

[0122] In some embodiments, the target working state includes at least one of the following: the resolution of the camera; the frame rate of the camera; the working state of the communication module of the camera; the working state of the infrared light board of the camera.

[0123] The camera control device provided in the embodiment of the present application can achieve Figure 1 The various processes implemented by the method embodiment can achieve the same technical effect, and to avoid repetition, they will not be described here.

[0124] It should be understood that in the embodiment of the present application, the input unit 404 may include a graphics processor (Graphics Processing Unit, GPU) 4041 and a microphone 4042, and the graphics processor 4041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 406 may include a display panel 4061, and the display panel 4061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 407 includes a touch panel 4071 and at least one of other input devices 4072. The touch panel 4071 is also called a touch screen. The touch panel 4071 may include two parts: a touch detection device and a touch controller. Other input devices 4072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.

[0125] The memory 409 can be used to store software programs and various data. The memory 409 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 409 may include a volatile memory or a non-volatile memory, or the memory 409 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 409 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.

[0126] The processor 410 may include one or more processing units; optionally, the processor 410 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 410.

[0127] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned camera control method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0128] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.

[0129] In addition, an embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the camera control method embodiment as described above, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0130] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises one..." does not exclude the presence of other identical elements in the process, method, article or system including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0131] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0132] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0133] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A camera control method, characterized in that: The method comprises the following steps: Obtaining a target scene and a target working mode corresponding to the camera; wherein the target scene is determined based on at least one of the following: the energy state of the camera, the working time of the camera, and the captured image of the camera; the target working mode is a low power working mode or a normal working mode; Determining a target working state according to the target scenario and the target working mode; The camera is controlled to operate in the target operating state.

2. The method according to claim 1, characterized in that The target scenario is determined based on the energy state; and the target working state is determined according to the target scenario and the target working mode, including: When the target scene is a first scene and the target working mode is a first working mode, determining the target working state to be a first working state; wherein the energy state of the first scene is a first energy state; When the target scene is the second scene and the target operating mode is the first operating mode, the target operating state is determined to be the second operating state; wherein the energy state of the second scene is the second energy state, and the second energy state is lower than the first energy state; the power consumption of the camera in the second operating state is lower than the power consumption of the camera in the first operating state.

3. The method according to claim 1, characterized in that The target scene is determined based on the energy state and the acquisition picture; and the target working state is determined according to the target scene and the target working mode, including: When the target scene is the third scene and the target working mode is the second working mode, determining that the target working state is the third working state; wherein the energy state of the third scene is the third energy state, the acquisition screen is the first screen, and the movement amplitude of the object in the first screen is within the first range; When the target scene is the fourth scene and the target working mode is the second working mode, the target working state is determined to be the fourth working state; wherein the energy state of the fourth scene is the third energy state, the captured screen is the second screen, the movement amplitude of the object in the second screen is within a second range, and the maximum value of the second range is less than the minimum value of the first range; the power consumption of the camera in the fourth working state is lower than the power consumption of the camera in the third working state.

4. The method according to claim 1, characterized in that The determining the target working state according to the target scenario and the target working mode includes: When the target scene is the fifth scene and the target working mode is the normal working mode, determining the target working state to be the fifth working state; When the target scene is the fifth scene and the target working mode is the low power consumption working mode, the target working state is determined to be the sixth working state; wherein the power consumption of the camera in the sixth working state is lower than the power consumption of the camera in the fifth working state.

5. The method according to claim 1, wherein determining the target working state according to the target scenario and the target working mode comprises: When the target working mode is a normal working mode, obtaining a detection result of the camera on the target object; wherein the detection result is that the target object is detected or not detected; and the target object is an object that can be moved; A target working state is determined according to the target scene and the detection result.

6. The method according to claim 5, wherein determining the target working state according to the target scene and the detection result comprises: When the target scene is the sixth scene and the detection result is that the target object is detected, determining that the target working state is the seventh working state; When the target scene is the sixth scene and the detection result is that the target object is not detected, the target working state is determined to be the eighth working state; wherein the power consumption of the camera in the eighth working state is lower than the power consumption of the camera in the eighth working state.

7. The method according to claim 1, characterized in that The target working state includes at least one of the following: the resolution of the camera; the frame rate of the camera; the working state of the communication module of the camera; the working state of the infrared light board of the camera.

8. A camera control device, characterized in that: The device comprises: An acquisition module is used to acquire a target scene and a target working mode corresponding to the camera; wherein the target scene is determined based on at least one of the following: the energy state of the camera, the working time of the camera, and the captured image of the camera; the target working mode is a low power working mode or a normal working mode; A determination module, used to determine a target working state according to the target scenario and the target working mode; The control module is used to control the camera to operate in the target operating state.

9. A camera control device, characterized in that: The device comprises: a memory, a processor, and a computer processing program stored in the memory and executable on the processor, wherein the computer processing program is configured to implement the steps of the camera control method according to any one of claims 1 to 7.

10. A storage medium, characterized in that: The storage medium stores a computer processing program, and when the computer processing program is executed by the processor, the steps of the camera control method according to any one of claims 1 to 7 are implemented.