Camera equipment control method and device, computer equipment, readable storage medium and program product

By introducing low-power and high-performance data acquisition units into the camera device and switching based on the environmental analysis results, the power consumption problem of the camera device is solved, and the functions of continuous monitoring in low-power mode and switching to high-performance mode under abnormal conditions are realized.

CN119697486APending Publication Date: 2025-03-25LONGSE ELECTRONICS
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411978318.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-31
Publication Date
2025-03-25

AI Technical Summary

Technical Problem

How to realize continuous recording and recording of camera equipment while ensuring reduced power consumption, and solve the camera power consumption problem.

Method used

By introducing the first and second data acquisition units into the imaging device, there are low power consumption and high performance parameters, respectively. Switch the data acquisition unit according to the results of the environment analysis. Use low power consumption mode when the environment is normal, and switch to high performance mode when the environment is abnormal.

Benefits of technology

It realizes long-term environmental monitoring in low-power mode, quickly switch to high-performance mode when the environment is abnormal, meets complex monitoring needs, reduces the power consumption of the camera equipment, and ensures the continuity of monitoring data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119697486A_ABST
    Figure CN119697486A_ABST
Patent Text Reader

Abstract

The invention relates to a camera equipment control method and device, computer equipment, a storage medium and a program product, belongs to the field of computer control, and enables camera equipment to realize continuous acquisition and monitoring in a low-power-consumption state. The camera equipment comprises a first data acquisition unit and a second data acquisition unit, and performance parameters and power consumption parameters of the first unit are lower than those of the second unit; the method comprises the following steps: acquiring data through a first unit to obtain first camera data; performing environment analysis according to the first camera data to obtain a first environment analysis result; if the first environment analysis result indicates that the environment is abnormal, turning off the first unit, turning on the second unit, collecting and analyzing second camera data, and obtaining a second environment analysis result; and if the second environment analysis result indicates that the environment is normal, closing the second unit, starting the first unit, and re-executing the data acquisition step of the first unit.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of device control, and in particular to a camera device control method, device, computer device, computer-readable storage medium, and computer program product. Background Art

[0002] With the rapid development of digital technology, cameras have become an indispensable device in our daily life and work. However, as the functions of cameras become increasingly rich, their power consumption problem has become increasingly prominent. How to achieve continuous video and audio recording while ensuring low power consumption has become a problem that the industry needs to solve urgently. Summary of the invention

[0003] Based on this, it is necessary to provide a camera device control method, device, computer equipment, computer readable storage medium and computer program product to address the above technical problems.

[0004] In a first aspect, the present application provides a method for controlling a camera device, wherein the camera device includes a first data acquisition unit and a second data acquisition unit, wherein a performance parameter and a power consumption parameter of the first data acquisition unit are less than a performance parameter and a power consumption parameter of the second data acquisition unit; the method includes:

[0005] Collecting data through the first data collection unit to obtain first camera data;

[0006] Performing environmental analysis according to the first camera data to obtain a first environmental analysis result;

[0007] If the first environmental analysis result indicates that the environment is abnormal, the first data acquisition unit is turned off, and the second data acquisition unit is turned on to acquire data through the second data acquisition unit to obtain second camera data, and the data acquisition unit performs environmental analysis according to the second camera data to obtain a second environmental analysis result;

[0008] If the second environment analysis result indicates that the environment is normal, the second data acquisition unit is turned off, the first data acquisition unit is turned on, and the process returns to executing the data acquisition by the first data acquisition unit to obtain the first camera data.

[0009] In one embodiment, the step of acquiring data by the first data acquisition unit to obtain first camera data includes:

[0010] The first data acquisition unit acquires data according to a first resolution and a first sampling frequency to obtain first camera data;

[0011] The step of acquiring data by the second data acquisition unit to obtain second camera data includes:

[0012] The second data acquisition unit acquires data according to a second resolution and a second sampling frequency to obtain second camera data; the first resolution is greater than the second resolution, and the first sampling frequency is greater than the second sampling frequency.

[0013] In one embodiment, the first data acquisition unit acquires data according to a first resolution and a first sampling frequency to obtain first camera data, including:

[0014] The first data acquisition unit controls the camera device to perform video sampling and audio sampling according to the first resolution and the first sampling frequency, obtains corresponding video data and audio data, and determines the first camera data;

[0015] The first camera data is stored in a local memory of the camera device.

[0016] In one embodiment, performing environmental analysis according to the first camera data to obtain a first environmental analysis result includes:

[0017] Performing portrait motion detection on the video data of the first camera data to obtain a video analysis result;

[0018] Performing sound characteristic detection on the recording data of the first camera data to obtain a recording analysis result; the sound characteristic detection includes sound frequency detection and sound intensity detection;

[0019] The video analysis result and the audio analysis result are combined to obtain the first environment analysis result.

[0020] In one embodiment, the camera device further includes a remote communication module, and the remote communication module is used to obtain a control command for the camera device from a server; the method further includes:

[0021] Determine a communication time period according to a preset communication time interval, and perform data communication through the first data acquisition unit and the remote communication module within the communication time period to obtain the control command;

[0022] The camera device is controlled according to the control command, and the first data acquisition unit is disconnected from the remote communication module during a non-communication time period.

[0023] In one embodiment, the first environment analysis result includes a video analysis result and an audio analysis result; if the first environment analysis result indicates that the environment is abnormal, turning off the first data acquisition unit and turning on the second data acquisition unit includes:

[0024] If the video analysis result or the audio analysis result indicates that there is an abnormality in the environment, the video analysis result or the audio analysis result is sent to the second data acquisition unit through the remote communication module;

[0025] In a case where the second data acquisition unit responds to the environmental analysis result sent by the first data acquisition unit, the first data acquisition unit is powered off until the second data acquisition unit detects that the environment returns to normal.

[0026] In a second aspect, the present application further provides a camera device control device, wherein the camera device includes a first data acquisition unit and a second data acquisition unit, wherein the performance parameters and power consumption parameters of the first data acquisition unit are less than the performance parameters and power consumption parameters of the second data acquisition unit; the device includes:

[0027] A first camera data acquisition module, used for acquiring data through the first data acquisition unit to obtain first camera data;

[0028] A first environment analysis result determination module, used for performing environment analysis according to the first camera data to obtain a first environment analysis result;

[0029] A first data acquisition unit switching module is used to close the first data acquisition unit and open the second data acquisition unit if the first environmental analysis result indicates that the environment is abnormal, so as to acquire data through the second data acquisition unit to obtain second camera data, and the data acquisition unit performs environmental analysis according to the second camera data to obtain a second environmental analysis result;

[0030] The second data acquisition unit switching module is used to close the second data acquisition unit, open the first data acquisition unit, and return to execute the data acquisition through the first data acquisition unit to obtain the first camera data if the second environment analysis result indicates that the environment is normal.

[0031] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0032] Collecting data through the first data collection unit to obtain first camera data;

[0033] Performing environmental analysis according to the first camera data to obtain a first environmental analysis result;

[0034] If the first environmental analysis result indicates that the environment is abnormal, the first data acquisition unit is turned off, and the second data acquisition unit is turned on to acquire data through the second data acquisition unit to obtain second camera data, and the data acquisition unit performs environmental analysis according to the second camera data to obtain a second environmental analysis result;

[0035] If the second environment analysis result indicates that the environment is normal, the second data acquisition unit is turned off, the first data acquisition unit is turned on, and the process returns to the step of acquiring data through the first data acquisition unit to obtain the first camera data.

[0036] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:

[0037] Collecting data through the first data collection unit to obtain first camera data;

[0038] Performing environmental analysis according to the first camera data to obtain a first environmental analysis result;

[0039] If the first environmental analysis result indicates that the environment is abnormal, the first data acquisition unit is turned off, and the second data acquisition unit is turned on to acquire data through the second data acquisition unit to obtain second camera data, and the data acquisition unit performs environmental analysis according to the second camera data to obtain a second environmental analysis result;

[0040] If the second environment analysis result indicates that the environment is normal, the second data acquisition unit is turned off, the first data acquisition unit is turned on, and the process returns to the step of acquiring data through the first data acquisition unit to obtain the first camera data.

[0041] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:

[0042] Collecting data through the first data collection unit to obtain first camera data;

[0043] Performing environmental analysis according to the first camera data to obtain a first environmental analysis result;

[0044] If the first environmental analysis result indicates that the environment is abnormal, the first data acquisition unit is turned off, and the second data acquisition unit is turned on to acquire data through the second data acquisition unit to obtain second camera data, and the data acquisition unit performs environmental analysis according to the second camera data to obtain a second environmental analysis result;

[0045] If the second environment analysis result indicates that the environment is normal, the second data acquisition unit is turned off, the first data acquisition unit is turned on, and the process returns to the step of acquiring data through the first data acquisition unit to obtain the first camera data.

[0046] The above-mentioned camera equipment method, device, computer equipment, computer-readable storage medium and computer program product perform data acquisition through a first data acquisition unit to obtain first camera data; perform environmental analysis based on the first camera data to obtain a first environmental analysis result; if the first environmental analysis result indicates that the environment is abnormal, the first data acquisition unit is turned off and the second data acquisition unit is turned on to perform data acquisition through the second data acquisition unit to obtain second camera data, and the data acquisition unit performs environmental analysis based on the second camera data to obtain a second environmental analysis result; if the second environmental analysis result indicates that the environment is normal, the second data acquisition unit is turned off and the first data acquisition unit is turned on, and the process returns to execute data acquisition through the first data acquisition unit to obtain the first camera data. In the present application, through the collaborative work of the first and second data acquisition units, the device can operate in a low-power mode when the environment is normal, and use a high-performance mode when the environment is abnormal to meet complex monitoring needs and reduce the power consumption of the camera device; through real-time evaluation of environmental conditions, the device achieves efficient resource management and precise intelligent switching; the device ensures the continuity of monitoring data through switching logic, and data collection and analysis are not interrupted regardless of whether in low-power mode or high-performance mode, thereby achieving continuous data collection and monitoring by the camera device under low power consumption conditions. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions 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 related drawings can be obtained based on these drawings without paying creative work.

[0048] Figure 1 A diagram showing the architecture of a camera device in one embodiment;

[0049] Figure 2 is a diagram of another camera device architecture in one embodiment;

[0050] Figure 3 is a diagram of another camera device architecture in one embodiment;

[0051] Figure 4 is a flow chart of a method for controlling a camera device in one embodiment;

[0052] Figure 5A schematic diagram of another structure of a camera device in an embodiment;

[0053] Figure 6 is a structural block diagram of a camera device control device in one embodiment;

[0054] Figure 7 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0055] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0056] In order to enable those skilled in the art to better understand the present application, the relevant technology is first introduced below.

[0057] exist Figure 1 In the camera device architecture shown in FIG. 1 , there is a single powerful CPU (central processing unit) that can collect, analyze and store data and communicate with the communication module. Figure 2 In another camera device architecture shown in FIG. Figure 1 A single motion detection module is introduced into the architecture. Under normal circumstances, the CPU is in standby mode. When an abnormality is detected, the motion detection device activates the single CPU, making it impossible for the CPU to collect and detect data in real time under normal circumstances. In addition, the single detection environment has large errors and there is a problem of video data loss.

[0058] The camera device control method provided in the embodiment of the present application can be applied to Figure 3 In the application environment shown in the figure, the first data acquisition unit refers to a hardware module capable of performing low power consumption operations, such as a low power microcontroller unit (MCU), which has low performance parameters and power consumption parameters, is suitable for long-term stable operation, is configured with small processing power, memory and sensor sampling accuracy, and its main task is to perform basic data acquisition, such as low-resolution video recording or simple environmental monitoring, to maintain the low power consumption state of the device.

[0059] The second data acquisition unit refers to a hardware module with high-performance parameters but higher power consumption, such as a high-performance central processing unit (CPU), which has higher processing power and the ability to support high-resolution sampling. It is used for high-precision data acquisition and processing, such as high-resolution video recording and complex environment analysis, and is only started when an abnormality is detected to perform high-performance tasks.

[0060] In an exemplary embodiment, Figure 4 As shown, a camera device control method is provided, which is applied to Figure 3 The application environment in FIG. 1 is taken as an example to illustrate, and the following steps S402 to S408 are included. Among them:

[0061] Step S402: collect data through a first data collection unit to obtain first camera data.

[0062] The first camera data is data generated by the first data acquisition unit, used for preliminary environmental monitoring, and used in conjunction with the low power consumption state of the first data acquisition unit, including but not limited to video data and audio data.

[0063] For example, after the camera device is started, the first data acquisition unit starts working, and acquires the first camera data from the connected sensor through the preset sampling frequency and resolution. After the data acquisition is completed, it is stored locally in the device for analysis. During this process, the second data acquisition unit is in a non-working state, and its power supply is cut off to avoid continuous consumption of high power consumption.

[0064] Step S404: Perform environmental analysis based on the first camera data to obtain a first environmental analysis result.

[0065] Among them, the first environmental analysis result is the output result of the environmental analysis, which is used to identify whether the current environment is in an abnormal state and to determine whether it is necessary to switch to a high-performance mode. It is also the key node for triggering the alarm function. The result is generated in real time by the first data acquisition unit through analysis of the first camera data.

[0066] Exemplarily, after acquiring the data, the first data acquisition unit starts the environment analysis function, analyzes and processes the surrounding environment to generate a first environment analysis result. For example, environmental analysis usually relies on embedded low-power algorithms, such as video frame difference method for detecting motion features, or audio signal feature extraction algorithm for detecting abnormal sounds. Intelligent monitoring is achieved through low power consumption, which provides a guarantee for the operation efficiency and response speed of the equipment.

[0067] Step S406: If the first environmental analysis result indicates that the environment is abnormal, the first data acquisition unit is turned off and the second data acquisition unit is turned on to acquire data through the second data acquisition unit to obtain second camera data, and the data acquisition unit performs environmental analysis based on the second camera data to obtain a second environmental analysis result.

[0068] Among them, the second environmental analysis result is an environmental status judgment result generated by the second data acquisition unit, which is used to further analyze the detailed characteristics of the abnormal environment, aiming to conduct an in-depth analysis of the abnormal environment and provide more accurate support for functions such as alarm and data recording.

[0069] The second camera data is high-resolution, high-sampling-frequency data collected and generated by the second data acquisition unit, and is used to conduct an in-depth analysis of the environment when the environment is abnormal. The second camera data may be in the form of, but not limited to, video and audio.

[0070] Exemplarily, when the first environmental analysis result indicates that the environment is abnormal, the second data acquisition unit is activated and enters a high-performance working mode to collect the second camera data. Compared with the first camera data, the second camera data includes more delicate picture details, such as the shape, texture and motion trajectory of the target. During the acquisition process, the second data acquisition unit also processes the data input by the sensor in real time to ensure the integrity and accuracy of the data. For example, in a strong light or low light environment, the second data acquisition unit can optimize the image quality through automatic exposure and dynamic range adjustment to ensure that the collected second camera data has high reliability. After the acquisition is completed, the second camera data is directly stored in the high-speed memory of the device for subsequent analysis. Unlike the first data acquisition unit, the acquisition process of the second data acquisition unit not only includes basic data capture, but may also include extended functions (such as multi-dimensional optical data acquisition) to support the execution of multiple types of algorithms.

[0071] Step S408: if the second environment analysis result indicates that the environment is normal, the second data acquisition unit is turned off, the first data acquisition unit is turned on, and the process returns to the first data acquisition unit to perform data acquisition to obtain first camera data.

[0072] Exemplarily, the second data acquisition unit confirms the current environment state based on the analysis result of the second camera data. If the analysis shows that the abnormal feature has disappeared, for example, there is no moving target in the picture or the audio signal returns to the normal range, a second environment analysis result indicating that the environment is normal is generated.

[0073] When the second environmental analysis result indicates that the environment is normal, the power supply of the second data acquisition unit is cut off to completely stop its operation and avoid continuous power consumption of the high-performance unit. The first data acquisition unit is started and restored to its normal operating state. The first data acquisition unit re-collects environmental data through a low-power sensor and enters a default low-resolution monitoring mode.

[0074] After the first data acquisition unit is started, the device automatically returns to the normal monitoring process, collects data through the first data acquisition unit and generates the first camera data to maintain the continuity of environmental monitoring. In this process, the exit of the high-performance mode is closely linked with the start of the low-power mode to ensure that the device can smoothly switch between different modes.

[0075] The above-mentioned camera device control method performs data acquisition through the first data acquisition unit to obtain the first camera data; performs environmental analysis based on the first camera data to obtain the first environmental analysis result; if the first environmental analysis result indicates that the environment is abnormal, the first data acquisition unit is turned off, and the second data acquisition unit is turned on to perform data acquisition through the second data acquisition unit to obtain the second camera data, and the data acquisition unit performs environmental analysis based on the second camera data to obtain the second environmental analysis result; if the second environmental analysis result indicates that the environment is normal, the second data acquisition unit is turned off, the first data acquisition unit is turned on, and the execution returns to perform data acquisition through the first data acquisition unit to obtain the first camera data. In the present application, through the collaborative work of the first and second data acquisition units, the device can operate in a low power consumption mode when the environment is normal, and use a high performance mode to meet complex monitoring requirements when the environment is abnormal, and reduce the power consumption of the camera device; through real-time evaluation of the environmental status, the device realizes efficient resource management and precise intelligent switching; the device ensures the continuity of monitoring data through switching logic, and data acquisition and analysis are not interrupted regardless of whether it is in a low power consumption mode or a high performance mode, thereby realizing continuous data acquisition and monitoring under low power consumption conditions.

[0076] In an exemplary embodiment, data is collected by a first data acquisition unit to obtain first camera data, including: the first data acquisition unit collects data according to a first resolution and a first sampling frequency to obtain first camera data; data is collected by a second data acquisition unit to obtain second camera data; the first resolution is greater than the second resolution, and the first sampling frequency is greater than the second sampling, including: the second data acquisition unit collects data according to the second resolution and the second sampling frequency to obtain second camera data.

[0077] The first resolution and the first sampling frequency refer to the sampling configuration adopted by the first data acquisition unit in the low power consumption mode, and the second resolution and the second sampling frequency refer to the sampling configuration adopted by the second data acquisition unit in the high performance mode.

[0078] Specifically, in the low power consumption mode, the first data acquisition unit collects environmental data according to the set first resolution and first sampling frequency. In one example, the sampling configuration may include a 2-megapixel resolution and a sampling frequency of 5 frames per second, which can provide sufficient environmental information under limited resource consumption. The first data acquisition unit captures video data through a low power consumption sensor and stores it in real time in the local storage module of the device for subsequent environmental analysis.

[0079] When the first environmental analysis result indicates that there is an abnormality, the device automatically switches to high-performance mode and the second data acquisition unit is activated. The second data acquisition unit collects data according to the set second resolution and second sampling frequency. In a specific embodiment, the sampling configuration may include an 8-megapixel resolution and a sampling frequency of 30 frames per second. Through high-performance sensors, the second data acquisition unit can capture detailed information of the picture, such as the texture and motion trajectory of the target. These high-precision data provide support for in-depth analysis of abnormal environments.

[0080] In this embodiment, through the collection configuration of the first resolution and the first sampling frequency, the device achieves the goal of low-power data collection when the environment is normal. Through the collection configuration of the second resolution and the second sampling frequency, the device provides high-precision and high-quality monitoring data when the environment is abnormal. It achieves an intelligent balance between low power consumption and high performance, which not only meets the energy-saving requirements of long-term operation, but also ensures the monitoring accuracy in abnormal environments.

[0081] In an exemplary embodiment, a first data acquisition unit performs data acquisition according to a first resolution and a first sampling frequency to obtain first video data, including: the first data acquisition unit controls a video recording device to perform video sampling and audio recording sampling according to the first resolution and the first sampling frequency to obtain corresponding video recording data and audio recording data, and determines the first video data; and saves the first video data in a local memory of the video recording device.

[0082] Specifically, the first data acquisition unit starts the video recording function of the camera device according to the first resolution and the first sampling frequency. In a specific embodiment, the first data acquisition unit can record according to the first resolution of 2 million pixels and the first sampling frequency of 5 frames per second. The video sampling is performed by the low-power image sensor built into the device, and the collected video data is stored in frames and sorted according to timestamps. Each frame of data is stored in the device memory in the form of a digital file after basic compression processing. The first data acquisition unit starts the audio input device and performs audio sampling. The audio sampling captures the ambient sound through the built-in microphone of the device, and the audio signal is converted into digital audio data after analog-to-digital conversion. The audio data is stored synchronously with the video data according to the first sampling frequency to ensure the time consistency of audio and video. After the video data and the audio data are generated, the first data acquisition unit performs a file encapsulation operation on the two to generate a complete first camera data file. The first camera data is automatically written into the local memory of the camera device, the storage path is marked, and the index information is recorded in the camera device for subsequent retrieval and processing.

[0083] In this embodiment, through the efficient execution of video and audio sampling, and the reliable storage of local memory, the intelligent monitoring and data management capabilities of the camera equipment are realized, providing a solid foundation for environmental analysis and subsequent response.

[0084] In an exemplary embodiment, an environmental analysis is performed based on the first camera data to obtain a first environmental analysis result, including: performing portrait motion detection on the video data of the first camera data to obtain a video analysis result; performing sound characteristic detection on the audio data of the first camera data to obtain an audio analysis result; the sound characteristic detection includes sound frequency detection and sound intensity detection; and combining the video analysis result and the audio analysis result to obtain the first environmental analysis result.

[0085] Specifically, the first data acquisition unit performs portrait motion detection on the video data. The device analyzes the pixel differences between adjacent video frames by using the frame difference method to detect whether there are significant changes in the picture. When the pixel difference between consecutive frames exceeds a preset threshold, the device determines that there is a moving target in the picture, and further determines whether it is a portrait by extracting target features. The detection results are encapsulated as video analysis results, indicating the appearance time and position of the human target in the picture.

[0086] Subsequently, the first data acquisition unit performs sound characteristic detection on the recorded data. The device extracts the spectrum information of the recorded signal through frequency analysis to check whether there are abnormal frequency segments (such as high-frequency screams or low-frequency explosions). At the same time, the device calculates the sound intensity (such as sound pressure level or amplitude change) to determine whether it exceeds the set range. When an abnormal sound source is detected, the device generates a recording analysis result, indicating the characteristic parameters of the sound and the abnormal time.

[0087] Finally, the first data acquisition unit combines the video analysis result and the audio analysis result to generate a first environment analysis result, which is output in the form of a Boolean value or a classification label and directly fed back to the device to determine whether to enter the high-performance mode.

[0088] In this embodiment, the combination of video analysis results and audio analysis results enables the device to obtain a more comprehensive environmental status assessment from multimodal data, significantly improving the accuracy and reliability of monitoring. The first environmental analysis result, as the final output, not only provides a clear basis for judgment for subsequent mode switching, but also ensures the monitoring quality of the device in low power consumption mode.

[0089] In an exemplary embodiment, the camera device also includes a remote communication module, which is used to obtain control commands for the camera device from a server; the method also includes: determining a communication time period according to a preset communication time interval, and performing data communication through a first data acquisition unit and the remote communication module during the communication time period to obtain control commands; controlling the camera device according to the control commands, and during a non-communication time period, the first data acquisition unit disconnects from the remote communication module.

[0090] Among them, the remote communication module is a hardware unit in the camera device that is responsible for data interaction with the remote server and is used to send or receive data. The remote communication module can realize wireless data transmission between the camera device and the server based on communication protocols such as 4G, 5G, and Wi-Fi. The communication time period refers to the time period during which the device powers the remote communication module at preset intervals and establishes a connection with the server. During the communication time period, the device turns on the remote communication module and conducts short-term data communication with the server to complete the command reception or data upload tasks. The control command is a set of instructions sent by the server to the camera device, which is used to remotely manage the operating status of the camera device or perform specific tasks.

[0091] Specifically, the built-in timer of the camera device starts the communication time period according to the set time interval (such as 2 seconds). During the communication time period, the remote communication module is powered and activated. The remote communication module establishes a short-term connection with the server through the 4G network to check whether there are new control commands to be executed. Control commands usually include device parameter adjustment, mode switching (such as alarm mode activation) or data upload instructions.

[0092] After obtaining the control command, the remote communication module transmits the command data to the first data acquisition unit. If the control command requires adjustment of the sampling configuration of the data acquisition unit, the resolution and sampling frequency parameters will be reset and applied immediately to the device operation. After the communication task is completed, the power supply of the remote communication module is turned off to put it into a power-off state, thereby avoiding the waste of resources caused by long-term networking. During the non-communication time period, the first data acquisition unit is completely disconnected from the remote communication module, and only the normal environmental data collection and analysis functions are maintained.

[0093] In this embodiment, by setting the communication time period and intermittently activating the remote communication module, the timed triggering of the communication time period ensures that the device can regularly receive control commands from the server, maintain effective connectivity with the remote system, and realize the low-power remote management function of the device.

[0094] In an exemplary embodiment, the first environmental analysis result includes a video analysis result and an audio analysis result; if the first environmental analysis result indicates that there is an abnormality in the environment, the first data acquisition unit is turned off and the second data acquisition unit is turned on, including: if the video analysis result or the audio analysis result indicates that there is an abnormality in the environment, the video analysis result or the audio analysis result is sent to the second data acquisition unit through the remote communication module; when the second data acquisition unit responds to the environmental analysis result sent by the first data acquisition unit, the first data acquisition unit is powered off until the second data acquisition unit detects that the environment has returned to normal.

[0095] Specifically, the first data acquisition unit determines the specific features of the current abnormal environment based on the video analysis results or the audio analysis results. For example, when the video analysis results show that there is a continuously moving human target in the picture, or the audio analysis results show that the sound frequency and intensity exceed the set range, the device determines that the current environment is abnormal and generates an analysis result file marking the abnormal time and features.

[0096] Subsequently, the device activates the remote communication module and transmits the video analysis results or audio analysis results to the second data acquisition unit via the 4G network. During the transmission process, the analysis results are sent in the form of data packets, including the time, location and characteristic parameters of the abnormal event. After receiving the analysis results, the second data acquisition unit automatically starts high-resolution data acquisition and optimizes the sampling parameters (such as adjusting the focus or direction of the camera) based on the received abnormal information.

[0097] After the second data acquisition unit enters the high-performance mode, the first data acquisition unit completes the current task and powers off to enter the dormant state to reduce resource usage and power consumption. The first data acquisition unit will remain powered off until the second data acquisition unit detects that the environment has returned to normal and sends a reset instruction, and the system then restarts the low-power mode.

[0098] In this embodiment, through the combination of video and audio analysis, the efficient transmission of the remote communication module, and the intelligent switching between data acquisition units, the unity of energy saving, intelligent monitoring and precise response is achieved, providing comprehensive technical support for the application of camera equipment in multiple scenarios.

[0099] In order to enable those skilled in the art to better understand the above steps, the embodiment of the present application is illustrated below by using an example, but it should be understood that the embodiment of the present application is not limited to this.

[0100] In an exemplary embodiment, Figure 5As shown, the first data acquisition unit can be a low-power microcontroller unit (MCU), which is used for low-resolution video and audio acquisition and is the main operating unit during normal monitoring of the device. The second data acquisition unit can be a high-performance central processing unit (CPU), which is dedicated to high-resolution data acquisition and complex environment analysis, and is used for high-precision processing after abnormality detection. The remote communication module is based on the 4G communication protocol to realize wireless data transmission between the device and the server, and is used to send analysis results and receive control commands. The local storage is a built-in storage chip or SD card, which is used to store camera data and analysis results, and supports efficient data reading and writing.

[0101] When the environment is normal, the first data acquisition unit of the camera device is in working state. The first data acquisition unit collects video data at a resolution of 2 million pixels and a sampling frequency of 5 frames per second, and collects environmental sounds through the audio input module to record the spectrum distribution and intensity characteristics of the sounds. The collected video and audio data are stored as video data and audio data, and saved in the local storage module.

[0102] The device analyzes the video data by using the frame difference method to detect moving targets in the picture, such as human activities; at the same time, it analyzes the frequency and intensity of the audio data to determine whether there are abnormal sounds (such as screams or explosions). The video analysis results and the audio analysis results are combined to generate the first environment analysis results.

[0103] When the first environmental analysis result indicates that the environment is abnormal, the device automatically switches to high-performance mode, turns off the power of the first data acquisition unit to reduce power consumption, and activates the second data acquisition unit. The second data acquisition unit collects high-resolution video data with a resolution of 8 million pixels and a sampling frequency of 30 frames per second, and analyzes and detects the direction of the sound source and acoustic characteristics. The second data acquisition unit combines the target detection of the video data and the sound classification of the audio data to further identify the characteristics of the abnormal environment, such as identifying faces in the picture or tracking moving targets. After the analysis is completed, the results are sent to the server through the remote communication module for further processing or alarm.

[0104] The device sets the communication time period through the timer, activates the remote communication module at intervals of 2 seconds, and establishes a short-term connection with the server. During the communication time period, the remote communication module receives control commands sent by the server, such as adjusting the data acquisition resolution, starting an alarm, or switching the device mode. After the communication task is completed, the remote communication module is powered off to reduce power consumption. During the non-communication time period, the first data acquisition unit continues to work and maintains basic monitoring of the environment, but is completely disconnected from the remote communication module to avoid invalid communication and consumption of resources. Through this intermittent communication mode, the device significantly optimizes the power consumption of the communication module while meeting the needs of remote management.

[0105] When the second data acquisition unit completes the analysis, if it detects that the environment has returned to normal (such as the target disappears or the sound source stops), the device will shut down the second data acquisition unit and restart the first data acquisition unit. The first data acquisition unit returns to normal monitoring status and continues to collect basic data and analyze environmental changes in low-power mode. At the same time, the working results of the second data acquisition unit are stored in the local memory and synchronized to the server through the remote communication module to ensure the integrity of the data. This switching logic of the device enables continuous monitoring while ensuring efficient use of resources.

[0106] In this embodiment, through the above embodiments, this technical solution realizes the dynamic switching of the camera device between low power consumption and high performance modes. Under normal circumstances, the first data acquisition unit operates at low resolution and low sampling frequency to achieve long-term low power consumption monitoring; in abnormal environments, the device switches to the second data acquisition unit, using high-resolution acquisition and complex analysis to provide accurate environmental assessment.

[0107] The device generates multi-modal first environment analysis results by combining video and audio analysis to ensure rapid response to abnormal environments. The intermittent operation of the remote communication module achieves a balance between communication and power consumption, supporting remote control and data transmission of the device.

[0108] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0109] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.

[0110] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0111] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0112] Based on the same inventive concept, the embodiment of the present application also provides a camera device control apparatus for implementing the camera device control method involved above. The implementation scheme for solving the problem provided by the apparatus is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more camera device control apparatus embodiments provided below can refer to the limitations of the camera device control method above, and will not be repeated here.

[0113] In an exemplary embodiment, Figure 6 As shown, a camera device control device is provided, the camera device includes a first data acquisition unit and a second data acquisition unit, the performance parameter and the power consumption parameter of the first data acquisition unit are less than the performance parameter and the power consumption parameter of the second data acquisition unit; the device includes: a first camera data acquisition module 610, a first environment analysis result determination module 620, a first data acquisition unit switching module 630 and a second data acquisition unit switching module 640, wherein:

[0114] A first camera data acquisition module 610, configured to acquire first camera data by acquiring data through the first data acquisition unit;

[0115] A first environment analysis result determination module 620, configured to perform environment analysis according to the first camera data to obtain a first environment analysis result;

[0116] A first data acquisition unit switching module 630 is configured to close the first data acquisition unit and open the second data acquisition unit if the first environment analysis result indicates that the environment is abnormal, so as to acquire data through the second data acquisition unit to obtain second camera data, and the data acquisition unit performs environment analysis according to the second camera data to obtain a second environment analysis result;

[0117] The second data acquisition unit switching module 640 is used to close the second data acquisition unit, open the first data acquisition unit, and return to execute the data acquisition through the first data acquisition unit to obtain the first camera data if the second environment analysis result indicates that the environment is normal.

[0118] In one embodiment, the first camera data acquisition module 610 is also used for the first data acquisition unit to perform data acquisition according to a first resolution and a first sampling frequency to obtain first camera data; the data acquisition by the second data acquisition unit to obtain second camera data includes: the second data acquisition unit performs data acquisition according to a second resolution and a second sampling frequency to obtain second camera data; the first resolution is greater than the second resolution, and the first sampling frequency is greater than the second sampling frequency.

[0119] In one embodiment, the first camera data acquisition module 610 is also used for the first data acquisition unit to control the camera device to perform video sampling and audio sampling according to the first resolution and the first sampling frequency, obtain corresponding video data and audio data, and determine the first camera data; and save the first camera data in the local memory of the camera device.

[0120] In one embodiment, the first environment analysis result determination module 620 is further used to perform portrait motion detection on the video data of the first camera data to obtain a video analysis result; perform sound characteristic detection on the audio data of the first camera data to obtain an audio analysis result; the sound characteristic detection includes sound frequency detection and sound intensity detection; and combine the video analysis result and the audio analysis result to obtain the first environment analysis result.

[0121] In one embodiment, the first environmental analysis result determination module 620 is further used to determine a communication time period according to a preset communication time interval, and to perform data communication between the first data acquisition unit and the remote communication module during the communication time period to obtain the control command; according to the control command, the camera device is controlled, and during non-communication time periods, the first data acquisition unit disconnects from the remote communication module.

[0122] In one embodiment, the first environmental analysis result includes a video analysis result and an audio analysis result; the first data acquisition unit switching module 630 is also used to send the video analysis result or the audio analysis result to the second data acquisition unit through the remote communication module if the video analysis result or the audio analysis result indicates that the environment is abnormal; when the second data acquisition unit responds to the environmental analysis result sent by the first data acquisition unit, the first data acquisition unit is powered off until the second data acquisition unit detects that the environment has returned to normal.

[0123] Each module in the above-mentioned camera control device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0124] In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. Figure 7As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, a camera device control method is implemented.

[0125] Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0126] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.

[0127] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0128] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above-mentioned method embodiments when executed by a processor. It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data need to comply with relevant regulations.

[0129] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.

[0130] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0131] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be construed as limiting the scope of the present application. It should be noted that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A camera device control method, characterized in that: The camera device comprises a first data acquisition unit and a second data acquisition unit, wherein the performance parameter and the power consumption parameter of the first data acquisition unit are smaller than the performance parameter and the power consumption parameter of the second data acquisition unit; The method comprises: Collecting data through the first data collection unit to obtain first camera data; Performing environmental analysis according to the first camera data to obtain a first environmental analysis result; If the first environmental analysis result indicates that the environment is abnormal, the first data acquisition unit is turned off, and the second data acquisition unit is turned on to acquire data through the second data acquisition unit to obtain second camera data, and the data acquisition unit performs environmental analysis according to the second camera data to obtain a second environmental analysis result; If the second environment analysis result indicates that the environment is normal, the second data acquisition unit is turned off, the first data acquisition unit is turned on, and the process returns to executing the data acquisition by the first data acquisition unit to obtain the first camera data.

2. The method according to claim 1, characterized in that The step of acquiring data by the first data acquisition unit to obtain first camera data includes: The first data acquisition unit acquires data according to a first resolution and a first sampling frequency to obtain first camera data; The step of acquiring data by the second data acquisition unit to obtain second camera data includes: The second data acquisition unit acquires data according to a second resolution and a second sampling frequency to obtain second camera data; the first resolution is greater than the second resolution, and the first sampling frequency is greater than the second sampling frequency.

3. The method according to claim 2, characterized in that The first data acquisition unit acquires data according to a first resolution and a first sampling frequency to obtain first camera data, including: The first data acquisition unit controls the camera device to perform video sampling and audio sampling according to the first resolution and the first sampling frequency, obtains corresponding video data and audio data, and determines the first camera data; The first camera data is stored in a local memory of the camera device.

4. The method according to claim 1, characterized in that: The performing environmental analysis according to the first camera data to obtain a first environmental analysis result includes: Performing portrait motion detection on the video data of the first camera data to obtain a video analysis result; Performing sound characteristic detection on the recording data of the first camera data to obtain a recording analysis result; the sound characteristic detection includes sound frequency detection and sound intensity detection; The video analysis result and the audio analysis result are combined to obtain the first environment analysis result.

5. The method according to any one of claims 1 to 4, characterized in that: The camera device further includes a remote communication module, and the remote communication module is used to obtain a control command for the camera device from a server; the method further includes: Determine a communication time period according to a preset communication time interval, and perform data communication through the first data acquisition unit and the remote communication module within the communication time period to obtain the control command; The camera device is controlled according to the control command, and the first data acquisition unit is disconnected from the remote communication module during a non-communication time period.

6. The method according to claim 1, characterized in that The first environment analysis result includes a video analysis result and an audio analysis result; if the first environment analysis result indicates that the environment is abnormal, turning off the first data acquisition unit and turning on the second data acquisition unit includes: If the video analysis result or the audio analysis result indicates that there is an abnormality in the environment, the video analysis result or the audio analysis result is sent to the second data acquisition unit through the remote communication module; In a case where the second data acquisition unit responds to the environmental analysis result sent by the first data acquisition unit, the first data acquisition unit is powered off until the second data acquisition unit detects that the environment returns to normal.

7. A camera control device, characterized in that: The camera device comprises a first data acquisition unit and a second data acquisition unit, wherein the performance parameter and the power consumption parameter of the first data acquisition unit are smaller than the performance parameter and the power consumption parameter of the second data acquisition unit; the device comprises: A first camera data acquisition module, used for acquiring data through the first data acquisition unit to obtain first camera data; A first environment analysis result determination module, used for performing environment analysis according to the first camera data to obtain a first environment analysis result; A first data acquisition unit switching module is used to close the first data acquisition unit and open the second data acquisition unit if the first environmental analysis result indicates that the environment is abnormal, so as to acquire data through the second data acquisition unit to obtain second camera data, and the data acquisition unit performs environmental analysis according to the second camera data to obtain a second environmental analysis result; The second data acquisition unit switching module is used to close the second data acquisition unit, open the first data acquisition unit, and return to execute the data acquisition through the first data acquisition unit to obtain the first camera data if the second environment analysis result indicates that the environment is normal.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.