WO2021027309A1 - Video filming method and apparatus based on ambient light testing, and device and medium - Google Patents
Video filming method and apparatus based on ambient light testing, and device and medium Download PDFInfo
- Publication number
- WO2021027309A1 WO2021027309A1 PCT/CN2020/085567 CN2020085567W WO2021027309A1 WO 2021027309 A1 WO2021027309 A1 WO 2021027309A1 CN 2020085567 W CN2020085567 W CN 2020085567W WO 2021027309 A1 WO2021027309 A1 WO 2021027309A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- value
- preset
- light intensity
- camera module
- video
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 44
- 238000012545 processing Methods 0.000 claims abstract description 87
- 230000001960 triggered effect Effects 0.000 claims abstract description 83
- 238000001514 detection method Methods 0.000 claims description 147
- 230000000737 periodic effect Effects 0.000 claims description 13
- 238000004590 computer program Methods 0.000 claims description 10
- 230000007274 generation of a signal involved in cell-cell signaling Effects 0.000 claims description 9
- 238000004458 analytical method Methods 0.000 claims description 8
- 230000009466 transformation Effects 0.000 claims description 7
- 238000011156 evaluation Methods 0.000 claims description 3
- 230000001568 sexual effect Effects 0.000 claims 3
- 230000000694 effects Effects 0.000 abstract description 8
- 238000012797 qualification Methods 0.000 abstract description 3
- 238000012549 training Methods 0.000 description 12
- 238000012552 review Methods 0.000 description 11
- 230000008569 process Effects 0.000 description 6
- 238000006243 chemical reaction Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 5
- 238000013507 mapping Methods 0.000 description 5
- 238000004364 calculation method Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 230000008859 change Effects 0.000 description 3
- 238000013480 data collection Methods 0.000 description 3
- 241000143243 Idaea flaveolaria Species 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 2
- 230000009977 dual effect Effects 0.000 description 2
- 238000013473 artificial intelligence Methods 0.000 description 1
- 238000012550 audit Methods 0.000 description 1
- 238000013136 deep learning model Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 238000002474 experimental method Methods 0.000 description 1
- 230000004313 glare Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000010606 normalization Methods 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/10—Cameras or camera modules comprising electronic image sensors; Control thereof for generating image signals from different wavelengths
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/70—Circuitry for compensating brightness variation in the scene
- H04N23/71—Circuitry for evaluating the brightness variation
Definitions
- This application relates to the field of camera technology, and in particular to a video shooting method, device, equipment and medium based on ambient light detection.
- the embodiments of the application provide a video shooting method, device, equipment, and medium based on ambient light detection, which are suitable for the field of artificial intelligence. By improving the accuracy and efficiency of light detection, the quality and effect of video shooting are improved, thereby improving The purpose of pass rate and efficiency of video review.
- a video shooting method based on ambient light detection including: receiving an initial instruction including a collection frequency, a start condition, and an end condition; when the start collection command is triggered according to the start condition, the acquisition setting is set in a preset environment according to the collection frequency The current value of the camera module in the camera module, until the end acquisition command is triggered according to the end condition, stop the acquisition and record the first time point when the start acquisition command is triggered and the second time point when the end acquisition command is triggered All the current values collected in between, and generate a detection signal according to all the current values; wait and receive a processing instruction containing the detection signal, call a preset signal processing model to convert the detection signal into the preset Set the light intensity value of the environment; input the light intensity value into a preset brightness level model, and receive the light intensity level output by the brightness level model; input the light intensity level into the preset matcher , And receiving the matching result output by the matcher; acquiring and executing corresponding control operations according to the matching results, and instructing the camera module to shoot dynamic videos
- a video shooting device based on ambient light detection includes: a receiving module for receiving an initial command including a collection frequency, a start condition, and an end condition; and the collection module for triggering a start collection command according to the start condition
- the acquisition frequency acquires the current value of the camera module set in the preset environment, and stops acquisition and records the first time point when the acquisition start command is triggered and the first time point when the acquisition start command is triggered until the end acquisition command is triggered according to the end condition End all the current values collected between the second time point when the collection command is triggered, and generate detection signals according to all the current values;
- the processing module is used to wait and receive the processing instructions containing the detection signals, and call the preset
- a signal processing model is provided to convert the detection signal into a light intensity value of the preset environment; an evaluation module is configured to input the light intensity value into a preset brightness level model and receive the brightness level model The output light intensity level; a matching module for inputting the light intensity level into a preset matcher and receiving the matching result output by
- a computer device includes: one or more processors; a memory; one or more computer programs, wherein the one or more computer programs are stored in the memory and configured to be operated by the one or more The one or more computer programs are configured to execute a video shooting method based on ambient light detection, wherein the video shooting method based on ambient light detection includes the following steps: receiving a collection frequency, starting Initial instructions for conditions and end conditions; when the start acquisition command is triggered according to the start condition, the current value of the camera module set in the preset environment is obtained according to the acquisition frequency, until the end acquisition command is triggered according to the end condition , Stop collecting and record all the current values collected between the first time point when the start collection command is triggered and the second time point when the end collection command is triggered, and generate detection based on all the current values Signal; wait and receive a processing instruction containing the detection signal, call a preset signal processing model to convert the detection signal into the light intensity value of the preset environment; input the light intensity value to the preset brightness In the level model, and receive the light intensity level
- a computer-readable storage medium having a computer program stored on the computer-readable storage medium, when the computer program is executed by a processor, realizes a video shooting method based on ambient light detection, wherein the The video shooting method includes the following steps: receiving an initial instruction including a collection frequency, a start condition, and an end condition; when the start collection command is triggered according to the start condition, the acquisition frequency of the camera module set in the preset environment is obtained according to the collection frequency.
- the video shooting method, device, device and medium based on ambient light detection provided in this application first receive the initial instruction, and obtain the first time point and the second time point according to the start acquisition command triggered by the start condition and the end acquisition command triggered by the end condition All current values collected at the collection frequency between time points, and detection signals are generated according to all current values; then the signal processing model is called according to the processing instructions to convert the detection signals into light intensity values, and the brightness level model is used to obtain the corresponding light intensity values Finally, the matcher is used to match the light intensity level to obtain the matching result, and different video shooting methods are realized according to the control operation corresponding to the matching result.
- the present invention improves the accuracy and detection speed of light detection, reduces the server load, and obviously improves the running speed of the server. Furthermore, after the ambient light detection, corresponding control operations are executed according to different matching results, and different video shooting schemes are realized, which can improve the video shooting effect and quality, reduce the workload of video review, and increase the qualification rate of video review. The purpose of efficiency.
- FIG. 1 is a schematic diagram of an application environment of a video shooting method based on ambient light detection in an embodiment of the present application
- FIG. 2 is a flowchart of a video shooting method based on ambient light detection in an embodiment of the present application
- step S20 of a video shooting method based on ambient light detection in an embodiment of the present application
- step S30 of a video shooting method based on ambient light detection in an embodiment of the present application is a flowchart of step S30 of a video shooting method based on ambient light detection in an embodiment of the present application
- FIG. 5 is a schematic block diagram of a video shooting device based on ambient light detection in an embodiment of the present application
- Fig. 6 is a functional block diagram of a processing module of a video shooting device based on ambient light detection in an embodiment of the present application
- Fig. 7 is a schematic diagram of a computer device in an embodiment of the present application.
- the video shooting method based on ambient light detection can be applied in the application environment as shown in FIG. 1, where the client communicates with the server through the network.
- the client includes, but is not limited to, various computers, notebook computers, smart phones, tablet computers, and smart terminals.
- the server can be implemented as an independent server or a server cluster composed of multiple servers.
- a video shooting method based on ambient light detection is provided.
- the method is applied to the server in FIG. 1 as an example for description, including the following steps:
- S10 Receive an initial command including the acquisition frequency, start condition, and end condition.
- the collection frequency refers to the frequency at which the current value is collected between the start condition and the end condition; and optionally, the start condition is used to trigger a start collection command, which may be server detection
- the start condition is used to trigger a start collection command, which may be server detection
- the user When the user is in the field of view of the camera module, it can also be a preset button that is set on the client and bound to the start collection command when a trigger (triggered by voice or gesture, etc.) is detected; the end condition is used to trigger the end
- the acquisition command may be the server detecting that the light detection duration reaches the preset duration threshold, or it may be the detection that triggers the preset button that is set on the client and is bound to the end acquisition command.
- the camera module includes a photosensitive element, a single camera or a freely switchable camera group; and the camera module may be a camera module that is communicatively connected with the client and installed on the client, or it may be The camera module directly communicates with the server.
- the client when receiving the initial command including the acquisition frequency, start condition, and end condition sent from the client, first respond and execute the start acquisition command triggered by the start condition, start data acquisition, store and record the execution of the start acquisition command
- the system time is used as the first time point and the current value of the camera module set in the preset environment is acquired according to the acquisition frequency; then responds and executes the end acquisition command triggered according to the end condition, stops data acquisition, stores and records the execution end acquisition command
- the system time of the hour is used as the second time point, and a detection signal is generated according to all the current values stored during the first time point and the second time point during the light detection time period.
- the detection signal refers to a pseudo waveform signal whose time and amplitude are coordinate axes.
- the signal processing model may be preset on the server.
- the signal processing model can be written in C/C++, which can significantly improve the computing speed of the server and has a wider applicability.
- it is suitable for mobile terminals and tablet computers with various operating systems.
- the waiting threshold is set according to the light detection time and the signal generation time of the detection signal generated by the signal generation model, and the execution time of the first time point when the start acquisition command is executed and the current system time is recorded in real time, when the execution time reaches
- the server automatically generates a processing instruction containing the detection signal.
- the server After calling the preset signal processing model to normalize the acquired detection signal, signal conversion, signal analysis, and brightness value calculation, Obtain the brightness corresponding to the detection signal, that is, the light intensity value of the preset environment.
- the signal processing model is called, and the detection signal is first converted into aperiodic light waves using a preset mapping relationship, and the aperiodic light waves are split by a preset transformation formula (preferably fast Fourier transform).
- the brightness value of is also the light intensity value of the preset environment.
- S40 Input the light intensity value into a preset brightness level model, and receive the light intensity level output by the brightness level model.
- the brightness level model is based on a deep learning model, and the brightness level model is obtained by training using training samples in a database.
- the training process of the brightness level model includes: obtaining training samples, the training samples containing historical light intensity values and the standard intensity levels corresponding to the historical light intensity values (set according to expert rules); The training sample is trained, and the overall error degree between the light intensity level output after the training and the corresponding historical light intensity value in the training sample is obtained; whether the overall error degree is greater than a preset error threshold is detected, When the overall error is less than or equal to the error threshold, it is prompted that the model training is completed; otherwise, the initial function of the brightness level model is adjusted to a corrected function, and the brightness level model that includes the corrected function is used to The training sample is retrained, and the overall error degree between the light intensity level obtained after the retraining and the corresponding historical light intensity value in the training sample is obtained, and it is determined whether the overall error degree is greater than the error threshold , And so on, until the overall error degree is less
- S50 Input the light intensity level into a preset matcher, and receive a matching result output by the matcher.
- the matching result includes a first result (e.g., "1") for characterizing level matching, a second result (e.g., "+0") and a third result (e.g., " -0").
- a first result e.g., "1”
- a second result e.g., "+0”
- a third result e.g., " -0”
- the matcher input the light intensity level into a preset matcher, and first detect whether the light intensity level matches a preset level range, and when the light intensity level matches the preset level range, the The matcher outputs "1", and when the light intensity level does not match the preset level range, the level mismatch is further determined, that is, the positive and negative value of "0" as the result of detecting level mismatch , When the light intensity level is higher than the maximum level of the level range, the matcher outputs "+0"; and when the light intensity level is lower than the minimum level of the level range, the matcher outputs "-0" ". It is understandable that obtaining the matching result corresponding to the light intensity level based on the matcher is beneficial to improving the matching efficiency.
- S60 Acquire and execute a corresponding control operation according to the matching result, and command the camera module to shoot a dynamic video according to the control operation.
- one matching result corresponds to one or more control operations.
- the matching result is the first result (e.g., "1")
- the camera module is directly asked to shoot video to obtain the user's dynamic video
- the matching result is the second result (e.g., "+0")
- the matching result is the third result (for example, "-0")
- the matching result is the third result (for example, "-0"), in order to avoid light intensity Weak impact on video shooting.
- the camera module After adjusting the light intensity of the preset environment through the preset lighting module, check the light intensity level of the adjusted preset environment again, and determine the light intensity level of the adjusted preset environment After matching with the preset level range, that is, the step S10 to the step S50 are executed again, until it is detected that the matching result is the first result (for example, "1"), the camera module is made to perform video shooting to obtain Dynamic videos of users. Further, user information, device information, shooting time information, etc. are stored in association with the dynamic video.
- this embodiment first receives the initial instruction, and acquires all currents collected at the acquisition frequency between the first time point and the second time point according to the start acquisition command triggered by the start condition and the end acquisition command triggered by the end condition. And generate detection signals based on all current values; then call the signal processing model according to the processing instructions to convert the detection signals into light intensity values, and use the brightness level model to obtain the light intensity level corresponding to the light intensity value; finally, use the matcher to The light intensity level is matched and judged to obtain the matching result, and different video shooting methods are realized according to the control operation corresponding to the matching result.
- the accuracy and detection speed during light detection are improved, the server load is reduced, and the running speed of the server is significantly improved.
- corresponding control operations are executed according to different matching results, and different video shooting schemes are realized, which can improve the video shooting effect and quality, reduce the workload of video review, and increase the qualification rate of video review. The purpose of efficiency.
- the camera module includes a photosensitive element; the step S20 specifically includes the following steps:
- S201 Respond to and execute a collection start command triggered according to the start condition, store the current value output by the photosensitive element acquired at the first time point when the collection start command is executed, and obtained according to the collection frequency.
- the initial instruction may also include a positioning identifier.
- the start of data collection will be executed at the first time point when the start collection command is executed.
- the current value output by the photosensitive element obtained according to the acquisition frequency and the positioning identifier are associated and stored in the database.
- the data associated with the positioning identifier in the database can be retrieved according to the positioning identifier to improve the query speed.
- the camera module includes photosensitive elements such as photoresistors and light pipes based on the photoelectric effect, and changes in the resistance value of the photosensitive elements caused by changes in the light intensity of the preset environment, and then records the current value changes caused by the changes in resistance value in real time .
- the real-time recording of the current value change caused by the change of the resistance value may be collected and recorded by the preset data acquisition device and the current value output by the photosensitive element, or may be obtained according to the obtained resistance value of the photosensitive element and a preset data conversion model Current value.
- the data conversion relationship is:
- I is the current value
- U is the voltage value
- R is the resistance value. It is understandable that the voltage value has been preset in the data conversion model, for example, the voltage value is 2.5.
- the current value and the location identifier of the segment of light detection time are stored in a database in association.
- S203 Generate a detection signal according to all the current values and a preset signal generation model.
- a preset signal generation model is used to generate a pseudo waveform with the time point as the abscissa and the current value as the vertical coordinate. And record the pseudo waveform as a detection signal.
- this embodiment stores the current value output by the photosensitive element collected between the first time point when the start collection command is triggered and the second time point when the end collection command is triggered, and generates detection information according to the current value, and detects
- the data included in the signal is richer, which helps to improve the accuracy of light detection.
- the step S30 specifically includes the following steps:
- S301 Input the detection signal into the signal processing model, and enable the signal processing model to normalize the detection signal to obtain aperiodic light waves. That is, the detection signal is reduced by a preset ratio using a preset mapping relationship to obtain aperiodic light waves.
- each superimposed wave is a periodic light wave
- the phase, frequency direction, and amplitude of each superimposed wave are different.
- the superimposed wave with a wavelength of 590 to 600 nm is an orange wave
- the preset color gamut map it can be known that the R value of the orange wave is 22, the G value is 107, and the B value is 201.
- the brightness model included in the signal processing model and the R value, G value, and B value of each color wave are used to obtain the partial brightness value of each color wave, and the partial brightness value of each color wave is superimposed and accumulated to obtain the The brightness value of the non-periodic light wave (that is, the mixed wave), and then the brightness value of the non-periodic light wave is recorded as the light intensity value of the preset environment.
- the signal processing model includes a brightness model for calculating the partial brightness value of each superimposed wave, and the brightness model is:
- y is the sub-brightness value corresponding to the superimposed wave
- R is the R value corresponding to the superimposed wave
- G is the G value corresponding to the superimposed wave
- B is the B value corresponding to the superimposed wave
- k1 is R
- k2 is the second coefficient corresponding to the G value
- k3 is the third coefficient corresponding to the B value
- the k1, k2, and k3 are constant terms.
- k1 is 0.299
- k2 is 0.587
- k3 is 0.114.
- the signal processing model is called to normalize the detected signal, signal conversion, signal analysis, and brightness value calculation to obtain the light intensity value of the preset environment.
- the signal processing is simpler and the platform has a wider applicability, which reduces the server load and significantly improves the server operating speed; at the same time, it improves the accuracy and efficiency of ambient light detection.
- the matching result includes a first result for characterizing level matching, and a second result and a third result for characterizing level mismatch; the step S60 specifically includes the following steps:
- the server sends a first control operation to the camera module, and starts the camera of the camera module according to the first control operation.
- the camera module may be a camera module that is communicatively connected with the client and installed on the client, or may be a camera module that is directly communicatively connected with the server.
- a second control operation corresponding to the second result is acquired and executed, and the second control operation refers to a light module set in the preset environment After adjusting the brightness of the preset environment, the camera module is made to shoot a video to obtain a dynamic video. That is, when the matching result is the second result (for example, "+0"), the server sends a second control operation to the camera module to obtain the light intensity of the preset environment from the database Level-matched compensation parameters (including the number of LEDs turned on in the lighting module, the brightness of each LED turned on, etc.), the lighting module is controlled to turn on the compensation parameters, and then the light intensity level of the preset environment After the adjustment, the camera of the camera module is started for video shooting to obtain dynamic video.
- the matching result is the second result (for example, "+0")
- the server sends a second control operation to the camera module to obtain the light intensity of the preset environment from the database Level-matched compensation parameters (including the number of LEDs turned on in the lighting module, the brightness of each LED turned on, etc
- a third control operation corresponding to the third result is acquired and executed, and the third control operation refers to switching the camera of the camera module, and switching The latter camera shoots videos to obtain dynamic videos;
- the camera module includes multiple cameras that can be switched freely, and the multiple cameras can be set according to requirements, for example, two or more cameras. That is, when the matching result is the third result (for example, "-0"), the server sends a third control operation to the camera module, and according to the third control operation, the camera module Switch the camera of the camera to a camera suitable for a low-light environment, and start the switched camera for video shooting to obtain dynamic video.
- this embodiment executes corresponding control instructions according to different matching results to realize different video shooting methods (including but not limited to time-lapse shooting, light compensation shooting, and switching camera shooting). This improves the quality and effect of video shooting, reduces the workload during video review and increases the pass rate, thereby improving the efficiency of video review.
- video shooting methods including but not limited to time-lapse shooting, light compensation shooting, and switching camera shooting.
- step S30 further includes The following steps:
- the preset numerical range includes a first threshold and a second threshold, and the first threshold is less than the second threshold.
- the preset first instruction is called and executed, and the first instruction refers to controlling the camera module to shoot video and obtain dynamic video.
- a preset second instruction is called and executed.
- the second instruction refers to controlling the preset lighting module to adjust the brightness of the preset environment and then controlling The camera module shoots video and obtains dynamic video.
- a preset third instruction is called and executed.
- the third instruction refers to controlling the camera module to delay shooting, and detecting the light of the preset environment again Intensity value, until the light intensity value detected again is within the preset value range, the camera module is controlled to shoot a video to obtain a dynamic video.
- the preset value range is the optimal range of light intensity values suitable for video shooting obtained after many experiments. At this time, the quality and effect of the dynamic video obtained by shooting under the preset value range are optimal.
- this embodiment directly uses the light intensity value to perform numerical detection to obtain the detection result, and implements corresponding command control based on different detection results, which is beneficial to reduce the video shooting time and improve the user experience ; At the same time, it can achieve the purpose of improving the quality and effect of video shooting, thereby increasing the pass rate and efficiency of video review.
- a video shooting device based on ambient light detection is provided, and the video shooting device based on ambient light detection corresponds to the video shooting method based on ambient light detection in the above-mentioned embodiment in a one-to-one correspondence.
- the video shooting device based on ambient light detection includes the following modules, and each functional module is described in detail as follows:
- the receiving module 110 is used to receive the initial command including the acquisition frequency, the start condition and the end condition.
- the acquisition module 120 is configured to acquire the current value of the camera module set in the preset environment according to the acquisition frequency when the start acquisition command is triggered according to the start condition, until the end acquisition command is triggered according to the end condition, Stop collecting and record all the current values collected between the first time point when the start collection command is triggered and the second time point when the end collection command is triggered, and generate a detection signal according to all the current values.
- the processing module 130 is configured to wait for and receive a processing instruction containing the detection signal, and call a preset signal processing model to convert the detection signal into a light intensity value of the preset environment.
- the evaluation module 140 is configured to input the light intensity value into a preset brightness level model, and receive the light intensity level output by the brightness level model.
- the matching module 150 is configured to input the light intensity level into a preset matcher, and receive the matching result output by the matcher.
- the control module 160 is configured to obtain and execute a corresponding control operation according to the matching result, and instruct the camera module to shoot a dynamic video according to the control operation.
- the camera module includes a photosensitive element
- the acquisition module 120 includes the following sub-modules, and each functional sub-module is described in detail as follows:
- the start collection sub-module is used to respond to and execute the start collection command triggered according to the start condition, store it at the first time point when the start collection command is executed, and the output of the photosensitive element obtained according to the collection frequency Current value.
- the end collection sub-module is used to respond to and execute the end collection command triggered according to the end condition, and store the light detection experienced at the first time point and the second time point when the end collection command is executed All the current values for the duration.
- the signal generation sub-module is used to generate the detection signal according to all the current values and the preset signal generation model.
- the processing module 130 includes the following sub-modules, and each functional sub-module is described in detail as follows:
- the normalization sub-module 131 is configured to input the detection signal into the signal processing model, so that the signal processing model normalizes the detection signal to obtain aperiodic light waves.
- the transformation sub-module 132 is configured to enable the signal processing model to perform signal transformation on the non-periodic light wave to obtain each superimposed wave and the basic parameters of each superimposed wave.
- the analysis sub-module 133 is configured to enable the signal processing model to perform signal analysis on each of the superimposed waves according to the basic parameters of each of the superimposed waves, and then obtain the R, G, and B values corresponding to each of the superimposed waves.
- the calculation sub-module 134 is configured to enable the signal processing model to calculate the partial brightness value of each superimposed wave according to the R value, G value, and B value corresponding to each superimposed wave, and based on the sub-brightness value of each superimposed wave After the brightness value obtains the brightness value of the aperiodic light wave, the brightness value of the aperiodic light wave output by the signal processing model is recorded as the light intensity value of the preset environment.
- the signal processing model includes a brightness model for calculating the partial brightness value of each of the superimposed waves, and the brightness model is:
- y is the sub-brightness value corresponding to the superimposed wave
- R is the R value corresponding to the superimposed wave
- G is the G value corresponding to the superimposed wave
- B is the B value corresponding to the superimposed wave
- k1 is R The first coefficient corresponding to the value
- k2 is the second coefficient corresponding to the G value
- k3 is the third coefficient corresponding to the B value
- the k1, k2, and k3 are constant terms.
- the matching result includes a first result for characterizing level matching, and a second result and a third result for characterizing level mismatch;
- the control module 160 includes the following sub-modules, each functional sub-module The detailed description is as follows:
- the first operation submodule is configured to obtain and execute a first control operation corresponding to the first result when the matching result is the first result, and the first control operation is to instruct the camera module Shoot video, get dynamic video.
- the second operation sub-module when the matching result is the second result, acquires and executes a second control operation corresponding to the second result, and the second control operation refers to setting in the preset
- the camera module After the lighting module in the environment adjusts the brightness of the preset environment, the camera module is made to shoot a video to obtain a dynamic video.
- the third operation sub-module when the matching result is the third result, acquires and executes a third control operation corresponding to the third result, and the third control operation refers to performing the camera module
- the camera is switched, and a video is captured by the switched camera to obtain a dynamic video; the camera module includes a plurality of cameras that can be switched freely.
- the video shooting device based on ambient light detection includes the following modules, and each functional module is described in detail as follows:
- the detection module is configured to detect whether the light intensity value is within a preset value range; the preset value range includes a first threshold value and a second threshold value, and the first threshold value is less than the second threshold value.
- the first instruction module is used to call and execute a preset first instruction when the light intensity value is within the preset value range, and the first instruction refers to controlling the camera module to shoot a video and obtain Dynamic video.
- the second instruction module is used to call and execute a preset second instruction when the light intensity value is less than the first threshold.
- the second instruction refers to controlling the preset lighting module to perform After adjusting the brightness of the environment, the camera module is controlled to shoot video to obtain dynamic video.
- the third instruction module is used to call and execute a preset third instruction when the light intensity value is greater than the second threshold.
- the third instruction refers to controlling the camera module to delay shooting and detect again The light intensity value of the preset environment until the light intensity value that is detected again is within the preset numerical value range, the camera module is controlled to shoot a video to obtain a dynamic video.
- the various modules in the above-mentioned video shooting device based on ambient light detection can be implemented in whole or in part by software, hardware, and combinations thereof.
- the foregoing modules may be embedded in the form of hardware or independent of the processor in the computer device, or may be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the foregoing modules.
- a computer device is provided.
- the computer device may be a server, and its internal structure diagram may be as shown in FIG. 7.
- the computer equipment includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used to provide calculation 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, computer readable instructions, and a database.
- the internal memory provides an environment for the operation of the operating system and computer-readable instructions in the non-volatile storage medium.
- the computer-readable instructions are executed by the processor to realize a video shooting method based on ambient light detection.
- a computer device including a memory, a processor, and computer-readable instructions stored on the memory and capable of running on the processor, and the processor implements the following steps when the processor executes the computer-readable instructions: Initial instructions for the acquisition frequency, start condition, and end condition; when the start acquisition command is triggered according to the start condition, the current value of the camera module set in the preset environment is acquired according to the acquisition frequency until the end condition is When the end collection command is triggered, stop collecting and record all the current values collected between the first time point when the start collection command is triggered and the second time point when the end collection command is triggered, and based on all the current values The current value generates a detection signal; waits for and receives a processing instruction containing the detection signal, calls a preset signal processing model to convert the detection signal into the light intensity value of the preset environment; inputs the light intensity value to In the preset brightness level model, and receive the light intensity level output by the brightness level model; input the light intensity level into the preset matcher, and receive the
- a computer-readable storage medium is provided.
- the computer-readable storage medium is a volatile storage medium or a non-volatile storage medium, and computer-readable instructions are stored thereon.
- the following steps are implemented: receiving an initial instruction including the acquisition frequency, start condition, and end condition; when the start acquisition command is triggered according to the start condition, the camera module set in the preset environment is acquired according to the acquisition frequency.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Studio Devices (AREA)
Abstract
Description
Claims (19)
- 一种基于环境光线检测的视频拍摄方法,包括:A video shooting method based on ambient light detection, including:接收包含采集频率、开始条件和结束条件的初始指令;Receive initial instructions including acquisition frequency, start condition and end condition;在根据所述开始条件触发开始采集命令时,根据所述采集频率获取设置在预设环境中的摄像头模组的电流值,直至根据所述结束条件触发结束采集命令时,停止采集并记录所述开始采集命令被触发的第一时间点与所述结束采集命令被触发的第二时间点之间采集的所有所述电流值,并根据所有所述电流值生成检测信号;When the start acquisition command is triggered according to the start condition, the current value of the camera module set in the preset environment is acquired according to the acquisition frequency, and the acquisition is stopped and the recording is stopped until the end acquisition command is triggered according to the end condition. All the current values collected between the first time point when the start collection command is triggered and the second time point when the end collection command is triggered, and generating a detection signal according to all the current values;等待并接收包含所述检测信号的处理指令,调用预设的信号处理模型将所述检测信号转换为所述预设环境的光线强度值;Waiting and receiving a processing instruction containing the detection signal, calling a preset signal processing model to convert the detection signal into a light intensity value of the preset environment;将所述光线强度值输入至预设的亮度等级模型中,并接收所述亮度等级模型输出的光线强度等级;Inputting the light intensity value into a preset brightness level model, and receiving the light intensity level output by the brightness level model;将所述光线强度等级输入至预设的匹配器中,并接收所述匹配器输出的匹配结果;Input the light intensity level into a preset matcher, and receive the matching result output by the matcher;根据所述匹配结果获取并执行对应的控制操作,根据所述控制操作令所述摄像头模组拍摄动态视频。A corresponding control operation is acquired and executed according to the matching result, and the camera module is ordered to shoot a dynamic video according to the control operation.
- 如权利要求1所述的基于环境光线检测的视频拍摄方法,所述摄像头模组包括感光元件;The video shooting method based on ambient light detection according to claim 1, wherein the camera module includes a photosensitive element;所述在根据所述开始条件触发开始采集命令时,根据所述采集频率获取设置在预设环境中的摄像头模组的电流值,直至根据所述结束条件触发结束采集命令时,停止采集并记录所述开始采集命令被触发的第一时间点与所述结束采集命令被触发的第二时间点之间采集的所有所述电流值,并根据所有所述电流值生成检测信号,包括:When the start acquisition command is triggered according to the start condition, the current value of the camera module set in the preset environment is acquired according to the acquisition frequency, and the acquisition is stopped and recorded until the end acquisition command is triggered according to the end condition All the current values collected between the first time point when the start collection command is triggered and the second time point when the end collection command is triggered, and generating detection signals according to all the current values include:响应并执行根据所述开始条件触发的开始采集命令,存储在执行所述开始采集命令时的第一时间点,以及根据所述采集频率获取的所述感光元件输出的电流值;Respond to and execute the start collection command triggered according to the start condition, store it at the first time point when the start collection command is executed, and the current value output by the photosensitive element acquired according to the collection frequency;响应并执行根据所述结束条件触发的结束采集命令,存储在所述第一时间点与在执行所述结束采集命令时的第二时间点所经历的该段光线检测时长的所有所述电流值;Respond to and execute the end collection command triggered according to the end condition, and store all the current values of the light detection duration experienced at the first time point and the second time point when the end collection command is executed ;根据所有所述电流值以及预设的信号生成模型生成检测信号。The detection signal is generated according to all the current values and the preset signal generation model.
- 如权利要求1所述的基于环境光线检测的视频拍摄方法,所述调用预设的信号处理模型将所述检测信号转换为所述预设环境的光线强度值,包括:5. The video shooting method based on ambient light detection according to claim 1, wherein said calling a preset signal processing model to convert said detection signal into said preset environment light intensity value comprises:将所述检测信号输入所述信号处理模型,令所述信号处理模型对所述检测信号进行归一化之后,获得非周期性光波;Inputting the detection signal into the signal processing model, and allowing the signal processing model to normalize the detection signal to obtain aperiodic light waves;令所述信号处理模型对所述非周期性光波进行信号变换之后,获得各叠加波以及各所述叠加波的基本参数;After the signal processing model performs signal transformation on the non-periodic light wave, each superimposed wave and the basic parameters of each superimposed wave are obtained;令所述信号处理模型根据各所述叠加波的基本参数对各所述叠加波进行信号解析之后,获得各所述叠加波对应的R值、G值和B值;Enabling the signal processing model to perform signal analysis on each of the superimposed waves according to the basic parameters of each of the superimposed waves to obtain the R value, G value, and B value corresponding to each of the superimposed waves;令所述信号处理模型根据各所述叠加波对应的R值、G值和B值分别计算各所述叠加波的分亮度值,并基于各所述叠加波的分亮度值获取所述非周期性光波的亮度值之后,将所述信号处理模型输出的所述非周期性光波的亮度值记录为所述预设环境的光线强度值。Let the signal processing model calculate the sub-brightness value of each superimposed wave according to the R value, G value, and B value corresponding to each superimposed wave, and obtain the aperiodic value based on the sub-brightness value of each superimposed wave After the brightness value of the sexual light wave, the brightness value of the non-periodic light wave output by the signal processing model is recorded as the light intensity value of the preset environment.
- 如权利要求3所述的基于环境光线检测的视频拍摄方法,所述信号处理模型包括用于计算各所述叠加波的分亮度值的亮度模型,所述亮度模型为:5. The video shooting method based on ambient light detection according to claim 3, wherein the signal processing model includes a brightness model for calculating the sub-brightness value of each of the superimposed waves, and the brightness model is:y=k1*R+k2*G+k3*By=k1*R+k2*G+k3*B其中,y为所述叠加波对应的分亮度值;R为所述叠加波对应的R值;G为所述叠加波对应的G值;B为所述叠加波对应的B值;k1为R值对应的第一系数;k2为G值对应的第二系数;k3为B值对应的第三系数;且所述k1、k2和k3为常数项。Where y is the sub-brightness value corresponding to the superimposed wave; R is the R value corresponding to the superimposed wave; G is the G value corresponding to the superimposed wave; B is the B value corresponding to the superimposed wave; k1 is R The first coefficient corresponding to the value; k2 is the second coefficient corresponding to the G value; k3 is the third coefficient corresponding to the B value; and the k1, k2, and k3 are constant terms.
- 如权利要求1所述的基于环境光线检测的视频拍摄方法,所述匹配结果包含用于表征等级匹配的第一结果,用于表征等级不匹配的第二结果和第三结果;The video shooting method based on ambient light detection according to claim 1, wherein the matching result comprises a first result used to characterize level matching, and a second result and a third result used to characterize level mismatch;所述根据所述匹配结果获取并执行对应的控制操作,根据所述控制操作令所述摄像头模组拍摄动态视频,包括:The acquiring and executing a corresponding control operation according to the matching result, and instructing the camera module to shoot a dynamic video according to the control operation, includes:在所述匹配结果为所述第一结果时,获取并执行与所述第一结果对应的第一控制操作,所述第一控制操作是指令所述摄像头模组拍摄视频,获取动态视频;When the matching result is the first result, acquiring and executing a first control operation corresponding to the first result, where the first control operation is instructing the camera module to shoot a video and acquire a dynamic video;在所述匹配结果为所述第二结果时,获取并执行与所述第二结果对应的第二控制操作,所述第二控制操作是指通过设置在所述预设环境中的灯光模组对所述预设环境进行亮度调整之后,令所述摄像头模组拍摄视频,获取动态视频;When the matching result is the second result, a second control operation corresponding to the second result is acquired and executed, and the second control operation refers to a light module set in the preset environment After adjusting the brightness of the preset environment, make the camera module to shoot a video to obtain a dynamic video;在所述匹配结果为所述第三结果时,获取并执行与所述第三结果对应的第三控制操作,所述第三控制操作是指对所述摄像头模组进行摄像头切换,并通过切换后的所述摄像头拍摄视频,获取动态视频;所述摄像头模组包含可自由切换的多个摄像头。When the matching result is the third result, a third control operation corresponding to the third result is acquired and executed, and the third control operation refers to switching the camera of the camera module, and switching The latter camera shoots videos to obtain dynamic videos; the camera module includes multiple cameras that can be switched freely.
- 如权利要求1所述的基于环境光线检测的视频拍摄方法,所述等待并接收包含所述检测信号的处理指令,调用预设的信号处理模型将所述检测信号转换为所述预设环境的光线强度值之后,包括:The video shooting method based on ambient light detection according to claim 1, wherein said waiting and receiving a processing instruction containing said detection signal, calling a preset signal processing model to convert said detection signal into said preset environment After the light intensity value, include:检测所述光线强度值是否在预设数值范围内;所述预设数值范围包括第一阈值和第二阈值,且所述第一阈值小于所述第二阈值;Detecting whether the light intensity value is within a preset numerical range; the preset numerical range includes a first threshold and a second threshold, and the first threshold is less than the second threshold;在所述光线强度值在所述预设数值范围内时,调用并执行预设的第一指令,所述第一指令是指控制所述摄像头模组拍摄视频,获取动态视频;When the light intensity value is within the preset value range, calling and executing a preset first instruction, where the first instruction refers to controlling the camera module to shoot a video and obtain a dynamic video;在所述光线强度值小于所述第一阈值时,调用并执行预设的第二指令,所述第二指令是指控制预设的灯光模组对所述预设环境进行亮度调整之后,控制所述摄像头模组拍摄视频,获取动态视频;When the light intensity value is less than the first threshold value, a preset second instruction is called and executed. The second instruction refers to controlling the preset lighting module to adjust the brightness of the preset environment and then controlling The camera module shoots video to obtain dynamic video;在所述光线强度值大于所述第二阈值时,调用并执行预设的第三指令,所述第三指令是指控制所述摄像头模组延迟拍摄,并再次检测所述预设环境的光线强度值,直至再次检测的所述光线强度值在所述预设数值范围内时,控制所述摄像头模组拍摄视频,获取动态视频。When the light intensity value is greater than the second threshold, a preset third instruction is called and executed. The third instruction refers to controlling the camera module to delay shooting, and detecting the light of the preset environment again Intensity value, until the light intensity value detected again is within the preset value range, the camera module is controlled to shoot a video to obtain a dynamic video.
- 一种基于环境光线检测的视频拍摄装置,包括:A video shooting device based on ambient light detection, including:接收模块,用于接收包含采集频率、开始条件和结束条件的初始指令;The receiving module is used to receive the initial command including the acquisition frequency, start condition and end condition;采集模块,用于在根据所述开始条件触发开始采集命令时,根据所述采集频率获取设置在预设环境中的摄像头模组的电流值,直至根据所述结束条件触发结束采集命令时,停止采集并记录所述开始采集命令被触发的第一时间点与所述结束采集命令被触发的第二时间点之间采集的所有所述电流值,并根据所有所述电流值生成检测信号;The acquisition module is configured to acquire the current value of the camera module set in the preset environment according to the acquisition frequency when the start acquisition command is triggered according to the start condition, and stop until the end acquisition command is triggered according to the end condition Collecting and recording all the current values collected between the first time point when the start collection command is triggered and the second time point when the end collection command is triggered, and generating a detection signal according to all the current values;处理模块,用于等待并接收包含所述检测信号的处理指令,调用预设的信号处理模型将所述检测信号转换为所述预设环境的光线强度值;The processing module is configured to wait for and receive a processing instruction containing the detection signal, and call a preset signal processing model to convert the detection signal into the light intensity value of the preset environment;评估模块,用于将所述光线强度值输入至预设的亮度等级模型中,并接收所述亮度等级模型输出的光线强度等级;An evaluation module, configured to input the light intensity value into a preset brightness level model, and receive the light intensity level output by the brightness level model;匹配模块,用于将所述光线强度等级输入至预设的匹配器中,并接收所述匹配器输出的匹配结果;A matching module, configured to input the light intensity level into a preset matcher, and receive a matching result output by the matcher;控制模块,用于根据所述匹配结果获取并执行对应的控制操作,根据所述控制操作令所述摄像头模组拍摄动态视频。The control module is configured to obtain and execute corresponding control operations according to the matching results, and to make the camera module shoot dynamic videos according to the control operations.
- 一种计算机设备,包括:A computer device including:一个或多个处理器;One or more processors;存储器;Memory一个或多个计算机程序,其中所述一个或多个计算机程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个计算机程序配置用于执行一种基于环境光线检测的视频拍摄方法;其中,所述基于环境光线检测的视频拍摄方法方法包括以下步骤:One or more computer programs, wherein the one or more computer programs are stored in the memory and configured to be executed by the one or more processors, and the one or more computer programs are configured to execute A video shooting method based on ambient light detection; wherein the video shooting method based on ambient light detection includes the following steps:接收包含采集频率、开始条件和结束条件的初始指令;Receive initial instructions including acquisition frequency, start condition and end condition;在根据所述开始条件触发开始采集命令时,根据所述采集频率获取设置在预设环境中的摄像头模组的电流值,直至根据所述结束条件触发结束采集命令时,停止采集并记录所述开 始采集命令被触发的第一时间点与所述结束采集命令被触发的第二时间点之间采集的所有所述电流值,并根据所有所述电流值生成检测信号;When the start acquisition command is triggered according to the start condition, the current value of the camera module set in the preset environment is acquired according to the acquisition frequency, and the acquisition is stopped and the recording is stopped until the end acquisition command is triggered according to the end condition. All the current values collected between the first time point when the start collection command is triggered and the second time point when the end collection command is triggered, and generating a detection signal according to all the current values;等待并接收包含所述检测信号的处理指令,调用预设的信号处理模型将所述检测信号转换为所述预设环境的光线强度值;Waiting and receiving a processing instruction containing the detection signal, calling a preset signal processing model to convert the detection signal into a light intensity value of the preset environment;将所述光线强度值输入至预设的亮度等级模型中,并接收所述亮度等级模型输出的光线强度等级;Inputting the light intensity value into a preset brightness level model, and receiving the light intensity level output by the brightness level model;将所述光线强度等级输入至预设的匹配器中,并接收所述匹配器输出的匹配结果;Input the light intensity level into a preset matcher, and receive the matching result output by the matcher;根据所述匹配结果获取并执行对应的控制操作,根据所述控制操作令所述摄像头模组拍摄动态视频。A corresponding control operation is acquired and executed according to the matching result, and the camera module is ordered to shoot a dynamic video according to the control operation.
- 根据权利要求8所述的计算机设备,所述摄像头模组包括感光元件;8. The computer device according to claim 8, wherein the camera module includes a photosensitive element;所述在根据所述开始条件触发开始采集命令时,根据所述采集频率获取设置在预设环境中的摄像头模组的电流值,直至根据所述结束条件触发结束采集命令时,停止采集并记录所述开始采集命令被触发的第一时间点与所述结束采集命令被触发的第二时间点之间采集的所有所述电流值,并根据所有所述电流值生成检测信号,包括:When the start acquisition command is triggered according to the start condition, the current value of the camera module set in the preset environment is acquired according to the acquisition frequency, and the acquisition is stopped and recorded until the end acquisition command is triggered according to the end condition All the current values collected between the first time point when the start collection command is triggered and the second time point when the end collection command is triggered, and generating detection signals according to all the current values include:响应并执行根据所述开始条件触发的开始采集命令,存储在执行所述开始采集命令时的第一时间点,以及根据所述采集频率获取的所述感光元件输出的电流值;Respond to and execute the start collection command triggered according to the start condition, store it at the first time point when the start collection command is executed, and the current value output by the photosensitive element acquired according to the collection frequency;响应并执行根据所述结束条件触发的结束采集命令,存储在所述第一时间点与在执行所述结束采集命令时的第二时间点所经历的该段光线检测时长的所有所述电流值;Respond to and execute the end collection command triggered according to the end condition, and store all the current values of the light detection duration experienced at the first time point and the second time point when the end collection command is executed ;根据所有所述电流值以及预设的信号生成模型生成检测信号。The detection signal is generated according to all the current values and the preset signal generation model.
- 根据权利要求8所述的计算机设备,所述调用预设的信号处理模型将所述检测信号转换为所述预设环境的光线强度值,包括:8. The computer device according to claim 8, wherein the invoking a preset signal processing model to convert the detection signal into a light intensity value of the preset environment comprises:将所述检测信号输入所述信号处理模型,令所述信号处理模型对所述检测信号进行归一化之后,获得非周期性光波;Inputting the detection signal into the signal processing model, and allowing the signal processing model to normalize the detection signal to obtain aperiodic light waves;令所述信号处理模型对所述非周期性光波进行信号变换之后,获得各叠加波以及各所述叠加波的基本参数;After the signal processing model performs signal transformation on the non-periodic light wave, each superimposed wave and the basic parameters of each superimposed wave are obtained;令所述信号处理模型根据各所述叠加波的基本参数对各所述叠加波进行信号解析之后,获得各所述叠加波对应的R值、G值和B值;Enabling the signal processing model to perform signal analysis on each of the superimposed waves according to the basic parameters of each of the superimposed waves to obtain the R value, G value, and B value corresponding to each of the superimposed waves;令所述信号处理模型根据各所述叠加波对应的R值、G值和B值分别计算各所述叠加波的分亮度值,并基于各所述叠加波的分亮度值获取所述非周期性光波的亮度值之后,将所述信号处理模型输出的所述非周期性光波的亮度值记录为所述预设环境的光线强度值。Let the signal processing model calculate the sub-brightness value of each superimposed wave according to the R value, G value, and B value corresponding to each superimposed wave, and obtain the aperiodic value based on the sub-brightness value of each superimposed wave After the brightness value of the sexual light wave, the brightness value of the non-periodic light wave output by the signal processing model is recorded as the light intensity value of the preset environment.
- 根据权利要求10所述的计算机设备,所述信号处理模型包括用于计算各所述叠加波的分亮度值的亮度模型,所述亮度模型为:11. The computer device according to claim 10, wherein the signal processing model comprises a brightness model for calculating the partial brightness value of each of the superimposed waves, the brightness model being:y=k1*R+k2*G+k3*By=k1*R+k2*G+k3*B其中,y为所述叠加波对应的分亮度值;R为所述叠加波对应的R值;G为所述叠加波对应的G值;B为所述叠加波对应的B值;k1为R值对应的第一系数;k2为G值对应的第二系数;k3为B值对应的第三系数;且所述k1、k2和k3为常数项。Where y is the sub-brightness value corresponding to the superimposed wave; R is the R value corresponding to the superimposed wave; G is the G value corresponding to the superimposed wave; B is the B value corresponding to the superimposed wave; k1 is R The first coefficient corresponding to the value; k2 is the second coefficient corresponding to the G value; k3 is the third coefficient corresponding to the B value; and the k1, k2, and k3 are constant terms.
- 根据权利要求8所述的计算机设备,所述匹配结果包含用于表征等级匹配的第一结果,用于表征等级不匹配的第二结果和第三结果;8. The computer device according to claim 8, wherein the matching result comprises a first result for characterizing level matching, and a second result and a third result for characterizing level mismatch;所述根据所述匹配结果获取并执行对应的控制操作,根据所述控制操作令所述摄像头模组拍摄动态视频,包括:The acquiring and executing a corresponding control operation according to the matching result, and instructing the camera module to shoot a dynamic video according to the control operation, includes:在所述匹配结果为所述第一结果时,获取并执行与所述第一结果对应的第一控制操作,所述第一控制操作是指令所述摄像头模组拍摄视频,获取动态视频;When the matching result is the first result, acquiring and executing a first control operation corresponding to the first result, where the first control operation is instructing the camera module to shoot a video and acquire a dynamic video;在所述匹配结果为所述第二结果时,获取并执行与所述第二结果对应的第二控制操作,所述第二控制操作是指通过设置在所述预设环境中的灯光模组对所述预设环境进行亮度调整之后,令所述摄像头模组拍摄视频,获取动态视频;When the matching result is the second result, a second control operation corresponding to the second result is acquired and executed, and the second control operation refers to a light module set in the preset environment After adjusting the brightness of the preset environment, make the camera module to shoot a video to obtain a dynamic video;在所述匹配结果为所述第三结果时,获取并执行与所述第三结果对应的第三控制操作,所述第三控制操作是指对所述摄像头模组进行摄像头切换,并通过切换后的所述摄像头拍摄视频,获取动态视频;所述摄像头模组包含可自由切换的多个摄像头。When the matching result is the third result, a third control operation corresponding to the third result is acquired and executed, and the third control operation refers to switching the camera of the camera module, and switching The latter camera shoots videos to obtain dynamic videos; the camera module includes multiple cameras that can be switched freely.
- 根据权利要求8所述的计算机设备,所述等待并接收包含所述检测信号的处理指令,调用预设的信号处理模型将所述检测信号转换为所述预设环境的光线强度值之后,包括:8. The computer device according to claim 8, after the waiting and receiving a processing instruction containing the detection signal, and calling a preset signal processing model to convert the detection signal into the light intensity value of the preset environment, comprising :检测所述光线强度值是否在预设数值范围内;所述预设数值范围包括第一阈值和第二阈值,且所述第一阈值小于所述第二阈值;Detecting whether the light intensity value is within a preset numerical range; the preset numerical range includes a first threshold and a second threshold, and the first threshold is less than the second threshold;在所述光线强度值在所述预设数值范围内时,调用并执行预设的第一指令,所述第一指令是指控制所述摄像头模组拍摄视频,获取动态视频;When the light intensity value is within the preset value range, calling and executing a preset first instruction, where the first instruction refers to controlling the camera module to shoot a video and obtain a dynamic video;在所述光线强度值小于所述第一阈值时,调用并执行预设的第二指令,所述第二指令是指控制预设的灯光模组对所述预设环境进行亮度调整之后,控制所述摄像头模组拍摄视频,获取动态视频;When the light intensity value is less than the first threshold value, a preset second instruction is called and executed. The second instruction refers to controlling the preset lighting module to adjust the brightness of the preset environment and then controlling The camera module shoots video to obtain dynamic video;在所述光线强度值大于所述第二阈值时,调用并执行预设的第三指令,所述第三指令是指控制所述摄像头模组延迟拍摄,并再次检测所述预设环境的光线强度值,直至再次检测的所述光线强度值在所述预设数值范围内时,控制所述摄像头模组拍摄视频,获取动态视频。When the light intensity value is greater than the second threshold, a preset third instruction is called and executed. The third instruction refers to controlling the camera module to delay shooting, and detecting the light of the preset environment again Intensity value, until the light intensity value detected again is within the preset value range, the camera module is controlled to shoot a video to obtain a dynamic video.
- 一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现一种基于环境光线检测的视频拍摄方法,其中,所述基于环境光线检测的视频拍摄方法包括以下步骤:A computer-readable storage medium having a computer program stored on the computer-readable storage medium, when the computer program is executed by a processor, realizes a video shooting method based on ambient light detection, wherein the The video shooting method includes the following steps:接收包含采集频率、开始条件和结束条件的初始指令;Receive initial instructions including acquisition frequency, start condition and end condition;在根据所述开始条件触发开始采集命令时,根据所述采集频率获取设置在预设环境中的摄像头模组的电流值,直至根据所述结束条件触发结束采集命令时,停止采集并记录所述开始采集命令被触发的第一时间点与所述结束采集命令被触发的第二时间点之间采集的所有所述电流值,并根据所有所述电流值生成检测信号;When the start acquisition command is triggered according to the start condition, the current value of the camera module set in the preset environment is acquired according to the acquisition frequency, and the acquisition is stopped and the recording is stopped until the end acquisition command is triggered according to the end condition. All the current values collected between the first time point when the start collection command is triggered and the second time point when the end collection command is triggered, and generating a detection signal according to all the current values;等待并接收包含所述检测信号的处理指令,调用预设的信号处理模型将所述检测信号转换为所述预设环境的光线强度值;Waiting and receiving a processing instruction containing the detection signal, calling a preset signal processing model to convert the detection signal into a light intensity value of the preset environment;将所述光线强度值输入至预设的亮度等级模型中,并接收所述亮度等级模型输出的光线强度等级;Inputting the light intensity value into a preset brightness level model, and receiving the light intensity level output by the brightness level model;将所述光线强度等级输入至预设的匹配器中,并接收所述匹配器输出的匹配结果;Input the light intensity level into a preset matcher, and receive the matching result output by the matcher;根据所述匹配结果获取并执行对应的控制操作,根据所述控制操作令所述摄像头模组拍摄动态视频。A corresponding control operation is acquired and executed according to the matching result, and the camera module is ordered to shoot a dynamic video according to the control operation.
- 根据权利要求14所述的计算机可读存储介质,所述摄像头模组包括感光元件;The computer-readable storage medium according to claim 14, wherein the camera module includes a photosensitive element;所述在根据所述开始条件触发开始采集命令时,根据所述采集频率获取设置在预设环境中的摄像头模组的电流值,直至根据所述结束条件触发结束采集命令时,停止采集并记录所述开始采集命令被触发的第一时间点与所述结束采集命令被触发的第二时间点之间采集的所有所述电流值,并根据所有所述电流值生成检测信号,包括:When the start acquisition command is triggered according to the start condition, the current value of the camera module set in the preset environment is acquired according to the acquisition frequency, and the acquisition is stopped and recorded until the end acquisition command is triggered according to the end condition All the current values collected between the first time point when the start collection command is triggered and the second time point when the end collection command is triggered, and generating detection signals according to all the current values include:响应并执行根据所述开始条件触发的开始采集命令,存储在执行所述开始采集命令时的第一时间点,以及根据所述采集频率获取的所述感光元件输出的电流值;Respond to and execute the start collection command triggered according to the start condition, store it at the first time point when the start collection command is executed, and the current value output by the photosensitive element acquired according to the collection frequency;响应并执行根据所述结束条件触发的结束采集命令,存储在所述第一时间点与在执行所述结束采集命令时的第二时间点所经历的该段光线检测时长的所有所述电流值;Respond to and execute the end collection command triggered according to the end condition, and store all the current values of the light detection duration experienced at the first time point and the second time point when the end collection command is executed ;根据所有所述电流值以及预设的信号生成模型生成检测信号。The detection signal is generated according to all the current values and the preset signal generation model.
- 根据权利要求14所述的计算机可读存储介质,所述调用预设的信号处理模型将所述检测信号转换为所述预设环境的光线强度值,包括:14. The computer-readable storage medium according to claim 14, wherein the invoking a preset signal processing model to convert the detection signal into a light intensity value of the preset environment comprises:将所述检测信号输入所述信号处理模型,令所述信号处理模型对所述检测信号进行归一化之后,获得非周期性光波;Inputting the detection signal into the signal processing model, and allowing the signal processing model to normalize the detection signal to obtain aperiodic light waves;令所述信号处理模型对所述非周期性光波进行信号变换之后,获得各叠加波以及各所述叠加波的基本参数;After the signal processing model performs signal transformation on the non-periodic light wave, each superimposed wave and the basic parameters of each superimposed wave are obtained;令所述信号处理模型根据各所述叠加波的基本参数对各所述叠加波进行信号解析之后,获得各所述叠加波对应的R值、G值和B值;Enabling the signal processing model to perform signal analysis on each of the superimposed waves according to the basic parameters of each of the superimposed waves to obtain the R value, G value, and B value corresponding to each of the superimposed waves;令所述信号处理模型根据各所述叠加波对应的R值、G值和B值分别计算各所述叠加波的分亮度值,并基于各所述叠加波的分亮度值获取所述非周期性光波的亮度值之后,将所述信号处理模型输出的所述非周期性光波的亮度值记录为所述预设环境的光线强度值。Let the signal processing model calculate the sub-brightness value of each superimposed wave according to the R value, G value, and B value corresponding to each superimposed wave, and obtain the aperiodic value based on the sub-brightness value of each superimposed wave After the brightness value of the sexual light wave, the brightness value of the non-periodic light wave output by the signal processing model is recorded as the light intensity value of the preset environment.
- 根据权利要求16所述的计算机可读存储介质,所述信号处理模型包括用于计算各所述叠加波的分亮度值的亮度模型,所述亮度模型为:15. The computer-readable storage medium according to claim 16, wherein the signal processing model comprises a brightness model for calculating the partial brightness value of each of the superimposed waves, the brightness model being:y=k1*R+k2*G+k3*By=k1*R+k2*G+k3*B其中,y为所述叠加波对应的分亮度值;R为所述叠加波对应的R值;G为所述叠加波对应的G值;B为所述叠加波对应的B值;k1为R值对应的第一系数;k2为G值对应的第二系数;k3为B值对应的第三系数;且所述k1、k2和k3为常数项。Where y is the sub-brightness value corresponding to the superimposed wave; R is the R value corresponding to the superimposed wave; G is the G value corresponding to the superimposed wave; B is the B value corresponding to the superimposed wave; k1 is R The first coefficient corresponding to the value; k2 is the second coefficient corresponding to the G value; k3 is the third coefficient corresponding to the B value; and the k1, k2, and k3 are constant terms.
- 根据权利要求14所述的计算机可读存储介质,所述匹配结果包含用于表征等级匹配的第一结果,用于表征等级不匹配的第二结果和第三结果;The computer-readable storage medium according to claim 14, wherein the matching result comprises a first result for characterizing level matching, and a second result and a third result for characterizing level mismatch;所述根据所述匹配结果获取并执行对应的控制操作,根据所述控制操作令所述摄像头模组拍摄动态视频,包括:The acquiring and executing a corresponding control operation according to the matching result, and instructing the camera module to shoot a dynamic video according to the control operation, includes:在所述匹配结果为所述第一结果时,获取并执行与所述第一结果对应的第一控制操作,所述第一控制操作是指令所述摄像头模组拍摄视频,获取动态视频;When the matching result is the first result, acquiring and executing a first control operation corresponding to the first result, where the first control operation is instructing the camera module to shoot a video and acquire a dynamic video;在所述匹配结果为所述第二结果时,获取并执行与所述第二结果对应的第二控制操作,所述第二控制操作是指通过设置在所述预设环境中的灯光模组对所述预设环境进行亮度调整之后,令所述摄像头模组拍摄视频,获取动态视频;When the matching result is the second result, a second control operation corresponding to the second result is acquired and executed, and the second control operation refers to a light module set in the preset environment After adjusting the brightness of the preset environment, make the camera module to shoot a video to obtain a dynamic video;在所述匹配结果为所述第三结果时,获取并执行与所述第三结果对应的第三控制操作,所述第三控制操作是指对所述摄像头模组进行摄像头切换,并通过切换后的所述摄像头拍摄视频,获取动态视频;所述摄像头模组包含可自由切换的多个摄像头。When the matching result is the third result, a third control operation corresponding to the third result is acquired and executed, and the third control operation refers to switching the camera of the camera module, and switching The latter camera shoots videos to obtain dynamic videos; the camera module includes multiple cameras that can be switched freely.
- 根据权利要求14所述的计算机可读存储介质,所述等待并接收包含所述检测信号的处理指令,调用预设的信号处理模型将所述检测信号转换为所述预设环境的光线强度值之后,包括:The computer-readable storage medium according to claim 14, wherein the waiting and receiving a processing instruction containing the detection signal, calling a preset signal processing model to convert the detection signal into the light intensity value of the preset environment After that, include:检测所述光线强度值是否在预设数值范围内;所述预设数值范围包括第一阈值和第二阈值,且所述第一阈值小于所述第二阈值;Detecting whether the light intensity value is within a preset numerical range; the preset numerical range includes a first threshold and a second threshold, and the first threshold is less than the second threshold;在所述光线强度值在所述预设数值范围内时,调用并执行预设的第一指令,所述第一指令是指控制所述摄像头模组拍摄视频,获取动态视频;When the light intensity value is within the preset value range, calling and executing a preset first instruction, where the first instruction refers to controlling the camera module to shoot a video and obtain a dynamic video;在所述光线强度值小于所述第一阈值时,调用并执行预设的第二指令,所述第二指令是指控制预设的灯光模组对所述预设环境进行亮度调整之后,控制所述摄像头模组拍摄视频,获取动态视频;When the light intensity value is less than the first threshold, a preset second instruction is called and executed. The second instruction refers to controlling the preset lighting module to adjust the brightness of the preset environment, and then controlling The camera module shoots video to obtain dynamic video;在所述光线强度值大于所述第二阈值时,调用并执行预设的第三指令,所述第三指令是指控制所述摄像头模组延迟拍摄,并再次检测所述预设环境的光线强度值,直至再次检测的所述光线强度值在所述预设数值范围内时,控制所述摄像头模组拍摄视频,获取动态视频。When the light intensity value is greater than the second threshold, a preset third instruction is called and executed. The third instruction refers to controlling the camera module to delay shooting, and detecting the light of the preset environment again Intensity value, until the light intensity value detected again is within the preset value range, the camera module is controlled to shoot a video to obtain a dynamic video.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910755593.5A CN110602380B (en) | 2019-08-15 | 2019-08-15 | Video shooting method, device, equipment and medium based on ambient light detection |
CN201910755593.5 | 2019-08-15 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2021027309A1 true WO2021027309A1 (en) | 2021-02-18 |
Family
ID=68854419
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2020/085567 WO2021027309A1 (en) | 2019-08-15 | 2020-04-20 | Video filming method and apparatus based on ambient light testing, and device and medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN110602380B (en) |
WO (1) | WO2021027309A1 (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110602380B (en) * | 2019-08-15 | 2022-11-04 | 深圳壹账通智能科技有限公司 | Video shooting method, device, equipment and medium based on ambient light detection |
CN112183201A (en) * | 2020-08-25 | 2021-01-05 | 开放智能机器(上海)有限公司 | System and method for monitoring abnormity of baby during sleep |
CN112307960B (en) * | 2020-10-30 | 2025-06-10 | 腾讯科技(深圳)有限公司 | Data processing method, device, computer equipment and storage medium |
CN112590782B (en) * | 2020-12-28 | 2022-08-16 | 东风越野车有限公司 | All-weather collision early warning method and device based on multiple sensors |
CN113808030B (en) * | 2021-05-31 | 2022-09-30 | 荣耀终端有限公司 | Noise monitoring method, electronic device and chip system |
CN113726983B (en) * | 2021-07-12 | 2022-07-12 | 北京邮电大学 | A method and apparatus for solar glare suppression based on time, positioning, lens angle, incident light intensity and color temperature |
CN115002357B (en) * | 2022-07-27 | 2022-11-18 | 联宝(合肥)电子科技有限公司 | Optical signal processing method, electronic device, and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103581559A (en) * | 2013-10-15 | 2014-02-12 | 广东欧珀移动通信有限公司 | Intelligent AE algorithm for flash photography of mobile phone |
CN105072329A (en) * | 2015-07-17 | 2015-11-18 | 深圳市金立通信设备有限公司 | Shooting method and terminal |
CN206962951U (en) * | 2017-05-05 | 2018-02-02 | 潍坊歌尔电子有限公司 | A kind of device and wearable device for adjusting camera module light |
EP1437583B1 (en) * | 2003-01-10 | 2019-01-02 | Mitutoyo Corporation | Illuminance calibrating method of illuminator; controller and calibrating program of the illuminator |
CN110602380A (en) * | 2019-08-15 | 2019-12-20 | 深圳壹账通智能科技有限公司 | Video shooting method, device, equipment and medium based on ambient light detection |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104904403A (en) * | 2014-03-14 | 2015-09-16 | 宝时得机械(中国)有限公司 | Intelligent mower |
CN104243841B (en) * | 2014-09-29 | 2019-03-29 | 联想(北京)有限公司 | A kind of image processing method and device |
CN106027916A (en) * | 2016-07-18 | 2016-10-12 | 广东欧珀移动通信有限公司 | A supplementary light photographing method and terminal |
CN106331519A (en) * | 2016-10-31 | 2017-01-11 | 维沃移动通信有限公司 | Method for adjusting supplementary light and mobile terminal |
CN106969832B (en) * | 2017-03-20 | 2018-04-10 | 京东方科技集团股份有限公司 | Ambient light detection device, method and display screen |
CN108040213B (en) * | 2017-12-05 | 2020-11-27 | 北京小米移动软件有限公司 | Method and apparatus for photographing image and computer-readable storage medium |
CN109005346B (en) * | 2018-08-13 | 2020-04-03 | Oppo广东移动通信有限公司 | Control method, control device, electronic equipment and computer-readable storage medium |
-
2019
- 2019-08-15 CN CN201910755593.5A patent/CN110602380B/en active Active
-
2020
- 2020-04-20 WO PCT/CN2020/085567 patent/WO2021027309A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1437583B1 (en) * | 2003-01-10 | 2019-01-02 | Mitutoyo Corporation | Illuminance calibrating method of illuminator; controller and calibrating program of the illuminator |
CN103581559A (en) * | 2013-10-15 | 2014-02-12 | 广东欧珀移动通信有限公司 | Intelligent AE algorithm for flash photography of mobile phone |
CN105072329A (en) * | 2015-07-17 | 2015-11-18 | 深圳市金立通信设备有限公司 | Shooting method and terminal |
CN206962951U (en) * | 2017-05-05 | 2018-02-02 | 潍坊歌尔电子有限公司 | A kind of device and wearable device for adjusting camera module light |
CN110602380A (en) * | 2019-08-15 | 2019-12-20 | 深圳壹账通智能科技有限公司 | Video shooting method, device, equipment and medium based on ambient light detection |
Also Published As
Publication number | Publication date |
---|---|
CN110602380A (en) | 2019-12-20 |
CN110602380B (en) | 2022-11-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021027309A1 (en) | Video filming method and apparatus based on ambient light testing, and device and medium | |
CN114424253B (en) | Model training method, device, storage medium and electronic device | |
CN109961780B (en) | A man-machine interaction method a device(s) Server and storage medium | |
WO2022166316A1 (en) | Light supplementing method and apparatus for facial recognition, and facial recognition device and system therefor | |
CN112257815B (en) | Model generation method, target detection method, device, electronic device and medium | |
US9355234B1 (en) | Authentication involving selection among different biometric methods dynamically | |
CN105187810B (en) | A kind of auto white balance method and electronic medium device based on face color character | |
WO2019120029A1 (en) | Intelligent screen brightness adjustment method and apparatus, and storage medium and mobile terminal | |
WO2019056471A1 (en) | Driving model training method, driver recognition method and apparatus, device, and medium | |
US11687635B2 (en) | Automatic exposure and gain control for face authentication | |
CN107871001B (en) | Audio playback method, device, storage medium and electronic device | |
CN111476268A (en) | Method, device, equipment and medium for training reproduction recognition model and image recognition | |
CN109348206A (en) | Image white balance processing method and device, storage medium and mobile terminal | |
CN113538223A (en) | Noise image generation method, device, electronic device and storage medium | |
WO2019227552A1 (en) | Behavior recognition-based speech positioning method and device | |
WO2019120025A1 (en) | Photograph adjustment method and apparatus, storage medium and electronic device | |
CN116052230A (en) | Palm vein recognition method, device, equipment and storage medium | |
CN113506343B (en) | Color coordinate estimation method, system, device and medium based on multi-source data | |
CN118037602B (en) | Image quality optimization method, device, electronic equipment, medium and program product | |
CN110677557A (en) | Image processing method, device, storage medium and electronic device | |
US20230222639A1 (en) | Data processing method, system, and apparatus | |
CN111669575A (en) | Method, system, electronic device, medium and terminal for testing image processing effect | |
CN117156289A (en) | Color style correction method, system, electronic device, storage medium and chip | |
TW201319956A (en) | Human face recognition method and apparatus | |
WO2020251676A1 (en) | A biometric verification framework that utilizes a convolutional neural network for feature matching |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 20852754 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20852754 Country of ref document: EP Kind code of ref document: A1 |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 04/08/2022) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20852754 Country of ref document: EP Kind code of ref document: A1 |