Electronic device and operation method therefor, and storage medium
By combining a battery-powered camera module and a low-power front-roll module in a video surveillance device, the problem of high power consumption of video surveillance equipment during continuous recording is solved, achieving complete recording of events and extending battery life.
Patent Information
- Application Number
- PCT/CN2024/071590
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-10
- Filing Date
- 2024-01-10
- Publication Date
- 2024-10-17
AI Technical Summary
Battery-powered video surveillance equipment consumes too much power when continuously recording, resulting in shortened battery life, and important information may be missed in event recording mode.
Design an electronic device that contains a battery-powered camera module and a low-power front-roll module to ensure that critical information is not missed by recording video footage before an event is detected and activating the high-power camera module for recording when an event occurs. .
It achieves complete recording of events without increasing battery consumption, avoids missing important information, extends battery life, and improves user experience.
Smart Images

Figure CN2024071590_17102024_PF_FP_ABST
Abstract
Description
Electronic device, operating method thereof, and storage medium
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application is based on the application with CN application number 202310401687.9 and application date April 10, 2023, and claims its priority. The disclosed content of the CN application is hereby introduced as a whole into this application. Technical Field
[0003] The present disclosure relates to the field of video surveillance, and more particularly, to an electronic device using a battery-powered camera, an operating method thereof, and a storage medium. Background Art
[0004] Video surveillance equipment using battery-powered cameras often has to make a trade-off between performance and power consumption. Continuous video recording (CVR) is desirable for providing comprehensive video surveillance data, but the power consumption required by CVR is often prohibitive for video surveillance equipment using battery-powered cameras. For this reason, an increasing number of video surveillance equipment using battery-powered cameras are being designed with event-based video recording (EVR). Unlike CVRs, which record video all day long, EVRs only record video clips associated with the detection of specific events (e.g., motion events or sound events). This results in EVR requiring much lower power consumption than CVRs, making it more suitable for video surveillance equipment using battery-powered cameras.
[0005] Summary of the Invention
[0006] According to a first aspect of the present disclosure, a method for operating an electronic device is provided, wherein the electronic device includes a battery, a camera module and a pre-roll module, the battery being configured to power the electronic device, the camera module being configured to capture video, and the pre-roll module being configured to capture video with lower power consumption than the camera module, wherein the method includes, when operating the electronic device in a first operating mode: making the electronic device be in a first state by default, in which the camera module is deactivated, and the pre-roll module is activated to capture and record video; in response to detecting an event, making the electronic device enter a second state from the first state, in which the camera module is activated to capture and record video; in response to a preset time period from the detection of the event, determining whether a current image frame of the video captured by the camera module contains a target; in response to determining that the current image frame of the video captured by the camera module contains the target, making the electronic device remain in the second state; in response to determining that the current image frame of the video captured by the camera module does not contain the target, making the electronic device enter the first state from the second state.
[0007] According to a second aspect of the present disclosure, an electronic device is provided, comprising: a battery configured to power the electronic device; a camera module configured to capture video; a pre-roll module configured to capture video with lower power consumption than the camera module; one or more processors; and a memory storing computer-executable instructions, which, when executed by the one or more processors, enable the one or more processors to perform the method of operating an electronic device according to the first aspect of the present disclosure.
[0008] According to a third aspect of the present disclosure, a non-volatile storage medium having computer-executable instructions stored thereon is provided. When the computer-executable instructions are executed by one or more processors, the one or more processors cause the one or more processors to perform the method of operating an electronic device according to the first aspect of the present disclosure. The electronic device includes a battery, a camera module and a front-scroll module, the battery is configured to power the electronic device, the camera module is configured to capture video, and the front-scroll module is configured to capture video with lower power consumption than the camera module.
[0009] Other features and advantages of the present disclosure will become more apparent from the following detailed description of exemplary embodiments of the present disclosure with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0011] The present disclosure can be more clearly understood from the following detailed description with reference to the accompanying drawings, in which:
[0012] FIG1 is a schematic block diagram illustrating a non-limiting example system on which one or more embodiments of the present disclosure may be implemented, the system including an electronic device according to some embodiments of the present disclosure;
[0013] FIG2 is a flow chart illustrating a first operating mode of an electronic device according to some embodiments of the present disclosure;
[0014] 3 is a flow chart illustrating a second operating mode of an electronic device according to some embodiments of the present disclosure;
[0015] 4 is a flowchart illustrating a second operation mode of an electronic device according to further embodiments of the present disclosure;
[0016] 5 is a flowchart illustrating a third operating mode of the electronic device according to some embodiments of the present disclosure;
[0017] 6 is a flow chart illustrating a fourth operating mode of the electronic device according to some embodiments of the present disclosure;
[0018] 7 is a flowchart illustrating a fifth operating mode of the electronic device according to some embodiments of the present disclosure;
[0019] FIG8 is a schematic diagram illustrating a non-limiting example mode switching mechanism of an electronic device according to some embodiments of the present disclosure.
[0020] Note that in the embodiments described below, the same reference numerals are sometimes used in common across different drawings to denote the same parts or parts having the same functions, and their repeated descriptions are omitted. In this specification, similar reference numerals and letters are used to denote similar items. Therefore, once an item is defined in one drawing, it need not be further discussed in subsequent drawings.
[0021] To facilitate understanding, the positions, sizes, and ranges of various structures shown in the drawings and the like may not always represent actual positions, sizes, and ranges. Therefore, the disclosed invention is not limited to the positions, sizes, and ranges disclosed in the drawings and the like. Furthermore, the drawings are not necessarily drawn to scale, and some features may be exaggerated to illustrate details of specific components. DETAILED DESCRIPTION
[0022] Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. It should be noted that the relative arrangements of components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present disclosure unless otherwise specifically stated.
[0023] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the present disclosure, its application, or use. That is, the hash engines described herein are presented in an exemplary manner to illustrate various embodiments of the circuitry of the present disclosure and are not intended to be limiting. Those skilled in the art will appreciate that these are merely exemplary, not exhaustive, ways to implement the present disclosure.
[0024] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered part of the specification.
[0025] EVR devices can save power by keeping recording and / or processing components, normally in high-power states, in a low-power state until an event is detected. However, after detecting an event, these recording and / or processing components must first transition from a low-power state to a high-power state before normal operation. This delay may cause the video clips associated with the event recorded by the EVR device to omit content related to the significant activity that caused the EVR device to detect the event. Furthermore, since EVR devices only begin recording after an event is detected, significant activity may have occurred before the EVR device detected the event and would not be recorded by the EVR device. In contrast, CVR devices, which record 24 / 7, do not miss critical information. However, CVR devices consume excessive power and generate a large amount of junk data that users are not interested in. This consumes storage space and makes it difficult for users to find data of interest.
[0026] The present disclosure provides an electronic device that can be powered by a battery and includes a camera module configured to capture video and a pre-roll module configured to capture video with lower power consumption than the camera module. The camera module can be configured to record based on an event, and the pre-roll module can record in a loop in a low-power mode alone when the camera module is powered off, thereby being able to attach a video clip recorded by the pre-roll module during a period of time before the event is detected before the video clip associated with the detected event recorded by the camera module, thereby allowing the user to more clearly understand the ins and outs of the event. Such an electronic device neither consumes too much power nor generates a large amount of junk data, nor is it easy to miss key information, thereby extending the battery life and improving the user experience while satisfying user needs.
[0027] FIG1 shows a schematic block diagram of a non-limiting example system on which one or more embodiments of the present disclosure may be implemented, the system comprising an electronic device 100 according to some embodiments of the present disclosure, and further comprising (one or more) networks 130, (one or more) servers 140, and (one or more) user devices 150. The electronic device 100 may communicate with the server 140 via the network 130, for example, data may be transmitted to the server 140 for processing and / or storage. The electronic device 100 may also communicate with the user device 150 via the network 130, for example, it may receive user commands from the user device 150 or transmit data to the user device 150 for the user to view. For the purpose of non-limiting illustration, in an example application scenario, the electronic device 100 may be a smart doorbell, the user device 150 may be a user terminal such as a user's smartphone or personal computer, and the server 140 may be a cloud platform.
[0028] As shown in FIG1 , the electronic device 100 may include a battery 1022, a camera module 104, and a pre-roll module 106. The battery 1022 is configured to power the electronic device 100. The camera module 104 is configured to capture video. The pre-roll module 106 is configured to capture video with lower power consumption than the camera module 104. For example, the camera module 104 may include a high-power recording chip and an image sensor, and the pre-roll module 106 may include a low-power recording chip and an image sensor. The electronic device 100 can support the function of switching each of its modules separately, so that different power consumption levels can be achieved by performing different power-on and power-off controls on each module in different operating modes.
[0029] In some embodiments, the electronic device 100 may include a power supply module 102. In addition to a battery 1022, the power supply module 102 may also include a power supply circuit 1024. The power supply circuit 1024 may be configured to be connected to an external power source to use power from the external power source to power the electronic device 100. In some examples, when the battery 1022 is a rechargeable battery, the power supply circuit 1024 may also be configured to charge the battery 1022 using power from the external power source.
[0030] In some embodiments, the electronic device 100 may include an event detection module 108. By collaborating with the camera module 104, the electronic device 100 may possess EVR capabilities. The event detection module 108 may be configured to detect different types of events. In the embodiment shown in FIG1 , the event detection module 108 includes a passive infrared (PIR) module 1082, a motion detection (MD) module 1084, and a human detection module 1086. For example, the PIR module 1082 may detect PIR events by detecting changes in infrared radiation levels. The MD module 1084 may detect motion events by comparing pixel changes between consecutive image frames in conjunction with a motion detection algorithm. The human detection module 1086 may detect human events by analyzing image frames for human figures using intelligent algorithms, such as image recognition or classification algorithms. These are merely non-limiting example implementations of the PIR module 1082, the MD module 1084, and the human detection module 1086. It will be appreciated that any suitable method, now known or later developed, may also be employed to detect events. In some examples, the event detection sensitivity level of the event detection module 108 is configurable, for example, it can be configured among three levels: "high", "medium", and "low", and can default to "medium". Alternatively, in some embodiments, the electronic device 100 itself may not be equipped with the event detection module 108, but instead communicates with an event detection device external to the electronic device 100. When the external event detection device detects an event, it can notify the electronic device 100 to activate the camera module 104 to start recording.
[0031] In some embodiments, the electronic device 100 may include an object detection module 110, which may be configured to detect whether a current image frame of a video captured by the camera module 104 contains an object (e.g., a person, pet, object, etc.). For example, the object detection module 110 may analyze whether an image frame contains an object using an intelligent algorithm, such as an image recognition or classification algorithm. Through the collaboration between the object detection module 110 and the camera module 104, the electronic device 100 can fully record an event. For example, after the camera module 104 begins recording in response to detecting an event, the object detection module 110 may periodically determine whether the current image frame of the video captured by the camera module 104 contains an object. If the current image frame is determined to contain an object, the camera module 104 may continue recording; if the current image frame is determined not to contain an object, the camera module 104 may stop recording. In this way, the camera module 104 can fully record the entire event. Alternatively, in some embodiments, the electronic device 100 may not be equipped with the object detection module 110 itself, but may communicate with an object detection device external to the electronic device 100. The electronic device 100 may transmit the image frames of the video captured by the camera module 104 to an external target detection device, and the target detection device may notify the electronic device 100 to deactivate the camera module 104 to stop recording when determining that the image frames do not contain a target.
[0032] In some embodiments, the electronic device 100 may include a local storage module 112, which may be configured to locally store videos recorded by the camera module 104 and / or the pre-roll module 106. The local storage module 112 may, for example but not limited to, take the form of an external memory card (Transflash, TF) or an embedded multimedia card (Embedded multimedia card, eMMC). Alternatively, in other embodiments, the electronic device 100 itself may not be deployed with a local storage module 112, but may communicate with a local storage device external to the electronic device 100. Additionally or alternatively, in some embodiments, the electronic device 100 may also store the videos recorded by the camera module 104 and / or the pre-roll module 106 in the cloud via the communication module 114 of the electronic device 100. For example, the server 140 may be a cloud platform that provides cloud storage services.
[0033] In some embodiments, the electronic device 100 may include peripheral devices 116 such as, but not limited to, speakers, microphones, etc., to provide additional functions. In some embodiments, in order to achieve better video effects, the electronic device 100 may also have a video capture auxiliary function. For example, the electronic device 100 may include a fill light module 118 for fill light during video capture. The fill light module 118 can, for example, provide illumination of various brightness levels of one or more wavelengths or wavelength ranges. Alternatively, in some embodiments, the electronic device 100 itself may not be deployed with a fill light module 118, but may communicate with a fill light device external to the electronic device 100. The external fill light device may perform fill light in response to receiving a fill light request from the electronic device 100.
[0034] The electronic device 100 may also include one or more processors 120 and a memory 122 storing computer-executable instructions that, when executed by the processor 120, cause the processor 120 to perform the method for operating the electronic device 100. The processor 120 may, for example, be a central processing unit (CPU) of the electronic device 100. The processor 120 may be any type of general-purpose processor, or may be a processor specifically designed for operating the electronic device 100, such as an application-specific integrated circuit ("ASIC"). The memory 122 may include various computer-readable media accessible by the processor 120. In various embodiments, the memory 122 described herein may include volatile and non-volatile media, removable and non-removable media. For example, the memory 122 may include any combination of random access memory ("RAM"), dynamic RAM ("DRAM"), static RAM ("SRAM"), read-only memory ("ROM"), flash memory, cache memory, and / or any other type of non-transitory computer-readable media. The memory 122 may store instructions that, when executed by the processor 120, cause the processor 120 to perform the method for operating the electronic device 100.
[0035] The electronic device 100 may have one or more operating modes. A method for operating the electronic device 100 according to various embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings.
[0036] (1) First operating mode (long online mode)
[0037] When the electronic device 100 is operated in the first operating mode, the electronic device 100 can be operated by the following method: the electronic device 100 is placed in a first state by default, in which the camera module 104 is deactivated, and the pre-roll module 106 is activated to capture and record video; in response to detecting an event, the electronic device 100 enters a second state from the first state, in which the camera module 104 is activated to capture and record video; in response to a preset time period (for example, X seconds, where X can be configured by the user) elapses from the detection of the event, determining whether the current image frame of the video captured by the camera module 104 contains a target (for example, a person, a pet, an object, etc.); in response to determining that the current image frame of the video captured by the camera module 104 contains the target, the electronic device 100 remains in the second state; in response to determining that the current image frame of the video captured by the camera module 104 does not contain the target, the electronic device 100 enters the first state from the second state. In some examples, after the electronic device 100 remains in the second state in response to determining that the current image frame of the video captured by the camera module 104 contains the object, it may continue to wait for a preset time period to re-determine whether the current image frame of the video captured by the camera module 104 contains the object. In this way, whether the condition for stopping recording by the camera module 104 is met is confirmed every preset time period.
[0038] That is, in the first operating mode, when there are no events, the pre-roll module 106 can record in a loop in a low-power mode; after an event is detected, the camera module 104 will continue recording until the object is no longer in the frame. This first operating mode is also referred to herein as the long-line mode.
[0039] In some examples, the video recorded by the camera module 104 and a preset length of video recorded by the pre-roll module 106 immediately before the event is detected can be stored locally (e.g., local storage module 112) and / or in the cloud (e.g., server 140). Assuming that the pre-roll module 106 records 5 seconds of video before the event is detected and the camera module 104 records a total of N seconds of video associated with the event, (N+5) seconds of video can ultimately be stored locally and / or in the cloud. In some examples, a minimum recording time for the camera module 104 after the event is detected can be set, for example, the camera module 104 can be required to record at least 10 seconds of video.
[0040] In some examples, in response to detecting an event, causing the electronic device 100 to enter the second state from the first state may include: detecting whether a second type of event, different from the first type, occurs in response to detecting the first type of event, and causing the electronic device 100 to enter the second state from the first state in response to detecting the second type of event. In some examples, in response to detecting an event, causing the electronic device 100 to enter the second state from the first state may include: detecting whether a second type of event, different from the first type, occurs in response to detecting the first type of event, and detecting whether a third type of event, different from the first type and the second type, occurs in response to detecting the second type of event and detecting the third type of event, causing the electronic device 100 to enter the second state from the first state. In other words, multiple verifications may be provided for event detection to reduce the probability of false positives. The first, second, and third types of events may, for example, be selected from the group consisting of a PIR event, a motion event, a human event, and a sound event. In some examples, the first type of event is a PIR event, and the second and third types of events are selected from the group consisting of a motion event and a human event. In addition, when the electronic device 100 has multiple event detection modules, for example, including a PIR module 1082, an MD module 1084 and a human shape detection module 1086 as shown in Figure 1, the PIR module 1082 can be activated by default while the MD module 1084 and the human shape detection module 1086 can be deactivated by default to save power, and the MD module 1084 and the human shape detection module 1086 can be activated again after the PIR module 1082 detects a PIR event to perform multiple verifications.
[0041] In the first operating mode, the electronic device 100 may support not only event-based passive wakeup but also remote active wakeup. In some examples, when operating in the first operating mode, the electronic device 100 may, in response to receiving a wakeup command from a user device 150 communicating with the electronic device 100, activate the camera module 104 to capture video, and transmit the video stream captured by the camera module 104 to the user device 150 for user viewing. The wakeup command may be a user's request to view the current surveillance image of the electronic device 100 in real time. In response to the user's request to view, the communication module 114 may transmit the video stream captured by the camera module 104 in real time to the user device 150. The wakeup command may also be a user's request to playback past surveillance images of the electronic device 100. In response to the user's request to playback, the communication module 114 may stream the video previously captured by the camera module 104 (e.g., stored in the local storage module 112) to the user device 150. Regardless of whether the electronic device 100 is in the first state or the second state, the electronic device 100 may support remote active wakeup.
[0042] FIG2 exemplifies the operational flow of electronic device 100 in a first operating mode, in which electronic device 100 supports forward scrolling, event-based passive wakeup, and remote active wakeup. Specifically, electronic device 100 defaults to the first state, where the forward scroll module continuously captures and records video (e.g., low-resolution video). In one aspect, upon detecting an event, the camera module begins capturing and recording video (e.g., high-resolution video). Next, at predetermined intervals, the camera module determines whether the current image frame captured by the camera module contains an object. If so, the camera module continues capturing and recording video; if not, the camera module stops capturing and recording video. In another aspect, upon receiving a wake-up command, such as a user's request to view the video, the camera module begins capturing and streaming the video. Upon determining to terminate streaming, such as receiving a user's request to end viewing, the camera module stops capturing and streaming the video. In some examples, the forward scroll module may continue capturing and recording video regardless of whether the electronic device 100 is in the first or second state. In other examples, the forward scroll module may continue capturing and recording video when the electronic device 100 is in the first state and pause operations when the electronic device 100 is in the second state.
[0043] (2) Second operating mode (normal power mode)
[0044] When the electronic device 100 is operated in the second operating mode, the electronic device 100 can be operated by the following method: the electronic device 100 is placed in the third state by default, in which the pre-roll module 106 is deactivated, the camera module 104 is activated to capture video, and the video of the most recent preset length (for example, X seconds, where X can be configured by the user) is dynamically cached; in response to detecting an event, the electronic device 100 enters the fourth state from the third state, in which the camera module 104 is activated to capture and record video; in response to a preset time period elapsed since the event was detected, determining whether the current image frame of the video captured by the camera module 104 contains the target; in response to determining that the current image frame of the video captured by the camera module 104 contains the target, the electronic device 100 remains in the fourth state; in response to determining that the current image frame of the video captured by the camera module 104 does not contain the target, the electronic device 100 enters the third state from the fourth state. In some examples, after the electronic device 100 remains in the fourth state in response to determining that the current image frame of the video captured by the camera module 104 contains the object, it may continue to wait for a preset time period to re-determine whether the current image frame of the video captured by the camera module 104 contains the object. In this way, whether the condition for stopping recording by the camera module 104 is met is confirmed every preset time period.
[0045] That is, in the second operating mode: when there are no events, the camera module 104 can continue recording, but not all recordings are saved. Instead, only the most recent video segment is dynamically cached, for example, only the last 5 seconds of the main stream. After detecting an event, the camera module 104 will continue recording until the target is no longer in the frame. Because the camera module 104 continues recording in the second operating mode regardless of whether an event is detected, in some examples, when operating the electronic device 100 in the second operating mode, the user can be notified via the user device 150 communicating with the electronic device 100 to connect the electronic device 100 to an external power source to power the electronic device 100 via the external power source. This second operating mode is also referred to herein as the constant power mode.
[0046] In some examples, the video recorded by the camera module 104 and the video dynamically cached immediately before the event is detected can be stored locally (e.g., local storage module 112) and / or in the cloud (e.g., server 140). Assuming the most recent 5 seconds of the main stream are dynamically cached, and the camera module 104 has recorded a total of N seconds of video associated with the event, (N+5) seconds of video can ultimately be stored locally and / or in the cloud. In some examples, a minimum recording time for the camera module 104 after detecting an event can be set, for example, requiring the camera module 104 to record at least 10 seconds of video.
[0047] In the second operating mode, event detection can also be configured with multiple verifications, as in the first operating mode, to reduce the probability of false alarms. Furthermore, in the second operating mode, in addition to supporting passive wakeup due to events, the electronic device 100 can also support remote active wakeup. In some examples, when operating in the second operating mode, the electronic device 100 can activate the camera module 104 to capture video in response to receiving a wakeup command from a user device 150 in communication with the electronic device 100, and transmit the video stream captured by the camera module 104 to the user device 150 for user viewing. The wakeup command can be a user's request to view the current surveillance image of the electronic device 100 in real time. In response to the user's request, the communication module 114 can transmit the video stream captured in real time by the camera module 104 to the user device 150. The wakeup command can also be a user's request to playback past surveillance images of the electronic device 100. In response to the user's request, the communication module 114 can stream the video previously captured by the camera module 104 (e.g., stored in the local storage module 112) to the user device 150.
[0048] Figure 3 illustrates an exemplary operation flow of the electronic device 100 in the second operating mode. In this state, except for the forward scroll function being disabled, all functions and peripheral devices of the electronic device 100 remain in normal operation. Both event-passive wakeup and remote-activated wakeup are supported. Specifically, the electronic device 100 defaults to the third state, where the camera module captures video and dynamically caches the most recent video of a preset duration. On the one hand, upon detecting an event, the camera module begins capturing and recording video. Next, at preset time intervals, it determines whether the current image frame captured by the camera module contains an object. If so, the camera module continues capturing and recording video; if not, the camera module stops recording video. On the other hand, upon receiving a wake-up command, such as a user's request to view, the camera module begins capturing and streaming video. Upon determining to end streaming, such as upon receiving a user's request to end viewing, the camera module stops streaming video.
[0049] There is another implementation of the second operating mode (constant power mode). Specifically, the electronic device 100 can be placed in a third state by default, in which the pre-roll module 106 is deactivated, the camera module 104 is activated to continuously capture and record video, and the video recorded by the camera module is locally stored (e.g., via the local storage module 112). In response to detecting an event, a tag is added to the image frame corresponding to the moment the event was detected in the locally stored video to indicate the occurrence of the event. For example, in response to a preset time period elapsed since the event was detected, a determination can be made as to whether the current image frame of the video captured by the camera module 104 contains an object. In response to a determination that the current image frame of the video captured by the camera module 104 does not contain the object, a tag is added to the current image frame in the locally stored video to indicate the end of the event. In some examples, in response to determining that the current image frame of the video captured by the camera module 104 contains the object, a predetermined time period can be waited to re-determine whether the current image frame of the video captured by the camera module 104 contains the object. In this way, whether the condition for adding a tag indicating the end of the event is met is confirmed every predetermined time period.
[0050] Figure 4 illustrates the operational flow of electronic device 100 in this implementation of the second operating mode. In this state, all functions and peripherals of electronic device 100 remain in normal operation, except for the forward scroll function. Both event-based and remote-based active wakeup are supported. Specifically, electronic device 100 defaults to the third state, with the camera module continuously capturing and recording video and locally storing the recorded video. Upon detecting an event, the image frame corresponding to the moment of detection is tagged in the locally stored video to indicate the occurrence of the event. Next, at predetermined intervals, the camera module determines whether the current image frame contains an object. If not, the camera module tagged the current image frame in the locally stored video to indicate the end of the event. Upon receiving a wakeup command, such as a user request to view, the camera module begins capturing and streaming video. Upon determining to terminate streaming, such as receiving a user request to end viewing, the camera module stops streaming video.
[0051] (3) The third operating mode (sleep wake-up mode)
[0052] When the electronic device 100 is operated in the third operating mode, the electronic device 100 can be operated by the following method: the electronic device 100 is placed in the fifth state (sleep-keep state) by default, in which the camera module 104 and the pre-roll module 106 are deactivated; in response to detecting an event, the electronic device 100 enters the sixth state from the fifth state, in which the camera module 104 is activated to capture and record video; in response to a preset time period elapsed since the event was detected, it is determined whether the current image frame of the video captured by the camera module 104 contains the target; in response to determining that the current image frame of the video captured by the camera module 104 contains the target, the electronic device is maintained in the sixth state; in response to determining that the current image frame of the video captured by the camera module 104 does not contain the target, or in response to determining that the electronic device 100 remains in the sixth state for more than a preset time threshold, the electronic device 100 enters the fifth state from the sixth state. In some examples, after the electronic device 100 remains in the sixth state in response to determining that the current image frame of the video captured by the camera module 104 contains the target, it can continue to wait for a preset time period to re-determine whether the current image frame of the video captured by the camera module 104 contains the target. In this way, whether the condition for the camera module 104 to stop recording is met is confirmed every preset time period. In addition, the maximum recording time after the camera module 104 detects an event (i.e., the preset time threshold) can be set. For example, the camera module 104 can be required to record a maximum of Y seconds (Y can be configured by the user, such as Y=30) before stopping recording.
[0053] That is, in the third operating mode: when there are no events, neither the camera module 104 nor the pre-roll module 106 operates; upon detecting an event, the camera module 104 continues recording until the object is no longer visible in the image or until a preset duration threshold is exceeded. Because in the third operating mode, the electronic device 100 remains in the sleep-keep-alive state unless awakened, this third operating mode is also referred to herein as the sleep-wake mode.
[0054] In some examples, when operating the electronic device 100 in the third operating mode, after the electronic device 100 enters the fifth state from the sixth state, the electronic device 100 may be maintained in the fifth state for a preset silent period, during which no events are detected (e.g., the event detection module 108 is deactivated). The length of the silent period can be specifically configured as needed, for example, within 30 minutes, or within 15 minutes, or within 5 minutes, for example, 1 minute.
[0055] In the third operating mode, event detection can also be configured with multiple verifications, as in the first operating mode, to reduce the probability of false alarms. Of course, to save power, it is also possible to detect only one or a few types of events, for example, activating only the PIR module 1082 while activating the MD module 1084 and the human detection module 1086. Furthermore, in the third operating mode, the electronic device 100 can support both active remote wakeup and passive event wakeup. The electronic device 100 can support active remote wakeup during non-silent periods and not during silent periods. In other examples, the electronic device 100 can support active remote wakeup during both silent and non-silent periods. For example, during the preset silent period, in response to receiving a wakeup command from a user device 150 communicating with the electronic device 100, the camera module 104 can be activated to capture video, and the video stream captured by the camera module 104 can be transmitted to the user device 150 for viewing by the user. The embodiments regarding the wakeup command are similar to those described above and will not be further described here.
[0056] Figure 5 illustrates the operational flow of the electronic device 100 in the third operating mode. In this mode, the electronic device 100 does not support forward scrolling but supports event-based passive wakeup and remote active wakeup. Specifically, the electronic device 100 defaults to the fifth state, i.e., sleep-keep-alive mode. In one aspect, upon detecting an event during a non-silent period, the camera module begins capturing and recording video. Subsequently, while the camera module captures and records video for a predetermined duration, the camera module determines whether the current image frame captured by the camera module contains an object at predetermined intervals. If the object is present, the camera module continues capturing and recording video; otherwise, the camera module stops capturing and recording video. Furthermore, upon receiving a wakeup command, such as a user request to view video, the camera module begins capturing and streaming video. Upon determining to terminate streaming, such as receiving a user request to end viewing, the camera module stops capturing and streaming video.
[0057] (4) Fourth operating mode (power saving mode)
[0058] When operating the electronic device 100 in the fourth operating mode, the electronic device 100 can be operated as follows: the electronic device is placed in a seventh state by default, in which the camera module 104 is deactivated, the pre-scroll module 106 is deactivated, and no events are detected (for example, the event detection module 108 is deactivated); in response to receiving a wake-up command from a user device 150 communicating with the electronic device 100, the electronic device 100 enters an eighth state from the seventh state, in which the camera module 104 is activated to capture video, and the video stream captured by the camera module 104 is transmitted to the user device 150 for viewing by the user. The embodiment of the wake-up command is similar to the above and will not be repeated here.
[0059] That is, in the fourth operating mode, the electronic device 100 does not support forward scrolling or passive wakeup by an event, but supports remote active wakeup. Since in the fourth operating mode, the electronic device 100 remains in a dormant keep-alive state unless actively woken up by the user, this fourth operating mode has lower power consumption than the first three modes and is also referred to as a power saving mode herein.
[0060] Figure 6 illustrates an exemplary operation flow of electronic device 100 in the fourth operating mode. Specifically, electronic device 100 defaults to the seventh state, i.e., sleep mode. Upon receiving a wake-up command, such as a user's request to view, the camera module begins capturing and streaming video. Upon determining to terminate streaming, such as receiving a user's request to end viewing, the camera module ceases capturing and streaming video.
[0061] (5) Fifth operating mode (low power mode)
[0062] When the electronic device 100 is operated in the fifth operating mode, the electronic device 100 can be operated by the following method: the electronic device 100 is placed in a ninth state by default, in which the camera module 104 is deactivated, the pre-roll module 106 is deactivated, no events are detected (e.g., the event detection module 108 is deactivated), and the peripheral devices 116 of the electronic device 100 are operated in a low power consumption mode (e.g., the output volume of the speaker is lowered, etc.); in response to receiving a wake-up command from a user device 150 communicating with the electronic device 100, the electronic device 100 is caused to enter a tenth state from the ninth state, in which the camera module 104 is activated to capture video while disabling the video capture auxiliary function (e.g., deactivating the fill light module 118), and the video stream captured by the camera module 104 is transmitted to the user device 150 for user viewing. The embodiment of the wake-up command is similar to the above and will not be repeated here.
[0063] That is, in the fifth operating mode, the electronic device 100 does not support forward scrolling or passive wakeup due to events, but supports remote active wakeup. Since in the fifth operating mode, the electronic device 100 remains in a dormant state unless actively awakened by the user, and further disables the video capture auxiliary function and operates peripheral devices in a low-power mode based on the power saving mode, such a fifth operating mode has lower power consumption than the power saving mode, and is also referred to as the low-power mode in this article.
[0064] FIG7 illustrates an exemplary operation flow of the electronic device 100 in the fifth operating mode. Specifically, the electronic device 100 defaults to the ninth state, where the electronic device 100 is in sleep mode and peripheral devices are operating at low power consumption. Upon receiving a wake-up command, such as a user request to view, the camera module begins capturing and streaming video, but disables the video capture auxiliary function during video capture. Upon determining to terminate streaming, such as receiving a user request to end viewing, the camera module ceases capturing and streaming video.
[0065] (6) Sixth operating mode (no power mode)
[0066] When the electronic device 100 is operated in the sixth operating mode, the electronic device 100 can be operated by the following method: the electronic device 100 is placed in the eleventh state, in which the camera module 104 is deactivated, the front scroll module 106 is deactivated, events are not detected (for example, the event detection module 108 is deactivated), and a wake-up command from a user device 150 that communicates with the electronic device 100 is not responded to (for example, the communication module 114 is deactivated).
[0067] That is, in the sixth operating mode, the electronic device 100 does not support forward scrolling, nor does it support event passive wakeup and remote active wakeup. This sixth operating mode is applied to the situation where the electronic device 100 is substantially out of power, and is also referred to herein as the no-power mode.
[0068] (7) Seventh operation mode (remote shutdown mode)
[0069] The electronic device 100 may also be operated by the following method: in response to receiving a power-off command from a user device 150 communicating with the electronic device 100, the electronic device 100 is switched to the seventh operating mode. When operating the electronic device 100 in the seventh operating mode, in addition to allowing the electronic device 100 to communicate with the user device 150, the electronic device 100 is deactivated; in response to receiving a power-on command from the user device 150, the electronic device 100 is switched back to the default operating mode (e.g., the first operating mode (long-line mode), the second operating mode (constant power mode), the third operating mode (sleep-wake mode), or the fourth operating mode (power saving mode)), or the operating mode in which the electronic device 100 was before being remotely shut down. In some examples, it may be preferable that the default operating mode be configured as the first operating mode (long-line mode).
[0070] That is, in the seventh operating mode, the electronic device 100 does not support forward scrolling, event-based passive wakeup, or remote active wakeup. At this point, even if the user wants to remotely wake up the electronic device 100, they will be informed that the electronic device 100 is powered off and needs to be powered on first. This seventh operating mode is also referred to herein as the remote power-off mode.
[0071] (8) The eighth operating mode (button shutdown mode)
[0072] The electronic device 100 can also be operated by the following method: in response to a key-press power-off operation at the electronic device 100, the electronic device 100 is switched to the eighth operating mode. When the electronic device 100 is operated in the eighth operating mode, the electronic device 100 is deactivated; in response to a key-press power-on operation at the electronic device 100, the electronic device 100 is switched back to the default operating mode (for example, the first operating mode (long online mode), the second operating mode (normal power mode), the third operating mode (sleep wake-up mode) or the fourth operating mode (power saving mode)), or the operating mode in which the electronic device 100 was before being shut down by a key. In some examples, it may be preferable that the default operating mode be configured as the first operating mode (long online mode). Such an eighth operating mode is also referred to herein as a key-press power-off mode. In the key-press power-off mode, only key-press power-on is supported and remote power-on is not supported.
[0073] The mode switching mechanism of the electronic device 100 is described below with reference to FIG. 8 .
[0074] In some embodiments, in response to the charge of the battery 1022 of the electronic device 100 being reduced to or below a first charge threshold, the electronic device 100 is switched from the current operating mode to a fourth operating mode (power saving mode). In some embodiments, in response to the charge of the battery 1022 of the electronic device 100 being reduced to or below a second charge threshold, the electronic device 100 is switched from the current operating mode to a fifth operating mode (low power mode), wherein the first charge threshold is higher than the second charge threshold. In some embodiments, in response to the charge of the battery 1022 of the electronic device 100 being reduced to or below a third charge threshold, the electronic device 100 is switched from the current operating mode to a sixth operating mode (no power mode), wherein the second charge threshold is higher than the third charge threshold. In the non-limiting example of Figure 8, the first charge threshold is set to 20%, the second charge threshold is set to 10%, and the third charge threshold is set to 5%. In some embodiments, after a mode switch occurs due to reduced power, in response to determining that the electronic device 100 is connected to an external power source for charging, the electronic device 100 can be switched back to the previous operating mode, or switched back to the default operating mode (for example, the first operating mode (long-line mode), the second operating mode (constant power mode), the third operating mode (sleep wake-up mode), or the fourth operating mode (power saving mode)). In some examples, switching the electronic device 100 back to the previous operating mode can be preferable to improve the user experience.
[0075] For example, for the normal power mode, long online mode, and sleep wake-up mode, the user can be reminded (for example, by sending a notification to the user device 150 via the communication module 114) to switch to the power saving mode when the battery power of the electronic device 100 is less than or equal to 20%. If the configuration command for the user to switch to the power saving mode is not received within a certain period of time (for example, 5 seconds), the electronic device 100 can automatically switch to the power saving mode, and can also remind the user to charge the electronic device 100. If the user starts to charge the electronic device 100, the electronic device 100 can automatically switch back to the operating mode previously configured by the user. For example, when the electronic device 100 is in the long online mode and automatically switches to the power saving mode because the battery power is less than 20%, then in response to the user starting to charge the electronic device 100, the electronic device 100 can automatically switch back to the long online mode.
[0076] If the user does not charge the electronic device 100, the electronic device 100 automatically switches to the low power mode when the battery level is less than or equal to 10%. If the user starts charging the electronic device 100 thereafter, the electronic device 100 can automatically switch back to the operating mode previously configured by the user.
[0077] If the user has not yet charged the electronic device 100, the electronic device 100 automatically switches to the no-power mode when the battery level is less than or equal to 5%. If the user then starts charging the electronic device 100, the electronic device 100 can automatically switch back to the operating mode previously configured by the user.
[0078] It is understandable that in Figure 8, some mode transitions are omitted for clarity and simplicity, but this does not mean that these mode transitions are excluded. For example, the scenario where the battery-free mode automatically switches back to the user's previously configured operating mode after charging is depicted only when the previously configured operating mode is the constant power mode, while the scenarios where the previously configured operating mode is the long-line mode, the sleep-wake-up mode, and the power-saving mode are omitted. However, this does not mean that the latter three scenarios are excluded.
[0079] Referring to Figure 8, regarding the switching between the long online mode (first operating mode) and the constant power mode (second operating mode), the electronic device 100 can be switched from the constant power mode (second operating mode) to the long online mode (first operating mode) in response to one of the following situations: receiving a command from the user device 150 communicating with the electronic device 100 to stop streaming the video (for example, remote viewing ends), not receiving a command from the user device 150 exceeds a preset time threshold (for example, no operation timeout), determining that the current image frame of the video captured by the camera module 104 does not contain the target (for example, sleep after the alarm capture is completed), receiving a configuration command from the user device 150 to configure the electronic device to the long online mode (first operating mode), and entering the configuration mode for selecting the operating mode of the electronic device 100 after pressing the button to turn on the power to select the long online mode (first operating mode). The electronic device 100 can also be switched from the long-online mode (first operating mode) to the constant-power mode (second operating mode) in response to one of the following situations: receiving a command from the user device 150 instructing streaming of the video (for example, a remote viewing / playback request), detecting an event (for example, a local alarm trigger), or receiving a configuration command from the user device 150 instructing to configure the electronic device 100 to the constant-power mode (second operating mode).
[0080] Regarding switching between the long-line mode (first operating mode) and the sleep-wake mode (third operating mode), the electronic device 100 may be switched from the sleep-wake mode (third operating mode) to the long-line mode (first operating mode) in response to receiving a configuration command from the user device 150 communicating with the electronic device 100 that instructs the electronic device 100 to be configured in the long-line mode (first operating mode). The electronic device 100 may also be switched from the long-line mode (first operating mode) to the sleep-wake mode (third operating mode) in response to receiving a configuration command from the user device 150 that instructs the electronic device 100 to be configured in the sleep-wake mode (third operating mode).
[0081] Regarding the switching between the normal power mode (second operating mode) and the sleep wake-up mode (third operating mode), the electronic device 100 can be switched from the normal power mode (second operating mode) to the sleep wake-up mode (third operating mode) in response to one of the following situations: receiving a command from the user device 150 communicating with the electronic device 100 to stop streaming the video (for example, remote viewing ends), not receiving a command from the user device 150 exceeds a preset time threshold (for example, no operation timeout), determining that the current image frame of the video captured by the camera module 104 does not contain a target (for example, sleep after the alarm capture is completed), receiving a configuration command from the user device 150 to configure the electronic device to the sleep wake-up mode (third operating mode), and entering the configuration mode for selecting the operating mode of the electronic device 100 after pressing the button to turn on the power to select the sleep wake-up mode (third operating mode).
[0082] Regarding switching between the normal power mode (second operating mode) and the power saving mode (fourth operating mode), the electronic device 100 can be switched from the normal power mode (second operating mode) to the power saving mode (fourth operating mode) in response to one of the following situations: receiving a configuration command from the user device 150 indicating that the electronic device is configured in the power saving mode (fourth operating mode), the battery level is less than 20%, or entering a configuration mode for selecting an operating mode of the electronic device 100 after a key is pressed to turn on the device to select the power saving mode (fourth operating mode). The electronic device 100 can also be switched from the power saving mode (fourth operating mode) to the normal power mode (second operating mode) in response to one of the following situations: receiving a command from the user device 150 indicating that video streaming (e.g., a remote viewing / playback request), receiving a configuration command from the user device 150 indicating that the electronic device 100 is configured in the normal power mode (second operating mode), or the user starts charging after switching from the normal power mode (second operating mode) to the power saving mode (fourth operating mode) due to the battery level being less than 20%.
[0083] Regarding the switching between the long online mode (first operating mode) and the power saving mode (fourth operating mode), the electronic device 100 can be switched from the power saving mode (fourth operating mode) to the long online mode (first operating mode) in response to one of the following situations: receiving a configuration command from the user device 150 instructing to configure the electronic device 100 to the long online mode (first operating mode), or the user starts charging after switching from the long online mode (first operating mode) to the power saving mode (fourth operating mode) because the battery power is less than 20%.
[0084] Regarding the switching between the sleep-keep mode (third operating mode) and the power saving mode (fourth operating mode), the electronic device 100 can be switched from the sleep-keep mode (third operating mode) to the power saving mode (fourth operating mode) in response to one of the following situations: receiving a configuration command from the user device 150 indicating that the electronic device is configured in the power saving mode (fourth operating mode) or the battery level is less than 20%. The electronic device 100 can also be switched from the power saving mode (fourth operating mode) to the sleep-keep mode (third operating mode) in response to one of the following situations: receiving a configuration command from the user device 150 indicating that the electronic device 100 is configured in the sleep-keep mode (third operating mode) or the user starts charging after switching from the sleep-keep mode (third operating mode) to the power saving mode (fourth operating mode) due to the battery level being less than 20%.
[0085] In each of the operating modes of the long-line mode (first operating mode), the constant power mode (second operating mode), the sleep keep alive mode (third operating mode), the power saving mode (fourth operating mode), the low power mode (fifth operating mode), and the no-power mode (sixth operating mode), the remote shutdown mode (seventh operating mode) is entered in response to a user remote shutdown, or the key shutdown mode (eighth operating mode) is entered in response to a key shutdown. In the remote shutdown mode (seventh operating mode), the default operating mode (for example, shown as the constant power mode in FIG8 , but it may also be the long-line mode, etc.) or the operating mode before switching to the remote shutdown mode is entered in response to a user remote power-on. In the key shutdown mode (eighth operating mode), the default operating mode is entered in response to a key power-on or the operating mode before switching to the key shutdown mode. For example, after the key power-on, the normal power mode (but it may also be the long-line mode, etc.) may be entered in response to the battery power being higher than 5%, or the no-power mode may be entered in response to the battery power being lower than 5%. After entering the normal power mode because the battery level is higher than 5%, it may also automatically switch to the power saving mode when the battery level is lower than 20%, or automatically switch to the low power mode when the battery level is lower than 10%.
[0086] It is understood that FIG8 is merely exemplary and non-limiting. The electronic device 100 may have some or all of the mode switching mechanisms shown in FIG8 , or may have a mode switching mechanism not shown in FIG8 .
[0087] Except for low power mode and no power mode, other operating modes are configurable by the user. The user can configure the electronic device 100 to a key shutdown mode through a button at the electronic device 100. The user can configure the electronic device 100 to a normal power mode, a long online mode, a sleep wake-up mode, a power saving mode or a remote shutdown mode through the user device 150 (for example, via an application APP associated with the electronic device 100). These five operating modes correspond to the scenario in which the user plugs in and uses the electronic device 100 all the time, the scenario in which the user saves power but wants to save pre-recording and in-process recording, the scenario in which the user saves power and only wants to save in-process recording, the scenario in which the user saves power and only wants to actively view on demand on the APP side, and the scenario in which the user wants to protect privacy and remotely shut down the electronic device 100. Each operating mode in the normal power mode, long online mode, sleep wake-up mode, power saving mode and remote shutdown mode has lower power consumption than the operating modes listed before the operating mode, thereby being able to support longer usage time in battery-powered scenarios. When the battery power of the electronic device 100 is too low, the electronic device 100 can automatically switch the operation mode to perform power saving operation to extend the battery life. At the same time, it can also simultaneously notify the user to improve the user experience.
[0088] In addition, the present disclosure may also provide a non-volatile storage medium having computer executable instructions stored thereon, which, when executed by one or more processors, enables the one or more processors to execute the method of operating the electronic device 100 according to any of the foregoing embodiments of the present disclosure.
[0089] The words "left," "right," "front," "back," "top," "bottom," "up," "down," "high," "low," and the like, if any, in the specification and claims, are used for descriptive purposes and are not necessarily intended to describe invariant relative positions. It should be understood that the words so used are interchangeable under appropriate circumstances such that the embodiments of the present disclosure described herein, for example, are capable of operation in orientations other than those illustrated or otherwise described herein. For example, features previously described as "above" other features could be described as "below" the other features when the apparatus in the accompanying drawings is turned over. The apparatus can also be otherwise oriented (rotated 90 degrees or in other orientations) and relative spatial relationships will be interpreted accordingly.
[0090] In the specification and claims, when an element is referred to as being "on," "attached," "connected," "coupled," or "in contact with," another element, the element may be directly on, directly attached, directly connected, directly coupled, or directly in contact with, another element, or one or more intervening elements may be present. In contrast, when an element is referred to as being "directly on," "directly attached," "directly connected," "directly coupled," or "in direct contact with," another element, there may be no intervening elements. In the specification and claims, when a feature is arranged "adjacent" to another feature, it may mean that the feature has a portion that overlaps with the adjacent feature or a portion that is located above or below the adjacent feature.
[0091] As used herein, the word "exemplary" means "serving as an example, instance, or illustration," rather than as a "model" to be precisely copied. Any implementation described as exemplary is not necessarily to be construed as preferred or advantageous over other implementations. Furthermore, this disclosure is not to be bound by any expressed or implied theory presented in the technical field, background, summary, or detailed description.
[0092] As used herein, the term "substantially" is intended to encompass any minor variations due to design or manufacturing imperfections, device or component tolerances, environmental influences, and / or other factors. The term "substantially" also allows for deviations from a perfect or ideal condition due to parasitic effects, noise, and other practical considerations that may be present in actual implementations.
[0093] Additionally, terms such as "first," "second," and the like may also be used herein for reference purposes only and are not intended to be limiting. For example, the terms "first," "second," and other numerical terms referring to structures or elements do not imply a sequence or order unless the context clearly indicates otherwise.
[0094] It should also be understood that when the term “include / comprises” is used in this document, it indicates the presence of the specified features, integers, steps, operations, units and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, units and / or components and / or their combinations.
[0095] In this disclosure, the term "provide" is used in a broad sense to cover all ways of obtaining an object, and thus "providing an object" includes but is not limited to "purchasing", "preparing / manufacturing", "arranging / setting up", "installing / assembling", and / or "ordering" an object, etc.
[0096] As used herein, the term "and / or" includes any and all combinations of one or more of the associated listed items. The terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the present disclosure. As used herein, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
[0097] Those skilled in the art will appreciate that the boundaries between the above-mentioned operations are merely illustrative. Multiple operations can be combined into a single operation, a single operation can be distributed among additional operations, and operations can be performed at least partially overlapping in time. Moreover, alternative embodiments can include multiple instances of a particular operation, and the order of operations can be changed in various other embodiments. However, other modifications, variations, and replacements are also possible. Aspects and elements of all embodiments disclosed above can be combined in any manner and / or in combination with aspects or elements of other embodiments to provide multiple additional embodiments. Therefore, this specification and the accompanying drawings should be considered illustrative, not restrictive.
[0098] Although some specific embodiments of the present disclosure have been described in detail by way of examples, those skilled in the art will appreciate that the above examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. The various embodiments disclosed herein may be combined in any manner without departing from the spirit and scope of the present disclosure. Those skilled in the art will also appreciate that various modifications may be made to the embodiments without departing from the scope and spirit of the present disclosure. The scope of the present disclosure is defined by the appended claims.
Claims
1. A method of operating an electronic device, the electronic device comprising a battery, a camera module and a pre-roll module, the battery being configured to power the electronic device, the camera module being configured to capture video, the pre-roll module being configured to capture video with lower power consumption than the camera module, wherein: The method comprises, when operating the electronic device in a first operating mode: The electronic device is set to a first state by default, in which the camera module is deactivated and the pre-roll module is activated to capture and record video; In response to detecting an event, causing the electronic device to enter a second state from the first state, in which the camera module is activated to capture and record video; In response to a preset time period elapsing from the detection of the event, determining whether a current image frame of the video captured by the camera module contains a target; In response to determining that a current image frame of the video captured by the camera module includes the target, maintaining the electronic device in the second state; In response to determining that a current image frame of the video captured by the camera module does not include the target, the electronic device is caused to enter the first state from the second state.
2. The method according to claim 1 further includes, when operating the electronic device in the first operating mode: storing in at least one of a local and a cloud the video recorded by the camera module and a preset length of video recorded by the pre-roll module immediately before the event is detected.
3. The method according to claim 1, wherein: In response to detecting an event, causing the electronic device to enter a second state from the first state includes: In response to detecting an event of the first type, detecting whether there is an event of a second type different from the first type, and in response to detecting the event of the second type, causing the electronic device to enter the second state from the first state; or In response to detecting a first type of event, detecting whether there is a second type of event different from the first type and detecting whether there is a third type of event different from the first type and the second type, and in response to detecting the second type of event and detecting the third type of event, causing the electronic device to enter the second state from the first state.
4. The method according to claim 3, wherein: The first type of event is a passive infrared event, and the second type of event and the third type of event are selected from the group consisting of motion events and humanoid events.
5. The method according to claim 1, further comprising, when operating the electronic device in the first operating mode: In response to receiving a wake-up command from a user device in communication with the electronic device, the camera module is activated to capture a video, and the video stream captured by the camera module is transmitted to the user device for viewing by a user.
6. The method according to claim 1, further comprising, when operating the electronic device in the first operating mode: In response to determining that the current image frame of the video captured by the camera module contains the target, after keeping the electronic device in the second state, wait for a preset time period to re-determine whether the current image frame of the video captured by the camera module contains the target.
7. The method of claim 1, further comprising, when operating the electronic device in a second operating mode: The electronic device is set to a third state by default, in which the forward scroll module is deactivated, the camera module is activated to capture video, and the most recent video of a preset duration is dynamically cached; In response to detecting an event, causing the electronic device to enter a fourth state from the third state, in which the camera module is activated to capture and record video; In response to a preset time period elapsing from the detection of the event, determining whether a current image frame of the video captured by the camera module contains a target; In response to determining that a current image frame of the video captured by the camera module includes the target, maintaining the electronic device in the fourth state; In response to determining that a current image frame of the video captured by the camera module does not include the target, the electronic device enters the third state from the fourth state.
8. The method of claim 7, further comprising, when operating the electronic device in the second operating mode: storing the video recorded by the camera module and the video dynamically cached immediately before the event is detected in at least one of a local and a cloud.
9. The method of claim 1, further comprising, when operating the electronic device in a second operating mode: The electronic device is set to a third state by default, in which the pre-roll module is deactivated, the camera module is activated to continuously capture and record video, and the video recorded by the camera module is locally stored; In response to detecting an event, an image frame corresponding to the time when the event was detected is tagged in the locally stored video to indicate the occurrence of the event.
10. The method according to claim 9, further comprising, when operating the electronic device in the second operating mode: In response to a preset time period elapsing from the detection of the event, determining whether a current image frame of the video captured by the camera module contains a target; In response to determining that a current image frame of the video captured by the camera module does not contain the target, the current image frame is tagged in the locally stored video to indicate the end of the event.
11. The method according to any one of claims 7 to 10, further comprising, when operating the electronic device in the second operation mode: A user is notified via a user device communicating with the electronic device to connect the electronic device to an external power source to power the electronic device through the external power source.
12. The method according to claim 7, further comprising at least one of the following: The electronic device is switched from the second operation mode to the first operation mode in response to one of the following situations: receiving a command from a user device communicating with the electronic device to stop streaming of the video, not receiving a command from the user device for more than a preset time threshold, determining that a current image frame of the video captured by the camera module does not contain the target, receiving a configuration command from the user device to configure the electronic device to the first operation mode, entering a configuration mode for selecting an operation mode of the electronic device after a key is pressed to turn on the device to select the first operation mode; The electronic device is switched from the first operating mode to the second operating mode in response to one of the following situations: receiving a command from the user device instructing streaming of a video, detecting an event, or receiving a configuration command from the user device instructing the electronic device to be configured to the second operating mode.
13. The method according to claim 1, further comprising, when operating the electronic device in a third operating mode: The electronic device is set to a fifth state by default, in which the camera module and the front scroll module are deactivated; In response to detecting an event, causing the electronic device to enter a sixth state from the fifth state, in which the camera module is activated to capture and record video; In response to a preset time period elapsing from the detection of the event, determining whether a current image frame of the video captured by the camera module contains a target; In response to determining that a current image frame of the video captured by the camera module includes the target, maintaining the electronic device in the sixth state; In response to determining that the current image frame of the video captured by the camera module does not contain the target, or in response to determining that the electronic device remains in the sixth state for more than a preset time threshold, the electronic device enters the fifth state from the sixth state.
14. The method according to claim 13, further comprising, when operating the electronic device in the third operating mode: After the electronic device is caused to enter the fifth state from the sixth state, the electronic device is caused to remain in the fifth state for a preset silent time period during which no event is detected.
15. The method according to claim 14, further comprising, when operating the electronic device in the third operating mode: During the preset silent period, in response to receiving a wake-up command from a user device communicating with the electronic device, activating the camera module to capture video, and transmitting the video stream captured by the camera module to the user device for user viewing.
16. The method according to claim 13, further comprising at least one of the following: In response to receiving a configuration command from a user device communicating with the electronic device instructing to configure the electronic device to the first operation mode, switching the electronic device from the third operation mode to the first operation mode; In response to receiving an instruction from the user device, the electronic device is configured to the third operating mode. Configuration command, switching the electronic device from the first operation mode to the third operation mode.
17. The method according to any one of claims 1, 7, 9, and 13, further comprising, when operating the electronic device in a fourth operating mode: Setting the electronic device to a seventh state by default, in which the camera module is deactivated, the pre-roll module is deactivated, and no event is detected; In response to receiving a wake-up command from a user device communicating with the electronic device, the electronic device enters an eighth state from the seventh state, in which the camera module is activated to capture video, and the video stream captured by the camera module is transmitted to the user device for user viewing.
18. The method of claim 17, further comprising, when operating the electronic device in a fifth operating mode: The electronic device is set to a ninth state by default, in which the camera module is deactivated, the pre-roll module is deactivated, no event is detected, and peripheral devices of the electronic device are operated in a low power consumption mode; In response to receiving a wake-up command from a user device communicating with the electronic device, the electronic device enters a tenth state from the ninth state, in which the camera module is activated to capture video while disabling a video capture auxiliary function, and the video stream captured by the camera module is transmitted to the user device for user viewing.
19. The method of claim 18, further comprising, when operating the electronic device in a sixth operating mode: The electronic device is placed in an eleventh state, in which the camera module is deactivated, the front scroll module is deactivated, no event is detected, and no wake-up command from a user device communicating with the electronic device is responded to.
20. The method according to claim 19, further comprising: In response to the power level of the battery of the electronic device decreasing to or below a first power threshold, switching the electronic device from a current operation mode to the fourth operation mode; In response to the power level of the battery of the electronic device decreasing to or below a second power threshold, switching the electronic device from a current operation mode to the fifth operation mode; or In response to the power level of the battery of the electronic device decreasing to or below a third power level threshold, switching the electronic device from the current operation mode to the sixth operation mode, The first power threshold is higher than the second power threshold, and the second power threshold is higher than the third power threshold.
21. The method according to claim 20, further comprising: In response to determining that the electronic device is connected to an external power source for charging, the electronic device is switched back to a previous operating mode.
22. The method according to claim 1, further comprising: In response to receiving a power-off command from a user device that communicates with the electronic device, switching the electronic device to a seventh operation mode, wherein when the electronic device is operated in the seventh operation mode, in addition to allowing the electronic device to communicate with the user device, the electronic device is deactivated; In response to receiving a power-on command from the user device, the electronic device is switched back to the first operating mode.
23. The method according to claim 1, further comprising: In response to a key power-off operation at the electronic device, switching the electronic device to an eighth operation mode, wherein when the electronic device is operated in the eighth operation mode, the electronic device is deactivated; In response to a key power-on operation at the electronic device, the electronic device is switched back to the first operation mode.
24. An electronic device, comprising: a battery configured to power the electronic device; A camera module configured to capture video; a pre-roll module configured to capture video with lower power consumption than the camera module; one or more processors; as well as A memory storing computer executable instructions which, when executed by the one or more processors, cause the one or more processors to perform a method of operating an electronic device according to any one of claims 1 to 23.
25. A non-volatile storage medium having computer executable instructions stored thereon, wherein the computer executable instructions, when executed by one or more processors, cause the one or more processors to perform a method for operating an electronic device according to any one of claims 1 to 23, wherein the electronic device comprises a battery, a camera module, and a front-roll module, the battery being configured to power the electronic device, the camera module being configured to capture video, and the front-roll module being configured to capture video with lower power consumption than the camera module.
Citation Information
Patent Citations
Early warning method and apparatus based on video analysis, electronic device and storage medium
CN110728815A
Electronic equipment awakening device and method, computer equipment and storage medium
CN111679861A
Camera and method for controlling camera
CN115278013A
Pre-roll image capture implemented by a power-limited security device
US20190020827A1
