A method, device, equipment and medium for switching working modes of image collector
The image collector is detected through the priority detection mode, and only exits the full-time recording mode when all preset results meet the conditions, solving the problems of frequent wake-up and increased power consumption, achieving more efficient image acquisition and more accurate recognition.
Patent Information
- Application Number
- CN202411237932.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-05
- Publication Date
- 2024-12-20
- Estimated Expiration
- 2044-09-05
AI Technical Summary
The existing full-time video recording mode frequently wakes up the image collector after detecting an alarm event, resulting in false detection and increased power consumption, affecting the reliability and power consumption of the collector.
The image collector is detected in full-time video recording mode using the priority detection mode. Only when the results of all preset detection methods are preset results are preset results will the full-time video recording mode be exited and the preset image acquisition mode with high power consumption will be entered. Otherwise, continue to maintain full-time recording mode.
It effectively reduces detection power consumption, avoids the wrong triggering of the working mode, improves the recognition accuracy of the acquired image, and reduces the impact of frequent mode switching on the collector.
Smart Images

Figure CN118764709B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of automation control technology, and in particular to a method, device, equipment and medium for switching working modes of an image collector. Background Art
[0002] The current full-time recording mode is a mode where the main core is dormant, non-monitoring related functions are turned off, and only real-time image acquisition is performed at a low frame rate. This mode can both meet the needs of full-time recording and reduce power consumption. In the full-time recording mode, the collected images are detected. If an alarm event is detected, the image collector exits the full-time recording mode and wakes up all functions.
[0003] In the current wake-up scheme, false detection often leads to frequent wake-ups, which affects the reliability of the image collector and increases the power consumption of the image collector. Summary of the invention
[0004] The embodiments of the present application provide a method, apparatus, device and medium for switching the working mode of an image collector, so as to accurately detect the triggering conditions for switching the working mode of the image collector and reduce the detection power consumption.
[0005] According to one aspect of the present application, a method for switching a working mode of an image collector is provided, the method comprising:
[0006] When the image collector is in full-time recording mode, the collected image is detected based on the priority detection mode; wherein the priority detection mode is a mode in which detection is performed based on the target detection mode in the preset detection mode first; the full-time recording mode is a low-power mode in which only some functions are turned on;
[0007] If the detection results of the collected image detected based on each preset detection mode in the priority detection mode are all preset results corresponding to the preset detection mode, the image collector is exited from the full-time video recording mode and enters the preset image acquisition mode; wherein the power consumption of the preset image acquisition mode is greater than the power consumption of the full-time video recording mode;
[0008] Otherwise, the image collector continues to be in full-time video recording mode.
[0009] According to one aspect of the present application, a device for switching a working mode of an image collector is provided, the device comprising:
[0010] A detection module, used for detecting the collected image based on a priority detection mode when the image collector is in a full-time recording mode; wherein the priority detection mode is a mode for detecting based on a target detection mode in a preset detection mode first; and the full-time recording mode is a low-power consumption mode in which only some functions are turned on;
[0011] A mode exit module, used for, if the detection results of the collected image detected based on each preset detection mode in the priority detection mode are all preset results corresponding to the preset detection mode, then the image collector exits the full-time video recording mode and enters the preset image acquisition mode; wherein the power consumption of the preset image acquisition mode is greater than the power consumption of the full-time video recording mode;
[0012] The mode maintaining module is used to otherwise keep the image collector in the full-time video recording mode.
[0013] According to another aspect of the present application, an electronic device is provided, the electronic device comprising:
[0014] at least one processor; and
[0015] A memory connected to at least one processor for data processing; wherein,
[0016] The memory stores a computer program that can be executed by at least one processor, and the computer program is executed by at least one processor so that the at least one processor can execute the working mode switching method of the image collector of any embodiment of the present application.
[0017] According to another aspect of the present application, a computer-readable storage medium is provided, which stores computer instructions, and the computer instructions are used to implement the working mode switching method of the image collector of any embodiment of the present application when executed by a processor.
[0018] The technical solution of the embodiment of the present application is that when the image collector is in the full-time recording mode, the collected image is detected based on the priority detection mode; if the detection results of the collected image detected based on each preset detection mode in the priority detection mode are all preset results corresponding to the preset detection mode, the image collector is allowed to exit the full-time recording mode and enter the preset image acquisition mode; otherwise, the image collector is allowed to continue to be in the full-time recording mode. The above scheme can effectively reduce power consumption by orderly detecting the collected image based on the preset detection mode according to the priority detection mode, meet the low power consumption requirements of the full-time recording mode, and exit the full-time recording mode when the detection results are all preset results, thereby more accurately identifying the situation of the picture in the collected image and avoiding false triggering of the working mode switching.
[0019] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present application, nor is it intended to limit the scope of the present application. Other features of the present application will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0021] Figure 1 A flowchart of a method for switching working modes of an image collector provided in an embodiment of the present application;
[0022] Figure 2 A flowchart of a method for switching working modes of an image collector provided by another embodiment of the present application;
[0023] Figure 3 A specific implementation flow chart provided for another embodiment of the present application;
[0024] Figure 4 A schematic diagram of the structure of a working mode switching device of an image collector provided in an embodiment of the present application;
[0025] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0026] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0027] It should be noted that the terms "first", "second", "third", "fourth", "actual", "preset", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0028] Figure 1A flowchart of a method for switching the working mode of an image collector provided in an embodiment of the present application, the embodiment of the present application can be applied to the situation where the working mode of the image collector is switched. Typically, the embodiment of the present application can be applied to the situation where the image collector is in a low-power full-time recording mode, and whether to exit the full-time recording mode is determined through image detection. The method can be executed by a working mode switching device of the image collector, and the working mode switching device of the image collector can be implemented in the form of hardware and / or software, and the working mode switching device of the image collector can be configured in an electronic device. Figure 1 As shown, the method includes:
[0029] S110, when the image collector is in full-time recording mode, detecting the collected image based on the priority detection mode; wherein the priority detection mode is a mode that preferentially detects based on the target detection mode in the preset detection mode. The full-time recording mode is a low-power mode that only turns on some functions.
[0030] Among them, the full-time recording mode in the embodiment of the present application is a low-power full-time recording mode, that is, a mode in which image acquisition is continuously performed at a lower frame rate throughout the process. Assuming that the normal frame rate is 15 frames per second, the frame rate is reduced to 1 frame per second in this mode. And only some functions are turned on, for example, only the functions of image acquisition and image detection are turned on, and the functions such as networking, storage, and live interaction are not turned on. The priority detection mode can be a mode preset by the user. According to the user's settings, the target detection mode is selected from the preset detection mode, and the collected image is detected based on the target detection mode first, and it is determined whether to detect the collected image based on other preset detection modes according to the detection results. The collected image is the latest image collected by the image collector in real time at the frame rate, which is an updated image, not a fixed image. Each detection process is performed based on the latest image collected by the image collector. The preset detection mode can be set according to the user's needs, for example, it can include motion detection, target recognition, action detection, posture detection, stay time detection, etc., which are determined according to the features that the user is concerned about. Exemplarily, if the user's needs are to exit the full-time recording mode when a specific target motion is detected in the collected image, the preset detection mode includes motion detection and target recognition. If the user's requirement is to exit the full-time recording mode when the action of a specific target in the captured image contains a specific action and the duration of the action reaches a certain length, the preset detection methods include target recognition, action detection, and duration detection. The number of preset detection methods is not limited and can be determined according to actual conditions.
[0031] In an embodiment of the present application, if the image collector is in full-time recording mode, the captured image is detected based on the priority detection mode. The detection process can be performed once for each captured image acquired by the image collector. The detection process includes detection based on the target detection method, or detection based on other preset detection methods. The priority detection mode is not fixed, and the priority detection mode can be adjusted according to the detection results. For example, in the current detection cycle, the preset detection method A is used as the target detection method, and detection is performed based on A first, as the priority detection mode of A. In the next detection cycle, the preset detection method B is used as the target detection method, and detection is performed based on B first, as the priority detection mode of B. The switching process of the priority detection mode can be switched according to the actual detection results, so that each preset detection method can be used as the target detection method, that is, the detection method used first is used to detect the captured image. In the process of detecting the captured image based on the priority detection mode, the captured image is detected based on the target detection method first, but it is not completely without using other preset detection methods. It can be determined whether to continue to detect the captured image using other preset detection methods based on the detection results of the detection based on the target detection method.
[0032] Exemplarily, in order to ensure the accuracy of detection and avoid frequent switching of working modes, the working mode can be switched when the detection results based on each preset detection method meet the requirements. In this case, if the detection result of the previous detection based on the target detection method meets the requirements, other preset detection methods can be used to continue to detect the acquired image. Otherwise, there is no need to continue detection using other preset detection methods, as it can be determined that the requirements for switching working modes are not met at present.
[0033] S120. If the detection results of the collected image based on each preset detection method in the priority detection mode are all preset results corresponding to the preset detection method, the image collector is exited from the full-time video recording mode and enters the preset image acquisition mode; wherein the power consumption of the preset image acquisition mode is greater than the power consumption of the full-time video recording mode.
[0034] Among them, the preset result can correspond to the preset detection method, and can be pre-set by the user according to the actual application scenario. For example, if the preset detection method is motion detection, the preset result can be the presence of motion, if the preset detection method is target recognition, then the preset result is the presence of a target, and if the preset detection method is action detection, then the preset result is the presence of a specific action. The preset result corresponding to the preset detection method can be determined according to the adaptability of the actual application scenario. For example, in the scenario of target intrusion detection, the preset method is motion detection, and the preset result is the presence of motion. In the scenario of elderly action detection, the preset method is motion detection, and the preset result can be the absence of motion, that is, stillness is the detection feature that needs to be focused on.
[0035] In the prior art, there is an implementation method of using an external infrared sensor (PIR) for motion detection as a trigger condition for waking up the image collector from sleep. However, after the application of full-time video recording (AOV), since images of 1 frame per second can be saved, an implementation method of using the inter-frame difference of the above-mentioned image for motion detection has emerged in the art, thereby saving the hardware cost of the infrared sensor. In an embodiment of the present application, the power consumption of a single detection of different detection methods can be the same or different. For example, due to the difference in detection accuracy and algorithm mode, the power consumption of a single motion detection can be lower than that of human detection, or higher than or equal to that of human detection. According to the size of the detection power consumption, the initial priority detection method can be set, or the order and / or combination of the detection methods can be selected, or a reasonable false detection threshold for switching the target detection method can be set. The false detection threshold corresponding to the detection method can be negatively correlated with the power consumption of the detection method. That is, the higher the power consumption of the detection method, the smaller the false detection threshold is set, and the lower the power consumption, the larger the false detection threshold is set. The function of the false detection threshold is: if the number of false detections reaches the false detection threshold corresponding to the first detection method during detection in the first detection method, the second detection method is switched to be used for detection, and vice versa.
[0036] For example, in a feasible solution, the power consumption of a single motion detection is 2W, and the power consumption of human detection is 4W. The initial priority detection method is: perform motion detection first, and then perform human detection if there is motion. If the motion detection is falsely detected 10 times within a certain period of time, it will be switched to: perform human detection first, and then perform motion detection if there is a human. When the detection method is switched to: perform human detection first, and then perform motion detection if there is a human, due to the high power consumption of human detection, it can be set that after human detection is falsely detected 3 times within a certain period of time, it will be switched to perform motion detection first, and then perform human detection if there is motion, so as to adaptively save power consumption and avoid the process of excessive human detection and false detection, which consumes power and affects the detection accuracy.
[0037] In an embodiment of the present application, each preset detection mode includes a target detection mode and other preset detection modes other than the target detection mode. Exemplarily, when the detection result of detecting the collected image based on the target detection mode is the preset result corresponding to the target detection mode, the collected image can continue to be detected based on other preset detection modes. If the detection results of continuing to detect the collected image based on other preset detection modes are all preset results corresponding to other preset detection modes, it is determined that the current collected image meets the conditions set by the user to trigger the switching of the working mode, and the image collector is made to exit the full-time recording mode and enter the preset image acquisition mode. The power consumption of the preset image acquisition mode is greater than the power consumption of the full-time recording mode. The preset image acquisition mode can be, for example, a normal working mode of 15 frames per second, or other working modes with higher resolution and frame rate than the full-time recording mode, or a high power consumption mode with other functions such as face recognition, image stabilization, storage, networking, and application live interaction enabled.
[0038] The scheme in the embodiment of the present application can detect the collected image in an orderly manner based on each preset detection method in the priority detection mode, rather than synchronously detecting based on each preset detection method regardless of whether the detection result meets the requirements, thereby reducing power consumption and meeting the requirements of the low-power full-time recording mode. When the detection results of the collected image detected based on each preset detection method are all preset results corresponding to the preset detection method, it is determined that the trigger condition for switching the working mode is met, and the full-time recording mode is exited, thereby comprehensively evaluating the features in the collected image from multiple aspects, accurately detecting the collected image from multiple aspects, and avoiding false triggering caused by a single detection result meeting the requirements, that is, triggering the exit of the full-time recording mode, resulting in frequent switching of the working mode, affecting the stability of the working mode of the image collector, and increasing power consumption.
[0039] S130: Otherwise, the image collector continues to be in full-time video recording mode.
[0040] Exemplarily, if there is a preset detection method, and the detection result of the captured image based on the preset detection method does not meet the preset result corresponding to the preset detection method, it is determined that the captured image does not meet the conditions for triggering exit from the full-time recording mode, so that the image collector continues to be in the full-time recording mode.
[0041] The technical solution of the embodiment of the present application is that when the image collector is in the full-time recording mode, the collected image is detected based on the priority detection mode; wherein the priority detection mode is a mode that prioritizes detection based on the target detection mode in the preset detection mode; the full-time recording mode is a low-power mode that only turns on some functions; if the detection results of the collected image detected based on each preset detection mode in the priority detection mode are all preset results corresponding to the preset detection mode, the image collector is allowed to exit the full-time recording mode and enter the preset image acquisition mode; wherein the power consumption of the preset image acquisition mode is greater than the power consumption of the full-time recording mode; otherwise, the image collector is allowed to continue to be in the full-time recording mode. The above scheme can effectively reduce power consumption by orderly detecting the collected image based on the preset detection mode according to the priority detection mode, meet the low power consumption requirements of the full-time recording mode, and exit the full-time recording mode when the detection results are all preset results, thereby more accurately identifying the situation of the picture in the collected image and avoiding false triggering of the working mode switching.
[0042] Figure 2 This is a flowchart of a method for switching the working mode of an image collector provided by another embodiment of the present application. The present embodiment is optimized based on the above embodiment. For solutions not described in detail in the present embodiment, please refer to the above embodiment. Figure 2 As shown, the method of the embodiment of the present application specifically includes the following steps:
[0043] S210: When the image collector is in the full-time recording mode, the collected image is detected based on the target detection method in the priority detection mode.
[0044] Exemplarily, in the priority detection mode, the captured image is detected based on the target detection method. For example, assuming that the preset detection method includes motion detection and target recognition, the target detection method is motion detection, and the priority detection mode is to prioritize motion detection on the captured image.
[0045] S220: If a detection result of detecting the collected image based on the target detection method is a preset result corresponding to the target detection method, detect the collected image based on other preset detection methods other than the target detection method.
[0046] For example, the specific implementation flow chart is as follows: Figure 3As shown, if the detection result of detecting the collected image based on the target detection method is the preset result corresponding to the target detection method, then the collected image is detected based on other preset detection methods other than the target detection method. If the detection result is not the preset result corresponding to the target detection method, then there is no need to detect the collected image based on other preset detection methods. Specifically, if the detection result of motion detection on the collected image is that there is motion, then the collected image is detected based on other preset detection methods other than the target detection method to determine whether the features in the collected image meet other conditions for triggering the exit of the full-time video recording mode. If the detection result of motion detection on the collected image is that there is no motion, the condition of whether there is motion is no longer met, and there is no need to perform other detection processes based on other preset detection methods to avoid unnecessary power consumption.
[0047] In the embodiment of the present application, the captured image is detected based on other preset detection methods, including:
[0048] Starting from one other preset detection method according to a first preset order, detecting the collected image based on the other preset detection method;
[0049] If the detection result is the preset result corresponding to the other preset detection method, the next other preset detection method is switched.
[0050] Among them, the first preset order can be determined according to actual conditions and can be an order preset by the user. For example, for other preset detection methods, the first preset order can be set to target recognition and duration detection. Starting from the first other preset detection method according to the first preset order, the captured image is detected based on the other preset detection method. If the detection result of the detection is the preset result corresponding to the other preset detection method, the next other preset detection method is switched. Specifically, taking the above-mentioned first preset order as an example, the target is first recognized on the captured image. If the detection result of the detection is that the target exists, the duration of the motion is detected on the captured image.
[0051] The above scheme can perform detection in an orderly manner based on various preset detection methods according to the first preset order, that is, it can perform detection in an orderly manner according to the user's attention to the features, and can comprehensively detect the collected images and accurately judge whether the conditions for exiting the full-time recording mode are met. It can also save energy consumption and avoid unnecessary power consumption when all detections are performed in parallel and none of them meet the trigger conditions.
[0052] In an embodiment of the present application, the method further includes:
[0053] If there is a detection result detected by other preset detection methods that is not the preset result corresponding to the other preset detection methods, continue to detect the collected image based on the target detection method.
[0054] For example, during the process of switching detection by other preset detection methods, if there is a detection structure detected by other preset detection methods that is not the preset result corresponding to the other preset detection methods, it means that the trigger condition for exiting full-time video recording is no longer met at this time, so other preset detection methods are no longer used to detect the collected image to avoid unnecessary power consumption. Continue to detect the collected image based on the target detection method, that is, re-detect from the beginning to determine whether the detection results of all preset detection methods are the preset results corresponding to the preset detection methods.
[0055] S230. If the detection results of the collected image based on each preset detection method in the priority detection mode are all preset results corresponding to the preset detection method, the image collector is exited from the full-time video recording mode and enters the preset image acquisition mode; wherein the power consumption of the preset image acquisition mode is greater than the power consumption of the full-time video recording mode.
[0056] In an embodiment of the present application, if the detection results of detecting the collected image based on each preset detection method in the priority detection mode are all preset results corresponding to the preset detection method, the image collector is exited from the full-time recording mode, including:
[0057] If the last other preset detection mode is switched to according to the first preset sequence, and the detection result of the last other preset detection mode on the collected image is the preset result corresponding to the last other preset detection mode, the image collector is exited from the full-time recording mode.
[0058] Exemplarily, if the last other preset detection mode is switched to in the first preset order and the detection result of the last other preset detection mode for detecting the collected image is the preset result corresponding to the last other preset detection mode, it means that the detection results of all preset detection modes are the preset results corresponding to the preset detection modes, and the image collector is made to exit the full-time recording mode. It should be noted that the premise of switching to other preset detection modes is that the detection results of the other preset detection modes ranked first are all the preset results corresponding to the other preset detection modes.
[0059] Exemplarily, according to the first preset order, motion detection is first performed on the captured image. If the detection result is that there is motion, target recognition is performed on the captured image. If the detection result is that there is a target, the duration of the motion is detected on the captured image. If the detection result is that the duration meets a certain time, it is determined that all detection results are preset results, and the image collector is exited from the full-time recording mode and enters the preset image acquisition mode.
[0060] In the embodiment of the present application, if the detection results of detecting the collected image based on each preset detection method in the priority detection mode are not all preset results corresponding to the preset detection method, S250 is executed.
[0061] S240: If a detection result of detecting the collected image based on the target detection method is not a preset result corresponding to the target detection method, the collected image is detected only based on the target detection method.
[0062] Exemplarily, if the detection result of detecting the captured image based on the target detection method is not the preset result corresponding to the target detection method, then even if the detection result of other preset detection methods is the preset result corresponding to other preset detection methods, the condition for exiting the full-time recording mode is not met. Therefore, other preset detection methods are not used for detection to save power consumption, and the captured image is detected only based on the target detection method.
[0063] In an embodiment of the present application, detecting the collected image based on a target detection method includes:
[0064] If the detection results obtained by detecting the acquired image based on the target detection method are all preset results corresponding to the target detection method, and the number of times reaches a first preset number of times, or the consecutive detection results are not the preset results corresponding to the target detection method, and the number of times reaches a second preset number of times, then the target detection method is reselected from the preset detection methods and the priority detection mode is switched to detect the acquired image.
[0065] Exemplarily, if the detection results obtained by detecting the collected image based on the target detection method are all preset results corresponding to the target detection method, and the number of times reaches the first preset number, while the detection results of other preset detection methods do not meet the requirements, or the continuous detection results are not the preset results corresponding to the target detection method, and the number of times reaches the second preset number, it means that the detection result of the target detection method is a false detection, false trigger or other behavior-affecting feature, and is not a feature that the user really cares about and can trigger the exit of full-time video recording. It is detected that the target detection method reaches the false detection threshold within a period of time. At this time, the target detection method is no longer used as the priority detection method, and the target detection method is reselected from the preset detection methods, and the priority detection mode is switched to prioritize the detection of the collected image based on the reselected target detection method, and the process in the above embodiment is re-executed. The first preset number and the second preset number can be determined according to actual conditions, for example, the first preset number is 10 and the second preset number is 5.
[0066] It should be noted that if the detection result obtained by detecting the collected image based on the target detection method is the preset result corresponding to the target detection method, then according to the description of S220, it is necessary to detect the collected image based on other preset detection methods other than the target detection method. If there is a detection result of other preset detection methods that is not the preset result corresponding to the other preset detection methods, then it is returned to detecting the collected image based on the target detection method. At this time, it is still possible that the detection result is the preset result corresponding to the target detection method. In this case, it is necessary to accumulate the number of times that the detection results are all preset results corresponding to the target detection method, and the various detection results at this time may not be continuous. If the detection result obtained by detecting the collected image based on the target detection method is not the preset result corresponding to the target detection method, then the collected image is detected only based on the target detection method. Therefore, in this case, it is necessary to count the number of times that the continuous detection results are not the preset results corresponding to the target detection method. If "the detection result obtained by detecting the collected image based on the target detection method is not the preset result corresponding to the target detection method" is regarded as "not triggered", the beneficial effect of counting the number of consecutive non-triggers in the above scheme is to avoid the non-triggering of a single detection as an accidental false detection, and to improve the accuracy of the detection by repeated verification. In addition, when the number of non-triggering times reaches a second preset number, the beneficial effect of reselecting the target detection method and switching to the priority detection mode is that the logic of this solution is to perform detection based on other detection methods only when the detection result based on the target detection method is the corresponding preset result. If it is consistently not triggered and still not switched, the step of detecting based on other detection methods will never be executed. At this time, the result of detection based on other detection methods may be triggered, so it is necessary to switch to the priority detection mode to prioritize detection based on other detection methods to avoid entering an infinite loop.
[0067] Exemplarily, assuming that in the priority detection mode, the target detection method is motion detection, if the detection result of the motion detection is the corresponding preset result, that is, there is motion, and the detection result is detected 10 times, or the detection result of the motion detection is not the corresponding preset result, that is, there is no motion, and the detection result is detected 5 times, then target recognition is used as the target detection method, and the priority detection mode is switched, that is, the captured image is detected based on target recognition first.
[0068] In an embodiment of the present application, reselecting a target detection mode from a preset detection mode and switching a priority detection mode to detect the collected image includes:
[0069] Reselecting a target detection method from the preset detection methods that have not been selected according to a second preset order and switching the priority detection mode to detect the collected image until all the preset detection methods have been selected as the target detection methods;
[0070] Continue to use the first preset detection mode as the target detection mode in accordance with the second preset sequence, and detect the collected image based on the priority detection mode.
[0071] Among them, the second preset order can be determined according to actual conditions, and the first preset order and the second preset order can be the same or different. Assuming that the second preset order is motion detection and target recognition, if motion detection is used as the target detection method, after detection in the priority detection mode, the detection results all meet the preset results corresponding to the target detection method, and the number of times reaches the first preset number of times, or the continuous detection results are not the preset results corresponding to the target detection method, and the number of times reaches the second preset number of times, then target recognition is used as the target detection method, the priority detection mode is switched, and the captured image is detected based on target recognition first, and the execution process in the priority detection mode is the same as the above embodiment. If the detection results of the captured image detected based on target recognition still meet the preset results corresponding to the target detection method, and the number of times reaches the first preset number of times, or the continuous detection results are not the preset results corresponding to the target detection method, and the number of times reaches the second preset number of times, then motion detection is used as the target detection method again, the priority detection mode is switched, and the captured image is detected based on motion detection first.
[0072] S250, allowing the image collector to continue to be in full-time video recording mode.
[0073] The embodiment of the present application provides a method for switching the working mode of an image collector. When the image collector is in a full-time recording mode, the collected image is detected based on the target detection mode in a priority detection mode. If the detection result of the collected image detected based on the target detection mode is a preset result corresponding to the target detection mode, the collected image is detected based on other preset detection modes other than the target detection mode. If the detection results of the collected image detected based on each preset detection mode in the priority detection mode are all preset results corresponding to the preset detection mode, the image collector is exited from the full-time recording mode and enters the preset image acquisition mode to achieve multiple detections, thereby avoiding misjudgment caused by frequent exit from the full-time recording mode when only one aspect detects that the condition is met, thereby affecting power consumption. If the detection result of the collected image detected based on the target detection mode is not the preset result corresponding to the target detection mode, the collected image is detected only based on the target detection mode, thereby allowing the image collector to continue to be in the full-time recording mode, thereby achieving multiple repeated verifications, thereby avoiding the accuracy of the mode switching timing affected by a single false trigger.
[0074] Figure 4 This is a schematic diagram of the structure of a working mode switching device for an image collector provided in an embodiment of the present application. The device can execute the working mode switching method for an image collector provided in any embodiment of the present application, and has the corresponding functional modules and beneficial effects of the execution method. Figure 4 As shown, the device comprises:
[0075] The detection module 310 is used to detect the collected image based on the priority detection mode when the image collector is in the full-time recording mode; wherein the priority detection mode is a mode in which detection is performed based on the target detection mode in the preset detection mode first; the full-time recording mode is a low-power consumption mode in which only some functions are turned on;
[0076] A mode exit module 320, configured to, if the detection results of the collected image detected based on each preset detection mode in the priority detection mode are all preset results corresponding to the preset detection mode, make the image collector exit the full-time video recording mode and enter the preset image acquisition mode; wherein the power consumption of the preset image acquisition mode is greater than the power consumption of the full-time video recording mode;
[0077] The mode maintaining module 330 is used to otherwise keep the image collector in the full-time video recording mode.
[0078] In the embodiment of the present application, the detection module 310 detects the collected image based on the priority detection mode, including:
[0079] If a detection result of detecting the collected image based on the target detection method is a preset result corresponding to the target detection method, detecting the collected image based on other preset detection methods other than the target detection method;
[0080] If the detection result of detecting the collected image based on the target detection method is not a preset result corresponding to the target detection method, the collected image is detected only based on the target detection method.
[0081] In the embodiment of the present application, the detection module 310 detects the collected image based on other preset detection methods, including:
[0082] Starting from one other preset detection method according to a first preset order, detecting the collected image based on the other preset detection method;
[0083] If the detection result is the preset result corresponding to the other preset detection method, switching to the next other preset detection method;
[0084] Accordingly, if the detection results of the collected image detected based on each preset detection method in the priority detection mode are all preset results corresponding to the preset detection method, the image collector is exited from the full-time recording mode, including:
[0085] If the last other preset detection mode is switched to according to the first preset sequence, and the detection result of the last other preset detection mode on the collected image is the preset result corresponding to the last other preset detection mode, the image collector is exited from the full-time recording mode.
[0086] In the embodiment of the present application, the detection module 310 is specifically used for:
[0087] If there is a detection result detected by other preset detection methods that is not the preset result corresponding to the other preset detection methods, continue to detect the collected image based on the target detection method.
[0088] In the embodiment of the present application, the detection module 310 detects the collected image based on the target detection method, including:
[0089] If the detection results obtained by detecting the acquired image based on the target detection method are all preset results corresponding to the target detection method, and the number of times reaches a first preset number of times, or the consecutive detection results are not the preset results corresponding to the target detection method, and the number of times reaches a second preset number of times, then the target detection method is reselected from the preset detection methods and the priority detection mode is switched to detect the acquired image.
[0090] In the embodiment of the present application, the detection module 310 reselects a target detection mode from a preset detection mode and switches to a priority detection mode to detect the collected image, including:
[0091] Reselecting a target detection method from the preset detection methods that have not been selected according to a second preset order and switching the priority detection mode to detect the collected image until all the preset detection methods have been selected as the target detection methods;
[0092] Continue to use the first preset detection mode as the target detection mode in accordance with the second preset sequence, and detect the collected image based on the priority detection mode.
[0093] In an embodiment of the present application, the preset detection method is determined according to the features that the user is concerned about, and the captured image is the latest image captured in real time by the image collector.
[0094] An image acquisition device operating mode switching device provided in an embodiment of the present application can execute an image acquisition device operating mode switching method provided in any embodiment of the present application, and has functional modules and beneficial effects corresponding to the execution method.
[0095] Figure 5 A schematic diagram of an electronic device 10 that can be used to implement an embodiment of the present application is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present application described and / or required herein.
[0096] like Figure 5 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the data processing of the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. The input / output (I / O) interface 15 is also connected to the bus 14.
[0097] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a data processing unit 19, such as a network card, a modem, a wireless data processing transceiver, etc. The data processing unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0098] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a method for switching the working mode of the image collector.
[0099] In some embodiments, the working mode switching method of the image collector can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the data processing unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the working mode switching method of the image collector described above can be performed. Alternatively, in other embodiments, the processor 11 can be configured to execute the working mode switching method of the image collector in any other appropriate manner (for example, by means of firmware).
[0100] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0101] The computer program for implementing the method of the present application can be written in any combination of one or more programming languages. These computer programs can be provided to the processor of the working mode switching device of a general-purpose computer, a special-purpose computer or other programmable image acquisition device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program can be executed completely on the machine, partially on the machine, as a stand-alone software package, partially on the machine and partially on a remote machine, or completely on a remote machine or server.
[0102] In the context of the present application, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, device, or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0103] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0104] The systems and techniques described herein may be implemented in a computing system that includes a backend component (e.g., as a data server), or a computing system that includes a middleware component (e.g., an application server), or a computing system that includes a frontend component (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by digital data processing (e.g., a data processing network) in any form or medium. Examples of data processing networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0105] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a data processing network. The client and server relationship is generated by computer programs running on the respective computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0106] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this application can be executed in parallel, sequentially or in different orders, as long as the information expected by the technical solution of this application can be achieved, and this document is not limited here.
[0107] The above specific implementations do not constitute a limitation on the protection scope of this application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of this application should be included in the protection scope of this application.
Claims
1. A method for switching working modes of an image collector, It is characterized in that The method comprises: When the image collector is in full-time recording mode, the collected image is detected based on the priority detection mode; wherein the priority detection mode is a mode in which detection is performed based on the target detection mode in the preset detection mode first; the full-time recording mode is a low-power mode in which only some functions are turned on; If the detection results of the collected image detected based on each preset detection mode in the priority detection mode are all preset results corresponding to the preset detection mode, the image collector is exited from the full-time video recording mode and enters the preset image acquisition mode; wherein the power consumption of the preset image acquisition mode is greater than the power consumption of the full-time video recording mode; Otherwise, the image collector continues to be in full-time video recording mode; Detection of captured images based on priority detection mode includes: If a detection result of detecting the collected image based on the target detection method is a preset result corresponding to the target detection method, detecting the collected image based on other preset detection methods other than the target detection method; If the detection result of detecting the collected image based on the target detection method is not a preset result corresponding to the target detection method, detecting the collected image only based on the target detection method; Detecting the collected image based on a target detection method includes: If the detection results obtained by detecting the acquired image based on the target detection method are all preset results corresponding to the target detection method, and the number of times reaches a first preset number of times, the detection results of other preset detection methods do not meet the requirements, or the consecutive detection results are not the preset results corresponding to the target detection method, and the number of times reaches a second preset number of times, then reselect the target detection method from the preset detection methods and switch to the priority detection mode to detect the acquired image.
2. The method according to claim 1, It is characterized in that Detecting the collected image based on other preset detection methods includes: Starting from one other preset detection method according to a first preset order, detecting the collected image based on the other preset detection method; If the detection result is the preset result corresponding to the other preset detection method, switching to the next other preset detection method; Accordingly, if the detection results of the collected image detected based on each preset detection method in the priority detection mode are all preset results corresponding to the preset detection method, the image collector is exited from the full-time recording mode, including: If the last other preset detection mode is switched to according to the first preset sequence, and the detection result of the last other preset detection mode on the collected image is the preset result corresponding to the last other preset detection mode, the image collector is exited from the full-time recording mode.
3. The method according to claim 2, It is characterized in that The method further comprises: If there is a detection result detected by other preset detection methods that is not the preset result corresponding to the other preset detection methods, continue to detect the collected image based on the target detection method.
4. The method according to claim 1, It is characterized in that Reselecting a target detection mode from a preset detection mode and switching a priority detection mode to detect the collected image includes: Reselecting a target detection method from the preset detection methods that have not been selected according to a second preset order and switching the priority detection mode to detect the collected image until all the preset detection methods have been selected as the target detection methods; Continue to use the first preset detection mode as the target detection mode in accordance with the second preset sequence, and detect the collected image based on the priority detection mode.
5. The method according to claim 1, It is characterized in that The preset detection method is determined according to the features that the user is concerned about, and the collected image is the latest image collected in real time by the image collector.
6. A working mode switching device for an image collector, It is characterized in that The device comprises: A detection module, used for detecting the collected image based on a priority detection mode when the image collector is in a full-time recording mode; wherein the priority detection mode is a mode for detecting based on a target detection mode in a preset detection mode first; and the full-time recording mode is a low-power consumption mode in which only some functions are turned on; A mode exit module, used for, if the detection results of the collected image detected based on each preset detection mode in the priority detection mode are all preset results corresponding to the preset detection mode, then the image collector exits the full-time video recording mode and enters the preset image acquisition mode; wherein the power consumption of the preset image acquisition mode is greater than the power consumption of the full-time video recording mode; A mode maintaining module, used for otherwise making the image collector continue to be in the full-time video recording mode; The detection module detects the collected image based on the priority detection mode, including: If a detection result of detecting the collected image based on the target detection method is a preset result corresponding to the target detection method, detecting the collected image based on other preset detection methods other than the target detection method; If the detection result of detecting the collected image based on the target detection method is not a preset result corresponding to the target detection method, detecting the collected image only based on the target detection method; The detection module detects the collected image based on the target detection method, including: If the detection results obtained by detecting the acquired image based on the target detection method are all preset results corresponding to the target detection method, and the number of times reaches a first preset number of times, the detection results of other preset detection methods do not meet the requirements, or the consecutive detection results are not the preset results corresponding to the target detection method, and the number of times reaches a second preset number of times, then reselect the target detection method from the preset detection methods and switch to the priority detection mode to detect the acquired image.
7. An electronic device, It is characterized in that The electronic device comprises: at least one processor; and A memory connected to the at least one processor for data processing; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the working mode switching method of the image collector according to any one of claims 1 to 5.
8. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method for switching the working mode of the image collector according to any one of claims 1 to 5 when executed.
Citation Information
Patent Citations
Control method, control device and electronic equipment
CN104331149A
Application program control method and device and computer readable storage medium
CN111913555A
Monitoring camera awakening method and device, equipment and medium
CN113938598A
Function control method, function control device and storage medium
CN115550539A
Image quality detection method and device, electronic equipment and storage medium
CN116245865A
