Camera and ambient light source parameter synchronization method and device and VR equipment

By controlling the synchronization of parameters between the camera and the ambient light source in the VR device, the exposure inconsistency caused by the frequencies of different ambient light sources is solved, and the positioning accuracy of the VR device is improved.

CN119629489APending Publication Date: 2025-03-14PIMAX TECH (SHANGHAI) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411751727.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-30
Publication Date
2025-03-14

AI Technical Summary

Technical Problem

When existing VR devices take multi-frame images, due to the different frequency of the ambient light source PWM of different manufacturers, the camera exposure degree is inconsistent, affecting the positioning accuracy.

Method used

By controlling the camera to continuously shoot under the ambient light source at the test frame rate, obtain the exposure values ​​of multiple target images, adjust the test frame rate until it is synchronized with the frequency of the ambient light source, thereby achieving the parameters of the camera and the ambient light source.

Benefits of technology

The exposure level of multiple frames of images captured by the camera is basically consistent, and the positioning accuracy of VR devices is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119629489A_ABST
    Figure CN119629489A_ABST
Patent Text Reader

Abstract

The invention relates to a parameter synchronization method and device for a camera and an ambient light source and VR equipment, and relates to the technical field of augmented reality equipment, and the parameter synchronization method for the camera and the ambient light source comprises the steps: controlling the camera to continuously shoot for a first preset time length under the ambient light source at a test frame rate, and obtaining a plurality of first target images; obtaining exposure values of the plurality of first target images; outputting a first signal or a second signal according to the exposure values of the plurality of first target images; and if the second signal is output, adjusting the test frame rate. According to the parameter synchronization method and device for the camera and the ambient light source and the VR equipment provided by the embodiment of the invention, frequency synchronization of the camera and the ambient light source is realized for the ambient light sources with different frequencies, so that the exposure degrees of multiple frames of images shot by the camera are basically consistent, and the positioning precision of the VR equipment is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of extended reality devices, and in particular to a method and device for synchronizing parameters of a camera and an ambient light source, and a VR device. Background Art

[0002] Currently, most VR devices use cameras to record environmental videos, and then use algorithms to calculate the video stream in real time to finally obtain the real-time positioning information of the device. In the aforementioned positioning process, when the camera is required to shoot, it is necessary to ensure that the brightness of the ambient light source remains stable during the exposure time of the camera, so that the exposure level of each frame taken by the camera is as consistent as possible, otherwise it will cause a large deviation in the positioning result calculated by the algorithm. In related technologies, the PWM frequencies of ambient light sources (such as LED lights) from different manufacturers are different, resulting in the VR device being unable to synchronize the frequency of the camera with the ambient light source for a variety of ambient light sources with different frequencies in advance, which can easily lead to large deviations in the exposure levels of multiple frames of images taken by the camera, thereby affecting the positioning accuracy of the VR device. Summary of the invention

[0003] In order to solve the above technical problems, the embodiments of the present application provide a method, device and VR device for synchronizing parameters of a camera and an ambient light source, which realize frequency synchronization of the camera and the ambient light source for ambient light sources with different frequencies, so that the exposure levels of multiple frames of images taken by the camera are basically consistent, thereby improving the positioning accuracy of the VR device.

[0004] In a first aspect, a method for synchronizing parameters of a camera and an ambient light source is provided, comprising:

[0005] Controlling the camera to continuously shoot for a first preset time period at a test frame rate under an ambient light source to obtain a plurality of first target images;

[0006] Acquiring exposure values ​​of a plurality of first target images;

[0007] Outputting a first signal or a second signal according to the exposure values ​​of the plurality of first target images; wherein the first signal represents a signal that the test frame rate is synchronized with the frequency of the ambient light source; and the second signal represents a signal that the test frame rate is not synchronized with the frequency of the ambient light source;

[0008] If the second signal is output, the test frame rate is adjusted.

[0009] According to the first aspect of the present application, outputting the first signal or the second signal according to the exposure values ​​of the plurality of first target images includes:

[0010] If the difference between the exposure values ​​of any two of the first target images is within a preset range, the first signal is output.

[0011] According to the first aspect of the present application, after outputting the first signal, the method for synchronizing parameters of the camera and the ambient light source further includes:

[0012] The current test frame rate is synchronized with the working frame rate of the camera under the ambient light source.

[0013] According to the first aspect of the present application, after synchronizing the test frame rate to the working frame rate of the camera under the ambient light source, the parameter synchronization method of the camera and the ambient light source further includes:

[0014] Controlling the camera to continuously shoot for a second preset time under the ambient light source at the working frame rate and a plurality of different exposure delay time lengths to obtain a plurality of groups of second target images; wherein the plurality of groups of the second target images correspond one-to-one to the plurality of the exposure delay time lengths;

[0015] Obtaining an exposure value of any one image in each group of the second target images;

[0016] According to the group to which the image with the largest exposure value belongs, the target exposure delay time is obtained accordingly.

[0017] According to the first aspect of the present application, the multiple different exposure delay durations are multiple exposure delay durations divided into first preset steps within the range of zero to a maximum exposure delay duration.

[0018] According to the first aspect of the present application, controlling the camera to continuously shoot for a second preset time under the ambient light source at the working frame rate and a plurality of different exposure delay time lengths to obtain a plurality of groups of second target images comprises:

[0019] Control the camera to continuously shoot for a second preset time under the ambient light source at the working frame rate and the current exposure delay time to obtain a set of the second target images;

[0020] Adjusting the current exposure delay duration in a first preset step;

[0021] If the adjusted exposure delay duration is less than or equal to the maximum exposure delay duration, controlling the camera to continuously shoot for a second preset time under the ambient light source at the working frame rate and the adjusted exposure delay duration to obtain another set of the second target images;

[0022] If the adjusted exposure delay time is greater than the maximum exposure delay time, a plurality of sets of the second target images are output.

[0023] According to the first aspect of the present application, outputting the first signal or the second signal according to the exposure values ​​of the plurality of first target images includes:

[0024] If the difference between the exposure values ​​of two of the first target images exceeds a preset range, the second signal is output.

[0025] According to the first aspect of the present application, adjusting the test frame rate includes:

[0026] Based on the current test frame rate, the test frame rate is adjusted according to a second preset step.

[0027] In a second aspect, a device for synchronizing parameters of a camera and an ambient light source is also provided, comprising:

[0028] A first control module, used to control the camera to continuously shoot a first preset time period at a test frame rate under an ambient light source to obtain a plurality of first target images;

[0029] A first acquisition module, used to acquire exposure values ​​of a plurality of first target images;

[0030] A first output module, configured to output a first signal or a second signal according to the exposure values ​​of the plurality of first target images; wherein the first signal represents a signal that the test frame rate is synchronized with the frequency of the ambient light source; and the second signal represents a signal that the test frame rate is not synchronized with the frequency of the ambient light source;

[0031] The first adjustment module is used to adjust the test frame rate when the second signal is output.

[0032] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor; and a memory for storing instructions executable by the processor; wherein the processor is used to execute the parameter synchronization method of the camera and the ambient light source described in the above embodiment.

[0033] The embodiments of the present application provide a method, device and VR device for synchronizing parameters between a camera and an ambient light source. The method controls the camera to continuously shoot a first preset time period at a test frame rate under an ambient light source to obtain multiple first target images, and then outputs a first signal representing that the test frame rate is synchronized with the frequency of the ambient light source according to the exposure values ​​of the multiple first target images, or outputs a second signal representing that the test frame rate is not synchronized with the frequency of the ambient light source. In this way, when facing ambient light sources with different frequencies, it is possible to confirm whether the test frame rate of the camera is synchronized with the frequency of the current ambient light source, and in the case of asynchronism, the test frame rate of the camera can be adjusted to be the same as the frequency of the ambient light source by adjusting the test frame rate and obtaining the exposure values ​​of the multiple first target images, thereby achieving synchronization between the current frame rate of the camera and the frequency of the ambient light source, so that the exposure levels of the multiple frames of images taken by the camera are basically consistent, thereby improving the positioning accuracy of the VR device. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] By describing the embodiments of the present application in more detail in conjunction with the accompanying drawings, the above and other purposes, features and advantages of the present application will become more apparent. The accompanying drawings are used to provide a further understanding of the embodiments of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the present application and do not constitute a limitation of the present application. In the accompanying drawings, the same reference numerals generally represent the same components or steps.

[0035] Figure 1 A schematic flow chart of a method for synchronizing parameters of a camera and an ambient light source provided by an exemplary embodiment of the present application.

[0036] Figure 2 A schematic flow chart of a method for synchronizing parameters of a camera and an ambient light source provided by another exemplary embodiment of the present application.

[0037] Figure 3 A schematic flow chart of a method for synchronizing parameters of a camera and an ambient light source provided by another exemplary embodiment of the present application.

[0038] Figure 4 A schematic flow chart of a method for synchronizing parameters of a camera and an ambient light source provided by another exemplary embodiment of the present application.

[0039] Figure 5 A flowchart of an exemplary embodiment of the present application is provided for controlling a camera to continuously shoot for a second preset time period under an ambient light source at a working frame rate and multiple different exposure delay time periods to obtain multiple groups of second target images.

[0040] Figure 6 A schematic flow chart of a method for synchronizing parameters of a camera and an ambient light source provided by another exemplary embodiment of the present application.

[0041] Figure 7 A schematic flow chart of a method for synchronizing parameters of a camera and an ambient light source provided by another exemplary embodiment of the present application.

[0042] Figure 8 A structural block diagram of a device for synchronizing parameters of a camera and an ambient light source provided by an exemplary embodiment of the present application.

[0043] Fig. 9 A structural block diagram of a device for synchronizing parameters of a camera and an ambient light source provided by another exemplary embodiment of the present application.

[0044] Fig.10 A structural block diagram of a VR device provided as an exemplary embodiment of the present application.

[0045] Fig.11 A structural block diagram of an electronic device provided for an exemplary embodiment of the present application. DETAILED DESCRIPTION

[0046] Below, the exemplary embodiments according to the present application will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application, and it should be understood that the present application is not limited to the exemplary embodiments described here.

[0047] Figure 1 The following is a flow chart of a method for synchronizing parameters between a camera and an ambient light source provided by an exemplary embodiment of the present application. Figure 1 As shown, the method for synchronizing parameters of a camera and an ambient light source provided in an embodiment of the present application includes:

[0048] S210: Control the camera to continuously shoot for a first preset time period at a test frame rate under an ambient light source to obtain a plurality of first target images.

[0049] Specifically, during the execution of step S210, the position of the camera is fixed, and the photographed object is a static object, which facilitates subsequent unified processing of multiple first target images and improves overall synchronization efficiency.

[0050] It should be noted that during the first test, the test frame rate can be initialized according to the actual situation. If the synchronization is unsuccessful, the test frame rate will be adjusted accordingly. The adjustment process of the test frame rate will be described in detail later.

[0051] It should be noted that the first preset duration can be selected as 1s, 2s, 3s, etc., and the embodiment of the present application does not specifically limit the first preset duration.

[0052] S220: Acquire exposure values ​​of a plurality of first target images.

[0053] Specifically, the exposure value takes into account the three factors of aperture, shutter speed and sensitivity. These three parameters vary depending on the type of camera. In practical applications, after determining the camera type, the aperture, shutter speed and sensitivity parameters can be obtained accordingly, so that the exposure value can be calculated. For example:

[0054] The calculation formula for exposure value (EV) can be:

[0055]

[0056] Where: N represents the aperture value. The aperture value is the ratio of the focal length of the lens to the aperture diameter, such as f / 2.8, f / 4, etc. The square of the aperture value is proportional to the amount of light entering the camera. T represents the shutter speed, in seconds. The shutter speed determines the length of time that light enters the camera, such as 1 / 1000 second, 1 / 125 second, etc. ISO represents the sensitivity, such as ISO100, ISO200, etc. The sensitivity indicates the sensitivity of the camera image sensor to light.

[0057] S230: Outputting a first signal or a second signal according to the exposure values ​​of the plurality of first target images.

[0058] It should be noted that the first signal can be understood as a signal that the test frame rate is synchronized with the frequency of the ambient light source (that is, the test frame rate is the same as the frequency of the ambient light source); the second signal can be understood as a signal that the test frame rate is not synchronized with the frequency of the ambient light source (that is, the test frame rate is not the same as the frequency of the ambient light source).

[0059] Taking the aforementioned aperture value factor as an example, the ambient light source can affect the exposure value by affecting the aforementioned aperture value. For example, when the frequency of the ambient light source is the same as the test frame rate of the camera, the amount of light entering the camera is large, and the corresponding calculated exposure value is also large; if the frequency of the ambient light source is different from the test frame rate of the camera, the amount of light entering the camera is small, and the corresponding calculated exposure value is also small. Therefore, it is possible to confirm whether the frequency of the ambient light source is the same as the test frame rate of the camera based on the exposure values ​​of multiple groups of first target images.

[0060] S240: If the second signal is output, adjust the test frame rate.

[0061] It should be understood that if the second signal is output, it means that the current test frame rate is not synchronized with the frequency of the ambient light source, and the test frame rate needs to be adjusted, and then the aforementioned steps S210, S220, S230, and S240 are executed in a loop until the first signal is output.

[0062] The method for synchronizing parameters of a camera and an ambient light source provided in an embodiment of the present application controls the camera to continuously shoot a first preset time period at a test frame rate under an ambient light source to obtain multiple first target images, and then outputs a first signal representing that the test frame rate is synchronized with the frequency of the ambient light source according to the exposure values ​​of the multiple first target images, or outputs a second signal representing that the test frame rate is not synchronized with the frequency of the ambient light source. In this way, when facing ambient light sources with different frequencies, it is possible to confirm whether the test frame rate of the camera is synchronized with the frequency of the current ambient light source, and in the case of asynchronism, the test frame rate of the camera can be adjusted to be the same as the frequency of the ambient light source by adjusting the test frame rate and obtaining the exposure values ​​of the multiple first target images, thereby achieving synchronization between the current frame rate of the camera and the frequency of the ambient light source, so that the exposure levels of the multiple frames of images taken by the camera are basically consistent, thereby improving the positioning accuracy of the VR device.

[0063] Figure 2 FIG. 1 is a flow chart of a method for synchronizing parameters of a camera and an ambient light source provided by another exemplary embodiment of the present application. Figure 2 As shown, step S230 may include:

[0064] S231: If the difference between the exposure values ​​of any two first target images is within a preset range, output a first signal.

[0065] Specifically, if the difference between the exposure values ​​of any two first target images is within a preset range, it can be considered that the errors between the exposure values ​​of the multiple first target images are small and are in a substantially identical state, that is, when the camera is shooting images at the current test frame rate, the amount of light entering each first target image is substantially the same, and whenever the ambient light source is bright, the camera just shoots the next first target image. Therefore, in the above case, it can be considered that the current test frame rate of the camera is synchronized with the frequency of the ambient light source, and the aforementioned first signal is output accordingly.

[0066] It should be understood that the preset range can be set according to actual conditions, and the embodiments of the present application do not specifically limit the preset range.

[0067] Figure 3 A schematic flow chart of a method for synchronizing parameters of a camera and an ambient light source provided by another exemplary embodiment of the present application. After step S231, the method for synchronizing parameters of a camera and an ambient light source may further include:

[0068] S250: Synchronize the current test frame rate to the working frame rate of the camera under the ambient light source.

[0069] It should be understood that after confirming that the current test frame rate is synchronized with the frequency of the ambient light source, in order to facilitate the camera's subsequent operation under the ambient light source, the current test frame rate can be synchronized to the camera's working frame rate under the ambient light source, thereby ensuring that the camera can subsequently capture images with better exposure under the ambient light source of this frequency.

[0070] Figure 4 FIG. 1 is a flow chart of a method for synchronizing parameters of a camera and an ambient light source provided by another exemplary embodiment of the present application. Figure 4 As shown, after step S250, the method for synchronizing parameters of the camera and the ambient light source may further include:

[0071] S260: Control the camera to continuously shoot for a second preset time period under the ambient light source at a working frame rate and a plurality of different exposure delay time periods to obtain a plurality of groups of second target images.

[0072] Specifically, the exposure delay time refers to the time interval from triggering the camera shutter to starting exposure. Under the same ambient light source, different exposure delay times will affect the exposure value, and thus affect the final image quality. Therefore, after executing step S250, it is also necessary to confirm the optimal exposure delay time of the camera under the ambient light source to achieve phase synchronization of the camera to obtain an image with better imaging quality.

[0073] It should be noted that the multiple groups of second target images correspond one-to-one to the multiple exposure delay time lengths. The camera continuously shoots for a second preset time length under each exposure delay time length to obtain a group of second target images. Each group of second target images includes multiple second target images.

[0074] It should be noted that the second preset time length may be 1s, 2s, 3s, etc. In practical applications, the second preset time length may be selected according to actual conditions.

[0075] S270: Obtaining an exposure value of any one image in each group of second target images.

[0076] Specifically, each group of second target images includes multiple second target images. Since the working frame rate of the camera is synchronized with the frequency of the ambient light source, the exposure values ​​of multiple second target images in the same group of second target images are substantially the same, that is, for the same group of second target images, obtaining the exposure value of one of the second target images can also represent the exposure values ​​of other images in the group of second target images.

[0077] S280: Obtain a target exposure delay time according to the group to which the image with the maximum exposure value belongs.

[0078] Specifically, multiple groups of second target images correspond to multiple exposure values, and the maximum exposure value is screened out from the multiple exposure values. The second target image corresponding to the maximum exposure value can be considered as an image with the best light input and the best imaging quality. According to the group to which the second target image corresponding to the maximum exposure value belongs, the corresponding exposure delay duration can be determined, and the exposure delay duration is the target exposure delay duration (i.e., the optimal exposure delay duration).

[0079] It should be noted that, in practical applications, within the range of zero to the maximum exposure delay time, the first preset step can be used as a division unit to obtain multiple exposure delay time. That is, for two adjacent exposure delay time, the previous exposure delay time plus the first preset step is the next exposure delay time.

[0080] It should be noted that the first preset step may be the minimum time unit of the camera exposure delay, so that as many exposure delay durations as possible can be obtained, so as to obtain the exposure delay duration with the best accuracy after executing step S280.

[0081] Figure 5 A flowchart of controlling a camera to continuously shoot for a second preset time under an ambient light source at a working frame rate and multiple different exposure delay time lengths to obtain multiple groups of second target images is provided in an exemplary embodiment of the present application. Figure 5 As shown, step S260 includes:

[0082] S261: Control the camera to continuously shoot for a second preset time period under the ambient light source at the working frame rate and the current exposure delay time period to obtain a set of second target images.

[0083] S262: Adjust the current exposure delay time in a first preset step.

[0084] In one embodiment, the initial exposure delay duration may be set to zero, and then the current exposure delay duration may be gradually increased according to a first preset step until the exposure delay duration is greater than or equal to the maximum exposure delay duration of the camera.

[0085] S263: If the adjusted exposure delay duration is less than or equal to the maximum exposure delay duration, control the camera to continuously shoot for a second preset duration under the ambient light source at the working frame rate and the adjusted exposure delay duration to obtain another set of second target images.

[0086] Specifically, if the adjusted exposure delay time is less than or equal to the maximum exposure delay time, it can be considered that the camera is still in the working state of the normal exposure delay time. Therefore, the camera can be controlled again to continuously shoot the second preset time under the ambient light source at the working frame rate and the adjusted exposure delay time to obtain another set of second target images. In actual applications, steps S261, S262, and S263 can be executed in a loop for multiple times to obtain multiple sets of second target images.

[0087] S264: If the adjusted exposure delay time is greater than the maximum exposure delay time, output a plurality of sets of second target images.

[0088] Specifically, if the adjusted exposure delay time is greater than the maximum exposure delay time, it can be considered that the camera has currently exceeded the normal exposure delay time. The exposure delay time does not need to be increased, and the multiple groups of second target images obtained in the above steps can be output to facilitate subsequent confirmation of the image with the largest exposure value among the multiple groups of second target images.

[0089] It should be noted that the maximum exposure delay duration can be determined based on the camera model and its related parameters, which will not be elaborated in the embodiments of the present application.

[0090] Figure 6 FIG. 1 is a flow chart of a method for synchronizing parameters of a camera and an ambient light source provided by another exemplary embodiment of the present application. Figure 6 As shown, step S230 may include:

[0091] S232: If the difference between the exposure values ​​of the two first target images exceeds a preset range, output a second signal.

[0092] Specifically, if the difference in exposure values ​​between two first target images exceeds a preset range, it can be considered that the exposure values ​​of the two first target images are different, that is, in the process of the camera taking images at the current test frame rate, the amount of light entering the two first target images is different. In the above case, it can be considered that the current test frame rate of the camera is not synchronized with the frequency of the ambient light source, and the aforementioned second signal is output accordingly, and the subsequent step S240 is executed to adjust the current test frame rate.

[0093] Figure 7 FIG. 1 is a flow chart of a method for synchronizing parameters of a camera and an ambient light source provided by another exemplary embodiment of the present application. Figure 7 As shown, step S240 may include:

[0094] S241: Based on the current test frame rate, adjust the test frame rate according to a second preset step.

[0095] It should be noted that the second preset step can be set according to actual conditions and is not specifically limited herein. For example, based on the current test frame rate, the second preset step is 10%, which can be increased or decreased by 10% to obtain an adjusted test frame rate, and then the aforementioned steps S210, S220, S230, and S240 are cyclically executed until the first signal is output.

[0096] Figure 8 This is a structural block diagram of a device for synchronizing parameters between a camera and an ambient light source provided by an exemplary embodiment of the present application. Figure 8 As shown, the parameter synchronization device 400 for a camera and an ambient light source provided in an embodiment of the present application includes: a first control module 410, used to control the camera to continuously shoot a first preset time period at a test frame rate under an ambient light source to obtain multiple first target images; a first acquisition module 420, used to obtain exposure values ​​of the multiple first target images; a first output module 430, used to output a first signal or a second signal according to the exposure values ​​of the multiple first target images; wherein the first signal represents a signal that the test frame rate is synchronized with the frequency of the ambient light source; the second signal represents a signal that the test frame rate is not synchronized with the frequency of the ambient light source; and a first adjustment module 440, used to adjust the test frame rate if the second signal is output.

[0097] The device for synchronizing parameters of a camera and an ambient light source provided in an embodiment of the present application controls the camera to continuously shoot a first preset time period at a test frame rate under an ambient light source to obtain multiple first target images, and then outputs a first signal representing that the test frame rate is synchronized with the frequency of the ambient light source according to the exposure values ​​of the multiple first target images, or outputs a second signal representing that the test frame rate is not synchronized with the frequency of the ambient light source. In this way, when facing ambient light sources with different frequencies, it is possible to confirm whether the test frame rate of the camera is synchronized with the frequency of the current ambient light source, and in the case of asynchronism, the test frame rate of the camera can be adjusted to be the same as the frequency of the ambient light source by adjusting the test frame rate and obtaining the exposure values ​​of the multiple first target images, thereby achieving synchronization between the current frame rate of the camera and the frequency of the ambient light source, so that the exposure levels of the multiple frames of images taken by the camera are basically consistent, thereby improving the positioning accuracy of the VR device.

[0098] Fig. 9 This is a structural block diagram of a device for synchronizing parameters of a camera and an ambient light source provided by another exemplary embodiment of the present application. Fig. 9 As shown, in one embodiment, the first output module 430 includes a second output module 431, which is used to output a first signal if the difference between the exposure values ​​of any two first target images is within a preset range.

[0099] like Fig. 9 As shown, in one embodiment, the device 400 for synchronizing parameters of a camera and an ambient light source includes a synchronization module 450 for synchronizing a current test frame rate to a working frame rate of the camera under the ambient light source.

[0100] like Fig. 9 As shown, in one embodiment, the parameter synchronization device 400 of the camera and the ambient light source includes a second control module 460, which is used to control the camera to continuously shoot for a second preset time under the ambient light source at a working frame rate and a plurality of different exposure delay time lengths to obtain a plurality of groups of second target images; a second acquisition module 470, which is used to obtain the exposure value of any image in each group of second target images; and a screening module 480, which is used to obtain the target exposure delay time length corresponding to the group to which the image with the largest exposure value belongs.

[0101] like Fig. 9As shown, in one embodiment, the second control module 460 includes a third control module 461, which is used to control the camera to continuously shoot for a second preset time under the ambient light source at the working frame rate and the current exposure delay time to obtain a group of second target images; a second adjustment module 462, which is used to adjust the current exposure delay time with a first preset step; a fourth control module 463, which is used to control the camera to continuously shoot for a second preset time under the ambient light source at the working frame rate and the adjusted exposure delay time to obtain another group of second target images if the adjusted exposure delay time is less than or equal to the maximum exposure delay time; and a third output module 464, which is used to output multiple groups of second target images if the adjusted exposure delay time is greater than the maximum exposure delay time.

[0102] like Fig. 9 As shown, in one embodiment, the first output module 430 includes a fourth output module 432, which is used to output a second signal if the difference between the exposure values ​​of the two first target images exceeds a preset range.

[0103] like Fig. 9 As shown, in one embodiment, the first adjustment module 440 is further configured to adjust the test frame rate according to a second preset step based on the current test frame rate.

[0104] Fig.10 This is a structural block diagram of a VR device provided by an exemplary embodiment of the present application. Fig.10 As shown, the VR device 600 provided in the embodiment of the present application may include: a camera 610; and a parameter synchronization device 400 for a camera and an ambient light source as described in the previous embodiment, which is communicatively connected to the camera 610.

[0105] The VR device 600 provided in the embodiment of the present application includes all the functions of the device 400 for synchronizing parameters of a camera and an ambient light source, and its beneficial effects can refer to the beneficial effects of the aforementioned device 400 for synchronizing parameters of a camera and an ambient light source.

[0106] Fig.11 This is a structural block diagram of an electronic device provided by an exemplary embodiment of the present application. Fig.11 As shown, the electronic device 800 includes one or more processors 810 and a memory 820. The memory 820 is used to store instructions executable by the processor 810; wherein the processor 810 is used to execute the parameter synchronization method of the camera and the ambient light source described in the above embodiment.

[0107] The processor 810 may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device 800 to perform desired functions.

[0108] The memory 820 may include one or more computer program products, which may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, a random access memory (RAM) and / or a cache memory (cache), etc. The non-volatile memory may include, for example, a read-only memory (ROM), a hard disk, a flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 810 may run the program instructions to implement the control method of each embodiment of the present application described above and / or other desired functions. Various contents such as input signals, signal components, noise components, etc. may also be stored in the computer-readable storage medium.

[0109] In one example, the electronic device 800 may further include: an input device 830 and an output device 840 , and these components are interconnected via a bus system and / or other forms of connection mechanisms (not shown).

[0110] When the electronic device is a stand-alone device, the input device 830 may be a communication network connector for receiving collected input signals from the first device and the second device.

[0111] In addition, the input device 830 may also include, for example, a keyboard, a mouse, and the like.

[0112] The output device 840 can output various information to the outside, including the determined distance information, direction information, etc. The output device 840 can include, for example, a display, a speaker, a printer, a communication network and a remote output device connected thereto, and the like.

[0113] Of course, to simplify, Fig.11 Only some of the components related to the present application in the electronic device 800 are shown, and components such as a bus, an input / output interface, etc. are omitted. In addition, according to specific application situations, the electronic device 800 may also include any other appropriate components.

[0114] The computer program product may be written in any combination of one or more programming languages ​​to write program codes for performing the operations of the embodiments of the present application, including object-oriented programming languages, such as Java, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as an independent software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.

[0115] The computer readable storage medium can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0116] The basic principles of the present application are described above in conjunction with specific embodiments. However, it should be noted that the advantages, strengths, effects, etc. mentioned in the present application are only examples and not limitations, and it cannot be considered that these advantages, strengths, effects, etc. are required by each embodiment of the present application. In addition, the specific details disclosed above are only for the purpose of illustration and ease of understanding, not for limitation, and the above details do not limit the present application to being implemented by adopting the above specific details.

[0117] The block diagrams of the devices, apparatuses, equipment, and systems involved in this application are only illustrative examples and are not intended to require or imply that they must be connected, arranged, and configured in the manner shown in the block diagram. As will be appreciated by those skilled in the art, these devices, apparatuses, equipment, and systems can be connected, arranged, and configured in any manner. Words such as "including", "comprising", "having", etc. are open words, referring to "including but not limited to", and can be used interchangeably with them. The words "or" and "and" used here refer to the words "and / or" and can be used interchangeably with them, unless the context clearly indicates otherwise. The words "such as" used here refer to the phrase "such as but not limited to", and can be used interchangeably with them.

[0118] It should also be noted that in the apparatus, device and method of the present application, each component or each step can be decomposed and / or recombined. Such decomposition and / or recombination should be regarded as equivalent solutions of the present application.

[0119] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present application. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of the present application. Therefore, the present application is not intended to be limited to the aspects shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

[0120] The above description has been given for the purpose of illustration and description. In addition, this description is not intended to limit the embodiments of the present application to the forms disclosed herein. Although multiple example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions and sub-combinations thereof.

Claims

1. A method for synchronizing parameters of a camera and an ambient light source, characterized in that: include: Controlling the camera to continuously shoot for a first preset time period at a test frame rate under an ambient light source to obtain a plurality of first target images; Acquiring exposure values ​​of a plurality of first target images; Outputting a first signal or a second signal according to the exposure values ​​of the plurality of first target images; wherein the first signal represents a signal that the test frame rate is synchronized with the frequency of the ambient light source; and the second signal represents a signal that the test frame rate is not synchronized with the frequency of the ambient light source; If the second signal is output, the test frame rate is adjusted.

2. The method for synchronizing parameters of a camera and an ambient light source according to claim 1, characterized in that: Outputting the first signal or the second signal according to the exposure values ​​of the plurality of first target images includes: If the difference between the exposure values ​​of any two of the first target images is within a preset range, the first signal is output.

3. The method for synchronizing parameters of a camera and an ambient light source according to claim 2, characterized in that: After outputting the first signal, the method for synchronizing parameters of the camera and the ambient light source further includes: The current test frame rate is synchronized with the working frame rate of the camera under the ambient light source.

4. The method for synchronizing parameters of a camera and an ambient light source according to claim 3, characterized in that: After synchronizing the test frame rate to the working frame rate of the camera under the ambient light source, the parameter synchronization method of the camera and the ambient light source further includes: Controlling the camera to continuously shoot for a second preset time under the ambient light source at the working frame rate and a plurality of different exposure delay time lengths to obtain a plurality of groups of second target images; wherein the plurality of groups of the second target images correspond one-to-one to the plurality of the exposure delay time lengths; Obtaining an exposure value of any one image in each group of the second target images; According to the group to which the image with the largest exposure value belongs, the target exposure delay time is obtained.

5. The method for synchronizing parameters of a camera and an ambient light source according to claim 4, characterized in that: The multiple different exposure delay time lengths are respectively multiple exposure delay time lengths divided by a first preset step within the range of zero to a maximum exposure delay time length.

6. The method for synchronizing parameters of a camera and an ambient light source according to claim 5, characterized in that: The step of controlling the camera to continuously shoot for a second preset time under the ambient light source at the working frame rate and a plurality of different exposure delay time lengths to obtain a plurality of groups of second target images comprises: Control the camera to continuously shoot for a second preset time under the ambient light source at the working frame rate and the current exposure delay time to obtain a set of the second target images; Adjusting the current exposure delay duration in a first preset step; If the adjusted exposure delay duration is less than or equal to the maximum exposure delay duration, controlling the camera to continuously shoot for a second preset time under the ambient light source at the working frame rate and the adjusted exposure delay duration to obtain another set of the second target images; If the adjusted exposure delay time is greater than the maximum exposure delay time, a plurality of sets of the second target images are output.

7. The method for synchronizing parameters of a camera and an ambient light source according to claim 1, characterized in that: Outputting the first signal or the second signal according to the exposure values ​​of the plurality of first target images includes: If the difference between the exposure values ​​of two of the first target images exceeds a preset range, the second signal is output.

8. The method for synchronizing parameters of a camera and an ambient light source according to claim 1, characterized in that: The adjusting the test frame rate comprises: Based on the current test frame rate, the test frame rate is adjusted according to a second preset step.

9. A device for synchronizing parameters of a camera and an ambient light source, characterized in that: include: A first control module, used to control the camera to continuously shoot a first preset time period at a test frame rate under an ambient light source to obtain a plurality of first target images; A first acquisition module, used to acquire exposure values ​​of a plurality of first target images; A first output module, configured to output a first signal or a second signal according to the exposure values ​​of the plurality of first target images; wherein the first signal represents a signal that the test frame rate is synchronized with the frequency of the ambient light source; and the second signal represents a signal that the test frame rate is not synchronized with the frequency of the ambient light source; The first adjustment module is used to adjust the test frame rate when the second signal is output.

10. A VR device, characterized in that: include: camera; The device for synchronizing parameters of a camera and an ambient light source as claimed in claim 9, being communicatively connected to the camera.