Shooting control method, device, equipment and computer program product

Through the sensor-based contactless shooting control method, the problem of shooting control failure in special environments is solved, and efficient shooting control is achieved in underwater, humid, high temperature and extremely cold environments, reducing the risk of water inlet in the equipment.

CN119277186APending Publication Date: 2025-01-07GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411282179.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-12
Publication Date
2025-01-07

AI Technical Summary

Technical Problem

The existing shooting control methods have the risk of water inlet and control failure in special environments such as underwater, high temperature, extreme cold, etc., and cannot meet the shooting needs in these environments.

Method used

The contactless shooting control method based on sensor is adopted, by starting one or more sensors, acquiring sensor data, determining target control instructions, and controlling the camera device in response to the instructions, contactless shooting control is realized.

Benefits of technology

It reduces the risk of water inlet and control failure in special environments, and improves the operation success rate and equipment waterproof performance in underwater, humid, high temperature and extremely cold environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119277186A_ABST
    Figure CN119277186A_ABST
Patent Text Reader

Abstract

The invention discloses a shooting control method and device, equipment and a computer program product, and the method comprises the steps: starting a shooting control function of one or more sensors, and enabling the one or more sensors to carry out the non-contact shooting control of a camera device; acquiring sensor data acquired by one or more sensors; determining a target control instruction of the camera device based on the sensor data; and in response to the target control instruction, executing corresponding shooting control on the camera device. Thus, a new control mode is provided for the camera device, the camera device is enabled to be suitable for control requirements of more environments, such as underwater, humid, high-temperature and extremely cold extreme environments, in the environments, non-contact shooting control is realized based on a shooting control function of a sensor, and compared with physical key control and virtual key control, the camera device has the advantages that the control efficiency is improved, and the control cost is reduced. Risks of equipment water inflow and control failure can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of electronic technology, and in particular to a shooting control method, device, equipment, and computer program product. Background Art

[0002] With the development of science and technology and the increase in user demand, electronic products for shooting in special environments (such as underwater, high temperature, extreme cold, etc.) have gradually emerged. These electronic products usually need to have a high level of waterproof, dustproof, high temperature or low temperature resistance, and be able to work normally and shoot in special environments.

[0003] At present, most electronic products on the market mainly rely on key control and touch control for shooting control. In special environments, key control and touch control have a high risk of water ingress and control failure. Therefore, the existing shooting control methods are no longer applicable to the shooting needs of these special environments. Summary of the invention

[0004] The embodiments of the present application are intended to provide a shooting control method, apparatus, device, and computer program product.

[0005] The technical solution of this application is implemented as follows:

[0006] In a first aspect, a shooting control method is provided, comprising:

[0007] Starting a shooting control function of one or more sensors, where the one or more sensors are used to perform contactless shooting control on the camera device;

[0008] Obtaining sensor data collected by one or more sensors;

[0009] Determining target control instructions for the camera device based on the sensor data;

[0010] In response to the target control instruction, corresponding shooting control is performed on the camera device.

[0011] In a second aspect, a shooting control device is provided, comprising:

[0012] A control unit, used to start a shooting control function of one or more sensors, wherein the one or more sensors are used to perform contactless shooting control on the camera device;

[0013] An acquisition unit, used to acquire sensor data collected by one or more sensors;

[0014] A processing unit, for determining a target control instruction of the camera device based on the sensor data;

[0015] The control unit is also used to execute corresponding shooting control on the camera device in response to the target control instruction.

[0016] In a third aspect, a shooting control device is provided, comprising: a processor and a memory configured to store a computer program that can be run on the processor,

[0017] Wherein, when the processor is configured to run a computer program, the steps of the aforementioned method are executed.

[0018] In a fourth aspect, a computer program product includes a computer program, and when the computer program is executed by a processor, the steps of the aforementioned method are implemented.

[0019] In the embodiments of the present application, a shooting control method, device, equipment, and computer program product are provided, the method comprising: starting the shooting control function of one or more sensors, one or more sensors being used to perform contactless shooting control on the camera device; acquiring sensor data collected by one or more sensors; determining the target control instruction of the camera device based on the sensor data; and executing corresponding shooting control on the camera device in response to the target control instruction. In this way, a new control method is provided for the camera device, so that the camera device is suitable for the control requirements of more environments, for example, extreme environments such as underwater, humid, high temperature, and extremely cold. In these environments, the sensor-based shooting control function realizes contactless shooting control, which can reduce the risk of water ingress and control failure of the device compared to physical button control and virtual button control. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 This is a schematic diagram of a first process flow of a shooting control method in an embodiment of the present application;

[0021] Figure 2 This is a second flow chart of the shooting control method in the embodiment of the present application;

[0022] Figure 3 Schematic diagram of the process of starting and shutting down the underwater shooting in the embodiment of the present application;

[0023] Figure 4 Schematic diagram of the camera switching method in the embodiment of the present application;

[0024] Figure 5 A schematic diagram of a process for triggering a method for taking a photo or recording a video in an embodiment of the present application;

[0025] Figure 6 Schematic diagram of the process of the image zoom control method in the embodiment of the present application;

[0026] Figure 7 This is a schematic diagram of the composition structure of the shooting control device in the embodiment of the present application;

[0027] Figure 8It is a schematic diagram of the composition structure of the shooting control device in the embodiment of the present application. DETAILED DESCRIPTION

[0028] In order to enable a more detailed understanding of the features and technical contents of the embodiments of the present application, the implementation of the embodiments of the present application is described in detail below in conjunction with the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present application.

[0029] A shooting control method provided in the embodiments of the present application can be applied to a terminal device with a shooting function, and the terminal device can be implemented in various forms. For example, the terminal device described in the embodiments of the present application may include a mobile terminal such as a mobile phone, a camera, a tablet computer, a laptop computer, a PDA, a portable media player (PMP), a navigation device, a wearable device, etc.

[0030] The terminal device may include: an RF (Radio Frequency) device, a WiFi module, an audio input device, an audio output device, a camera device, multiple sensors, a display unit, a user input unit, an interface unit, a memory, a processor, a power supply and other components.

[0031] The camera device is used to receive image signals. The camera device may include a camera, or may include a camera and its corresponding graphics processing unit (GPU), which processes image data of a static picture or video obtained by the camera in a video capture mode or an image capture mode. The processed image frame may be displayed on a display unit.

[0032] Sensors include: proximity sensor, distance sensor, gyroscope sensor, magnetometer sensor, acceleration sensor, color temperature sensor, temperature sensor, humidity sensor, light sensor, air pressure sensor, Hall sensor, etc.

[0033] Color temperature sensor: The main function is to measure the color temperature of the light emitted by an object, that is, the degree to which the white light of the light source is cold or hot. It collects spectral features, uses optical filtering technology to separate the spectrum, and then detects and calculates the spectrum to finally derive the luminous color temperature of the object.

[0034] The proximity sensor determines the distance between an object and a mobile terminal by emitting infrared or ultrasonic waves and measuring the strength or time delay of the reflected signal.

[0035] Distance sensor, used to sense the distance between it and an object.

[0036] The gyroscope sensor is used to measure the angular velocity of the mobile terminal around three axes, while the accelerometer can measure the acceleration of the mobile terminal on three axes. By analyzing and processing these data, the movement information such as the mobile phone's moving direction, speed, acceleration, etc. can be determined. In addition, the magnetometer can also provide additional magnetic field information to help calibrate and correct the posture and direction of the mobile terminal. These sensors work together to provide key information such as the posture, angular velocity, acceleration, etc. of the mobile phone in real time.

[0037] Based on the above-mentioned mobile terminal hardware structure, a shooting control method provided in an embodiment of the present application is specifically a sensor-based shooting control method. This method provides a new control method for the camera device, so that the camera device is suitable for the control needs of more environments, for example, underwater, humid, high temperature and extreme cold environments. In these environments, the sensor-based shooting control function realizes contactless shooting control, which can reduce the risk of water ingress and control failure compared to physical button control and virtual button control.

[0038] Figure 1 Schematic diagram of the first process of the shooting control method in the embodiment of the present application. Figure 1 As shown, the method may specifically include:

[0039] Step 101: starting a shooting control function based on one or more sensors for a camera device, where the one or more sensors are used to implement contactless shooting control for the camera device;

[0040] The shooting control function based on one or more sensors can be understood as a method of performing control operations on the camera device by sensing the user's operation behavior through the sensor. The user operation behavior is a contactless operation behavior, that is, the user can achieve shooting control without direct contact with the sensor, which is different from the traditional contact operation behavior on virtual buttons or physical buttons.

[0041] In some embodiments, the one or more sensors include but are not limited to at least one of the following: a proximity sensor, a gyroscope, and a light sensor (also called a light sensor). Different sensors correspond to different shooting controls, or different data features of the same sensor correspond to different shooting controls.

[0042] In some embodiments, when the method is applied to a preset scene, the method further includes: when it is detected that the current environment is a preset environment, starting a shooting control function based on one or more sensors.

[0043] In some embodiments, when a user-initiated operation is detected, a shooting control function based on one or more sensors is initiated.

[0044] In some embodiments, when the current environment is detected as a preset environment and a user-initiated operation is detected, a shooting control function based on one or more sensors is started. For example, when the current environment is detected as a preset environment, it is determined whether a user-initiated operation is detected; if a user-initiated operation is detected, the shooting control function based on one or more sensors is started; if no user-initiated operation is detected, the current shooting control function based on a virtual key or a physical key is maintained.

[0045] In some embodiments, at least one of the following is further included: performing environmental perception based on sensor data collected by the first sensor to determine whether the current environment is a preset environment; performing environmental perception based on image data collected by the camera device to determine whether the current environment is a preset environment. In other words, environmental perception is performed by the first sensor and / or the camera device to determine whether the current environment is a preset environment.

[0046] The first sensor includes one or more sensors for sensing one or more environmental information. Exemplarily, the first sensor includes but is not limited to one or more of a color temperature sensor, a temperature sensor, a humidity sensor, and an air pressure sensor. The color temperature sensor is used to sense the color temperature of the ambient light, the temperature sensor is used to sense the ambient temperature, the humidity sensor is used to sense the ambient humidity, and the air pressure sensor is used to sense the atmospheric pressure. Environmental sensing through multiple sensors can improve the detection accuracy.

[0047] In some embodiments, when the first sensor includes a color temperature sensor, environmental perception is performed based on sensor data collected by the first sensor to determine whether the current environment is a preset environment, including: when the brightness ratio of the green channel and / or the blue channel of the current environment is within a preset value range, determining that the current environment is the preset environment, and the preset value range is the value range of the brightness ratio of the green channel and / or the blue channel of the preset environment; when the brightness ratio of the green channel and / or the blue channel of the current environment is outside the preset value range, determining that the current environment is not the preset environment.

[0048] If the value range of the brightness ratio of the green channel and / or blue channel of the preset environment is different from that of other environments, the preset environment can be accurately identified by color temperature detection through the color temperature sensor. If the value range of the brightness ratio of the green channel and / or blue channel of the preset environment is not significantly different from that of other environments, the preset environment and other environments can also be distinguished by combining or using the detection results of other sensors.

[0049] Exemplarily, environmental perception is performed based on image data captured by a camera device to determine whether the current environment is a preset environment, including: identifying the preset environment based on one or more frames of image data captured by the camera device; if the image data contains preset environment features, determining that the current environment is the preset environment; otherwise, determining that the current environment is not the preset environment.

[0050] In some embodiments, the preset environment is an underwater environment. The method for underwater environment perception based on a color temperature sensor may include: when the brightness ratio of the green channel and / or the blue channel is greater than a first threshold, determining that the current environment is an underwater environment. Further, when the brightness ratio of the green channel and / or the blue channel is less than or equal to the first threshold, determining that the current environment is not an underwater environment. The value of the first threshold may be greater than or equal to 70%, for example, the value of the first threshold is 80%.

[0051] The method for underwater environment perception based on image data collected by a camera device may include: identifying the underwater environment based on one or more frames of image data collected by the camera device; if the image data contains underwater environment features, determining that the current environment is an underwater environment; otherwise, determining that the current environment is not an underwater environment.

[0052] When applied to underwater scenes, this method can be understood as a sensor-based underwater shooting control method. According to the control requirements of the underwater environment, the shooting control function based on one or more sensors is started to realize contactless underwater shooting control. Compared with physical button control, it can reduce the risk of water ingress to the equipment, and compared with touch screen control, it can improve the operation success rate.

[0053] In some embodiments, the sensor data collected by the first sensor and / or the image data collected by the camera device are input into a trained artificial intelligence model for environmental perception to determine whether the current environment is a preset environment.

[0054] In some embodiments, the method also includes: when performing environmental perception based on sensor data collected by the first sensor to determine that the current environment is a preset environment, starting a capture function of the camera device; acquiring image data collected by the camera device; and performing environmental perception based on the image data collected by the camera device to determine whether the current environment is a preset environment.

[0055] First, the current environment is monitored in real time through the first sensor. If the current environment enters the preset environment, the capture function of the camera device is activated to further refine whether the terminal device is in the preset environment. If the current environment is confirmed to be the preset environment, the shooting control function based on one or more sensors is activated. Otherwise, it is not activated and the current shooting control function based on the virtual button or physical button is maintained.

[0056] In a preset environment, the camera device is controlled to enter a preset shooting mode, and non-contact shooting control of the camera device is implemented based on one or more sensors in the preset shooting mode. In some embodiments, the preset shooting mode may also include an image processing method for the preset environment. Since there are significant differences in light conditions, temperature, humidity, and clarity between the preset environment and the normal environment, these differences require different methods for image processing. These differences are effectively resolved by color correction, brightness adjustment, clarity enhancement, etc., and the quality of the preset captured image is improved.

[0057] Step 102: Acquire sensor data collected by one or more sensors;

[0058] Step 103: Determine a target control instruction of the camera device based on the sensor data;

[0059] The user operation behavior is determined by processing and analyzing the sensor data, thereby determining the target control instruction corresponding to the user operation behavior.

[0060] In some embodiments, target control instructions are determined based on sensor data input into a trained artificial intelligence model.

[0061] In some embodiments, determining a target control instruction of a camera device based on sensor data includes: determining a target control condition satisfied by the sensor data from one or more control conditions based on the sensor data; and determining a target control instruction corresponding to the target control condition based on a correspondence between one or more control conditions and control instructions.

[0062] In some embodiments, the control instruction includes but is not limited to at least one of the following: a start instruction, a camera device switching instruction, a photo / video recording instruction, an image zoom instruction, and an exit instruction.

[0063] In some embodiments, if the second data collected by the second sensor meets the start condition, that is, the target control condition is the start condition, the target control instruction is determined to be the start instruction, and the start instruction corresponds to the start control of the camera device; or, if the third data collected by the third sensor meets the exit condition, that is, the target control condition is the exit condition, the target control instruction is determined to be the exit instruction, and the exit instruction corresponds to the exit control of the camera device.

[0064] The second sensor and the third sensor can be different sensors, respectively realizing starting shooting and exiting shooting. In some embodiments, the second sensor is a proximity sensor, and the third sensor is a light sensor. For example, touching (or within a certain distance) the proximity sensor starts the camera device, and blocking the light sensor turns off the camera device.

[0065] The second sensor and the third sensor may also be the same sensor, and different operations on the same sensor may be used to respectively realize the control operations of starting shooting and exiting shooting. In some embodiments, the second sensor and the third sensor are both proximity sensors, for example, touching the proximity sensor starts the camera device, and touching the proximity sensor again turns off the camera device. In some embodiments, the second sensor and the third sensor are both light sensors, for example, blocking the light sensor starts the camera device, and blocking the light sensor again turns off the camera device.

[0066] In some embodiments, if the fourth data collected by the fourth sensor meets the switching condition, that is, the target control condition is the switching condition, the target control instruction is determined to be a camera switching instruction. The camera switching instruction corresponds to switching the current working camera to the target camera. For example, for a mobile phone, the switching instruction corresponds to the switching control of the front camera and the rear camera.

[0067] In some embodiments, the control instructions also include other control instructions for the camera device, such as shooting mode selection instructions, or shooting parameter selection instructions, etc. For example, the shooting mode includes photo mode, video mode, portrait mode, night scene mode, live mode and other mode selections, and the shooting parameters include resolution, magnification, exposure and other parameters.

[0068] In some embodiments, the fourth sensor includes a proximity sensor. For example, after starting the camera device, the camera device is switched by touching (or within a certain distance) the proximity sensor. Different shooting control operations can be achieved by controlling the contact time of the proximity sensor. For another example, the camera device is switched by touching the proximity sensor for a short time (such as within 1 second or 2 seconds).

[0069] In some embodiments, the fourth sensor also includes a gyroscope. For example, after the camera device is started, the gyroscope detects that the camera device (which can also be understood as a terminal device including the camera device) shakes a certain angle, thereby realizing the selection of shooting mode or shooting parameters.

[0070] In some embodiments, the fourth sensor also includes multiple sensors such as gyroscopes, accelerometers, and light sensors. These sensors detect the motion information of the camera device, and based on the correspondence between the motion information and the selection instructions, the camera device is switched, or the shooting mode is selected, or the shooting parameter is selected.

[0071] In some embodiments, if the fifth data collected by the fifth sensor meets the shooting condition, that is, the target control condition is the shooting condition, the target control instruction is determined to be a photo / video recording instruction, and the photo / video recording instruction is used to control the camera device to perform a photo / video recording operation.

[0072] In some embodiments, the fifth sensor includes one or more sensors for collecting motion information; the motion information may specifically include: acceleration information, angular velocity information, posture information, motion trajectory, etc. The shooting conditions include restriction conditions of the motion information.

[0073] For example, the fifth sensor includes a gyroscope. After the camera device is started, when the gyroscope detects that the fluctuation angle of the camera device is less than 0.1° and lasts for more than or equal to 3 seconds, 5 seconds, or 10 seconds, it will directly trigger the photo or video recording process.

[0074] In some embodiments, if the sixth data collected by the sixth sensor meets the zoom condition, that is, the target control condition is the zoom condition, the target control condition is determined to be an image zoom instruction, and the image zoom instruction includes zoom control of the preview image or the captured image.

[0075] That is to say, after starting the camera device, the sixth data collected by the sixth sensor is used to control the zoom of the preview image or the captured image. In practical applications, different operations on the same sensor can be used to respectively zoom in or out the image, which has the characteristics of simple operation. Different sensors can also be used to respectively zoom in or out the image.

[0076] In some embodiments, the sixth sensor includes: a proximity sensor and / or a light sensor. For example, firstly approach the proximity sensor continuously (for example, for more than 2 seconds or 3 seconds) or touch the proximity sensor twice in succession to achieve image zooming, then approach the proximity sensor continuously (for example, for more than 2 seconds or 3 seconds) or touch the proximity sensor twice in succession again to achieve image zooming. For another example, approach the proximity sensor continuously or touch the proximity sensor twice in succession to achieve image zooming, then approach the proximity sensor continuously or touch the proximity sensor twice in succession again to achieve image zooming.

[0077] In some embodiments, the one or more sensors further include at least one of the following: a distance sensor, a gravity sensor, a magnetometer sensor, an acceleration sensor, a Hall sensor, etc.

[0078] In some embodiments, the control condition may include at least one of the following:

[0079] The first control condition is that the proximity sensor detects that an object is approaching and the approaching time is greater than a first time threshold;

[0080] The second control condition is that the gyroscope detects that the camera device is in a stable state and the duration is greater than a second time threshold;

[0081] The third control condition is that the proximity sensor detects that an object is approaching, and the approaching time is greater than a third time threshold, and the first time threshold and the third time threshold are different;

[0082] The fourth control condition is that the light sensor detects that there is an object blocking the light, and the blocking time is greater than a fourth time threshold.

[0083] In some embodiments, the corresponding relationship may include at least one of the following:

[0084] Before the camera device is started, the first control condition corresponds to a start instruction;

[0085] After the camera device is started, the first control condition corresponds to a camera device switching instruction;

[0086] The second control condition corresponds to the photo / video recording instruction;

[0087] The third control condition corresponds to an image scaling instruction;

[0088] The fourth control condition corresponds to an exit instruction.

[0089] In some embodiments, the first time threshold is less than the third time threshold. For example, a finger briefly approaches the proximity sensor to start the camera device or switch the camera device, and the finger continues to approach the proximity sensor to zoom in and out the image.

[0090] In some embodiments, the control condition may further include at least one of the following:

[0091] The fifth control condition is that the gyroscope detects that the camera device is in a preset motion state and the duration is greater than a fifth time threshold;

[0092] The sixth control condition is that the light sensor detects that there is an object blocking the light, and the blocking time is greater than the sixth time threshold, and the fourth time threshold is different from the sixth time threshold.

[0093] Step 104: In response to the target control instruction, execute corresponding shooting control on the camera device.

[0094] The embodiments of the present application provide a new control method for the camera device, so that the camera device is suitable for the control requirements of more environments, for example, extreme environments such as underwater, humid, high temperature and extremely cold. In these environments, the sensor-based shooting control function realizes contactless shooting control, which can reduce the risk of water ingress and control failure of the equipment compared to physical button control and virtual button control.

[0095] Let's take the preset environment as an underwater scene for further explanation. Figure 2 : is a second flow chart of the shooting control method in the embodiment of the present application, such as Figure 2 As shown, the method may specifically include:

[0096] Step 201: Underwater environment detection, starting a sensor-based shooting control function;

[0097] Step 202: Proximity sensor detection;

[0098] Step 203: Start the camera;

[0099] Step 204: proximity sensor detection;

[0100] Step 205: Camera selection;

[0101] Step 206: Proximity sensor detection;

[0102] Step 207: Shooting mode selection;

[0103] Step 208: gyroscope detection;

[0104] Step 209: taking photos or videos;

[0105] Step 210: light sensor detection;

[0106] Step 211: Turn off the camera;

[0107] Step 212: Exit the sensor-based shooting control function.

[0108] It should be noted that if the detection result of the proximity sensor determines that the current camera does not need to be changed, step 205 can be skipped and step 206 can be executed.

[0109] It should be noted that if the detection result of the proximity sensor determines that the current shooting mode does not need to be changed, step 207 can be skipped and step 208 can be executed.

[0110] It should be noted that step 208 may be directly executed after step 205, that is, taking a photo or recording a video directly after the camera is selected.

[0111] After starting the sensor-based shooting control function, all related controls do not require hardware clicks or button operations. Instead, shooting control is performed based on proximity sensors, gyroscope sensors, light sensors, etc., to achieve shooting controls such as starting and shutting down underwater shooting, switching cameras, taking photos / recording videos, and selecting shooting modes (video, photo, etc.).

[0112] like Figure 3 As shown, the specific process of the method for starting and stopping underwater shooting may include:

[0113] Step 301: Detect the color temperature of the current environment;

[0114] Step 302: determine whether the brightness ratio of the green channel and / or the blue channel of the current environment is greater than 80%; if yes, execute step 303; if no, return to step 301;

[0115] Step 303: Start the snapshot function to obtain image data collected by the camera;

[0116] Step 304: perform image detection on the image data to determine whether the current environment is an underwater environment; if yes, execute step 305; if no, return to step 301;

[0117] Step 305: Start the sensor-based shooting control function;

[0118] Step 306: briefly approach the location of the proximity sensor;

[0119] Step 307: Start the camera;

[0120] Step 308: temporarily blocking the light sensor;

[0121] Step 309: Outputting exit prompt information;

[0122] Exit prompt information includes: text, image, voice, prompt light, vibration and other prompt information.

[0123] In some embodiments, the exit prompt information includes light blocking prompt information, which is used to remind the user that light blocking will trigger a camera shutdown operation.

[0124] In some embodiments, the exit prompt information includes an exit countdown, and the camera is turned off when the countdown ends.

[0125] In some embodiments, the exit prompt information includes light blocking prompt information and an exit countdown.

[0126] Step 310: Turn off the camera.

[0127] The camera startup and shutdown process first uses the color temperature sensor to detect the color temperature of the current environment. According to the light characteristics in the water, green or blue accounts for a larger proportion. The color proportion is used to determine whether the terminal device (such as a mobile phone, smart watch, etc.) is in an underwater environment. Then start the snapshot to further refine and confirm whether the terminal device is in an underwater environment. If the underwater environment is confirmed, touch the location of the proximity sensor to start the camera. Blocking the light sensor prompts the countdown to exit underwater shooting, and then turns off the camera. The shooting control method provided in the embodiment of the present application can achieve contactless underwater shooting control, with stronger overall waterproofness and experience, support for underwater operation, and more convenient.

[0128] When starting the camera for underwater shooting, it also supports camera switching, image zooming, mode selection, parameter selection, and starting photo or video recording and other shooting controls.

[0129] like Figure 4As shown, during underwater shooting, an optional implementation process of the camera switching method includes:

[0130] Step 401: Start the camera;

[0131] Step 402: The proximity sensor detects whether there is an object approaching; if yes, execute step 402; if not, do not switch cameras, and use the current camera to take pictures or record videos.

[0132] Step 403: Start the camera;

[0133] Step 404: confirming the shooting mode and / or shooting parameters;

[0134] Step 405: Execute the process of taking a photo or recording a video.

[0135] When the camera is started for underwater shooting, if the proximity sensor detects an object approaching (for example, within 3 cm), the camera will be switched to achieve switching between different cameras.

[0136] like Figure 5 As shown, during underwater shooting, an optional implementation process of triggering a method for taking a photo or recording a video includes:

[0137] Step 501: Start the camera;

[0138] Step 502: The gyroscope detects whether the fluctuation angle of the mobile phone is less than 0.1°; if yes, execute step 503; if no, continue to detect the fluctuation of the mobile phone;

[0139] Step 503: Trigger taking a photo or recording a video.

[0140] like Figure 6 As shown, an optional implementation process of the image zoom control method includes:

[0141] Step 601: Preview an image or view a cached image;

[0142] Step 602: The proximity sensor detects whether an object continues to approach; if so, execute step 603;

[0143] Step 603: image enlargement;

[0144] For example, zoom in on a region of interest or zoom in on the center of an image.

[0145] Step 604: The proximity sensor detects whether an object continues to approach; if so, execute step 605;

[0146] Step 605: Image reduction.

[0147] For example, reducing an enlarged image to its original image size.

[0148] The embodiment of the present application uses a proximity sensor to detect whether an object (such as a finger) is continuously approaching to perform zoom control, and has high control sensitivity and high control efficiency.

[0149] The shooting control method provided in the embodiment of the present application has the following advantages for underwater shooting control:

[0150] 1) Take photos or videos without any sensor triggering through the gyroscope, with better waterproof performance;

[0151] 2) Through the color temperature sensor and the camera's capture function, the underwater environment can be automatically identified, and the camera can be started for underwater shooting without contact through proximity sensor detection. Its self-powered control performance is better and the operation is more convenient;

[0152] 3) The proximity time of the proximity sensor is used to trigger the camera module switching and image zooming to improve the underwater shooting control performance.

[0153] To implement the method of the embodiment of the present application, based on the same inventive concept, the embodiment of the present application also provides a shooting control device, such as Figure 7 As shown, the shooting control device 70 includes:

[0154] A control unit 701 is used to start a shooting control function of one or more sensors, where the one or more sensors are used to perform contactless shooting control on the camera device;

[0155] An acquisition unit 702, configured to acquire sensor data collected by one or more sensors;

[0156] The processing unit 703 is used to determine the target control instruction of the camera device based on the sensor data;

[0157] The control unit 701 is further configured to execute corresponding shooting control on the camera device in response to the target control instruction.

[0158] In some embodiments, the control unit 701 is specifically configured to start a shooting control function based on one or more sensors when detecting that the current environment is a preset environment.

[0159] In some embodiments, the control unit 701 is specifically used to perform at least one of the following: performing environmental perception based on sensor data collected by the first sensor to determine whether the current environment is a preset environment; performing environmental perception based on image data collected by the camera device to determine whether the current environment is a preset environment.

[0160] In some embodiments, the first sensor comprises a color temperature sensor;

[0161] The control unit 701 is specifically used to analyze the spectral characteristics of the light source based on the color temperature data collected by the color temperature sensor, and determine the brightness ratio of the green channel and / or the blue channel of the current environment; when the brightness ratio of the green channel and / or the blue channel of the current environment is within a preset value range, the current environment is determined to be a preset environment, and the preset value range is the value range of the brightness ratio of the green channel and / or the blue channel of the preset environment; when the brightness ratio of the green channel and / or the blue channel of the current environment is outside the preset value range, it is determined that the current environment is not the preset environment.

[0162] In some embodiments, when the preset environment is an underwater environment, the control unit 701 is specifically used to determine that the current environment is an underwater environment when the brightness ratio of the green channel and / or the blue channel is greater than a first threshold. Further, when the brightness ratio of the green channel and / or the blue channel is less than or equal to the first threshold, it is determined that the current environment is not an underwater environment. The value of the first threshold can be greater than or equal to 70%, for example, the value of the first threshold is 80%.

[0163] In some embodiments, the control unit 701 is specifically used to start the capture function of the camera device when the current environment is determined to be a preset environment based on the sensor data collected by the first sensor through environmental perception; obtain the image data collected by the camera device; and perform environmental perception based on the image data collected by the camera device to determine whether the current environment is the preset environment.

[0164] In some embodiments, the processing unit 703 is used to determine, based on the sensor data, a target control condition satisfied by the sensor data from one or more control conditions; and to determine a target control instruction corresponding to the target control condition based on a correspondence between one or more control conditions and control instructions.

[0165] In some embodiments, the control condition includes at least one of the following:

[0166] The first control condition is that the proximity sensor detects that an object is approaching and the approaching time is greater than a first time threshold;

[0167] The second control condition is that the gyroscope detects that the camera device is in a stable state and the duration is greater than a second time threshold;

[0168] The third control condition is that the proximity sensor detects that an object is approaching, and the approaching time is greater than a third time threshold, and the first time threshold and the third time threshold are different;

[0169] The fourth control condition is that the light sensor detects that there is an object blocking the light, and the blocking time is greater than a fourth time threshold.

[0170] In some embodiments, the control instruction includes at least one of the following: a start instruction, a camera device switching instruction, a photo / video recording instruction, an image zoom instruction, and an exit instruction.

[0171] Exemplarily, the corresponding relationship includes at least one of the following:

[0172] Before the camera device is started, the first control condition corresponds to a start instruction;

[0173] After the camera device is started, the first control condition corresponds to a camera device switching instruction;

[0174] The second control condition corresponds to the photo / video recording instruction;

[0175] The third control condition corresponds to an image scaling instruction;

[0176] The fourth control condition corresponds to an exit instruction.

[0177] In some embodiments, the control condition includes at least one of the following: a fifth control condition, the gyroscope detects that the camera device is in a preset motion state, and the duration is greater than a fifth time threshold;

[0178] The sixth control condition is that the light sensor detects that there is an object blocking the light, and the blocking time is greater than the sixth time threshold, and the fourth time threshold is different from the sixth time threshold.

[0179] Exemplarily, the corresponding relationship includes at least one of the following: the fifth control condition corresponds to an exit instruction, and the sixth control condition corresponds to a camera device switching instruction.

[0180] In practical applications, the shooting control device can be a terminal device with shooting functions, or a chip applied to a terminal device. In the present application, the device can realize the functions of multiple units through software, hardware, or a combination of software and hardware, so that the device can execute the shooting control method provided in any of the above embodiments. The technical effects of each technical solution of the device can refer to the technical effects of the corresponding technical solution in the shooting control method, and this application will not elaborate on them one by one.

[0181] Based on the hardware implementation of each unit in the above-mentioned shooting control device, the embodiment of the present application also provides a shooting control device, such as Figure 8 As shown, the shooting control device 80 includes: a processor 801 and a memory 802 configured to store a computer program that can be run on the processor;

[0182] The processor 801 is configured to execute the method steps in the aforementioned embodiment when running a computer program.

[0183] Of course, in practical applications, Figure 8As shown, the various components in the shooting control device 80 are coupled together through a bus system 803. It can be understood that the bus system 803 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 803 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, various buses are marked as bus system 803 in the figure.

[0184] In practical applications, the processor may be at least one of an application-specific integrated circuit (ASIC), a digital signal processing device (DSPD), a programmable logic device (PLD), a field-programmable gate array (FPGA), a controller, a microcontroller, and a microprocessor. It is understandable that for different devices, the electronic device used to implement the functions of the processor may also be other, and the embodiments of the present application do not specifically limit this.

[0185] The above-mentioned memory can be a volatile memory (volatile memory), such as a random access memory (RAM); or a non-volatile memory (non-volatile memory), such as a read-only memory (ROM), a flash memory, a hard disk (HDD) or a solid-state drive (SSD); or a combination of the above-mentioned types of memory, and provide instructions and data to the processor.

[0186] In some embodiments, the shooting control device 80 may be a chip, which is applied to a terminal device with a shooting function. Optionally, the chip may also include an input interface. The processor may control the input interface to communicate with other devices or chips, and specifically, may obtain information or data sent by other devices or chips.

[0187] Optionally, the chip may further include an output interface, wherein the processor may control the output interface to communicate with other devices or chips, and specifically, may output information or data to other devices or chips.

[0188] Optionally, the chip can be applied to the terminal device in the embodiments of the present application, and the chip can implement the corresponding processes implemented by the terminal device in the various methods of the embodiments of the present application. For the sake of brevity, they will not be repeated here.

[0189] In some embodiments, the shooting control device 80 may be a terminal device with a shooting function.

[0190] In an exemplary embodiment, the embodiment of the present application further provides a computer-readable storage medium, such as a memory including a computer program, and the computer program can be executed by a processor of a terminal device to complete the steps of the aforementioned method.

[0191] An embodiment of the present application further provides a computer program product, including a computer program, and when the computer program is executed by a processor, the steps of any one of the methods described in the embodiments of the present application are implemented.

[0192] Optionally, the computer program product can be applied to the terminal device in the embodiments of the present application, and the computer program instructions enable the computer to execute the corresponding processes implemented by the terminal device in the various methods of the embodiments of the present application. For the sake of brevity, they are not repeated here.

[0193] The embodiment of the present application also provides a computer program.

[0194] Optionally, the computer program can be applied to the terminal device in the embodiments of the present application. When the computer program runs on the computer, the computer executes the corresponding processes implemented by the terminal device in the various methods of the embodiments of the present application. For the sake of brevity, they are not repeated here.

[0195] It should be understood that in the embodiments of the present application, related data such as user information is involved. When the embodiments of the present application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.

[0196] It should be understood that the terms used in the present application are only for the purpose of describing specific embodiments, but are not intended to limit the present application. The singular forms of "a", "said" and "the" used in the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in this article refers to and includes any or all possible combinations of one or more associated listed items. The expressions "having", "may have", "include" and "include", or "may include" and "may include" in this application can be used to indicate the presence of corresponding features (e.g., elements such as numerical values, functions, operations or components), but the presence of additional features is not excluded.

[0197] It should be understood that although the terms first, second, third, etc. may be used in this application to describe various information, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other and are not necessarily used to describe a specific order or sequence. For example, without departing from the scope of the present invention, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information.

[0198] The technical solutions described in the embodiments of the present application can be combined arbitrarily without conflict.

[0199] In the several embodiments provided in the present application, it should be understood that the disclosed methods, devices and equipment can be implemented in other ways. The embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.

[0200] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0201] In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be a separate unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0202] The above description is only a specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application.

Claims

1. A shooting control method, characterized in that: The method comprises: Starting a shooting control function of one or more sensors, wherein the one or more sensors are used to perform contactless shooting control on the camera device; Acquiring sensor data collected by the one or more sensors; Determining a target control instruction for the camera device based on the sensor data; In response to the target control instruction, corresponding shooting control is performed on the camera device.

2. The method according to claim 1, characterized in that The method further comprises: When it is detected that the current environment is a preset environment, a shooting control function based on one or more sensors is started.

3. The method according to claim 2, characterized in that The method further comprises at least one of the following: Performing environmental perception based on sensor data collected by the first sensor to determine whether the current environment is a preset environment; Environmental perception is performed based on the image data collected by the camera device to determine whether the current environment is a preset environment.

4. The method according to claim 3, characterized in that The first sensor comprises a color temperature sensor; The performing environmental perception based on the sensor data collected by the first sensor to determine whether the current environment is a preset environment includes: Analyzing the spectral characteristics of the light source based on the color temperature data collected by the color temperature sensor to determine the brightness proportion of the green channel and / or the blue channel of the current environment; In the case where the brightness ratio of the green channel and / or the blue channel of the current environment is within a preset value range, determining that the current environment is a preset environment, and the preset value range is a value range of the brightness ratio of the green channel and / or the blue channel of the preset environment; When the brightness ratio of the green channel and / or the blue channel of the current environment is outside the preset value range, it is determined that the current environment is not the preset environment.

5. The method according to claim 3, characterized in that: The method further comprises: In a case where the current environment is determined to be a preset environment through environmental perception based on the sensor data collected by the first sensor, starting a snapshot function of the camera device; Acquiring image data collected by the camera device; Environmental perception is performed based on the image data collected by the camera device to determine whether the current environment is a preset environment.

6. The method according to claim 1, characterized in that The step of determining a target control instruction of the camera device based on the sensor data includes: Based on the sensor data, determining a target control condition satisfied by the sensor data from one or more control conditions; Based on the correspondence between one or more control conditions and control instructions, a target control instruction corresponding to the target control condition is determined.

7. The method according to claim 6, characterized in that The control conditions include at least one of the following: The first control condition is that the proximity sensor detects that an object is approaching and the approaching time is greater than a first time threshold; The second control condition is that the gyroscope detects that the camera device is in a stable state and the duration is greater than a second time threshold; A third control condition: the proximity sensor detects that an object is approaching, and the approaching time is greater than a third time threshold, and the first time threshold and the third time threshold are different; The fourth control condition is that the light sensor detects that there is an object blocking the light, and the blocking time is greater than a fourth time threshold.

8. The method according to claim 7, characterized in that The control command includes at least one of the following: a start command, a camera switching command, a photo / video recording command, an image zoom command, and an exit command; The corresponding relationship includes at least one of the following: Before the camera device is started, the first control condition corresponds to the start instruction; After the camera device is started, the first control condition corresponds to the camera device switching instruction; The second control condition corresponds to the photo / video recording instruction; The third control condition corresponds to the image scaling instruction; The fourth control condition corresponds to the exit instruction.

9. A shooting control device, characterized in that: The device comprises: A control unit, used to start a shooting control function of one or more sensors, wherein the one or more sensors are used to perform contactless shooting control on the camera device; an acquisition unit, configured to acquire sensor data collected by the one or more sensors; a processing unit, configured to determine a target control instruction for the camera device based on the sensor data; The control unit is further configured to execute corresponding shooting control on the camera device in response to the target control instruction.

10. A shooting control device, characterized in that: The device comprises: a processor and a memory configured to store a computer program capable of being executed on the processor, Wherein, the processor is configured to execute the steps of the method according to any one of claims 1 to 8 when running the computer program.

11. 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 8 are implemented.