WO2021027309A1 - 基于环境光线检测的视频拍摄方法、装置、设备及介质 - Google Patents

基于环境光线检测的视频拍摄方法、装置、设备及介质 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
Legal status (The legal status 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 status listed.)
Ceased
Application number
PCT/CN2020/085567
Other languages
English (en)
French (fr)
Inventor
余龙龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
OneConnect Smart Technology Co Ltd
Original Assignee
OneConnect Smart Technology Co Ltd
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 OneConnect Smart Technology Co Ltd filed Critical OneConnect Smart Technology Co Ltd
Publication of WO2021027309A1 publication Critical patent/WO2021027309A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

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

本申请公开了一种基于环境光线检测的视频拍摄方法、装置、设备及介质。所述方法包括:接收初始指令;根据开始条件触发的开始采集命令和结束条件触发的结束采集命令,获取第一时间点与第二时间点之间以采集频率采集的所有电流值,根据所有电流值生成检测信号;接收处理指令,调用信号处理模型将检测信号转换为预设环境的光线强度值;将光线强度值输入至亮度等级模型中,接收输出的光线强度等级;将光线强度等级输入至匹配器中,接收输出的匹配结果;根据匹配结果获取并执行对应的控制操作,根据控制操作令摄像头模组拍摄动态视频。本申请通过提高光线检测的准确度和效率,达到提升视频拍摄的质量和效果,进而提高视频审核的合格率和效率的目的。

Description

基于环境光线检测的视频拍摄方法、装置、设备及介质
本申请要求于2019年8月15日提交中国专利局、申请号为201910755593.5,发明名称为“基于环境光线检测的视频拍摄方法、装置、设备及介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及摄像技术领域,具体涉及一种基于环境光线检测的视频拍摄方法、装置、设备及介质。
背景技术
随着移动终端的迅猛发展,很多应用系统都支持使用移动终端进行视频录制,如智能双录系统,在视频拍摄过程中,发明人意识到获取到的视频图像受户外环境影响很大,特别是光线因素是影响视频图像质量的关键;若户外环境的光线较暗,则会导致拍摄的视频质量较低,不符合拍摄要求,从而加大了视频审核的工作量,降低了视频审核效率。
发明内容
本申请实施例提供一种基于环境光线检测的视频拍摄方法、装置、设备及介质,适用于人工智能的领域,通过提高光线检测的准确度和效率,达到提升视频拍摄的质量和效果,进而提高视频审核的合格率和效率的目的。
一种基于环境光线检测的视频拍摄方法,包括:接收包含采集频率、开始条件和结束条件的初始指令;在根据所述开始条件触发开始采集命令时,根据所述采集频率获取设置在预设环境中的摄像头模组的电流值,直至根据所述结束条件触发结束采集命令时,停止采集并记录所述开始采集命令被触发的第一时间点与所述结束采集命令被触发的第二时间点之间采集的所有所述电流值,并根据所有所述电流值生成检测信号;等待并接收包含所述检测信号的处理指令,调用预设的信号处理模型将所述检测信号转换为所述预设环境的光线强度值;将所述光线强度值输入至预设的亮度等级模型中,并接收所述亮度等级模型输出的光线强度等级;将所述光线强度等级输入至预设的匹配器中,并接收所述匹配器输出的匹配结果;根据所述匹配结果获取并执行对应的控制操作,根据所述控制操作令所述摄像头模组拍摄动态视频。
一种基于环境光线检测的视频拍摄装置,包括:接收模块,用于接收包含采集频率、开始条件和结束条件的初始指令;采集模块,用于在根据所述开始条件触发开始采集命令时,根据所述采集频率获取设置在预设环境中的摄像头模组的电流值,直至根据所述结束条件触发结束采集命令时,停止采集并记录所述开始采集命令被触发的第一时间点与所述结束采集命令被触发的第二时间点之间采集的所有所述电流值,并根据所有所述电流值生成检测信号;处理模块,用于等待并接收包含所述检测信号的处理指令,调用预设的信号处理模型将所述检测信号转换为所述预设环境的光线强度值;评估模块,用于将所述光线强度值输入至预设的亮度等级模型中,并接收所述亮度等级模型输出的光线强度等级;匹配模块,用于将所述光线强度等级输入至预设的匹配器中,并接收所述匹配器输出的匹配结果;控制模块,用于根据所述匹配结果获取并执行对应的控制操作,根据所述控制操作令所述摄像头模组拍摄动态视频。
一种计算机设备,其包括:一个或多个处理器;存储器;一个或多个计算机程序,其中所述一个或多个计算机程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个计算机程序配置用于执行一种基于环境光线检测的视频拍摄方法,其中,所述基于环境光线检测的视频拍摄方法包括以下步骤:接收包含采集频率、开始条件和结束条 件的初始指令;在根据所述开始条件触发开始采集命令时,根据所述采集频率获取设置在预设环境中的摄像头模组的电流值,直至根据所述结束条件触发结束采集命令时,停止采集并记录所述开始采集命令被触发的第一时间点与所述结束采集命令被触发的第二时间点之间采集的所有所述电流值,并根据所有所述电流值生成检测信号;等待并接收包含所述检测信号的处理指令,调用预设的信号处理模型将所述检测信号转换为所述预设环境的光线强度值;将所述光线强度值输入至预设的亮度等级模型中,并接收所述亮度等级模型输出的光线强度等级;将所述光线强度等级输入至预设的匹配器中,并接收所述匹配器输出的匹配结果;根据所述匹配结果获取并执行对应的控制操作,根据所述控制操作令所述摄像头模组拍摄动态视频。
一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现一种基于环境光线检测的视频拍摄方法,其中,所述基于环境光线检测的视频拍摄方法包括以下步骤:接收包含采集频率、开始条件和结束条件的初始指令;在根据所述开始条件触发开始采集命令时,根据所述采集频率获取设置在预设环境中的摄像头模组的电流值,直至根据所述结束条件触发结束采集命令时,停止采集并记录所述开始采集命令被触发的第一时间点与所述结束采集命令被触发的第二时间点之间采集的所有所述电流值,并根据所有所述电流值生成检测信号;等待并接收包含所述检测信号的处理指令,调用预设的信号处理模型将所述检测信号转换为所述预设环境的光线强度值;将所述光线强度值输入至预设的亮度等级模型中,并接收所述亮度等级模型输出的光线强度等级;将所述光线强度等级输入至预设的匹配器中,并接收所述匹配器输出的匹配结果;根据所述匹配结果获取并执行对应的控制操作,根据所述控制操作令所述摄像头模组拍摄动态视频。
本申请提供的基于环境光线检测的视频拍摄方法、装置、设备及介质,首先接收初始指令,并根据开始条件触发的开始采集命令和结束条件触发的结束采集命令,获取第一时间点和第二时间点之间以采集频率采集的所有电流值,并根据所有电流值生成检测信号;然后根据处理指令调用信号处理模型将检测信号转换为光线强度值,并利用亮度等级模型获取与光线强度值对应的光线强度等级;最后,利用匹配器对光线强度等级进行匹配判断获得匹配结果,并根据与匹配结果对应的控制操作实现不同的视频拍摄方式。本发明在环境光线检测过程中,提高了光线检测时的准确度和检测速度,降低了服务器负载,明显提升服务器的运行速度。进一步地,在环境光线检测之后根据不同的匹配结果执行对应的控制操作,实现了不同的视频拍摄方案,可以达到提升视频拍摄效果和质量,减少视频审核的工作量、提高视频审核的合格率和效率的目的。
附图说明
图1是本申请一实施例中基于环境光线检测的视频拍摄方法的应用环境示意图;
图2是本申请一实施例中基于环境光线检测的视频拍摄方法的流程图;
图3是本申请一实施例中基于环境光线检测的视频拍摄方法的步骤S20的流程图;
图4是本申请一实施例中基于环境光线检测的视频拍摄方法的步骤S30的流程图;
图5是本申请一实施例中基于环境光线检测的视频拍摄装置的原理框图;
图6是本申请一实施例中基于环境光线检测的视频拍摄装置的处理模块的原理框图;
图7是本申请一实施例中计算机设备的示意图。
具体实施方式
本申请提供的基于环境光线检测的视频拍摄方法,可应用在如图1的应用环境中,其中,客户端通过网络与服务器进行通信。其中,客户端包括但不限于为各种计算机、笔记本电脑、智能手机、平板电脑和智能终端机。服务器可以用独立的服务器或者是多个服务器组成的服务器集群来实现。
在一实施例中,如图2所示,提供一种基于环境光线检测的视频拍摄方法,以该方法应 用在图1中的服务器为例进行说明,包括以下步骤:
S10,接收包含采集频率、开始条件和结束条件的初始指令。
在本实施例中,所述采集频率是指在所述开始条件和所述结束条件之间采集电流值的频率;且可选地,所述开始条件用于触发开始采集命令,可以是服务器检测到用户位于所述摄像头模组的视野范围,也可以是检测到触发(由语音触发或者手势触发等)设置于客户端的与开始采集命令绑定的预设按钮;所述结束条件用于触发结束采集命令,可以是服务器检测到光线检测时长达到预设时长阈值,也可以是检测到触发设置于客户端的与结束采集命令绑定的预设按钮。
S20,在根据所述开始条件触发开始采集命令时,根据所述采集频率获取设置在预设环境中的摄像头模组的电流值,直至根据所述结束条件触发结束采集命令时,停止采集并记录所述开始采集命令被触发的第一时间点与所述结束采集命令被触发的第二时间点之间采集的所有所述电流值,并根据所有所述电流值生成检测信号。
其中,所述摄像头模组包括感光元件、单个摄像头或者可自由切换的摄像头组;且所述摄像头模组可以是与客户端通信连接且安装在所述客户端上的摄像头模组,也可以是直接与服务器通信连接的摄像头模组。
作为优选,接收到自客户端发送的包含采集频率、开始条件和结束条件的初始指令时,首先响应并执行根据开始条件触发的开始采集命令,开始数据采集,存储并记录执行开始采集命令时的系统时间作为第一时间点和根据采集频率获取设置在预设环境中的摄像头模组的电流值;然后响应并执行根据结束条件触发的结束采集命令,停止数据采集,存储并记录执行结束采集命令时的系统时间作为第二时间点,并根据存储的在所述第一时间点和所述第二时间点所经历的该段光线检测时长内的所有电流值,生成检测信号。且作为优选,所述检测信号是指时间和振幅为坐标轴的伪波形信号。
S30,等待并接收包含所述检测信号的处理指令,调用预设的信号处理模型将所述检测信号转换为所述预设环境的光线强度值。
其中,所述信号处理模型可以为预先设置在服务器上。作为优选,所述信号处理模型可以用C/C++编写,可明显提升服务器的运算速度,且适用性更广泛。例如,适用于各种操作系统的移动终端、平板电脑等。
作为优选,根据光线检测时长以及利用信号生成模型生成检测信号的信号生成时长设定等待阈值,实时记录执行开始采集命令时的第一时间点与当前系统时间的执行时长,在所述执行时长达到所述等待阈值时,服务器自动生成包含检测信号的处理指令,此时,调用预设的信号处理模型对获取到的所述检测信号进行归一化、信号变换、信号解析以及亮度值计算之后,获取检测信号对应的亮度,也即预设环境的光线强度值。也即,调用信号处理模型,首先利用预设的映射关系将所述检测信号转换为非周期性光波,利用预设的变换公式(优选为快速傅里叶变换)将所述非周期性光波拆分成多个包含基本参数的叠加波,其中,该基本参数包含相位、振幅和频率;然后利用各叠加波的基本参数确定各叠加波的波长以及对应的颜色波,并利用预设的色域图获取各颜色波的R值、G值和B值;最后利用预设的亮度模型获取各所述颜色波的分亮度值,基于各所述颜色波的分亮度值获取所述非周期性光波的亮度值,也即预设环境的光线强度值。
S40,将所述光线强度值输入至预设的亮度等级模型中,并接收所述亮度等级模型输出的光线强度等级。
作为优选,所述亮度等级模型基于深度学习模型,利用数据库中的训练样本进行训练获得所述亮度等级模型。所述亮度等级模型的训练过程包括:获取训练样本,该训练样本包含历史光线强度值以及历史光线强度值对应的标准强度等级(根据专家规则设定);通过包含初始函数的亮度等级模型对所述训练样本进行训练,并获取训练之后输出的光线强度等级与所述训练样本中对应的历史光线强度值之间的整体误差度;检测所述整体误差度是否大于预设的误差阈值,在所述整体误差度小于或等于所述误差阈值时,提示模型训练完成;反之, 将所述亮度等级模型的初始函数调整为修正后函数,并通过包含所述修正后函数的所述亮度等级模型对所述训练样本进行再训练,并获取再训练之后得到的所述光线强度等级与所述训练样本中对应的历史光线强度值之间的整体误差度,判断该整体误差度是否大于所述误差阈值,以此类推,直至所述整体误差度小于或等于所述误差阈值,提示模型训练完成。所述初始函数由等级系数和初始参数(最大设定的亮度值)等构成。
可理解的,基于所述亮度等级模型对所述光线强度值进行解析,可以获得高准确度地光线强度等级,有利于后续步骤中调节并确定视频拍摄时的环境光线强弱,进而提升了通过摄像头模组采集的视频质量,使得视频审核时的合格率增加;同时使用亮度等级模型获得的光线强度等级无等级限制,更精准。
S50,将所述光线强度等级输入至预设的匹配器中,并接收所述匹配器输出的匹配结果。
其中,所述匹配结果包含用于表征等级匹配的第一结果(如,“1”),用于表征等级不匹配的第二结果(如,“+0”)和第三结果(如,“-0”)。
可选地,将光线强度等级输入至预设的匹配器中,首先检测所述光线强度等级是否与预设的等级范围匹配,在所述光线强度等级与预设的等级范围匹配时,所述匹配器输出“1”,而在所述光线强度等级与预设的等级范围不匹配时,进一步确定等级不匹配情况为哪一种,也即检测等级不匹配的结果“0”的正负值,在所述光线强度等级高于等级范围的最大等级时,所述匹配器输出“+0”;而在所述光线强度等级低于等级范围的最小等级时,所述匹配器输出“-0”。可理解的,基于所述匹配器获取光线强度等级对应的匹配结果,有利于提高匹配效率。
S60,根据所述匹配结果获取并执行对应的控制操作,根据所述控制操作令所述摄像头模组拍摄动态视频。
在本实施例中,一个匹配结果对应一个或多个控制操作。可选地,在匹配结果为第一结果(如,“1”)时,直接令摄像头模组进行视频拍摄,获取用户的动态视频;而在匹配结果为第二结果(如,“+0”)时,为了避免光线强度较高对视频拍摄的影响,在采用预设调整措施之后,令摄像头模组进行视频拍摄,获取用户的动态视频,例如,通过使用与摄像头模组相配的遮光罩、或者切换为高质量镀膜摄像头、或者调整视频拍摄角度等调整措施来避免视频拍摄时曝光过度、眩光等问题;而在匹配结果为第三结果(如,“-0”)时,为了避免光线强度较弱对视频拍摄的影响,通过预设灯光模组来调节预设环境的光线强度之后,再次检测调节后的预设环境的光线强度等级,并在确定调节后的预设环境的光线强度等级与预设的等级范围匹配之后,也即再次执行所述步骤S10至所述步骤S50,直至检测到匹配结果为第一结果(如,“1”)之后,令摄像头模组进行视频拍摄,获取用户的动态视频。进一步地,将用户信息、设备信息、拍摄时间信息等与所述动态视频关联存储。
综上所述,本实施例首先接收初始指令,并根据开始条件触发的开始采集命令和结束条件触发的结束采集命令,获取第一时间点和第二时间点之间以采集频率采集的所有电流值,并根据所有电流值生成检测信号;然后根据处理指令调用信号处理模型将检测信号转换为光线强度值,并利用亮度等级模型获取与光线强度值对应的光线强度等级;最后,利用匹配器对光线强度等级进行匹配判断获得匹配结果,并根据与匹配结果对应的控制操作实现不同的视频拍摄方式。本实施例在环境光线检测过程中,提高了光线检测时的准确度和检测速度,降低了服务器负载,明显提升服务器的运行速度。进一步地,在环境光线检测之后根据不同的匹配结果执行对应的控制操作,实现了不同的视频拍摄方案,可以达到提升视频拍摄效果和质量,减少视频审核的工作量、提高视频审核的合格率和效率的目的。
在一实施例中,如图4所示,所述的基于环境光线检测的视频拍摄方法,所述摄像头模组包括感光元件;所述步骤S20具体包括以下步骤:
S201,响应并执行根据所述开始条件触发的开始采集命令,存储在执行所述开始采集命令时的第一时间点,以及根据所述采集频率获取的所述感光元件输出的电流值。
具体的,所述初始指令中还可以包含定位标识,此时,响应并执行根据所述开始条件触 发的开始采集命令,开始数据采集,将在执行所述开始采集命令时的第一时间点、根据采集频率获取的感光元件输出的电流值和定位标识关联存储至数据库中,在后续步骤中,可以根据定位标识调取数据库中与定位标识关联的数据,提高查询速度。
作为优选,所述摄像头模组包括基于光电效应的光敏电阻和光导管等感光元件,通过预设环境的光强度变化引起感光元件的电阻值变化,进而实时记录所述电阻值变化引起的电流值变化。所述实时记录电阻值变化引起的电流值变化可以是通过预设的数据采集装置采集并记录感光元件输出的电流值,也可以是根据获得的感光元件的电阻值和预设的数据转换模型获取电流值。作为优选,所述数据转换关系为:
Figure PCTCN2020085567-appb-000001
其中,I为电流值;U为电压值;R为电阻值。可理解的,电压值已预设在所述数据转换模型中,例如,所述电压值为2.5。
S202,响应并执行根据所述结束条件触发的结束采集命令,存储在所述第一时间点与在执行所述结束采集命令时的第二时间点所经历的该段光线检测时长的所有所述电流值。
具体的,响应并执行根据所述结束条件触发的结束采集命令,停止数据采集,并将在执行所述结束采集命令时的第二时间点、第一时间点与第二时间点所经历的该段光线检测时长的所述电流值以及定位标识关联存储至数据库中。
S203,根据所有所述电流值以及预设的信号生成模型生成检测信号。
具体的,根据该段光线检测时长内实时获得的各采集时间点以及各采集时间点的电流值,并使用预设的信号生成模型生成时间点为横坐标,电流值为竖坐标的伪波形,并将所述伪波形记录为检测信号。
综上所述,本实施例存储开始采集命令被触发的第一时间点与结束采集命令被触发的第二时间点之间采集的感光元件输出的电流值,并根据电流值生成检测信息,检测信号中包括的数据更为丰富,有利于提高光线检测的准确度。
在一实施例中,如图5所示,所述步骤S30具体包括以下步骤:
S301,将所述检测信号输入所述信号处理模型,令所述信号处理模型对所述检测信号进行归一化之后,获得非周期性光波。也即,利用预设的映射关系将所述检测信号进行预设比例缩小,得到非周期性光波。
S302,令所述信号处理模型对所述非周期性光波进行信号变换之后,获得各叠加波以及各所述叠加波的基本参数。作为优选,利用快速傅里叶变换将非周期性光波拆分为可见光光波的叠加波(各叠加波均为周期性光波),且各叠加波的相位大小、频率方向以及振幅大小均不相同。
S303,令所述信号处理模型根据各所述叠加波的基本参数对各所述叠加波进行信号解析之后,获得各所述叠加波对应的R值、G值和B值。也即,根据各叠加波的频率和预设的波长公式获取各叠加波的波长,从而映射出各叠加波属于什么颜色波,进一步地,利用预设的色域图映射出各颜色波对应的R值、G值以及B值。可理解的,一种叠加波对应一种颜色波,例如,利用预设的映射关系表(用于存储波长与颜色波的映射关系)可以获知波长为590~600纳米叠加波为橙色波,并利用预设的色域图可以获知橙色波的R值为22、G值为107、B值为201。
S304,令所述信号处理模型根据各所述叠加波对应的R值、G值和B值分别计算各所述叠加波的分亮度值,并基于各所述叠加波的分亮度值获取所述非周期性光波的亮度值之后,将所述信号处理模型输出的所述非周期性光波的亮度值记录为所述预设环境的光线强度值。也即,利用信号处理模型中包括的亮度模型和各颜色波的R值、G值和B值获取各颜色波的分亮度值,并对各颜色波的分亮度值进行叠加累积之后获得所述非周期性光波(也即混合波)的亮度值,进而将所述非周期性光波的亮度值记录为为预设环境的光线强度值。
作为优选,在一实施例中,所述的基于环境光线检测的视频拍摄方法,所述信号处理模型包括用于计算各所述叠加波的分亮度值的亮度模型,所述亮度模型为:
y=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,此时,亮度模型输出的分亮度值最准确。
综上所述,本实施例在检测环境光线过程中,调用信号处理模型对检测信号进行归一化、信号转化、信号解析、亮度值计算之后,获得预设环境的光线强度值,该信号处理过程更为简便,平台适用性更广,降低了服务器负载,明显提升了服务器运行速度;同时提高了环境光线检测的准确度和效率。
在一实施例中,述匹配结果包含用于表征等级匹配的第一结果,用于表征等级不匹配的第二结果和第三结果;所述步骤S60具体包括以下步骤:
在所述匹配结果为所述第一结果时,获取并执行与所述第一结果对应的第一控制操作,所述第一控制操作是指令所述摄像头模组拍摄视频,获取动态视频。也即,在所述匹配结果为第一结果(如,“1”)时,所述服务器向所述摄像头模组发出第一控制操作,根据第一控制操作启动所述摄像头模组的摄像头进行视频拍摄,以获取动态视频。其中,所述摄像头模组可以是与客户端通信连接且安装在所述客户端上的摄像头模组,也可以是直接与服务器通信连接的摄像头模组。
在所述匹配结果为所述第二结果时,获取并执行与所述第二结果对应的第二控制操作,所述第二控制操作是指通过设置在所述预设环境中的灯光模组对所述预设环境进行亮度调整之后,令所述摄像头模组拍摄视频,获取动态视频。也即,在所述匹配结果为第二结果(如,“+0”)时,所述服务器向所述摄像头模组发出第二控制操作,自所述数据库中获取与预设环境的光线强度等级匹配的补偿参数(包含灯光模组中开启的LED数量、开启的各LED的亮度等),控制所述灯光模组以所述补偿参数进行开启,进而在对预设环境的光线强度等级进行调整之后,启动所述摄像头模组的摄像头进行视频拍摄,以获取动态视频。
在所述匹配结果为所述第三结果时,获取并执行与所述第三结果对应的第三控制操作,所述第三控制操作是指对所述摄像头模组进行摄像头切换,并通过切换后的所述摄像头拍摄视频,获取动态视频;所述摄像头模组包含可自由切换的多个摄像头,且所述多个摄像头可根据需求设置,例如,两个或者两个以上摄像头。也即,在所述匹配结果为第三结果(如,“-0”)时,所述服务器向所述摄像头模组发出第三控制操作,根据所述第三控制操作使所述摄像头模组的摄像头切换成适用于光线较暗环境的摄像头,并启动切换后的摄像头进行视频拍摄,以获取动态视频。可理解的,不同光线强度的环境,适用不同参数的摄像头,且光线强度、摄像头的参数、以及光线强度与摄像头之间的关联关系已预先存储在数据库,因此,可以通过切换摄像头的方式获取高质量的动态视频。可选地,在所述服务器应用于智能双录系统时,基于所述动态视频可以进行视频审核以及验证用户身份。
综上所述,本实施例在检测环境光线之后,根据不同的匹配结果执行对应的控制指令,实现了不同的视频拍摄方式(包括但不限于延时拍摄、光线补偿拍摄、切换摄像头拍摄),使得视频拍摄的质量和效果得到提升,进而使得视频审核时的工作量减少,合格率增加,从而提高了视频审核效率提高。
在一实施例中,在未获取光线强度值对应的光线强度等级的情况下,直接利用光线强度值进行数值检测来获得检测结果,并基于该检测结果实现指令操作;所述步骤S30之后还包括以下步骤:
检测所述光线强度值是否在预设数值范围内;所述预设数值范围包括第一阈值和第二阈值,且所述第一阈值小于所述第二阈值。在所述光线强度值在所述预设数值范围内时,调用 并执行预设的第一指令,所述第一指令是指控制所述摄像头模组拍摄视频,获取动态视频。在所述光线强度值小于所述第一阈值时,调用并执行预设的第二指令,所述第二指令是指控制预设的灯光模组对所述预设环境进行亮度调整之后,控制所述摄像头模组拍摄视频,获取动态视频。
在所述光线强度值大于所述第二阈值时,调用并执行预设的第三指令,所述第三指令是指控制所述摄像头模组延迟拍摄,并再次检测所述预设环境的光线强度值,直至再次检测的所述光线强度值在所述预设数值范围内时,控制所述摄像头模组拍摄视频,获取动态视频。可理解的,所述预设数值范围为经过多次试验获得的适用于视频拍摄的光线强度值的最佳范围,此时,在该预设数值范围下拍摄获得的动态视频的质量和效果达到最佳。
综上所述,本实施例在检测环境光线之后,直接利用光线强度值进行数值检测之后获取检测结果,并基于不同的检测结果实现对应的指令控制,有利于减少视频拍摄时间,进而提升用户体验;同时可以达到提升视频拍摄的质量和效果,进而提高视频审核的合格率和效率的目的。
在一实施例中,如图5所示,提供一种基于环境光线检测的视频拍摄装置,该基于环境光线检测的视频拍摄装置与上述实施例中基于环境光线检测的视频拍摄方法一一对应。该基于环境光线检测的视频拍摄装置包括以下模块,各功能模块详细说明如下:
接收模块110,用于接收包含采集频率、开始条件和结束条件的初始指令。
采集模块120,用于在根据所述开始条件触发开始采集命令时,根据所述采集频率获取设置在预设环境中的摄像头模组的电流值,直至根据所述结束条件触发结束采集命令时,停止采集并记录所述开始采集命令被触发的第一时间点与所述结束采集命令被触发的第二时间点之间采集的所有所述电流值,并根据所有所述电流值生成检测信号。
处理模块130,用于等待并接收包含所述检测信号的处理指令,调用预设的信号处理模型将所述检测信号转换为所述预设环境的光线强度值。
评估模块140,用于将所述光线强度值输入至预设的亮度等级模型中,并接收所述亮度等级模型输出的光线强度等级。
匹配模块150,用于将所述光线强度等级输入至预设的匹配器中,并接收所述匹配器输出的匹配结果。
控制模块160,用于根据所述匹配结果获取并执行对应的控制操作,根据所述控制操作令所述摄像头模组拍摄动态视频。
在一实施例中,所述的基于环境光线检测的视频拍摄装置,所述摄像头模组包括感光元件,所述采集模块120包括以下子模块,各功能子模块详细说明如下:
开始采集子模块,用于响应并执行根据所述开始条件触发的开始采集命令,存储在执行所述开始采集命令时的第一时间点,以及根据所述采集频率获取的所述感光元件输出的电流值。
结束采集子模块,用于响应并执行根据所述结束条件触发的结束采集命令,存储在所述第一时间点与在执行所述结束采集命令时的第二时间点所经历的该段光线检测时长的所有所述电流值。
信号生成子模块,用于根据所有所述电流值以及预设的信号生成模型生成检测信号。
在一实施例中,如图6所示,所述处理模块130包括以下子模块,各功能子模块详细说明如下:
归一化子模块131,用于将所述检测信号输入所述信号处理模型,令所述信号处理模型对所述检测信号进行归一化之后,获得非周期性光波。
变换子模块132,用于令所述信号处理模型对所述非周期性光波进行信号变换之后,获得各叠加波以及各所述叠加波的基本参数。
解析子模块133,用于令所述信号处理模型根据各所述叠加波的基本参数对各所述叠加波进行信号解析之后,获得各所述叠加波对应的R值、G值和B值。
计算子模块134,用于令所述信号处理模型根据各所述叠加波对应的R值、G值和B值分别计算各所述叠加波的分亮度值,并基于各所述叠加波的分亮度值获取所述非周期性光波的亮度值之后,将所述信号处理模型输出的所述非周期性光波的亮度值记录为所述预设环境的光线强度值。
在一实施例中,所述的基于环境光线检测的视频拍摄装置,所述信号处理模型包括用于计算各所述叠加波的分亮度值的亮度模型,所述亮度模型为:
y=k1*R+k2*G+k3*B
其中,y为所述叠加波对应的分亮度值;R为所述叠加波对应的R值;G为所述叠加波对应的G值;B为所述叠加波对应的B值;k1为R值对应的第一系数;k2为G值对应的第二系数;k3为B值对应的第三系数;且所述k1、k2和k3为常数项。
在一实施例中,所述匹配结果包含用于表征等级匹配的第一结果,用于表征等级不匹配的第二结果和第三结果;所述控制模块160包括以下子模块,各功能子模块详细说明如下:
第一操作子模块,用于在所述匹配结果为所述第一结果时,获取并执行与所述第一结果对应的第一控制操作,所述第一控制操作是指令所述摄像头模组拍摄视频,获取动态视频。
第二操作子模块,在所述匹配结果为所述第二结果时,获取并执行与所述第二结果对应的第二控制操作,所述第二控制操作是指通过设置在所述预设环境中的灯光模组对所述预设环境进行亮度调整之后,令所述摄像头模组拍摄视频,获取动态视频。
第三操作子模块,在所述匹配结果为所述第三结果时,获取并执行与所述第三结果对应的第三控制操作,所述第三控制操作是指对所述摄像头模组进行摄像头切换,并通过切换后的所述摄像头拍摄视频,获取动态视频;所述摄像头模组包含可自由切换的多个摄像头。
在另一实施例中,所述的基于环境光线检测的视频拍摄装置包括以下模块,各功能模块详细说明如下:
检测模块,用于检测所述光线强度值是否在预设数值范围内;所述预设数值范围包括第一阈值和第二阈值,且所述第一阈值小于所述第二阈值。
第一指令模块,用于在所述光线强度值在所述预设数值范围内时,调用并执行预设的第一指令,所述第一指令是指控制所述摄像头模组拍摄视频,获取动态视频。
第二指令模块,用于在所述光线强度值小于所述第一阈值时,调用并执行预设的第二指令,所述第二指令是指控制预设的灯光模组对所述预设环境进行亮度调整之后,控制所述摄像头模组拍摄视频,获取动态视频。
第三指令模块,用于在所述光线强度值大于所述第二阈值时,调用并执行预设的第三指令,所述第三指令是指控制所述摄像头模组延迟拍摄,并再次检测所述预设环境的光线强度值,直至再次检测的所述光线强度值在所述预设数值范围内时,控制所述摄像头模组拍摄视频,获取动态视频。
关于基于环境光线检测的视频拍摄装置的具体限定可以参见上文中对于基于环境光线检测的视频拍摄方法的限定,在此不再赘述。上述基于环境光线检测的视频拍摄装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。
在一个实施例中,提供了一种计算机设备,该计算机设备可以是服务器,其内部结构图可以如图7所示。该计算机设备包括通过系统总线连接的处理器、存储器、网络接口和数据库。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统、计算机可读指令和数据库。该内存储器为非易失性存储介质中的操作系统和计算机可读指令的运行提供环境。该计算机可读指令被处理器执行时以实现一种基于环境光线检测的视频拍摄方法。
在一个实施例中,提供了一种计算机设备,包括存储器、处理器及存储在存储器上并可在处 理器上运行的计算机可读指令,处理器执行计算机可读指令时实现以下步骤:接收包含采集频率、开始条件和结束条件的初始指令;在根据所述开始条件触发开始采集命令时,根据所述采集频率获取设置在预设环境中的摄像头模组的电流值,直至根据所述结束条件触发结束采集命令时,停止采集并记录所述开始采集命令被触发的第一时间点与所述结束采集命令被触发的第二时间点之间采集的所有所述电流值,并根据所有所述电流值生成检测信号;等待并接收包含所述检测信号的处理指令,调用预设的信号处理模型将所述检测信号转换为所述预设环境的光线强度值;将所述光线强度值输入至预设的亮度等级模型中,并接收所述亮度等级模型输出的光线强度等级;将所述光线强度等级输入至预设的匹配器中,并接收所述匹配器输出的匹配结果;根据所述匹配结果获取并执行对应的控制操作,根据所述控制操作令所述摄像头模组拍摄动态视频。
在一个实施例中,提供了一种计算机可读存储介质,所述计算机可读存储介质为易失性存储介质或非易失性存储介质,其上存储有计算机可读指令,计算机可读指令被处理器执行时实现以下步骤:接收包含采集频率、开始条件和结束条件的初始指令;在根据所述开始条件触发开始采集命令时,根据所述采集频率获取设置在预设环境中的摄像头模组的电流值,直至根据所述结束条件触发结束采集命令时,停止采集并记录所述开始采集命令被触发的第一时间点与所述结束采集命令被触发的第二时间点之间采集的所有所述电流值,并根据所有所述电流值生成检测信号;等待并接收包含所述检测信号的处理指令,调用预设的信号处理模型将所述检测信号转换为所述预设环境的光线强度值;将所述光线强度值输入至预设的亮度等级模型中,并接收所述亮度等级模型输出的光线强度等级;将所述光线强度等级输入至预设的匹配器中,并接收所述匹配器输出的匹配结果;根据所述匹配结果获取并执行对应的控制操作,根据所述控制操作令所述摄像头模组拍摄动态视频。
以上所述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。

Claims (19)

  1. 一种基于环境光线检测的视频拍摄方法,包括:
    接收包含采集频率、开始条件和结束条件的初始指令;
    在根据所述开始条件触发开始采集命令时,根据所述采集频率获取设置在预设环境中的摄像头模组的电流值,直至根据所述结束条件触发结束采集命令时,停止采集并记录所述开始采集命令被触发的第一时间点与所述结束采集命令被触发的第二时间点之间采集的所有所述电流值,并根据所有所述电流值生成检测信号;
    等待并接收包含所述检测信号的处理指令,调用预设的信号处理模型将所述检测信号转换为所述预设环境的光线强度值;
    将所述光线强度值输入至预设的亮度等级模型中,并接收所述亮度等级模型输出的光线强度等级;
    将所述光线强度等级输入至预设的匹配器中,并接收所述匹配器输出的匹配结果;
    根据所述匹配结果获取并执行对应的控制操作,根据所述控制操作令所述摄像头模组拍摄动态视频。
  2. 如权利要求1所述的基于环境光线检测的视频拍摄方法,所述摄像头模组包括感光元件;
    所述在根据所述开始条件触发开始采集命令时,根据所述采集频率获取设置在预设环境中的摄像头模组的电流值,直至根据所述结束条件触发结束采集命令时,停止采集并记录所述开始采集命令被触发的第一时间点与所述结束采集命令被触发的第二时间点之间采集的所有所述电流值,并根据所有所述电流值生成检测信号,包括:
    响应并执行根据所述开始条件触发的开始采集命令,存储在执行所述开始采集命令时的第一时间点,以及根据所述采集频率获取的所述感光元件输出的电流值;
    响应并执行根据所述结束条件触发的结束采集命令,存储在所述第一时间点与在执行所述结束采集命令时的第二时间点所经历的该段光线检测时长的所有所述电流值;
    根据所有所述电流值以及预设的信号生成模型生成检测信号。
  3. 如权利要求1所述的基于环境光线检测的视频拍摄方法,所述调用预设的信号处理模型将所述检测信号转换为所述预设环境的光线强度值,包括:
    将所述检测信号输入所述信号处理模型,令所述信号处理模型对所述检测信号进行归一化之后,获得非周期性光波;
    令所述信号处理模型对所述非周期性光波进行信号变换之后,获得各叠加波以及各所述叠加波的基本参数;
    令所述信号处理模型根据各所述叠加波的基本参数对各所述叠加波进行信号解析之后,获得各所述叠加波对应的R值、G值和B值;
    令所述信号处理模型根据各所述叠加波对应的R值、G值和B值分别计算各所述叠加波的分亮度值,并基于各所述叠加波的分亮度值获取所述非周期性光波的亮度值之后,将所述信号处理模型输出的所述非周期性光波的亮度值记录为所述预设环境的光线强度值。
  4. 如权利要求3所述的基于环境光线检测的视频拍摄方法,所述信号处理模型包括用于计算各所述叠加波的分亮度值的亮度模型,所述亮度模型为:
    y=k1*R+k2*G+k3*B
    其中,y为所述叠加波对应的分亮度值;R为所述叠加波对应的R值;G为所述叠加波对应的G值;B为所述叠加波对应的B值;k1为R值对应的第一系数;k2为G值对应的第二系数;k3为B值对应的第三系数;且所述k1、k2和k3为常数项。
  5. 如权利要求1所述的基于环境光线检测的视频拍摄方法,所述匹配结果包含用于表征等级匹配的第一结果,用于表征等级不匹配的第二结果和第三结果;
    所述根据所述匹配结果获取并执行对应的控制操作,根据所述控制操作令所述摄像头模组拍摄动态视频,包括:
    在所述匹配结果为所述第一结果时,获取并执行与所述第一结果对应的第一控制操作,所述第一控制操作是指令所述摄像头模组拍摄视频,获取动态视频;
    在所述匹配结果为所述第二结果时,获取并执行与所述第二结果对应的第二控制操作,所述第二控制操作是指通过设置在所述预设环境中的灯光模组对所述预设环境进行亮度调整之后,令所述摄像头模组拍摄视频,获取动态视频;
    在所述匹配结果为所述第三结果时,获取并执行与所述第三结果对应的第三控制操作,所述第三控制操作是指对所述摄像头模组进行摄像头切换,并通过切换后的所述摄像头拍摄视频,获取动态视频;所述摄像头模组包含可自由切换的多个摄像头。
  6. 如权利要求1所述的基于环境光线检测的视频拍摄方法,所述等待并接收包含所述检测信号的处理指令,调用预设的信号处理模型将所述检测信号转换为所述预设环境的光线强度值之后,包括:
    检测所述光线强度值是否在预设数值范围内;所述预设数值范围包括第一阈值和第二阈值,且所述第一阈值小于所述第二阈值;
    在所述光线强度值在所述预设数值范围内时,调用并执行预设的第一指令,所述第一指令是指控制所述摄像头模组拍摄视频,获取动态视频;
    在所述光线强度值小于所述第一阈值时,调用并执行预设的第二指令,所述第二指令是指控制预设的灯光模组对所述预设环境进行亮度调整之后,控制所述摄像头模组拍摄视频,获取动态视频;
    在所述光线强度值大于所述第二阈值时,调用并执行预设的第三指令,所述第三指令是指控制所述摄像头模组延迟拍摄,并再次检测所述预设环境的光线强度值,直至再次检测的所述光线强度值在所述预设数值范围内时,控制所述摄像头模组拍摄视频,获取动态视频。
  7. 一种基于环境光线检测的视频拍摄装置,包括:
    接收模块,用于接收包含采集频率、开始条件和结束条件的初始指令;
    采集模块,用于在根据所述开始条件触发开始采集命令时,根据所述采集频率获取设置在预设环境中的摄像头模组的电流值,直至根据所述结束条件触发结束采集命令时,停止采集并记录所述开始采集命令被触发的第一时间点与所述结束采集命令被触发的第二时间点之间采集的所有所述电流值,并根据所有所述电流值生成检测信号;
    处理模块,用于等待并接收包含所述检测信号的处理指令,调用预设的信号处理模型将所述检测信号转换为所述预设环境的光线强度值;
    评估模块,用于将所述光线强度值输入至预设的亮度等级模型中,并接收所述亮度等级模型输出的光线强度等级;
    匹配模块,用于将所述光线强度等级输入至预设的匹配器中,并接收所述匹配器输出的匹配结果;
    控制模块,用于根据所述匹配结果获取并执行对应的控制操作,根据所述控制操作令所述摄像头模组拍摄动态视频。
  8. 一种计算机设备,包括:
    一个或多个处理器;
    存储器;
    一个或多个计算机程序,其中所述一个或多个计算机程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个计算机程序配置用于执行一种基于环境光线检测的视频拍摄方法;其中,所述基于环境光线检测的视频拍摄方法方法包括以下步骤:
    接收包含采集频率、开始条件和结束条件的初始指令;
    在根据所述开始条件触发开始采集命令时,根据所述采集频率获取设置在预设环境中的摄像头模组的电流值,直至根据所述结束条件触发结束采集命令时,停止采集并记录所述开 始采集命令被触发的第一时间点与所述结束采集命令被触发的第二时间点之间采集的所有所述电流值,并根据所有所述电流值生成检测信号;
    等待并接收包含所述检测信号的处理指令,调用预设的信号处理模型将所述检测信号转换为所述预设环境的光线强度值;
    将所述光线强度值输入至预设的亮度等级模型中,并接收所述亮度等级模型输出的光线强度等级;
    将所述光线强度等级输入至预设的匹配器中,并接收所述匹配器输出的匹配结果;
    根据所述匹配结果获取并执行对应的控制操作,根据所述控制操作令所述摄像头模组拍摄动态视频。
  9. 根据权利要求8所述的计算机设备,所述摄像头模组包括感光元件;
    所述在根据所述开始条件触发开始采集命令时,根据所述采集频率获取设置在预设环境中的摄像头模组的电流值,直至根据所述结束条件触发结束采集命令时,停止采集并记录所述开始采集命令被触发的第一时间点与所述结束采集命令被触发的第二时间点之间采集的所有所述电流值,并根据所有所述电流值生成检测信号,包括:
    响应并执行根据所述开始条件触发的开始采集命令,存储在执行所述开始采集命令时的第一时间点,以及根据所述采集频率获取的所述感光元件输出的电流值;
    响应并执行根据所述结束条件触发的结束采集命令,存储在所述第一时间点与在执行所述结束采集命令时的第二时间点所经历的该段光线检测时长的所有所述电流值;
    根据所有所述电流值以及预设的信号生成模型生成检测信号。
  10. 根据权利要求8所述的计算机设备,所述调用预设的信号处理模型将所述检测信号转换为所述预设环境的光线强度值,包括:
    将所述检测信号输入所述信号处理模型,令所述信号处理模型对所述检测信号进行归一化之后,获得非周期性光波;
    令所述信号处理模型对所述非周期性光波进行信号变换之后,获得各叠加波以及各所述叠加波的基本参数;
    令所述信号处理模型根据各所述叠加波的基本参数对各所述叠加波进行信号解析之后,获得各所述叠加波对应的R值、G值和B值;
    令所述信号处理模型根据各所述叠加波对应的R值、G值和B值分别计算各所述叠加波的分亮度值,并基于各所述叠加波的分亮度值获取所述非周期性光波的亮度值之后,将所述信号处理模型输出的所述非周期性光波的亮度值记录为所述预设环境的光线强度值。
  11. 根据权利要求10所述的计算机设备,所述信号处理模型包括用于计算各所述叠加波的分亮度值的亮度模型,所述亮度模型为:
    y=k1*R+k2*G+k3*B
    其中,y为所述叠加波对应的分亮度值;R为所述叠加波对应的R值;G为所述叠加波对应的G值;B为所述叠加波对应的B值;k1为R值对应的第一系数;k2为G值对应的第二系数;k3为B值对应的第三系数;且所述k1、k2和k3为常数项。
  12. 根据权利要求8所述的计算机设备,所述匹配结果包含用于表征等级匹配的第一结果,用于表征等级不匹配的第二结果和第三结果;
    所述根据所述匹配结果获取并执行对应的控制操作,根据所述控制操作令所述摄像头模组拍摄动态视频,包括:
    在所述匹配结果为所述第一结果时,获取并执行与所述第一结果对应的第一控制操作,所述第一控制操作是指令所述摄像头模组拍摄视频,获取动态视频;
    在所述匹配结果为所述第二结果时,获取并执行与所述第二结果对应的第二控制操作,所述第二控制操作是指通过设置在所述预设环境中的灯光模组对所述预设环境进行亮度调整之后,令所述摄像头模组拍摄视频,获取动态视频;
    在所述匹配结果为所述第三结果时,获取并执行与所述第三结果对应的第三控制操作,所述第三控制操作是指对所述摄像头模组进行摄像头切换,并通过切换后的所述摄像头拍摄视频,获取动态视频;所述摄像头模组包含可自由切换的多个摄像头。
  13. 根据权利要求8所述的计算机设备,所述等待并接收包含所述检测信号的处理指令,调用预设的信号处理模型将所述检测信号转换为所述预设环境的光线强度值之后,包括:
    检测所述光线强度值是否在预设数值范围内;所述预设数值范围包括第一阈值和第二阈值,且所述第一阈值小于所述第二阈值;
    在所述光线强度值在所述预设数值范围内时,调用并执行预设的第一指令,所述第一指令是指控制所述摄像头模组拍摄视频,获取动态视频;
    在所述光线强度值小于所述第一阈值时,调用并执行预设的第二指令,所述第二指令是指控制预设的灯光模组对所述预设环境进行亮度调整之后,控制所述摄像头模组拍摄视频,获取动态视频;
    在所述光线强度值大于所述第二阈值时,调用并执行预设的第三指令,所述第三指令是指控制所述摄像头模组延迟拍摄,并再次检测所述预设环境的光线强度值,直至再次检测的所述光线强度值在所述预设数值范围内时,控制所述摄像头模组拍摄视频,获取动态视频。
  14. 一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现一种基于环境光线检测的视频拍摄方法,其中,所述基于环境光线检测的视频拍摄方法包括以下步骤:
    接收包含采集频率、开始条件和结束条件的初始指令;
    在根据所述开始条件触发开始采集命令时,根据所述采集频率获取设置在预设环境中的摄像头模组的电流值,直至根据所述结束条件触发结束采集命令时,停止采集并记录所述开始采集命令被触发的第一时间点与所述结束采集命令被触发的第二时间点之间采集的所有所述电流值,并根据所有所述电流值生成检测信号;
    等待并接收包含所述检测信号的处理指令,调用预设的信号处理模型将所述检测信号转换为所述预设环境的光线强度值;
    将所述光线强度值输入至预设的亮度等级模型中,并接收所述亮度等级模型输出的光线强度等级;
    将所述光线强度等级输入至预设的匹配器中,并接收所述匹配器输出的匹配结果;
    根据所述匹配结果获取并执行对应的控制操作,根据所述控制操作令所述摄像头模组拍摄动态视频。
  15. 根据权利要求14所述的计算机可读存储介质,所述摄像头模组包括感光元件;
    所述在根据所述开始条件触发开始采集命令时,根据所述采集频率获取设置在预设环境中的摄像头模组的电流值,直至根据所述结束条件触发结束采集命令时,停止采集并记录所述开始采集命令被触发的第一时间点与所述结束采集命令被触发的第二时间点之间采集的所有所述电流值,并根据所有所述电流值生成检测信号,包括:
    响应并执行根据所述开始条件触发的开始采集命令,存储在执行所述开始采集命令时的第一时间点,以及根据所述采集频率获取的所述感光元件输出的电流值;
    响应并执行根据所述结束条件触发的结束采集命令,存储在所述第一时间点与在执行所述结束采集命令时的第二时间点所经历的该段光线检测时长的所有所述电流值;
    根据所有所述电流值以及预设的信号生成模型生成检测信号。
  16. 根据权利要求14所述的计算机可读存储介质,所述调用预设的信号处理模型将所述检测信号转换为所述预设环境的光线强度值,包括:
    将所述检测信号输入所述信号处理模型,令所述信号处理模型对所述检测信号进行归一化之后,获得非周期性光波;
    令所述信号处理模型对所述非周期性光波进行信号变换之后,获得各叠加波以及各所述叠加波的基本参数;
    令所述信号处理模型根据各所述叠加波的基本参数对各所述叠加波进行信号解析之后,获得各所述叠加波对应的R值、G值和B值;
    令所述信号处理模型根据各所述叠加波对应的R值、G值和B值分别计算各所述叠加波的分亮度值,并基于各所述叠加波的分亮度值获取所述非周期性光波的亮度值之后,将所述信号处理模型输出的所述非周期性光波的亮度值记录为所述预设环境的光线强度值。
  17. 根据权利要求16所述的计算机可读存储介质,所述信号处理模型包括用于计算各所述叠加波的分亮度值的亮度模型,所述亮度模型为:
    y=k1*R+k2*G+k3*B
    其中,y为所述叠加波对应的分亮度值;R为所述叠加波对应的R值;G为所述叠加波对应的G值;B为所述叠加波对应的B值;k1为R值对应的第一系数;k2为G值对应的第二系数;k3为B值对应的第三系数;且所述k1、k2和k3为常数项。
  18. 根据权利要求14所述的计算机可读存储介质,所述匹配结果包含用于表征等级匹配的第一结果,用于表征等级不匹配的第二结果和第三结果;
    所述根据所述匹配结果获取并执行对应的控制操作,根据所述控制操作令所述摄像头模组拍摄动态视频,包括:
    在所述匹配结果为所述第一结果时,获取并执行与所述第一结果对应的第一控制操作,所述第一控制操作是指令所述摄像头模组拍摄视频,获取动态视频;
    在所述匹配结果为所述第二结果时,获取并执行与所述第二结果对应的第二控制操作,所述第二控制操作是指通过设置在所述预设环境中的灯光模组对所述预设环境进行亮度调整之后,令所述摄像头模组拍摄视频,获取动态视频;
    在所述匹配结果为所述第三结果时,获取并执行与所述第三结果对应的第三控制操作,所述第三控制操作是指对所述摄像头模组进行摄像头切换,并通过切换后的所述摄像头拍摄视频,获取动态视频;所述摄像头模组包含可自由切换的多个摄像头。
  19. 根据权利要求14所述的计算机可读存储介质,所述等待并接收包含所述检测信号的处理指令,调用预设的信号处理模型将所述检测信号转换为所述预设环境的光线强度值之后,包括:
    检测所述光线强度值是否在预设数值范围内;所述预设数值范围包括第一阈值和第二阈值,且所述第一阈值小于所述第二阈值;
    在所述光线强度值在所述预设数值范围内时,调用并执行预设的第一指令,所述第一指令是指控制所述摄像头模组拍摄视频,获取动态视频;
    在所述光线强度值小于所述第一阈值时,调用并执行预设的第二指令,所述第二指令是指控制预设的灯光模组对所述预设环境进行亮度调整之后,控制所述摄像头模组拍摄视频,获取动态视频;
    在所述光线强度值大于所述第二阈值时,调用并执行预设的第三指令,所述第三指令是指控制所述摄像头模组延迟拍摄,并再次检测所述预设环境的光线强度值,直至再次检测的所述光线强度值在所述预设数值范围内时,控制所述摄像头模组拍摄视频,获取动态视频。
PCT/CN2020/085567 2019-08-15 2020-04-20 基于环境光线检测的视频拍摄方法、装置、设备及介质 Ceased WO2021027309A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910755593.5 2019-08-15
CN201910755593.5A CN110602380B (zh) 2019-08-15 2019-08-15 基于环境光线检测的视频拍摄方法、装置、设备及介质

Publications (1)

Publication Number Publication Date
WO2021027309A1 true WO2021027309A1 (zh) 2021-02-18

Family

ID=68854419

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/085567 Ceased WO2021027309A1 (zh) 2019-08-15 2020-04-20 基于环境光线检测的视频拍摄方法、装置、设备及介质

Country Status (2)

Country Link
CN (1) CN110602380B (zh)
WO (1) WO2021027309A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117095577A (zh) * 2023-07-21 2023-11-21 广东保伦电子股份有限公司 一种无线的实训课堂直播教学系统

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110602380B (zh) * 2019-08-15 2022-11-04 深圳壹账通智能科技有限公司 基于环境光线检测的视频拍摄方法、装置、设备及介质
CN112183201A (zh) * 2020-08-25 2021-01-05 开放智能机器(上海)有限公司 一种宝宝睡眠时异常监测系统及监测方法
CN112307960B (zh) * 2020-10-30 2025-06-10 腾讯科技(深圳)有限公司 数据处理方法、装置、计算机设备以及存储介质
CN112590782B (zh) * 2020-12-28 2022-08-16 东风越野车有限公司 基于多传感器的全天候碰撞预警方法及设备
CN113808030B (zh) * 2021-05-31 2022-09-30 荣耀终端有限公司 一种噪声的监测方法、电子设备及芯片系统
CN113726983B (zh) * 2021-07-12 2022-07-12 北京邮电大学 一种基于时间,定位,镜头角度,入射光强和色温的太阳光眩光抑制的方法和装置
CN116546140A (zh) * 2022-01-25 2023-08-04 展讯半导体(南京)有限公司 扫描设备及其扫描方法
CN115002357B (zh) * 2022-07-27 2022-11-18 联宝(合肥)电子科技有限公司 光信号的处理方法、电子设备及存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103581559A (zh) * 2013-10-15 2014-02-12 广东欧珀移动通信有限公司 一种手机闪光拍照智能ae算法
CN105072329A (zh) * 2015-07-17 2015-11-18 深圳市金立通信设备有限公司 一种拍摄方法及终端
CN206962951U (zh) * 2017-05-05 2018-02-02 潍坊歌尔电子有限公司 一种调节摄像头模组光线的装置和穿戴设备
EP1437583B1 (en) * 2003-01-10 2019-01-02 Mitutoyo Corporation Illuminance calibrating method of illuminator; controller and calibrating program of the illuminator
CN110602380A (zh) * 2019-08-15 2019-12-20 深圳壹账通智能科技有限公司 基于环境光线检测的视频拍摄方法、装置、设备及介质

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104904403A (zh) * 2014-03-14 2015-09-16 宝时得机械(中国)有限公司 智能割草机
CN104243841B (zh) * 2014-09-29 2019-03-29 联想(北京)有限公司 一种图像处理方法和装置
CN106027916A (zh) * 2016-07-18 2016-10-12 广东欧珀移动通信有限公司 一种补光拍照方法及终端
CN106331519A (zh) * 2016-10-31 2017-01-11 维沃移动通信有限公司 一种补光灯调节方法及移动终端
CN106969832B (zh) * 2017-03-20 2018-04-10 京东方科技集团股份有限公司 环境光检测装置、方法和显示屏
CN108040213B (zh) * 2017-12-05 2020-11-27 北京小米移动软件有限公司 拍摄图像的方法、装置及计算机可读存储介质
CN109005346B (zh) * 2018-08-13 2020-04-03 Oppo广东移动通信有限公司 控制方法、装置、电子设备和计算机可读存储介质

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 (zh) * 2013-10-15 2014-02-12 广东欧珀移动通信有限公司 一种手机闪光拍照智能ae算法
CN105072329A (zh) * 2015-07-17 2015-11-18 深圳市金立通信设备有限公司 一种拍摄方法及终端
CN206962951U (zh) * 2017-05-05 2018-02-02 潍坊歌尔电子有限公司 一种调节摄像头模组光线的装置和穿戴设备
CN110602380A (zh) * 2019-08-15 2019-12-20 深圳壹账通智能科技有限公司 基于环境光线检测的视频拍摄方法、装置、设备及介质

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117095577A (zh) * 2023-07-21 2023-11-21 广东保伦电子股份有限公司 一种无线的实训课堂直播教学系统

Also Published As

Publication number Publication date
CN110602380A (zh) 2019-12-20
CN110602380B (zh) 2022-11-04

Similar Documents

Publication Publication Date Title
WO2021027309A1 (zh) 基于环境光线检测的视频拍摄方法、装置、设备及介质
CN109961780B (zh) 一种人机交互方法、装置、服务器和存储介质
CN112257815B (zh) 模型生成方法、目标检测方法、装置、电子设备及介质
WO2022166316A1 (zh) 人脸识别补光方法、装置、人脸识别设备及其系统
US9355234B1 (en) Authentication involving selection among different biometric methods dynamically
WO2019056471A1 (zh) 驾驶模型训练方法、驾驶人识别方法、装置、设备及介质
CN110969045B (zh) 一种行为检测方法、装置、电子设备和存储介质
WO2023065497A1 (zh) 一种低光照障碍物检测方法、系统、终端以及存储介质
CN113192470A (zh) 屏幕调节方法、装置、存储介质及电子设备
CN110634163B (zh) 终端摄像头参数校准方法、装置、设备和存储介质
US11687635B2 (en) Automatic exposure and gain control for face authentication
CN112700568B (zh) 一种身份认证的方法、设备及计算机可读存储介质
CN107871001B (zh) 音频播放方法、装置、存储介质及电子设备
JP2021528767A (ja) 視覚的検索方法、装置、コンピュータ機器及び記憶媒体
CN109348206A (zh) 图像白平衡处理方法、装置、存储介质及移动终端
CN118037602B (zh) 图像质量优化方法、装置、电子设备、介质及程序产品
WO2019227552A1 (zh) 基于行为识别的语音定位方法以及装置
CN110677557B (zh) 图像处理方法、装置、存储介质及电子设备
CN108734667A (zh) 一种图像处理方法及系统
CN111669575B (zh) 图像处理效果的测试方法、系统、电子设备、介质及终端
US20230222639A1 (en) Data processing method, system, and apparatus
TW201319956A (zh) 人臉影像辨識方法及裝置
WO2021184553A1 (zh) 人脸识别模型训练方法、装置、计算机设备及存储介质
CN113726983B (zh) 一种基于时间,定位,镜头角度,入射光强和色温的太阳光眩光抑制的方法和装置
TWI590192B (zh) 適應性高動態範圍影像合成演算法

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