[go: up one dir, main page]

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 PDF

Info

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
Application number
PCT/CN2020/085567
Other languages
French (fr)
Chinese (zh)
Inventor
余龙龙
Original Assignee
深圳壹账通智能科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳壹账通智能科技有限公司 filed Critical 深圳壹账通智能科技有限公司
Publication of WO2021027309A1 publication Critical patent/WO2021027309A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/10Cameras or camera modules comprising electronic image sensors; Control thereof for generating image signals from different wavelengths
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/71Circuitry 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

Disclosed are a video filming method and apparatus based on ambient light testing, and a device and a medium. The method comprises: receiving an initial instruction; acquiring, according to a collection starting command triggered by a starting condition and a collection ending command triggered by an ending condition, all current values, which are collected at a collection frequency, between a first time point and a second time point, and generating a testing signal according to all the current values; receiving a processing instruction, and invoking a signal processing model to convert the testing signal into a light intensity value of a preset environment; inputting the light intensity value into a brightness level model, and receiving an output light intensity level; inputting the light intensity level into a matcher, and receiving an output matching result; and acquiring and executing, according to the matching result, a corresponding control operation, and enabling, according to the control operation, a camera module to film a dynamic video. According to the present application, by improving the accuracy and efficiency of light testing, the aim of improving the quality and effect of video filming and thus improving the qualification rate and efficiency of video auditing is achieved.

Description

基于环境光线检测的视频拍摄方法、装置、设备及介质Video shooting method, device, equipment and medium based on ambient light detection
本申请要求于2019年8月15日提交中国专利局、申请号为201910755593.5,发明名称为“基于环境光线检测的视频拍摄方法、装置、设备及介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on August 15, 2019 with the application number 201910755593.5 and the invention title "Video shooting methods, devices, equipment and media based on ambient light detection", and its entire contents Incorporated in this application by reference.
技术领域Technical field
本申请涉及摄像技术领域,具体涉及一种基于环境光线检测的视频拍摄方法、装置、设备及介质。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.
背景技术Background technique
随着移动终端的迅猛发展,很多应用系统都支持使用移动终端进行视频录制,如智能双录系统,在视频拍摄过程中,发明人意识到获取到的视频图像受户外环境影响很大,特别是光线因素是影响视频图像质量的关键;若户外环境的光线较暗,则会导致拍摄的视频质量较低,不符合拍摄要求,从而加大了视频审核的工作量,降低了视频审核效率。With the rapid development of mobile terminals, many application systems support the use of mobile terminals for video recording, such as smart dual recording systems. During the video shooting process, the inventor realized that the acquired video images are greatly affected by the outdoor environment, especially The light factor is the key to the quality of video images; if the light in the outdoor environment is low, the quality of the video shot will be low, which does not meet the shooting requirements, thereby increasing the workload of video review and reducing the efficiency of video review.
发明内容Summary of the invention
本申请实施例提供一种基于环境光线检测的视频拍摄方法、装置、设备及介质,适用于人工智能的领域,通过提高光线检测的准确度和效率,达到提升视频拍摄的质量和效果,进而提高视频审核的合格率和效率的目的。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 according to the control operations.
一种基于环境光线检测的视频拍摄装置,包括:接收模块,用于接收包含采集频率、开始条件和结束条件的初始指令;采集模块,用于在根据所述开始条件触发开始采集命令时,根据所述采集频率获取设置在预设环境中的摄像头模组的电流值,直至根据所述结束条件触发结束采集命令时,停止采集并记录所述开始采集命令被触发的第一时间点与所述结束采集命令被触发的第二时间点之间采集的所有所述电流值,并根据所有所述电流值生成检测信号;处理模块,用于等待并接收包含所述检测信号的处理指令,调用预设的信号处理模型将所述检测信号转换为所述预设环境的光线强度值;评估模块,用于将所述光线强度值输入至预设的亮度等级模型中,并接收所述亮度等级模型输出的光线强度等级;匹配模块,用于将所述光线强度等级输入至预设的匹配器中,并接收所述匹配器输出的匹配结果;控制模块,用于根据所述匹配结果获取并执行对应的控制操作,根据所述控制操作令所述摄像头模组拍摄动态视频。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 the matcher; a control module for obtaining and executing according to the matching result According to the corresponding control operation, the camera module is instructed to shoot a dynamic video according to the control operation.
一种计算机设备,其包括:一个或多个处理器;存储器;一个或多个计算机程序,其中所述一个或多个计算机程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个计算机程序配置用于执行一种基于环境光线检测的视频拍摄方法,其中,所述基于环境光线检测的视频拍摄方法包括以下步骤:接收包含采集频率、开始条件和结束条 件的初始指令;在根据所述开始条件触发开始采集命令时,根据所述采集频率获取设置在预设环境中的摄像头模组的电流值,直至根据所述结束条件触发结束采集命令时,停止采集并记录所述开始采集命令被触发的第一时间点与所述结束采集命令被触发的第二时间点之间采集的所有所述电流值,并根据所有所述电流值生成检测信号;等待并接收包含所述检测信号的处理指令,调用预设的信号处理模型将所述检测信号转换为所述预设环境的光线强度值;将所述光线强度值输入至预设的亮度等级模型中,并接收所述亮度等级模型输出的光线强度等级;将所述光线强度等级输入至预设的匹配器中,并接收所述匹配器输出的匹配结果;根据所述匹配结果获取并执行对应的控制操作,根据所述控制操作令所述摄像头模组拍摄动态视频。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 output by the brightness level model; input the light intensity level into a preset matcher, and receive the matching result output by the matcher; obtain and combine according to the matching result Perform corresponding control operations, and instruct the camera module to shoot dynamic videos according to the control operations.
一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现一种基于环境光线检测的视频拍摄方法,其中,所述基于环境光线检测的视频拍摄方法包括以下步骤:接收包含采集频率、开始条件和结束条件的初始指令;在根据所述开始条件触发开始采集命令时,根据所述采集频率获取设置在预设环境中的摄像头模组的电流值,直至根据所述结束条件触发结束采集命令时,停止采集并记录所述开始采集命令被触发的第一时间点与所述结束采集命令被触发的第二时间点之间采集的所有所述电流值,并根据所有所述电流值生成检测信号;等待并接收包含所述检测信号的处理指令,调用预设的信号处理模型将所述检测信号转换为所述预设环境的光线强度值;将所述光线强度值输入至预设的亮度等级模型中,并接收所述亮度等级模型输出的光线强度等级;将所述光线强度等级输入至预设的匹配器中,并接收所述匹配器输出的匹配结果;根据所述匹配结果获取并执行对应的控制操作,根据所述控制操作令所述摄像头模组拍摄动态视频。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. Current value, until the end acquisition command is triggered according to the end condition, stop the acquisition and record all collected between the first time point when the start acquisition command is triggered and the second time point when the end acquisition command is triggered The current value, 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 light intensity value of the preset 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 a preset matcher, and receive the matching The matching result output by the device; according to the matching result, the corresponding control operation is acquired and executed, and the camera module is ordered to shoot a dynamic video according to the control operation.
本申请提供的基于环境光线检测的视频拍摄方法、装置、设备及介质,首先接收初始指令,并根据开始条件触发的开始采集命令和结束条件触发的结束采集命令,获取第一时间点和第二时间点之间以采集频率采集的所有电流值,并根据所有电流值生成检测信号;然后根据处理指令调用信号处理模型将检测信号转换为光线强度值,并利用亮度等级模型获取与光线强度值对应的光线强度等级;最后,利用匹配器对光线强度等级进行匹配判断获得匹配结果,并根据与匹配结果对应的控制操作实现不同的视频拍摄方式。本发明在环境光线检测过程中,提高了光线检测时的准确度和检测速度,降低了服务器负载,明显提升服务器的运行速度。进一步地,在环境光线检测之后根据不同的匹配结果执行对应的控制操作,实现了不同的视频拍摄方案,可以达到提升视频拍摄效果和质量,减少视频审核的工作量、提高视频审核的合格率和效率的目的。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. In the environmental light detection process, 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.
附图说明Description of the drawings
图1是本申请一实施例中基于环境光线检测的视频拍摄方法的应用环境示意图;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;
图2是本申请一实施例中基于环境光线检测的视频拍摄方法的流程图;2 is a flowchart of a video shooting method based on ambient light detection in an embodiment of the present application;
图3是本申请一实施例中基于环境光线检测的视频拍摄方法的步骤S20的流程图;3 is a flowchart of step S20 of a video shooting method based on ambient light detection in an embodiment of the present application;
图4是本申请一实施例中基于环境光线检测的视频拍摄方法的步骤S30的流程图;4 is a flowchart of step S30 of a video shooting method based on ambient light detection in an embodiment of the present application;
图5是本申请一实施例中基于环境光线检测的视频拍摄装置的原理框图;FIG. 5 is a schematic block diagram of a video shooting device based on ambient light detection in an embodiment of the present application;
图6是本申请一实施例中基于环境光线检测的视频拍摄装置的处理模块的原理框图;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;
图7是本申请一实施例中计算机设备的示意图。Fig. 7 is a schematic diagram of a computer device in an embodiment of the present application.
具体实施方式detailed description
本申请提供的基于环境光线检测的视频拍摄方法,可应用在如图1的应用环境中,其中,客户端通过网络与服务器进行通信。其中,客户端包括但不限于为各种计算机、笔记本电脑、智能手机、平板电脑和智能终端机。服务器可以用独立的服务器或者是多个服务器组成的服务器集群来实现。The video shooting method based on ambient light detection provided in this application can be applied in the application environment as shown in FIG. 1, where the client communicates with the server through the network. Among them, 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.
在一实施例中,如图2所示,提供一种基于环境光线检测的视频拍摄方法,以该方法应 用在图1中的服务器为例进行说明,包括以下步骤:In one embodiment, as shown in FIG. 2, 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,接收包含采集频率、开始条件和结束条件的初始指令。S10: Receive an initial command including the acquisition frequency, start condition, and end condition.
在本实施例中,所述采集频率是指在所述开始条件和所述结束条件之间采集电流值的频率;且可选地,所述开始条件用于触发开始采集命令,可以是服务器检测到用户位于所述摄像头模组的视野范围,也可以是检测到触发(由语音触发或者手势触发等)设置于客户端的与开始采集命令绑定的预设按钮;所述结束条件用于触发结束采集命令,可以是服务器检测到光线检测时长达到预设时长阈值,也可以是检测到触发设置于客户端的与结束采集命令绑定的预设按钮。In this embodiment, 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 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.
S20,在根据所述开始条件触发开始采集命令时,根据所述采集频率获取设置在预设环境中的摄像头模组的电流值,直至根据所述结束条件触发结束采集命令时,停止采集并记录所述开始采集命令被触发的第一时间点与所述结束采集命令被触发的第二时间点之间采集的所有所述电流值,并根据所有所述电流值生成检测信号。S20: 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 a detection signal is generated according to all the current values.
其中,所述摄像头模组包括感光元件、单个摄像头或者可自由切换的摄像头组;且所述摄像头模组可以是与客户端通信连接且安装在所述客户端上的摄像头模组,也可以是直接与服务器通信连接的摄像头模组。Wherein, 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.
作为优选,接收到自客户端发送的包含采集频率、开始条件和结束条件的初始指令时,首先响应并执行根据开始条件触发的开始采集命令,开始数据采集,存储并记录执行开始采集命令时的系统时间作为第一时间点和根据采集频率获取设置在预设环境中的摄像头模组的电流值;然后响应并执行根据结束条件触发的结束采集命令,停止数据采集,存储并记录执行结束采集命令时的系统时间作为第二时间点,并根据存储的在所述第一时间点和所述第二时间点所经历的该段光线检测时长内的所有电流值,生成检测信号。且作为优选,所述检测信号是指时间和振幅为坐标轴的伪波形信号。Preferably, 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. Preferably, the detection signal refers to a pseudo waveform signal whose time and amplitude are coordinate axes.
S30,等待并接收包含所述检测信号的处理指令,调用预设的信号处理模型将所述检测信号转换为所述预设环境的光线强度值。S30. Waiting for and receiving a processing instruction including the detection signal, and calling a preset signal processing model to convert the detection signal into a light intensity value of the preset environment.
其中,所述信号处理模型可以为预先设置在服务器上。作为优选,所述信号处理模型可以用C/C++编写,可明显提升服务器的运算速度,且适用性更广泛。例如,适用于各种操作系统的移动终端、平板电脑等。Wherein, the signal processing model may be preset on the server. Preferably, 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. For example, it is suitable for mobile terminals and tablet computers with various operating systems.
作为优选,根据光线检测时长以及利用信号生成模型生成检测信号的信号生成时长设定等待阈值,实时记录执行开始采集命令时的第一时间点与当前系统时间的执行时长,在所述执行时长达到所述等待阈值时,服务器自动生成包含检测信号的处理指令,此时,调用预设的信号处理模型对获取到的所述检测信号进行归一化、信号变换、信号解析以及亮度值计算之后,获取检测信号对应的亮度,也即预设环境的光线强度值。也即,调用信号处理模型,首先利用预设的映射关系将所述检测信号转换为非周期性光波,利用预设的变换公式(优选为快速傅里叶变换)将所述非周期性光波拆分成多个包含基本参数的叠加波,其中,该基本参数包含相位、振幅和频率;然后利用各叠加波的基本参数确定各叠加波的波长以及对应的颜色波,并利用预设的色域图获取各颜色波的R值、G值和B值;最后利用预设的亮度模型获取各所述颜色波的分亮度值,基于各所述颜色波的分亮度值获取所述非周期性光波的亮度值,也即预设环境的光线强度值。Preferably, 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 When waiting for the threshold, the server automatically generates a processing instruction containing the detection signal. At this time, 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. That is, 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). Divide into multiple superimposed waves containing basic parameters, where the basic parameters include phase, amplitude and frequency; then use the basic parameters of each superimposed wave to determine the wavelength of each superimposed wave and the corresponding color wave, and use the preset color gamut Figure obtains the R value, G value and B value of each color wave; finally obtains the sub-brightness value of each color wave using a preset brightness model, and obtains the non-periodic light wave based on the sub-brightness value of each color wave The brightness value of is also the light intensity value of the preset environment.
S40,将所述光线强度值输入至预设的亮度等级模型中,并接收所述亮度等级模型输出的光线强度等级。S40: Input the light intensity value into a preset brightness level model, and receive the light intensity level output by the brightness level model.
作为优选,所述亮度等级模型基于深度学习模型,利用数据库中的训练样本进行训练获得所述亮度等级模型。所述亮度等级模型的训练过程包括:获取训练样本,该训练样本包含历史光线强度值以及历史光线强度值对应的标准强度等级(根据专家规则设定);通过包含初始函数的亮度等级模型对所述训练样本进行训练,并获取训练之后输出的光线强度等级与所述训练样本中对应的历史光线强度值之间的整体误差度;检测所述整体误差度是否大于预设的误差阈值,在所述整体误差度小于或等于所述误差阈值时,提示模型训练完成;反之, 将所述亮度等级模型的初始函数调整为修正后函数,并通过包含所述修正后函数的所述亮度等级模型对所述训练样本进行再训练,并获取再训练之后得到的所述光线强度等级与所述训练样本中对应的历史光线强度值之间的整体误差度,判断该整体误差度是否大于所述误差阈值,以此类推,直至所述整体误差度小于或等于所述误差阈值,提示模型训练完成。所述初始函数由等级系数和初始参数(最大设定的亮度值)等构成。Preferably, 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 than or equal to the error threshold, indicating that the model training is completed. The initial function is composed of level coefficients and initial parameters (the maximum set brightness value).
可理解的,基于所述亮度等级模型对所述光线强度值进行解析,可以获得高准确度地光线强度等级,有利于后续步骤中调节并确定视频拍摄时的环境光线强弱,进而提升了通过摄像头模组采集的视频质量,使得视频审核时的合格率增加;同时使用亮度等级模型获得的光线强度等级无等级限制,更精准。It is understandable that by analyzing the light intensity value based on the brightness level model, a highly accurate light intensity level can be obtained, which is conducive to adjusting and determining the ambient light intensity during video shooting in the subsequent steps, thereby improving the The quality of the video collected by the camera module increases the pass rate during video review; at the same time, the light intensity level obtained by using the brightness level model has no level limit and is more accurate.
S50,将所述光线强度等级输入至预设的匹配器中,并接收所述匹配器输出的匹配结果。S50: Input the light intensity level into a preset matcher, and receive a matching result output by the matcher.
其中,所述匹配结果包含用于表征等级匹配的第一结果(如,“1”),用于表征等级不匹配的第二结果(如,“+0”)和第三结果(如,“-0”)。Wherein, 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").
可选地,将光线强度等级输入至预设的匹配器中,首先检测所述光线强度等级是否与预设的等级范围匹配,在所述光线强度等级与预设的等级范围匹配时,所述匹配器输出“1”,而在所述光线强度等级与预设的等级范围不匹配时,进一步确定等级不匹配情况为哪一种,也即检测等级不匹配的结果“0”的正负值,在所述光线强度等级高于等级范围的最大等级时,所述匹配器输出“+0”;而在所述光线强度等级低于等级范围的最小等级时,所述匹配器输出“-0”。可理解的,基于所述匹配器获取光线强度等级对应的匹配结果,有利于提高匹配效率。Optionally, 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,根据所述匹配结果获取并执行对应的控制操作,根据所述控制操作令所述摄像头模组拍摄动态视频。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.
在本实施例中,一个匹配结果对应一个或多个控制操作。可选地,在匹配结果为第一结果(如,“1”)时,直接令摄像头模组进行视频拍摄,获取用户的动态视频;而在匹配结果为第二结果(如,“+0”)时,为了避免光线强度较高对视频拍摄的影响,在采用预设调整措施之后,令摄像头模组进行视频拍摄,获取用户的动态视频,例如,通过使用与摄像头模组相配的遮光罩、或者切换为高质量镀膜摄像头、或者调整视频拍摄角度等调整措施来避免视频拍摄时曝光过度、眩光等问题;而在匹配结果为第三结果(如,“-0”)时,为了避免光线强度较弱对视频拍摄的影响,通过预设灯光模组来调节预设环境的光线强度之后,再次检测调节后的预设环境的光线强度等级,并在确定调节后的预设环境的光线强度等级与预设的等级范围匹配之后,也即再次执行所述步骤S10至所述步骤S50,直至检测到匹配结果为第一结果(如,“1”)之后,令摄像头模组进行视频拍摄,获取用户的动态视频。进一步地,将用户信息、设备信息、拍摄时间信息等与所述动态视频关联存储。In this embodiment, one matching result corresponds to one or more control operations. Optionally, when 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; and when the matching result is the second result (e.g., "+0") ), in order to avoid the impact of high light intensity on video shooting, after adopting preset adjustment measures, make the camera module perform video shooting to obtain the dynamic video of the user, for example, by using a hood, Or switch to a high-quality coated camera, or adjust the video shooting angle and other adjustment measures to avoid problems such as overexposure and glare during video shooting; and when the matching result is the third result (for example, "-0"), in order to avoid light intensity Weak impact on video shooting. 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.
综上所述,本实施例首先接收初始指令,并根据开始条件触发的开始采集命令和结束条件触发的结束采集命令,获取第一时间点和第二时间点之间以采集频率采集的所有电流值,并根据所有电流值生成检测信号;然后根据处理指令调用信号处理模型将检测信号转换为光线强度值,并利用亮度等级模型获取与光线强度值对应的光线强度等级;最后,利用匹配器对光线强度等级进行匹配判断获得匹配结果,并根据与匹配结果对应的控制操作实现不同的视频拍摄方式。本实施例在环境光线检测过程中,提高了光线检测时的准确度和检测速度,降低了服务器负载,明显提升服务器的运行速度。进一步地,在环境光线检测之后根据不同的匹配结果执行对应的控制操作,实现了不同的视频拍摄方案,可以达到提升视频拍摄效果和质量,减少视频审核的工作量、提高视频审核的合格率和效率的目的。In summary, 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. In the ambient light detection process in this embodiment, 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. 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.
在一实施例中,如图4所示,所述的基于环境光线检测的视频拍摄方法,所述摄像头模组包括感光元件;所述步骤S20具体包括以下步骤:In an embodiment, as shown in FIG. 4, in the video shooting method based on ambient light detection, the camera module includes a photosensitive element; the step S20 specifically includes the following steps:
S201,响应并执行根据所述开始条件触发的开始采集命令,存储在执行所述开始采集命令时的第一时间点,以及根据所述采集频率获取的所述感光元件输出的电流值。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.
具体的,所述初始指令中还可以包含定位标识,此时,响应并执行根据所述开始条件触 发的开始采集命令,开始数据采集,将在执行所述开始采集命令时的第一时间点、根据采集频率获取的感光元件输出的电流值和定位标识关联存储至数据库中,在后续步骤中,可以根据定位标识调取数据库中与定位标识关联的数据,提高查询速度。Specifically, the initial instruction may also include a positioning identifier. At this time, respond to and execute the start collection command triggered according to the start condition to start data collection. 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. In the subsequent steps, the data associated with the positioning identifier in the database can be retrieved according to the positioning identifier to improve the query speed.
作为优选,所述摄像头模组包括基于光电效应的光敏电阻和光导管等感光元件,通过预设环境的光强度变化引起感光元件的电阻值变化,进而实时记录所述电阻值变化引起的电流值变化。所述实时记录电阻值变化引起的电流值变化可以是通过预设的数据采集装置采集并记录感光元件输出的电流值,也可以是根据获得的感光元件的电阻值和预设的数据转换模型获取电流值。作为优选,所述数据转换关系为:Preferably, 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. Preferably, the data conversion relationship is:
Figure PCTCN2020085567-appb-000001
Figure PCTCN2020085567-appb-000001
其中,I为电流值;U为电压值;R为电阻值。可理解的,电压值已预设在所述数据转换模型中,例如,所述电压值为2.5。Among them, 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.
S202,响应并执行根据所述结束条件触发的结束采集命令,存储在所述第一时间点与在执行所述结束采集命令时的第二时间点所经历的该段光线检测时长的所有所述电流值。S202. Respond to and execute the end collection command triggered according to the end condition, and store all the light detection durations that have elapsed between the first time point and the second time point when the end collection command is executed. Current value.
具体的,响应并执行根据所述结束条件触发的结束采集命令,停止数据采集,并将在执行所述结束采集命令时的第二时间点、第一时间点与第二时间点所经历的该段光线检测时长的所述电流值以及定位标识关联存储至数据库中。Specifically, respond to and execute the end collection command triggered according to the end condition, stop data collection, and change the experience experienced at the second time point, the first time point, and the second time point when the end collection command is executed. The current value and the location identifier of the segment of light detection time are stored in a database in association.
S203,根据所有所述电流值以及预设的信号生成模型生成检测信号。S203: Generate a detection signal according to all the current values and a preset signal generation model.
具体的,根据该段光线检测时长内实时获得的各采集时间点以及各采集时间点的电流值,并使用预设的信号生成模型生成时间点为横坐标,电流值为竖坐标的伪波形,并将所述伪波形记录为检测信号。Specifically, according to the real-time acquisition time point and the current value of each acquisition time point obtained during the detection period of the light, 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.
综上所述,本实施例存储开始采集命令被触发的第一时间点与结束采集命令被触发的第二时间点之间采集的感光元件输出的电流值,并根据电流值生成检测信息,检测信号中包括的数据更为丰富,有利于提高光线检测的准确度。In summary, 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.
在一实施例中,如图5所示,所述步骤S30具体包括以下步骤:In an embodiment, as shown in FIG. 5, the step S30 specifically includes the following steps:
S301,将所述检测信号输入所述信号处理模型,令所述信号处理模型对所述检测信号进行归一化之后,获得非周期性光波。也即,利用预设的映射关系将所述检测信号进行预设比例缩小,得到非周期性光波。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.
S302,令所述信号处理模型对所述非周期性光波进行信号变换之后,获得各叠加波以及各所述叠加波的基本参数。作为优选,利用快速傅里叶变换将非周期性光波拆分为可见光光波的叠加波(各叠加波均为周期性光波),且各叠加波的相位大小、频率方向以及振幅大小均不相同。S302: After enabling the signal processing model to perform signal transformation on the non-periodic light wave, obtain each superimposed wave and basic parameters of each superimposed wave. Preferably, a fast Fourier transform is used to split the non-periodic light waves into superimposed waves of visible light waves (each superimposed wave is a periodic light wave), and the phase, frequency direction, and amplitude of each superimposed wave are different.
S303,令所述信号处理模型根据各所述叠加波的基本参数对各所述叠加波进行信号解析之后,获得各所述叠加波对应的R值、G值和B值。也即,根据各叠加波的频率和预设的波长公式获取各叠加波的波长,从而映射出各叠加波属于什么颜色波,进一步地,利用预设的色域图映射出各颜色波对应的R值、G值以及B值。可理解的,一种叠加波对应一种颜色波,例如,利用预设的映射关系表(用于存储波长与颜色波的映射关系)可以获知波长为590~600纳米叠加波为橙色波,并利用预设的色域图可以获知橙色波的R值为22、G值为107、B值为201。S303: After the signal processing model performs signal analysis on each of the superimposed waves according to the basic parameters of each of the superimposed waves, the R value, G value, and B value corresponding to each superimposed wave are obtained. That is, the wavelength of each superimposed wave is obtained according to the frequency of each superimposed wave and the preset wavelength formula, thereby mapping which color wave each superimposed wave belongs to, and further, using the preset color gamut map to map the corresponding color wave R value, G value and B value. It is understandable that a superimposed wave corresponds to a color wave. For example, by using a preset mapping relationship table (used to store the mapping relationship between wavelengths and color waves), it can be learned that the superimposed wave with a wavelength of 590 to 600 nm is an orange wave, and Using 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.
S304,令所述信号处理模型根据各所述叠加波对应的R值、G值和B值分别计算各所述叠加波的分亮度值,并基于各所述叠加波的分亮度值获取所述非周期性光波的亮度值之后,将所述信号处理模型输出的所述非周期性光波的亮度值记录为所述预设环境的光线强度值。也即,利用信号处理模型中包括的亮度模型和各颜色波的R值、G值和B值获取各颜色波的分亮度值,并对各颜色波的分亮度值进行叠加累积之后获得所述非周期性光波(也即混合波)的亮度值,进而将所述非周期性光波的亮度值记录为为预设环境的光线强度值。S304. Allow 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 obtain the partial brightness value of each superimposed wave based on the partial brightness value of each superimposed wave. After 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. That is, 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.
作为优选,在一实施例中,所述的基于环境光线检测的视频拍摄方法,所述信号处理模型包括用于计算各所述叠加波的分亮度值的亮度模型,所述亮度模型为:Preferably, in an embodiment, in the video shooting method based on ambient light detection, the signal processing model includes a brightness model for calculating the partial brightness value of each superimposed wave, 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为常数项。作为优选,k1为0.299,k2为0.587,k3为0.114,此时,亮度模型输出的分亮度值最准确。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. Preferably, k1 is 0.299, k2 is 0.587, and k3 is 0.114. At this time, the partial brightness value output by the brightness model is the most accurate.
综上所述,本实施例在检测环境光线过程中,调用信号处理模型对检测信号进行归一化、信号转化、信号解析、亮度值计算之后,获得预设环境的光线强度值,该信号处理过程更为简便,平台适用性更广,降低了服务器负载,明显提升了服务器运行速度;同时提高了环境光线检测的准确度和效率。To sum up, in the process of detecting ambient light in this embodiment, 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 The process 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.
在一实施例中,述匹配结果包含用于表征等级匹配的第一结果,用于表征等级不匹配的第二结果和第三结果;所述步骤S60具体包括以下步骤:In one embodiment, 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:
在所述匹配结果为所述第一结果时,获取并执行与所述第一结果对应的第一控制操作,所述第一控制操作是指令所述摄像头模组拍摄视频,获取动态视频。也即,在所述匹配结果为第一结果(如,“1”)时,所述服务器向所述摄像头模组发出第一控制操作,根据第一控制操作启动所述摄像头模组的摄像头进行视频拍摄,以获取动态视频。其中,所述摄像头模组可以是与客户端通信连接且安装在所述客户端上的摄像头模组,也可以是直接与服务器通信连接的摄像头模组。When the matching result is the first result, a first control operation corresponding to the first result is acquired and executed, and the first control operation is to instruct the camera module to shoot a video and acquire a dynamic video. That is, when the matching result is the first result (for example, "1"), 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. Video shooting to obtain dynamic video. Wherein, 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.
在所述匹配结果为所述第二结果时,获取并执行与所述第二结果对应的第二控制操作,所述第二控制操作是指通过设置在所述预设环境中的灯光模组对所述预设环境进行亮度调整之后,令所述摄像头模组拍摄视频,获取动态视频。也即,在所述匹配结果为第二结果(如,“+0”)时,所述服务器向所述摄像头模组发出第二控制操作,自所述数据库中获取与预设环境的光线强度等级匹配的补偿参数(包含灯光模组中开启的LED数量、开启的各LED的亮度等),控制所述灯光模组以所述补偿参数进行开启,进而在对预设环境的光线强度等级进行调整之后,启动所述摄像头模组的摄像头进行视频拍摄,以获取动态视频。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, 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.
在所述匹配结果为所述第三结果时,获取并执行与所述第三结果对应的第三控制操作,所述第三控制操作是指对所述摄像头模组进行摄像头切换,并通过切换后的所述摄像头拍摄视频,获取动态视频;所述摄像头模组包含可自由切换的多个摄像头,且所述多个摄像头可根据需求设置,例如,两个或者两个以上摄像头。也即,在所述匹配结果为第三结果(如,“-0”)时,所述服务器向所述摄像头模组发出第三控制操作,根据所述第三控制操作使所述摄像头模组的摄像头切换成适用于光线较暗环境的摄像头,并启动切换后的摄像头进行视频拍摄,以获取动态视频。可理解的,不同光线强度的环境,适用不同参数的摄像头,且光线强度、摄像头的参数、以及光线强度与摄像头之间的关联关系已预先存储在数据库,因此,可以通过切换摄像头的方式获取高质量的动态视频。可选地,在所述服务器应用于智能双录系统时,基于所述动态视频可以进行视频审核以及验证用户身份。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, 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. It is understandable that different light intensity environments are suitable for cameras with different parameters, and the light intensity, camera parameters, and the relationship between the light intensity and the camera have been pre-stored in the database. Therefore, you can obtain high values by switching cameras. Quality dynamic video. Optionally, when the server is applied to an intelligent dual recording system, video audit and user identity verification can be performed based on the dynamic video.
综上所述,本实施例在检测环境光线之后,根据不同的匹配结果执行对应的控制指令,实现了不同的视频拍摄方式(包括但不限于延时拍摄、光线补偿拍摄、切换摄像头拍摄),使得视频拍摄的质量和效果得到提升,进而使得视频审核时的工作量减少,合格率增加,从而提高了视频审核效率提高。In summary, after detecting the ambient light, 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.
在一实施例中,在未获取光线强度值对应的光线强度等级的情况下,直接利用光线强度值进行数值检测来获得检测结果,并基于该检测结果实现指令操作;所述步骤S30之后还包括以下步骤:In an embodiment, when the light intensity level corresponding to the light intensity value is not obtained, the light intensity value is directly used for numerical detection to obtain the detection result, and the instruction operation is implemented based on the detection result; the step S30 further includes The following steps:
检测所述光线强度值是否在预设数值范围内;所述预设数值范围包括第一阈值和第二阈值,且所述第一阈值小于所述第二阈值。在所述光线强度值在所述预设数值范围内时,调用 并执行预设的第一指令,所述第一指令是指控制所述摄像头模组拍摄视频,获取动态视频。在所述光线强度值小于所述第一阈值时,调用并执行预设的第二指令,所述第二指令是指控制预设的灯光模组对所述预设环境进行亮度调整之后,控制所述摄像头模组拍摄视频,获取动态视频。It is detected 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, 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. 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 and obtains 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. It is understandable that 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.
综上所述,本实施例在检测环境光线之后,直接利用光线强度值进行数值检测之后获取检测结果,并基于不同的检测结果实现对应的指令控制,有利于减少视频拍摄时间,进而提升用户体验;同时可以达到提升视频拍摄的质量和效果,进而提高视频审核的合格率和效率的目的。In summary, after detecting the ambient light, 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.
在一实施例中,如图5所示,提供一种基于环境光线检测的视频拍摄装置,该基于环境光线检测的视频拍摄装置与上述实施例中基于环境光线检测的视频拍摄方法一一对应。该基于环境光线检测的视频拍摄装置包括以下模块,各功能模块详细说明如下:In one embodiment, as shown in FIG. 5, 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:
接收模块110,用于接收包含采集频率、开始条件和结束条件的初始指令。The receiving module 110 is used to receive the initial command including the acquisition frequency, the start condition and the end condition.
采集模块120,用于在根据所述开始条件触发开始采集命令时,根据所述采集频率获取设置在预设环境中的摄像头模组的电流值,直至根据所述结束条件触发结束采集命令时,停止采集并记录所述开始采集命令被触发的第一时间点与所述结束采集命令被触发的第二时间点之间采集的所有所述电流值,并根据所有所述电流值生成检测信号。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.
处理模块130,用于等待并接收包含所述检测信号的处理指令,调用预设的信号处理模型将所述检测信号转换为所述预设环境的光线强度值。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.
评估模块140,用于将所述光线强度值输入至预设的亮度等级模型中,并接收所述亮度等级模型输出的光线强度等级。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.
匹配模块150,用于将所述光线强度等级输入至预设的匹配器中,并接收所述匹配器输出的匹配结果。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.
控制模块160,用于根据所述匹配结果获取并执行对应的控制操作,根据所述控制操作令所述摄像头模组拍摄动态视频。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.
在一实施例中,所述的基于环境光线检测的视频拍摄装置,所述摄像头模组包括感光元件,所述采集模块120包括以下子模块,各功能子模块详细说明如下:In an embodiment, in the video shooting device based on ambient light detection, the camera module includes a photosensitive element, and 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.
在一实施例中,如图6所示,所述处理模块130包括以下子模块,各功能子模块详细说明如下:In an embodiment, as shown in FIG. 6, the processing module 130 includes the following sub-modules, and each functional sub-module is described in detail as follows:
归一化子模块131,用于将所述检测信号输入所述信号处理模型,令所述信号处理模型对所述检测信号进行归一化之后,获得非周期性光波。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.
变换子模块132,用于令所述信号处理模型对所述非周期性光波进行信号变换之后,获得各叠加波以及各所述叠加波的基本参数。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.
解析子模块133,用于令所述信号处理模型根据各所述叠加波的基本参数对各所述叠加波进行信号解析之后,获得各所述叠加波对应的R值、G值和B值。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.
计算子模块134,用于令所述信号处理模型根据各所述叠加波对应的R值、G值和B值分别计算各所述叠加波的分亮度值,并基于各所述叠加波的分亮度值获取所述非周期性光波的亮度值之后,将所述信号处理模型输出的所述非周期性光波的亮度值记录为所述预设环境的光线强度值。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.
在一实施例中,所述的基于环境光线检测的视频拍摄装置,所述信号处理模型包括用于计算各所述叠加波的分亮度值的亮度模型,所述亮度模型为:In an embodiment, in the video shooting device based on ambient light detection, 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=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.
在一实施例中,所述匹配结果包含用于表征等级匹配的第一结果,用于表征等级不匹配的第二结果和第三结果;所述控制模块160包括以下子模块,各功能子模块详细说明如下:In an embodiment, 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 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.
在另一实施例中,所述的基于环境光线检测的视频拍摄装置包括以下模块,各功能模块详细说明如下:In another embodiment, 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.
关于基于环境光线检测的视频拍摄装置的具体限定可以参见上文中对于基于环境光线检测的视频拍摄方法的限定,在此不再赘述。上述基于环境光线检测的视频拍摄装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。For the specific definition of the video shooting device based on ambient light detection, please refer to the above definition of the video shooting method based on ambient light detection, which will not be repeated here. 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.
在一个实施例中,提供了一种计算机设备,该计算机设备可以是服务器,其内部结构图可以如图7所示。该计算机设备包括通过系统总线连接的处理器、存储器、网络接口和数据库。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统、计算机可读指令和数据库。该内存储器为非易失性存储介质中的操作系统和计算机可读指令的运行提供环境。该计算机可读指令被处理器执行时以实现一种基于环境光线检测的视频拍摄方法。In one embodiment, 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.
在一个实施例中,提供了一种计算机设备,包括存储器、处理器及存储在存储器上并可在处 理器上运行的计算机可读指令,处理器执行计算机可读指令时实现以下步骤:接收包含采集频率、开始条件和结束条件的初始指令;在根据所述开始条件触发开始采集命令时,根据所述采集频率获取设置在预设环境中的摄像头模组的电流值,直至根据所述结束条件触发结束采集命令时,停止采集并记录所述开始采集命令被触发的第一时间点与所述结束采集命令被触发的第二时间点之间采集的所有所述电流值,并根据所有所述电流值生成检测信号;等待并接收包含所述检测信号的处理指令,调用预设的信号处理模型将所述检测信号转换为所述预设环境的光线强度值;将所述光线强度值输入至预设的亮度等级模型中,并接收所述亮度等级模型输出的光线强度等级;将所述光线强度等级输入至预设的匹配器中,并接收所述匹配器输出的匹配结果;根据所述匹配结果获取并执行对应的控制操作,根据所述控制操作令所述摄像头模组拍摄动态视频。In one embodiment, a computer device is provided, 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 matching result output by the matcher; according to the The matching result is obtained and corresponding control operations are executed, and the camera module is instructed to shoot dynamic videos according to the control operations.
在一个实施例中,提供了一种计算机可读存储介质,所述计算机可读存储介质为易失性存储介质或非易失性存储介质,其上存储有计算机可读指令,计算机可读指令被处理器执行时实现以下步骤:接收包含采集频率、开始条件和结束条件的初始指令;在根据所述开始条件触发开始采集命令时,根据所述采集频率获取设置在预设环境中的摄像头模组的电流值,直至根据所述结束条件触发结束采集命令时,停止采集并记录所述开始采集命令被触发的第一时间点与所述结束采集命令被触发的第二时间点之间采集的所有所述电流值,并根据所有所述电流值生成检测信号;等待并接收包含所述检测信号的处理指令,调用预设的信号处理模型将所述检测信号转换为所述预设环境的光线强度值;将所述光线强度值输入至预设的亮度等级模型中,并接收所述亮度等级模型输出的光线强度等级;将所述光线强度等级输入至预设的匹配器中,并接收所述匹配器输出的匹配结果;根据所述匹配结果获取并执行对应的控制操作,根据所述控制操作令所述摄像头模组拍摄动态视频。In one embodiment, 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. When executed by the processor, 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. The current value of the group until the end acquisition command is triggered according to the end condition, stop the acquisition and record the data collected between 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, and generate detection signals according to all the current values; wait and receive processing instructions containing the detection signals, call a preset signal processing model to convert the detection signals into light in the preset environment Intensity value; 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 a preset matcher, and receive all The matching result output by the matching device; obtaining and executing corresponding control operations according to the matching results, and instructing the camera module to shoot dynamic videos according to the control operations.
以上所述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。The above-mentioned embodiments are only used to illustrate the technical solutions of the present application, not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that it can still implement the foregoing The technical solutions recorded in the examples are modified, or some of the technical features are equivalently replaced; these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the application, and should be included in Within the scope of protection of this application.

Claims (19)

  1. 一种基于环境光线检测的视频拍摄方法,包括: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.
  2. 如权利要求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.
  3. 如权利要求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.
  4. 如权利要求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.
  5. 如权利要求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.
  6. 如权利要求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.
  7. 一种基于环境光线检测的视频拍摄装置,包括: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.
  8. 一种计算机设备,包括: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.
  9. 根据权利要求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.
  10. 根据权利要求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.
  11. 根据权利要求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.
  12. 根据权利要求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.
  13. 根据权利要求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.
  14. 一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现一种基于环境光线检测的视频拍摄方法,其中,所述基于环境光线检测的视频拍摄方法包括以下步骤: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.
  15. 根据权利要求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.
  16. 根据权利要求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.
  17. 根据权利要求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.
  18. 根据权利要求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.
  19. 根据权利要求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.
PCT/CN2020/085567 2019-08-15 2020-04-20 Video filming method and apparatus based on ambient light testing, and device and medium WO2021027309A1 (en)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
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