CN111355897B - Light control method and device - Google Patents
Light control method and device Download PDFInfo
- Publication number
- CN111355897B CN111355897B CN201811580602.3A CN201811580602A CN111355897B CN 111355897 B CN111355897 B CN 111355897B CN 201811580602 A CN201811580602 A CN 201811580602A CN 111355897 B CN111355897 B CN 111355897B
- Authority
- CN
- China
- Prior art keywords
- time
- light source
- exposure
- timing
- helmet
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 42
- 230000001360 synchronised effect Effects 0.000 claims abstract description 27
- 230000002045 lasting effect Effects 0.000 claims description 5
- 238000004891 communication Methods 0.000 description 11
- 238000010586 diagram Methods 0.000 description 4
- 238000005265 energy consumption Methods 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/70—Circuitry for compensating brightness variation in the scene
- H04N23/74—Circuitry for compensating brightness variation in the scene by influencing the scene brightness using illuminating means
-
- G—PHYSICS
- G03—PHOTOGRAPHY; CINEMATOGRAPHY; ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ELECTROGRAPHY; HOLOGRAPHY
- G03B—APPARATUS OR ARRANGEMENTS FOR TAKING PHOTOGRAPHS OR FOR PROJECTING OR VIEWING THEM; APPARATUS OR ARRANGEMENTS EMPLOYING ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ACCESSORIES THEREFOR
- G03B15/00—Special procedures for taking photographs; Apparatus therefor
- G03B15/02—Illuminating scene
- G03B15/03—Combinations of cameras with lighting apparatus; Flash units
- G03B15/05—Combinations of cameras with electronic flash apparatus; Electronic flash units
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02B—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
- Y02B20/00—Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
- Y02B20/40—Control techniques providing energy savings, e.g. smart controller or presence detection
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Studio Devices (AREA)
Abstract
The invention discloses a light control method and a light control device, wherein the light control method is used for a handle of virtual reality equipment and comprises the following steps: receiving a closing instruction; responding to a closing instruction, closing the light source, and timing by taking the first time of the helmet as the reference time of the current time; adjusting the on-off state of the light source until the light source is turned off after a synchronous instruction is received, and recording the turn-on times of the light source; determining timing delay between the helmet and the handle according to the first time, the exposure period of the helmet, the exposure duration, the synchronous instruction and the opening times; synchronizing the timing of the helmet and the timing of the handle according to the timing delay; and adjusting the on-off state of the light source so that the light source is in an on state when the camera device of the helmet is exposed and is in an off state when the camera device is not exposed. By adopting the method, the light source can be in the on state when the camera device of the helmet is exposed, and the light source can be in the off state when the camera device is not exposed, so that the power consumption of the light source is greatly reduced, and the energy is saved.
Description
Technical Field
The invention relates to the technical field of virtual reality equipment, in particular to a light control method and device.
Background
With the development of virtual reality technology, virtual reality equipment, such as a virtual reality stand-alone machine (VR all-in-one machine), is gradually used by more and more people.
The existing virtual reality equipment generally comprises a helmet and a handle, wherein a camera device is arranged on the helmet, and a light source is arranged on the handle. In addition, when the existing virtual reality equipment works, the light of the light source is shot through the camera device, and positioning and motion capture are carried out on the user. Therefore, during the process of using the virtual reality device by the user, the light source in the handle needs to be in an on state for a long time so as to provide light for the camera device. However, the light source is in an on state for a long time, and the power consumption is high and the energy consumption is high.
Disclosure of Invention
The invention provides a light control method and a light control device, which are used for solving the problems that a light source needs to be in an on state for a long time, the power consumption is high and the energy consumption is high in the conventional virtual reality equipment.
In a first aspect, the present invention provides a light control method for a handle of a virtual reality device, where the handle is provided with a light source, the virtual reality device further includes a helmet, and the helmet is provided with a camera device, and the light control method includes: receiving a closing instruction; the closing instruction comprises first time, an exposure period of the camera device and exposure duration lasting for each exposure; the first time is the time recorded in the helmet when the closing instruction is sent; responding to the closing instruction, closing the light source, and timing by taking the first time as a reference time of the current time; adjusting the on-off state of the light source until the light source is turned off after a synchronous command is received, and recording the turn-on times of the light source; determining a timing delay between the helmet and the handle according to the first time, the exposure period, the exposure duration, the synchronization instruction and the opening times; synchronizing the timing of the helmet and the timing of the handle according to the timing delay; and adjusting the on-off state of the light source so that the light source is in an on state when the camera device is exposed and the light source is in an off state when the camera device is not exposed.
Further, adjusting the on-off state of the light source until the process of turning off the light source after receiving the synchronization instruction specifically includes: keeping the light source in a closed state, continuously presetting a first time length, and starting the light source; keeping the light source in an opening state, continuously presetting a second time length, and closing the light source; keeping the light source in a closed state, continuously presetting a third time length, and starting the light source; and repeatedly executing the steps of keeping the light source in an opening state, continuously presetting a second time length, and closing the light source until the light source is closed after a synchronous instruction is received.
Further, the process of determining the timing delay between the helmet and the handle according to the first time, the exposure period, the exposure duration, the synchronization instruction and the opening times specifically includes: acquiring the exposure times and the second time contained in the synchronous instruction; the exposure times refer to the total times of exposure of the camera device within the time length from the time when the helmet detects that the light source is turned off for the first time after the light source is turned off for the first time to the time when the helmet detects that the light source is turned on for the first time; the second time is the time when the helmet detects that the light source is turned off for the first time, and the camera device recorded in the helmet shoots that the light source is turned on for the first time; determining the timing time of the handle at the moment corresponding to the second time according to the first time, the exposure period, the exposure duration, the exposure times and the opening times; determining a timing delay between the helmet and the handle based on the second time and the timing time.
Further, the process of synchronizing the timing of the helmet and the timing of the handle according to the timing delay specifically includes: calculating the sum of the current timing time of the handle and the timing delay to generate a third time; and timing by taking the third time as the reference time of the current time.
Further, adjusting the on-off state of the light source to enable the light source to be in an on state when the image pickup device is exposed and to be in an off state when the image pickup device is not exposed specifically includes: acquiring target timing time in the handle; the target timing time refers to any time recorded in the handle after the timing of the helmet and the timing of the handle are synchronously completed; determining a target timing duration according to the target timing time, the first time and the timing delay; performing modular operation on the target timing duration and the exposure period to generate a remainder; calculating a difference value between the exposure period and the remainder; if the difference is greater than or equal to one half of the exposure time, the light source is turned on at a first moment corresponding to each exposure period, and the light source is turned off at a second moment corresponding to the exposure period; the first time is the time which is before the exposure corresponding to any one exposure period starts and is separated from the exposure starting time of this time by half of the exposure time; the second moment is a moment which is separated by one half of the exposure time length from the moment when the exposure corresponding to any one exposure period is finished; or if the difference is less than one half of the exposure time, waiting for an exposure period, starting the light source at a first moment corresponding to each subsequent exposure period, and closing the light source at a second moment corresponding to the exposure period.
In a second aspect, the present invention further provides a light control device, configured to be used in a handle of a virtual reality device, where the handle is provided with a light source, the virtual reality device further includes a helmet, and the helmet is provided with a camera device, where the light control device includes: the receiving module is used for receiving a closing instruction; the closing instruction comprises first time, an exposure period of the camera device and exposure duration lasting for each exposure; the first time is the time recorded in the helmet when the closing instruction is sent; the first processing module is used for responding to the closing instruction, closing the light source and timing by taking the first time as the reference time of the current moment; the second processing module is used for adjusting the on-off state of the light source, turning off the light source after receiving the synchronous instruction and recording the turn-on times of the light source; a timing delay determining module, configured to determine a timing delay between the helmet and the handle according to the first time, the exposure period, the exposure duration, the synchronization instruction, and the number of times of opening; the third processing module is used for synchronizing the timing of the helmet and the timing of the handle according to the timing delay; and the fourth processing module is used for adjusting the on-off state of the light source so as to enable the light source to be in an on state when the camera device is exposed and enable the light source to be in an off state when the camera device is not exposed.
Further, the second processing module is specifically configured to: keeping the light source in a closed state, continuously presetting a first time length, and starting the light source; keeping the light source in an opening state, continuously presetting a second time length, and closing the light source; keeping the light source in a closed state, continuously presetting a third time length, and starting the light source; and repeatedly executing the steps of keeping the light source in an opening state, continuously presetting a second time length, and closing the light source until the light source is closed after a synchronous instruction is received.
Further, the timing delay determination module is specifically configured to: acquiring the exposure times and the second time contained in the synchronous instruction; the exposure times refer to the total times of exposure of the camera device within the time length from the time when the helmet detects that the light source is turned off for the first time after the light source is turned off for the first time to the time when the helmet detects that the light source is turned on for the first time; the second time is the time when the helmet detects that the light source is turned off for the first time, and the camera device recorded in the helmet shoots that the light source is turned on for the first time; determining the timing time of the handle at the moment corresponding to the second time according to the first time, the exposure period, the exposure duration, the exposure times and the opening times; determining a timing delay between the helmet and the handle based on the second time and the timing time.
Further, the third processing module is specifically configured to: calculating the sum of the current timing time of the handle and the timing delay to generate a third time; and timing by taking the third time as the reference time of the current time.
Further, the fourth processing module is specifically configured to: acquiring target timing time in the handle; the target timing time refers to any time recorded in the handle after the timing of the helmet and the timing of the handle are synchronously completed; determining a target timing duration according to the target timing time, the first time and the timing delay; performing modular operation on the target timing duration and the exposure period to generate a remainder; calculating a difference value between the exposure period and the remainder; if the difference is greater than or equal to one half of the exposure time, the light source is turned on at a first moment corresponding to each exposure period, and the light source is turned off at a second moment corresponding to the exposure period; the first time is the time before the exposure corresponding to any one exposure period starts and the time at which the exposure starts is separated by one half of the exposure time; the second moment is a moment which is separated by one half of the exposure time length from the moment when the exposure corresponding to any one exposure period is finished; or if the difference is less than one half of the exposure time, waiting for an exposure period, starting the light source at a first moment corresponding to each subsequent exposure period, and closing the light source at a second moment corresponding to the exposure period.
The technical scheme provided by the embodiment of the invention can have the following beneficial effects: the invention provides a light control method and device. In the light control method, when the helmet determines that the camera device can shoot the light of the light source in the handle, a turn-off instruction for turning off the light source is sent to the handle, and then the camera device shoots the light source in a fixed exposure period; after receiving a closing instruction, the handle closes the light source and adjusts the on-off state of the light source; in the process, after the camera device shoots the light source to be turned off for the first time and shoots the light source to be turned on for the first time, the helmet sends a synchronous instruction to the handle; the handle synchronizes the self timing with the timing of the helmet according to the received synchronization instruction and the closing instruction, and adjusts the on-off state of the light source after synchronization, so that the light source is in an on state when the camera device is exposed, and the light source is in an off state when the camera device is not exposed, thereby greatly reducing the power consumption of the light source, saving energy and having better applicability.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious to those skilled in the art that other drawings can be obtained according to the drawings without any inventive exercise.
Fig. 1 is a block diagram of a virtual reality device according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a light control method according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating an implementation method of step S106 according to an embodiment of the present invention;
fig. 4 is a block diagram of a light control device according to an embodiment of the present invention.
Detailed Description
It can be known to combine background art, among the prior art, in the virtual reality equipment, in order to make things convenient for camera device to fix a position and motion capture to the user, the light source of handle need be in the on-state for a long time to provide light for camera device. And the long-term opening of the light source has higher power consumption and higher energy consumption. In order to solve the problem, the invention provides a light control method and a light control device.
The following describes the light control method and device provided by the present invention in detail with reference to the accompanying drawings.
Before introducing the light control method and device provided by the present invention, a virtual reality device provided by an embodiment of the present invention is first introduced.
Referring to fig. 1, fig. 1 is a block diagram illustrating a virtual reality device according to an embodiment of the present invention. As can be seen in fig. 1, the virtual reality apparatus 100 includes: helmet 10 and handle 20; the helmet 10 is provided with a camera 101, a first processor 102, a first RTC (real-time clock, chinese) unit 103 and a first wireless communication unit 104 are arranged inside the helmet 10, and the camera 101, the first processor 102, the first RTC unit 103 and the first wireless communication unit 104 are coupled; the handle 20 is provided with a light source 201, a second processor 202, a second RTC unit 203 and a second wireless communication unit 204 are arranged inside the handle 20, and the light source 201, the second processor 202, the second RTC unit 203 and the second wireless communication unit 204 are coupled; the helmet 10 and the handle 20 can be communicatively connected to the second wireless communication unit 204 via the first wireless communication unit 104. The roles of the components and the relationships between the components in the virtual reality apparatus 100 can refer to the contents of the following embodiments.
Referring to fig. 2, fig. 2 is a schematic flowchart illustrating a light control method according to an embodiment of the present invention. The light control method is used on one side of a handle (such as the handle 20 shown in fig. 1) of a virtual reality device, and as can be seen in fig. 2, the light control method comprises the following steps:
and step S101, receiving a closing instruction.
When using a virtual reality device (e.g., the virtual reality device 100 shown in fig. 1), a user first turns on a helmet (e.g., the helmet 10 shown in fig. 1) and a handle; after the helmet is turned on, the image pickup device (e.g., the image pickup device 101 shown in fig. 1), the first processor (e.g., the first processor 102 shown in fig. 1), the first RTC unit (e.g., the first RTC unit 103 shown in fig. 1), and the first wireless communication unit (e.g., the first wireless communication unit 104 shown in fig. 1) of the helmet all enter an operating state; after the handle is turned on, the light source (for example, the light source 201 shown in fig. 1) of the handle is turned on, and the second processor (for example, the second processor 202 shown in fig. 2), the second RTC unit (for example, the second RTC unit 203 shown in fig. 1) and the second wireless communication unit (for example, the second wireless communication unit 204 shown in fig. 1) of the handle all enter an operating state.
And after the camera device enters a working state, shooting the light source according to a certain exposure period, and sending the image shot by each exposure to the first processor. The exposure period refers to the duration of an interval from the beginning of the exposure to the beginning of the next exposure. Each exposure period comprises an exposure duration and a processing duration, wherein the exposure duration refers to the duration of exposure duration in the exposure period, and the processing duration refers to the duration of processing the image shot by the current exposure.
The first processor determines that light of the light source can be shot according to an image shot by the camera device, then controls the helmet to send a closing instruction for closing the light source to the handle, and records time recorded in the first RTC unit at the current moment. The closing instruction includes the first time, an exposure period of the image pickup device, and an exposure duration of each exposure.
And step S102, responding to the closing instruction, closing the light source, and timing by taking the first time as the reference time of the current time.
After the handle receives the closing instruction, the second processor of the handle responds to the closing instruction, controls the light source to be closed, and sets the reference time of the current time of the second RTC unit as the first time for timing.
And S103, adjusting the on-off state of the light source until the light source is turned off after a synchronous instruction is received, and recording the turn-on times of the light source.
After the first processor controls the helmet to send a closing instruction for closing the light source to the handle, when the fact that the light source is closed is determined to be shot by the camera device for the first time according to the image shot by the camera device is determined, a first target frame number of the camera device which shoots the light source to be closed at present is recorded; then, when it is determined that the light source is in an on state when the image pickup device shoots for the first time according to the image shot by the image pickup device, recording a second target frame number of the light source in the on state when the image pickup device shoots for the first time, and recording time recorded in the first RTC unit at the current time, in this embodiment of the present application, the time is recorded as a second time, that is, the second time is time when the image pickup device recorded in the helmet shoots for the first time and the light source is on after the helmet detects that the light source is off for the first time; and then, determining the exposure times of the camera device according to the first target frame number and the second target frame number, wherein the exposure times refer to the total times of exposure of the camera device within the time length from the first detection of the helmet that the light source is turned off to the first detection that the light source is turned on after the light source is turned off for the first time.
Further, the following formula may be used: m = M2-M1+1, and the exposure times are calculated, where M represents the exposure times, M1 represents the first target frame number, and M2 represents the second target frame number.
In addition, after the first processor controls the helmet to send a turn-off instruction for turning off the light source to the handle, when the light source is detected to be turned on for the first time after the light source is detected to be turned off for the first time according to an image shot by the camera device, the helmet is controlled to send a synchronous instruction to the handle, and the synchronous instruction comprises the exposure times and the second time.
After the second processor turns off the light source, the on-off state of the light source can be adjusted as follows: keeping the light source in a closed state, continuously presetting a first time length, and then starting the light source; keeping the light source in an opening state, continuously presetting a second time length, and then closing the light source; keeping the light source in a closed state, continuously presetting a third time length, and then starting the light source; and then, repeatedly executing the steps of keeping the light source in an opening state, continuously presetting a second time length, and then closing the light source until the light source is closed after a synchronous command is received. And the second processor records the turn-on times of the light source in the interval duration from the turning-off of the light source after the turn-off instruction is received to the receiving of the synchronous instruction. Optionally, the turn-on times of the light source may be recorded as N, where N is a positive integer.
The first preset time length, the second preset time length and the third preset time length can be set according to actual needs. For example, a first preset duration may be set to 3Te + Tc, a second preset duration may be set to 2Tc, and a third preset duration may be set to Te-Tc, where Te represents the exposure period and Tc represents the exposure duration.
And step S104, determining timing delay between the helmet and the handle according to the first time, the exposure period, the exposure duration, the synchronous instruction and the opening times.
In a specific implementation, step S104 may be implemented as follows: acquiring the exposure times and the second time contained in the synchronous instruction; determining the timing time of the handle at the moment corresponding to the second time according to the first time, the exposure period, the exposure duration, the exposure times and the opening times; determining a timing delay between the helmet and the handle based on the second time and the timing time.
The obtaining of the exposure times and the second time included in the synchronization instruction may be implemented as follows: and the second processor of the handle analyzes the synchronous instruction and acquires the exposure times and the second time contained in the synchronous instruction.
Determining the timing time of the handle at the moment corresponding to the second time according to the first time, the exposure period, the exposure duration, the exposure times and the opening times, and realizing the following steps: the following formula is used: t = T1+ MTe + NTc, and the timing time of the handle is calculated and generated, where the timing time refers to a time corresponding to the second time and a current time recorded by the second RTC unit in the handle, and the timing time cannot be read from the second RTC unit due to a communication delay between the helmet and the handle, and can be generated through calculation. Wherein T represents the timing time of the handle, T1 represents the first time, M represents the exposure times, te represents the exposure period, tc represents the exposure time length, and N represents the opening times.
Determining a timing delay between the helmet and the handle based on the second time and the timing time may be accomplished as follows: the following formula is used: Δ T = T2-T, the calculation generating a timing delay between the helmet and the handle; where Δ T represents the timing delay, T2 represents the second time, and T represents the timing time.
And S105, synchronizing the timing of the helmet and the timing of the handle according to the timing delay.
In a specific implementation, step S105 may be implemented as follows: calculating the sum of the current timing time and the timing delay of the handle to generate a third time, namely calculating the sum of the current recorded time of a second RTC unit in the handle and the timing delay to generate the third time; and timing by taking the third time as the reference time of the current time, namely taking the third time as the current timing reference time of the second RTC unit in the handle to perform subsequent timing.
And S106, adjusting the on-off state of the light source so that the light source is in an on state when the camera device is exposed and the light source is in an off state when the camera device is not exposed.
Referring to fig. 3, fig. 3 is a flowchart illustrating an implementation method of step S106 according to an embodiment of the present invention. As can be seen from fig. 3, in a specific implementation, step S106 may be implemented according to the method shown in fig. 3:
and step S201, acquiring target timing time in the handle.
The target timing time refers to any time recorded in the handle after the timing of the helmet and the timing of the handle are completed synchronously.
Step S202, determining a target timing duration according to the target timing time, the first time and the timing delay.
In a specific implementation, step S202 may be implemented as follows: the target time-keeping period is calculated using the following formula T3= T4-T1- Δ T. Wherein T3 represents the target timing duration, T4 represents the target timing time, T1 represents the first time, and Δ T represents the timing delay.
Step S203, performing modular operation on the target timing duration and the exposure period to generate a remainder.
And step S204, calculating the difference value between the exposure period and the remainder.
Step S205, if the difference is greater than or equal to one-half of the exposure duration, turning on the light source at a first time corresponding to each exposure period, and turning off the light source at a second time corresponding to the exposure period.
The first time is the time before the exposure corresponding to any one exposure period starts and the time when the current exposure starts is separated by one half of the exposure time; the second time is the time after the exposure corresponding to any one exposure period is finished and is separated from the current exposure finishing time by half of the exposure time.
Step S206, if the difference is less than one half of the exposure time, waiting for an exposure period, starting the light source at a first moment corresponding to each subsequent exposure period, and closing the light source at a second moment corresponding to the exposure period.
In the light control method provided by the embodiment of the invention, when the helmet determines that the camera device can shoot the light of the light source in the handle, a closing instruction for closing the light source is sent to the handle, and then the camera device shoots the light source in a fixed exposure period; after receiving the closing instruction, the handle closes the light source and adjusts the on-off state of the light source; in the process, after the camera device shoots that the light source is turned off for the first time and shoots that the light source is turned on for the first time, the helmet sends a synchronous instruction to the handle; the handle synchronizes the self timing with the timing of the helmet according to the received synchronization instruction and the closing instruction, and adjusts the on-off state of the light source after synchronization, so that the light source is in an on state when the camera device is exposed, and the light source is in an off state when the camera device is not exposed, thereby greatly reducing the power consumption of the light source, saving energy and having better applicability.
Corresponding to the light control method, the embodiment of the invention also discloses a light control device.
Referring to fig. 4, fig. 4 is a block diagram illustrating a structure of a light control device according to an embodiment of the present invention. This light controlling means is used for the handle of virtual reality equipment, be provided with the light source on the handle, virtual reality equipment still includes the helmet, be provided with camera device on the helmet. As can be seen from fig. 4, the light control device includes:
a receiving module 401, configured to receive a close instruction; the closing instruction comprises first time, an exposure period of the camera device and exposure duration lasting for each exposure; the first time is the time recorded in the helmet when the closing instruction is sent; a first processing module 402, configured to turn off the light source in response to the turn-off instruction, and count time with the first time as a reference time of a current time; the second processing module 403 is configured to adjust a switching state of the light source, turn off the light source until a synchronization instruction is received, and record the turn-on times of the light source; a timing delay determining module 404, configured to determine a timing delay between the helmet and the handle according to the first time, the exposure period, the exposure duration, the synchronization instruction, and the number of times of opening; a third processing module 405, configured to synchronize timing of the helmet and timing of the handle according to the timing delay; a fourth processing module 406, configured to adjust a switching state of the light source, so that the light source is in an on state when the image capturing apparatus is exposed, and the light source is in an off state when the image capturing apparatus is not exposed.
Further, the second processing module 403 is specifically configured to: keeping the light source in a closed state, continuously presetting a first time length, and starting the light source; keeping the light source in an on state, continuing for a preset second time period, and turning off the light source; keeping the light source in a closed state, continuing for a preset third time, and starting the light source; and repeatedly executing the steps of keeping the light source in an opening state, continuously presetting a second time length, and closing the light source until the light source is closed after a synchronous command is received.
Further, the timing delay determining module 404 is specifically configured to: acquiring the exposure times and the second time contained in the synchronous instruction; the exposure times refer to the total times of exposure of the camera device within the time length from the time when the helmet detects that the light source is turned off for the first time after the light source is turned off for the first time to the time when the helmet detects that the light source is turned on for the first time; the second time is the time when the helmet detects that the light source is turned off for the first time, and the camera device recorded in the helmet shoots that the light source is turned on for the first time; determining the timing time of the handle at the moment corresponding to the second time according to the first time, the exposure period, the exposure duration, the exposure times and the opening times; determining a timing delay between the helmet and the handle based on the second time and the timing time.
Further, the third processing module 405 is specifically configured to: calculating the sum of the current timing time of the handle and the timing delay to generate a third time; and timing by taking the third time as the reference time of the current moment.
Further, the fourth processing module 406 is specifically configured to: acquiring target timing time in the handle; the target timing time refers to any time recorded in the handle after the timing of the helmet and the timing of the handle are synchronously completed; determining a target timing duration according to the target timing time, the first time and the timing delay; performing modular operation on the target timing duration and the exposure period to generate a remainder; calculating a difference value between the exposure period and the remainder; if the difference is greater than or equal to one half of the exposure time, the light source is turned on at a first moment corresponding to each exposure period, and the light source is turned off at a second moment corresponding to the exposure period; the first time is the time which is before the exposure corresponding to any one exposure period starts and is separated from the exposure starting time of this time by half of the exposure time; the second moment is a moment which is separated by one half of the exposure time length from the moment when the exposure corresponding to any one exposure period is finished; or if the difference is less than one half of the exposure time, waiting for an exposure period, starting the light source at a first moment corresponding to each subsequent exposure period, and closing the light source at a second moment corresponding to the exposure period.
By adopting the light control device provided by the embodiment of the invention, all steps in the light control method can be implemented, and the same beneficial effects can be obtained. The light control device provided by the embodiment of the invention can enable the light source to be in the on state when the camera device is exposed and enable the light source to be in the off state when the camera device is not exposed, thereby greatly reducing the power consumption of the light source, saving the energy and having better applicability.
In a specific implementation, the present invention further provides a computer storage medium, where the computer storage medium may store a program, and the program may include some or all of the steps in each embodiment of the light control method provided by the present invention when executed. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a Random Access Memory (RAM).
Those skilled in the art will readily appreciate that the techniques of the embodiments of the present invention may be implemented as software plus a required general purpose hardware platform. Based on such understanding, the technical solutions in the embodiments of the present invention may be essentially or partially implemented in the form of a software product, which may be stored in a storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments.
The same and similar parts in the various embodiments in this specification may be referred to each other. In particular, for the embodiment of the light control device, since it is basically similar to the embodiment of the method, the description is simple, and the relevant points can be referred to the description of the embodiment of the method.
The above-described embodiments of the present invention do not limit the scope of the present invention.
Claims (8)
1. The light control method is characterized in that a handle is used for virtual reality equipment, a light source is arranged on the handle, the virtual reality equipment further comprises a helmet, a camera device is arranged on the helmet, and the light control method comprises the following steps:
receiving a closing instruction; the closing instruction comprises first time, an exposure period of the camera device and exposure duration lasting for each exposure; the first time is the time recorded in the helmet when the closing instruction is sent;
responding to the closing instruction, closing the light source, and timing by taking the first time as a reference time of the current time;
adjusting the on-off state of the light source until the light source is turned off after a synchronous instruction is received, and recording the turn-on times of the light source;
acquiring the exposure times and the second time contained in the synchronous instruction; the exposure times refer to the total times of exposure of the camera device within the time length from the time when the helmet detects that the light source is turned off for the first time after the light source is turned off for the first time to the time when the helmet detects that the light source is turned on for the first time; the second time is the time when the helmet detects that the light source is turned off for the first time, and the camera device recorded in the helmet shoots that the light source is turned on for the first time;
determining the timing time of the handle at the moment corresponding to the second time according to the first time, the exposure period, the exposure duration, the exposure times and the opening times;
determining a timing delay between the helmet and the handle based on the second time and the timing time;
synchronizing the timing of the helmet and the timing of the handle according to the timing delay;
and adjusting the on-off state of the light source to enable the light source to be in an on state when the camera device is exposed and to be in an off state when the camera device is not exposed.
2. The light control method according to claim 1, wherein adjusting the on-off state of the light source until the process of turning off the light source after receiving the synchronization command specifically comprises:
keeping the light source in a closed state, continuously presetting a first time length, and starting the light source;
keeping the light source in an opening state, continuously presetting a second time length, and closing the light source;
keeping the light source in a closed state, continuing for a preset third time, and starting the light source;
and repeatedly executing the steps of keeping the light source in an opening state, continuously presetting a second time length, and closing the light source until the light source is closed after a synchronous instruction is received.
3. The light control method according to claim 1, wherein the process of synchronizing the timing of the helmet and the timing of the handle according to the timing delay specifically comprises:
calculating the sum of the current timing time of the handle and the timing delay to generate a third time;
and timing by taking the third time as the reference time of the current time.
4. The light control method according to claim 3, wherein adjusting the on/off state of the light source to turn on the light source when the image capturing device is exposed, and turn off the light source when the image capturing device is not exposed specifically includes:
acquiring target timing time in the handle; the target timing time refers to any time recorded in the handle after the timing of the helmet and the timing of the handle are synchronously completed;
determining a target timing duration according to the target timing time, the first time and the timing delay;
performing modular operation on the target timing duration and the exposure period to generate a remainder;
calculating a difference value between the exposure period and the remainder;
if the difference is greater than or equal to one half of the exposure time, the light source is turned on at a first moment corresponding to each exposure period, and the light source is turned off at a second moment corresponding to the exposure period; the first time is the time before the exposure corresponding to any one exposure period starts and the time at which the exposure starts is separated by one half of the exposure time; the second moment is a moment which is separated by one half of the exposure time length from the exposure ending moment after the exposure corresponding to any one exposure period is ended; or the like, or, alternatively,
and if the difference is less than one half of the exposure time, waiting for an exposure period, starting the light source at a first moment corresponding to each subsequent exposure period, and closing the light source at a second moment corresponding to the exposure period.
5. The utility model provides a light controlling means which characterized in that for the handle of virtual reality equipment, be provided with the light source on the handle, virtual reality equipment still includes the helmet, be provided with camera device on the helmet, this light controlling means includes:
the receiving module is used for receiving a closing instruction; the closing instruction comprises first time, an exposure period of the camera device and exposure duration lasting for each exposure; the first time is the time recorded in the helmet when the closing instruction is sent;
the first processing module is used for responding to the closing instruction, closing the light source and timing by taking the first time as the reference time of the current moment;
the second processing module is used for adjusting the on-off state of the light source, turning off the light source after receiving the synchronous instruction, and recording the turn-on times of the light source;
the timing delay determining module is used for acquiring the exposure times and the second time contained in the synchronous instruction; the exposure times refer to the total times of exposure of the camera device within the time length from the time when the helmet detects that the light source is turned off for the first time after the light source is turned off for the first time to the time when the helmet detects that the light source is turned on for the first time; the second time is the time when the helmet detects that the light source is turned off for the first time, and the camera device recorded in the helmet shoots that the light source is turned on for the first time; determining the timing time of the handle at the moment corresponding to the second time according to the first time, the exposure period, the exposure duration, the exposure times and the opening times; determining a timing delay between the helmet and the handle based on the second time and the timing time;
the third processing module is used for synchronizing the timing of the helmet and the timing of the handle according to the timing delay;
and the fourth processing module is used for adjusting the on-off state of the light source so as to enable the light source to be in an on state when the camera device is exposed and enable the light source to be in an off state when the camera device is not exposed.
6. The light control device according to claim 5, wherein the second processing module is specifically configured to:
keeping the light source in a closed state, continuously presetting a first time length, and starting the light source;
keeping the light source in an on state, continuing for a preset second time period, and turning off the light source;
keeping the light source in a closed state, continuously presetting a third time length, and starting the light source;
and repeatedly executing the steps of keeping the light source in an opening state, continuously presetting a second time length, and closing the light source until the light source is closed after a synchronous instruction is received.
7. The light control device according to claim 5, wherein the third processing module is specifically configured to:
calculating the sum of the current timing time of the handle and the timing delay to generate a third time;
and timing by taking the third time as the reference time of the current time.
8. The light control device according to claim 7, wherein the fourth processing module is specifically configured to:
acquiring target timing time in the handle; the target timing time refers to any time recorded in the handle after the timing of the helmet and the timing of the handle are synchronously completed;
determining a target timing duration according to the target timing time, the first time and the timing delay;
performing modular operation on the target timing duration and the exposure period to generate a remainder;
calculating a difference value between the exposure period and the remainder;
if the difference is greater than or equal to one half of the exposure time, the light source is turned on at a first moment corresponding to each exposure period, and the light source is turned off at a second moment corresponding to the exposure period; the first time is the time before the exposure corresponding to any one exposure period starts and the time at which the exposure starts is separated by one half of the exposure time; the second moment is a moment which is separated by one half of the exposure time length from the exposure ending moment after the exposure corresponding to any one exposure period is ended; or the like, or a combination thereof,
and if the difference is less than one half of the exposure time, waiting for an exposure period, starting the light source at a first moment corresponding to each subsequent exposure period, and closing the light source at a second moment corresponding to the exposure period.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811580602.3A CN111355897B (en) | 2018-12-24 | 2018-12-24 | Light control method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811580602.3A CN111355897B (en) | 2018-12-24 | 2018-12-24 | Light control method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111355897A CN111355897A (en) | 2020-06-30 |
CN111355897B true CN111355897B (en) | 2023-04-18 |
Family
ID=71195281
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811580602.3A Active CN111355897B (en) | 2018-12-24 | 2018-12-24 | Light control method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111355897B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112203076B (en) * | 2020-09-16 | 2022-07-29 | 青岛小鸟看看科技有限公司 | Alignment method and system for exposure center points of multiple cameras in VR system |
CN114500978B (en) * | 2020-11-12 | 2023-04-25 | 海信视像科技股份有限公司 | Display device, handle and calibration method for virtual target positioning tracking |
WO2022100288A1 (en) * | 2020-11-12 | 2022-05-19 | 海信视像科技股份有限公司 | Display device, handle, and method for calibrating positioning and tracking of virtual target |
CN114500979B (en) * | 2020-11-12 | 2023-09-19 | 海信视像科技股份有限公司 | Display device, control device, and synchronization calibration method |
CN112462578A (en) * | 2020-12-16 | 2021-03-09 | 广东思沃激光科技有限公司 | Exposure method, exposure machine, and computer-readable storage medium |
CN113225870B (en) | 2021-03-29 | 2023-12-22 | 青岛小鸟看看科技有限公司 | VR equipment positioning method and VR equipment |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102780845A (en) * | 2012-06-14 | 2012-11-14 | 清华大学 | Light source alternate strobe synchronous camera shooting method and vision detection system |
CN106131419B (en) * | 2016-07-21 | 2019-11-08 | 北京小鸟看看科技有限公司 | It is a kind of for synchronizing the method and system and virtual reality system of multiple wireless camera equipment |
CN106768361B (en) * | 2016-12-19 | 2019-10-22 | 北京小鸟看看科技有限公司 | The position tracking method and system of handle matched with VR helmet |
CN108965712B (en) * | 2018-07-30 | 2021-03-16 | 青岛小鸟看看科技有限公司 | Space positioning system and synchronization method and device thereof |
-
2018
- 2018-12-24 CN CN201811580602.3A patent/CN111355897B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN111355897A (en) | 2020-06-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111355897B (en) | Light control method and device | |
WO2015196921A1 (en) | Background-running image capture method and image capture apparatus | |
CN106170068B (en) | Dynamic image generating means and dynamic image generation method | |
EP2981066B1 (en) | Complementary metal oxide semiconductor camera and light supplementation method therefor | |
CN105323527B (en) | For when video shift exposure metering system and method | |
US20140226058A1 (en) | Imaging apparatus having a synchronous shooting function | |
CN105657258B (en) | A kind of control method and device of motor in zoom camera mould group | |
US10609265B2 (en) | Methods and apparatus for synchronizing camera flash and sensor blanking | |
JP2017538331A (en) | Video capture processing method, system and apparatus | |
CN114390193A (en) | Image processing method, image processing device, electronic equipment and storage medium | |
JP2009135804A (en) | Recording/reproducing apparatus and method of restoring time code | |
GB2519401A (en) | Recording apparatus and recording method | |
CN112334387A (en) | Photographing method, camera, unmanned aerial vehicle and storage medium | |
US20230412918A1 (en) | System for wireless synchronized capturing, and smart device | |
JP2004193922A (en) | Camera device | |
CN205754609U (en) | Radio digital mic | |
US10321041B2 (en) | Imaging apparatus, control method of imaging apparatus, and non-transitory storage medium storing control method of imaging apparatus | |
CN108965712A (en) | A kind of space positioning system and its synchronous method and device | |
JP2016109765A (en) | Imaging device and focus adjusting method thereof, and program | |
JP2007049466A (en) | Synchronizing reproducing method and synchronizing reproducing software | |
JP4310756B2 (en) | Imaging apparatus and control method thereof | |
CN104954717B (en) | A kind of terminal and video title generation method | |
JP4310755B2 (en) | Imaging apparatus and control method thereof | |
JP2008283707A (en) | Photographing apparatus and control method therefor | |
JP2002199288A (en) | Image pickup device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |