Method for Controlling Flash Timing of Extension Flash Module
The present invention provides a method for controlling flash timing of an extension flash module cooperating with a mobile device. The method includes: detecting a specific event, wherein a time period from when the specific event occurs to the start of an exposure of the first row of a photo sensor is a constant; determining whether there is one single flashable time period wherein one flash is receivable by every row of the photo sensor; when there is such a single flashable time period, conducting one single flash after a delay time from the specific event; and when there is no such single flashable time period, conducting a first flash after a delay time from the specific event, and conducting a second flash after a delay time from the first flash.
Latest EOSMEM CORPORATION Patents:
- Fingerprint identification device, mobile device using the same and method for manufacturing fingerprint identification device
- Exposure time determination method for image sensing operation
- Fingerprint detection apparatus, mobile device using the same and manufacturing method thereof
- OPTICAL SENSING MODULE AND FINGERPRINT SENSING DEVICE
- ADD-ON AUXILIARY DEVICE FOR ASSISTING IN GENERATING THREE-DIMENSIONAL INFORMATION
The present invention claims priority to TW 103140180, filed on Nov. 19, 2014, TW 104107362, filed on Mar. 9, 2015, and TW 104119387, filed on Jun. 16, 2015. The present invention is a continuation-in-part application of U.S. Ser. No. 14/643,905, filed on Mar. 10, 2015.
BACKGROUND OF THE INVENTION1. Field of Invention
The present invention relates in general to the technology of flash lamp, and more particularly to a method for controlling flash timing of an extension flash module of a mobile device.
2. Description of Related Art
With continuous advance in pixels and quality of digital photography, it has become a trend for mobile devices, such as mobile phones and tablets, to carry the function of taking photos. However, these built-in digital cameras have not been able to perform so well as conventional digital cameras under the circumstances of low lighting or backlighting.
Although some built-in digital cameras also carry a light-emitting diode (LED) supplement lamp, both the battery capacity of mobile devices and the heat dissipation issue of LEDs seriously confine the volume of fill light provided by the LED supplement lamp. When the distance between the object being photographed and the LED supplement lamp exceeds one meter, the LED fill light cannot provide adequate light source to allow pixels of a photo sensor to be properly exposed.
Xenon high-intensity discharge lamps (HIDs) can provide a large amount of supplementary lighting within a short period of time. Therefore, conventional digital cameras usually carry a xenon HID. A charger in a xenon HID converts low-voltage battery power supply into high-voltage power supply and stores it in a high-capacitance high-voltage capacitor. Operating in coordination with a mechanical shutter, the xenon HID is then triggered at a proper timing to convert the electricity stored in the high-voltage capacitor into high-brightness supplementary lighting within a very short period of time so that the pixels of a photo sensor are properly exposed under circumstances of low lighting or backlighting. A xenon HID requires a high-voltage capacitor having a capacitance from dozens to hundreds of μF and able to withstand 300 to 400 volts. In pursuit of lighter, thinner and more compact mobile devices, the very large volume of such a high-voltage capacitor fails to meet the requirements of current mobile devices. Therefore, in order not to increase the volume and weight of existing mobile devices, extension HID flash modules become a feasible and even necessary option.
According to the specifications of the capacitance in high-voltage capacitors and HID lamp tubes, the flash time of HID flash modules lasts from dozens to hundreds of microseconds (ρs). How to flash at the right timing so that all pixels in a photo sensor are evenly exposed is an important issue to be solved for extension HID flash modules to become a feasible option. Mobile devices which carry a photo-taking device normally adopt a complementary metal-oxide semiconductor (CMOS) photo sensor and a rolling shutter instead of a mechanical shutter, as shown in
However, in coordination with a rolling shutter, an extension HID flash module usually cannot locate the optimal flash timing and fails to improve the quality of photos.
SUMMARY OF THE INVENTIONFrom one perspective, the present invention provides a method for controlling flash timing of an extension flash module cooperating with a mobile device to provide supplemental light when the mobile device having an image retrieval device is taking a photo, the image retrieval device including pixels arranged in N rows, wherein N is a positive integer, the method comprising: detecting a specific event, wherein a time period from when the specific event occurs to a start of an exposure of the first row of the image retrieval device is a constant; determining whether there is one single flashable time period wherein one flash is receivable by every row of the image retrieval device; when there is a single flashable time period wherein one flash is receivable by every row of the image retrieval device, conducting one single flash after a delay time from the specific event; and when there is no such single flashable time period, conducting a first flash after a delay time from the specific event, and conducting a second flash after a delay time from the first flash.
In one embodiment, the step of determining whether there is one single flashable time period wherein one flash is receivable by every row of the image retrieval device, includes: detecting an intensity of an ambient light; comparing the intensity of the ambient light with a predetermined threshold; when the intensity of the ambient light is lower than the predetermined threshold, determining that there is one single flashable time period wherein one flash is receivable by every row of the image retrieval device; and when the intensity of the ambient light is higher than the predetermined threshold, determining that there is not one single flashable time period wherein one flash is receivable by every row of the image retrieval device.
In one embodiment the method further comprises: storing different predetermined thresholds corresponding to different types of mobile devices in a storage device in the extension flash module, or setting different predetermined thresholds corresponding to different types of mobile devices in an application program by which the mobile device controls the extension flash module.
In one embodiment the method further comprises: conducting a third flash after a delay time from the second flash.
In one embodiment, the step of determining whether there is one single flashable time period wherein one flash is receivable by every row of the image retrieval device, includes: detecting an intensity of an ambient light; comparing the intensity of the ambient light with a first predetermined threshold and a second predetermined threshold; when the intensity of the ambient light is lower than the first predetermined threshold, determining that there is one single flashable time period wherein one flash is receivable by every row of the image retrieval device; when the intensity of the ambient light is higher than the first predetermined threshold and lower than the second predetermined threshold, determining that two flashes are required; and when the intensity of the ambient light is higher than the second predetermined threshold, determining that three or more flashes are required.
In one embodiment the method further comprises: storing different predetermined thresholds corresponding to different types of mobile devices in a storage device in the extension flash module, or setting different predetermined thresholds corresponding to different types of mobile devices in an application program by which the mobile device controls the extension flash module.
In one embodiment, the first flash is receivable by P rows of the image retrieval device and the second flash is receivable by Q rows of the image retrieval device, and the method further comprises: when P+Q<N, conducting a third flash after a delay time from the second flash, wherein P and Q are both positive integers.
In one embodiment, the first row has a common flashable time period with the ath row and any row before the ath row, but does not have a flashable time period with the bth row and any row after the bth row, while the Nth row has a common flashable time period with the cth row and any row after the cth row, but does not have a flashable time period with the dth row and any row before the dth row, and the steps of conducting a first flash after a delay time from the specific event, and conducting a second flash after a delay time from the first flash comprise: conducting the first flash before the first row ends exposure and within an exposure time period of the Xth row; and conducting the second flash after the Nth row begins exposure and within an exposure time period of the Yth row; wherein d≦X≦a, and c≦Y≦b, and wherein a, b, c, d, X, and Y are positive integers.
In one embodiment, the step of determining whether there is one single flashable time period wherein one flash is receivable by every row of the image retrieval device, includes: conducting a photo-taking testing exposure procedure wherein an exposure of the pixels is made according to an ambient light; comparing the brightnesses of the pixels with a reference value to determine whether there is any row having a brightness lower than the reference value; when there is no row having a brightness lower than the reference value, determining that there is one single flashable time period wherein one flash is receivable by every row of the image retrieval device; and when there is a row having a brightness lower than the reference value, determining that there is not one single flashable time period wherein one flash is receivable by every row of the image retrieval device.
In one embodiment, the method further comprises: determining a number (P) of rows of pixels having brightnesses higher than the reference value; and comparing the number (P) with a total number (N) of the rows, to determine a number of flashes required for all the rows to receive at least one flash, wherein P and N are positive integers.
From another perspective, the present invention provides a method for controlling flash timing of an extension flash module cooperating with a mobile device to provide supplemental light when the mobile device having an image retrieval device is taking a photo, the image retrieval device including pixels arranged in N rows, wherein N is a positive integer, the method comprising: controlling a timing of a first flash of the extension flash module; and conducting a second flash or more flashes after a delay time from the first flash; whereby all the flashes in combination expose all the rows such that the exposed pixels in combination compose a complete photo.
The objectives, technical details, attribute or parameters, and effects of the present invention will be better understood with regard to the detailed description of the embodiments below, with reference to the attached drawings.
The present invention will become more fully understood from the detailed description given hereinafter. The drawings as referred to throughout the description of the present invention are for illustration only, but not drawn according to actual scale.
According to the present invention, an extension flash module such as an HID flash module cooperates with a mobile device to provide supplemental light when the mobile device is taking a photo. The mobile device has an image retrieval device such as a photo sensor, and the image retrieval device includes pixels arranged in rows.
Step S300: Start.
Step S301: Detecting a specific event before a flashable time. Referring to
After a mobile device confirms that a user has pressed the shutter giving a shutter instruction, the mobile device will perform preparation actions, such as performing photometry and focusing, and determine a specific frame to be retrieved and the exposure time of a photo sensor. At and after a certain moment, the flashable time period t1-t2 of the extension flash module becomes known, i.e., it has a fixed relationship, which will no longer be affected by any other task that the mobile device may be performing, with a certain event (referred to as a “specific event” in this specification) that occurs at that certain moment. Based on this, for instance, a designer may predict the time of the specific frame by designing a certain application program or use a signal from a certain hardware to determine the time of the specific frame. That is, when the specific event occurs, the time period from when the specific event occurs to the flashable time is fixed and is a relatively stable and known period. There is a fixed length of time between the occurrence of the specific event and the flashable time. (The flashable time can be any designated time point within the flashable time period.) Therefore, in one aspect, the present invention adopts the time of a specific event as the basis for prediction.
In one embodiment, the prediction of the flashable time and the flash control can be implemented by a mobile device application program (e.g., a mobile phone application program), and for example, the mobile phone application program can retrieve the time at which the first photo sensor row begins exposure (in a specific frame desired to be retrieved) as the specific event. In this example, the fixed length of time is the period from the time at which the first photo sensor row begins exposure to the time at which the last photo sensor row begins exposure. For another example, the specific event can be the time at which the Kth photo sensor row (in a specific frame desired to be retrieved) begins exposure. In this example, the fixed length of time is the period from the time at which the Kth photo sensor row begins exposure to the time at which the last photo sensor row begins exposure. For another example, the specific event can be the time at which the Kth photo sensor row in the previous Mth frame begins exposure. In this example, the fixed length of time is M frame times plus the period from the time at which the Kth photo sensor row begins exposure to the time at which the last photo sensor row begins exposure. For another example, the specific event can be the time at which the Kth photo sensor row in the previous Mth frame ends exposure. If the Kth photo sensor row ends exposure earlier than the time at which the last photo sensor row begins exposure, then in this example, the fixed length of time is M frame times plus the period from the time at which the Kth photo sensor row ends exposure to the time at which the last photo sensor row begins exposure. If the Kth photo sensor row ends exposure later than the time at which the last photo sensor row begins exposure, then in this example, the fixed length of time is M−1 frame times plus the period from the time at which the Kth photo sensor row ends exposure to the time at which the last photo sensor row begins exposure. In the above examples, the fixed length of time, which corresponds to the period from the specific event to the flashable time, is calculated with reference to the last time point (t2) of the flashable time period. However, equivalently, the fixed length of time can calculated with reference to any time point between (and including) t1 and t2. In the above description, K and M are positive integers.
In another embodiment, the prediction of the flashable time and the flash control can be implemented by referring to a hardware signal. For example, the specific event may be a signal from a built-in LED supplement lamp of the mobile device.
Step S302: Triggering a flash instruction so that the extension flash module flashes during the flashable time period according to a flash delay time and the period from the specific event to the flashable time. “Trigger a flash instruction” in the context of this specification means that the extension flash module starts to execute a flash instruction that it receives or has received. As far as the extension flash module is concerned, a flash delay time td exists between the time at which the extension flash module starts to execute a flash instruction and the time at which the actual flashing of the extension flash module occurs. Therefore, the flash control should take into account, in addition to the period from the specific event to the flashable time, the delay time of the extension flash module itself. That is, because the above-mentioned period from the specific event to the flashable time is a constant and the delay time of the extension flash module is a known value, the method of this embodiment can determine when to trigger the flash instruction according to such constant and known value. For example, if the delay time from the time at which the flash instruction is received by the extension flash module to the time at which the actual flashing of the extension flash module occurs is td (td is calculated with reference to the time at which the flash instruction is received), then the time point for triggering the flash instruction should be between (t1-td) and (t2-td). Or, if the reference initial time point of the delay time td is the time at which the specific event occurs (the delay time td starts being counted at the time when the specific event occurs) and assuming that such time at which the specific event occurs is t0, then the flash timing needs to fulfill the relationship: (t1-t0)<td<(t2-t0). The extension flash module flashes when the delay time td ends. If the delay time td is calculated with reference to a certain other time point which has a time difference from the time at which the specific event occurs, such time difference can be taken into account, depending on the definition of the delay time td (i.e., depending on when to start counting the delay time td).
The above embodiments give examples as to how the flash timing can be controlled when the extension flash module is connected by hardware (e.g. via a universal serial bus (USB), or a headset socket) to the mobile device, in coordination with the internal software of the mobile device to determine the specific event. In another embodiment which is in compliance with the spirit of the present invention, the extension flash module may also be optically coupled to control the flash timing.
Please note that optical coupling is only one among many possible ways to embody the present invention; people ordinarily skilled in the art would readily conceive, in light of the teachings of the present invention, that the present invention may also be implemented wirelessly—such as via Wi-Fi, near field communication (NFC) or Bluetooth—or by detecting a sound produced by the shutter of the mobile device. The present invention is not limited to the embodiments described herein.
The above description describes a “fixed length of time” from when a specific event occurs to the flashable time, which is a relatively stable and known time period. However, there can still be insignificant variations or errors caused by unknown sources; therefore even designers themselves cannot guarantee that the “fixed length of time” absolutely does not contain any minor variation. Nevertheless, from the standpoint of practical application, as long as such a variation is within than an acceptable range, a good flashing control can still be achieved. For example, if an error in calculating the “fixed length of time” is smaller than half of the flashable time period, such an error is tolerable and still falls within the scope defined by the present invention.
Please refer to
According to the present invention, the method for controlling flash timing of an extension flash module preferably further comprises: determining whether there is one single flashable time period wherein one flash is receivable by every row of the image retrieval device. If there is not one single flashable time period wherein one flash is receivable by every row of the image retrieval device, then two or more flashes are conducted. In the case of
More specifically, please refer to
Referring to
In this case, referring to
Likely, whether four or more flashes are required can be determined by setting corresponding thresholds, following the above logic.
When conducting two or more flashes, it is possible that certain photo sensor rows are exposed more than once. For example, the first flash may cover the first to the jth row while the second flash may cover the (j-n)th row to the kth row (wherein j, k and n are positive integers and n<j<k). This is acceptable. In addition, when two or more flashes are conducted, these flashes do not necessarily have to fall within the same frame. For example, the first flash can be conducted in a previous frame to cover a portion of the photo sensor rows and the second flash can be conducted in a later frame to cover another portion of the photo sensor rows, and the exposed photo sensor rows in combination compose one complete photo.
Please refer to
The exposure time period of a photo sensor row changes according to the intensity of the ambient light, and the amount of change may be different from one mobile device of one manufacturer to another mobile device of a different manufacturer. However, in order to achieve a common goal which is an optimum photo-taking performance, different mobile devices of different manufacturers have similar amount of changes. Therefore, according to the present invention, although the extension flash module 50 is an external component to the mobile device, the above-mentioned predetermined threshold (or first and second predetermined thresholds) can be set in advance, and such parameters for example can be stored in the extension flash module 50 or an application program in the mobile device for controlling the extension flash module 50.
In another embodiment, to more accurately obtain optimum parameters in correspondence to mobile devices of different manufacturers, the extension flash module 50 can obtain related information from the mobile device. For example, referring to
It is described in the above that “the intensity of the ambient light is compared to a predetermined threshold”, so it is required to obtain information about the ambient light. The extension flash module 50 can obtain such information from the mobile device, or, an ambient light sensor can be installed in the extension flash module 50, to obtain such information.
In another embodiment, referring to
In light of the above, the spirit of the present invention is to use a specific event as a reference time point; the time at which the specific event occurs is relatively fixed and known compared to the flashable time. Meanwhile, the delay time of the flash module is also taken into account, such that the extension flash module is triggered at a proper timing and flashes during the flashable time period. In addition, when one flash is not enough to cover all the photo sensor rows, multiple flashes can be conducted. Therefore, with the method for taking photos provided by the present invention, pixels are properly exposed under a low lighting or backlighting environment, whereby the quality of photos taken by the mobile device is enhanced.
In another embodiment, the first flash of the multiple flashes does not necessarily have to be conducted by counting a delay time from the above-mentioned specific event, but can be an initial flash time arbitrarily determined by the extension flash module or the mobile device. After this first flash, during taking one same photo, the second flash or more flashes can be conducted according to the present invention. For example, although the initial flash is arbitrarily determined by the extension flash module or the mobile device, it can be determined according to the above-mentioned principle as to whether this initial flash is able to cover all the photo sensor rows, and if not, one or more flashes can be conducted for the same photo. For another example, even if one single flash is enough for every photo sensor row to receive a flash, when it is not certain when a good flash timing is, multiple flashes can be conducted.
While certain exemplary embodiments have been described and shown in the accompanying drawings, it is to be understood that such embodiments are merely illustrative of and not restrictive on the broad invention, and that this invention should not be limited to the specific construction and arrangement shown and described, since various other modifications may occur to those ordinarily skilled in the art. For example, in the method embodiments, the sequence of certain steps are interchangeable, or these steps can be performed in parallel (such as the steps S802 and S804). Thus, it will be apparent that various changes and modifications can be made without departing from the spirit and scope of the invention as defined in the appended claims.
Claims
1. A method for controlling flash timing of an extension flash module cooperating with a mobile device to provide supplemental light when the mobile device having an image retrieval device is taking a photo, the image retrieval device including pixels arranged in N rows, wherein N is a positive integer, the method comprising:
- detecting a specific event, wherein a time period from when the specific event occurs to a start of an exposure of the first row of the image retrieval device is a constant;
- determining whether there is one single flashable time period wherein one flash is receivable by every row of the image retrieval device;
- when there is a single flashable time period wherein one flash is receivable by every row of the image retrieval device, conducting one single flash after a delay time from the specific event; and
- when there is no such single flashable time period, conducting a first flash after a delay time from the specific event, and conducting a second flash after a delay time from the first flash.
2. The method of claim 1, wherein the step of determining whether there is one single flashable time period wherein one flash is receivable by every row of the image retrieval device, includes:
- detecting an intensity of an ambient light;
- comparing the intensity of the ambient light with a predetermined threshold;
- when the intensity of the ambient light is lower than the predetermined threshold, determining that there is one single flashable time period wherein one flash is receivable by every row of the image retrieval device; and
- when the intensity of the ambient light is higher than the predetermined threshold, determining that there is not one single flashable time period wherein one flash is receivable by every row of the image retrieval device.
3. The method of claim 2, further comprising: storing different predetermined thresholds corresponding to different types of mobile devices in a storage device in the extension flash module, or setting different predetermined thresholds corresponding to different types of mobile devices in an application program by which the mobile device controls the extension flash module.
4. The method of claim 1, further comprising: conducting a third flash after a delay time from the second flash.
5. The method of claim 1, wherein the step of determining whether there is one single flashable time period wherein one flash is receivable by every row of the image retrieval device, includes:
- detecting an intensity of an ambient light;
- comparing the intensity of the ambient light with a first predetermined threshold and a second predetermined threshold;
- when the intensity of the ambient light is lower than the first predetermined threshold, determining that there is one single flashable time period wherein one flash is receivable by every row of the image retrieval device;
- when the intensity of the ambient light is higher than the first predetermined threshold and lower than the second predetermined threshold, determining that two flashes are required; and
- when the intensity of the ambient light is higher than the second predetermined threshold, determining that three or more flashes are required.
6. The method of claim 5, further comprising: storing different predetermined thresholds corresponding to different types of mobile devices in a storage device in the extension flash module, or setting different predetermined thresholds corresponding to different types of mobile devices in an application program by which the mobile device controls the extension flash module.
7. The method of claim 1, wherein the first flash is receivable by P rows of the image retrieval device and the second flash is receivable by Q rows of the image retrieval device, and the method further comprising: when P+Q<N, conducting a third flash after a delay time from the second flash, wherein P and Q are both positive integers.
8. The method of claim 1, wherein the first row has a common flashable time period with the ath row and any row before the ath row, but does not have a flashable time period with the bth row and any row after the bth row, while the Nth row has a common flashable time period with the cth row and any row after the cth row, but does not have a flashable time period with the dth row and any row before the dth row, and the steps of conducting a first flash after a delay time from the specific event, and conducting a second flash after a delay time from the first flash comprise:
- conducting the first flash before the first row ends exposure and within an exposure time period of the Xth row; and
- conducting the second flash after the Nth row begins exposure and within an exposure time period of the Yth row;
- wherein d≦X≦a, and c≦Y≦b, and wherein a, b, c, d, X, and Y are positive integers.
9. The method of claim 1, wherein the step of determining whether there is one single flashable time period wherein one flash is receivable by every row of the image retrieval device, includes:
- conducting a photo-taking testing exposure procedure wherein an exposure of the pixels is made according to an ambient light;
- comparing the brightnesses of the pixels with a reference value to determine whether there is any row having a brightness lower than the reference value;
- when there is no row having a brightness lower than the reference value, determining that there is one single flashable time period wherein one flash is receivable by every row of the image retrieval device; and
- when there is a row having a brightness lower than the reference value, determining that there is not one single flashable time period wherein one flash is receivable by every row of the image retrieval device.
10. The method of claim 9, further comprising:
- determining a number (P) of rows of pixels having brightnesses higher than the reference value; and
- comparing the number (P) with a total number (N) of the rows, to determine a number of flashes required for all the rows to receive at least one flash;
- wherein P and N are positive integers.
11. A method for controlling flash timing of an extension flash module cooperating with a mobile device to provide supplemental light when the mobile device having an image retrieval device is taking a photo, the image retrieval device including pixels arranged in N rows, wherein N is a positive integer, the method comprising:
- controlling a timing of a first flash of the extension flash module; and
- conducting a second flash or more flashes after a delay time from the first flash;
- whereby all the flashes in combination expose all the rows such that the exposed pixels in combination compose a complete photo.
Type: Application
Filed: Nov 17, 2015
Publication Date: May 19, 2016
Applicant: EOSMEM CORPORATION (Zhubei City)
Inventor: Meng-Hsien Hsieh (Zhubei City)
Application Number: 14/943,210