CN107896274A - Infrared transmitter control method, terminal and computer-readable recording medium - Google Patents
Infrared transmitter control method, terminal and computer-readable recording medium Download PDFInfo
- Publication number
- CN107896274A CN107896274A CN201711019885.XA CN201711019885A CN107896274A CN 107896274 A CN107896274 A CN 107896274A CN 201711019885 A CN201711019885 A CN 201711019885A CN 107896274 A CN107896274 A CN 107896274A
- Authority
- CN
- China
- Prior art keywords
- terminal
- infrared transmitter
- infrared
- mode
- light
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 51
- 230000006870 function Effects 0.000 claims description 77
- 230000005540 biological transmission Effects 0.000 claims description 24
- 238000004590 computer program Methods 0.000 claims description 6
- 238000004519 manufacturing process Methods 0.000 abstract description 10
- 230000000694 effects Effects 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 4
- 239000000463 material Substances 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 238000001514 detection method Methods 0.000 description 3
- 238000010422 painting Methods 0.000 description 3
- 230000008901 benefit Effects 0.000 description 2
- 230000000903 blocking effect Effects 0.000 description 2
- 230000005611 electricity Effects 0.000 description 2
- 230000011514 reflex Effects 0.000 description 2
- 240000007594 Oryza sativa Species 0.000 description 1
- 235000007164 Oryza sativa Nutrition 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 230000006854 communication Effects 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 210000003128 head Anatomy 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 210000003733 optic disk Anatomy 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 235000009566 rice Nutrition 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
-
- G—PHYSICS
- G08—SIGNALLING
- G08C—TRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
- G08C23/00—Non-electrical signal transmission systems, e.g. optical systems
- G08C23/04—Non-electrical signal transmission systems, e.g. optical systems using light waves, e.g. infrared
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Studio Devices (AREA)
Abstract
The invention discloses a kind of infrared transmitter control method, terminal and computer-readable recording medium, wherein, this method is applied to have close in the terminal of function and structure light camera function, including:Determine the current use state of the terminal;According to the current use state of the terminal, the objective emission pattern of the first infrared transmitter is determined;According to the objective emission pattern, the first infrared transmitter transmitting infrared light is controlled.Hereby it is achieved that being realized using same infrared transmitter close to function and structure light camera function, the space-consuming of infrared transmitter is reduced, has saved the manufacturing cost of terminal, the structure of terminal is simplified, improves Consumer's Experience.
Description
Technical field
The present invention relates to technical field of mobile terminals, more particularly to a kind of infrared transmitter control method, terminal and calculating
Machine readable storage medium storing program for executing.
Background technology
With the fast development of network and electronic technology, such as smart mobile phone, tablet personal computer, pocket pc terminal
Function become stronger day by day, be widely used in the life, study, work of people.For example terminal can have detection human body to connect
It is near or leave close to function, camera function, light filling function, payment function etc..
Meanwhile in order to better meet the usage experience of user, for terminal gradually to miniaturization, this has resulted in terminal
Contradiction between growing functional requirement and miniature requirement.
The content of the invention
It is contemplated that at least solves one of above-mentioned technical problem to a certain extent.
Therefore, the application proposes a kind of infrared transmitter control method, realize and realized using same infrared transmitter
Close to function and structure light camera function, the space-consuming of infrared transmitter is reduced, has saved the manufacturing cost of terminal, simplified
The structure of terminal, improves Consumer's Experience.
The application also proposes a kind of terminal.
The application also proposes a kind of computer-readable recording medium.
The application first aspect proposes a kind of infrared transmitter control method, methods described be applied to have close to function and
In the terminal of structure light camera function, including:
Determine the current use state of the terminal;
According to the current use state of the terminal, the objective emission pattern of the first infrared transmitter is determined;
According to the objective emission pattern, the first infrared transmitter transmitting infrared light is controlled.
The infrared transmitter control method that the embodiment of the present application provides, it is determined that after the current use state of terminal, pass through
According to objective emission pattern corresponding with the use state that terminal is current, control infrared transmitter transmitting infrared light, profit is realized
The space-consuming for close to function and structure light camera function, reducing infrared transmitter, section are realized with same infrared transmitter
The about manufacturing cost of terminal, simplifies the structure of terminal, improves Consumer's Experience.
The application second aspect proposes a kind of terminal, including memory, processor and infrared transmitter;
The memory, for storing executable program code;
The infrared transmitter, for launching infrared light;
The processor is realized as described in relation to the first aspect by reading the executable program code stored in the memory
Infrared transmitter control method.
The terminal that the embodiment of the present application provides, by according to objective emission mould corresponding with the use state that terminal is current
Formula, control infrared transmitter transmitting infrared light, is realized and is taken the photograph using the realization of same infrared transmitter close to function and structure light
As function, the space-consuming of infrared transmitter is reduced, has saved the manufacturing cost of terminal, simplifies the structure of terminal, improved
Consumer's Experience.
The application third aspect proposes a kind of computer-readable recording medium, is stored thereon with computer program, the program
Infrared transmitter control method as described in relation to the first aspect is realized when being executed by processor.
The computer-readable recording medium that the embodiment of the present application provides, can be arranged on arbitrarily has close to function and structure
In the terminal of light camera function, by performing the infrared transmitter control method stored thereon, it is possible to achieve utilize same red
External transmitter is realized close to function and structure light camera function, is reduced the space-consuming of infrared transmitter, has been saved terminal
Manufacturing cost, the structure of terminal is simplified, improves Consumer's Experience.
The additional aspect of the present invention and advantage will be set forth in part in the description, and will partly become from the following description
Obtain substantially, or recognized by the practice of the present invention.
Brief description of the drawings
Of the invention above-mentioned and/or additional aspect and advantage will become from the following description of the accompanying drawings of embodiments
Substantially and it is readily appreciated that, wherein:
Fig. 1 is the flow chart of the infrared transmitter control method of the application one embodiment;
Fig. 2 is the flow chart of the infrared transmitter control method of the application another embodiment;
Fig. 3 is the structure chart of the terminal of the application one embodiment.
Embodiment
Embodiments of the invention are described below in detail, the example of the embodiment is shown in the drawings, wherein from beginning to end
Same or similar label represents same or similar element or the element with same or like function.Below with reference to attached
The embodiment of figure description is exemplary, it is intended to for explaining the present invention, and is not considered as limiting the invention.
Below with reference to the accompanying drawings the infrared transmitter control method, terminal and computer-readable storage of the embodiment of the present invention are described
Medium.
It is understood that with the fast development of network and electronic technology, the function of terminal is become stronger day by day, such as, eventually
End can have detection human body proximity or leave close to function, camera function, light filling function, payment function etc., while eventually
Gradually to miniaturization, this has resulted in the contradiction between terminal growing functional requirement and miniature requirement at end.
The embodiment of the present invention is to solve the above problems, propose a kind of by the structure light infrared transmitter of prior art and close
Function infrared transmitter merges into an infrared transmitter, realized using same infrared transmitter close to function so as to realizing and
The infrared transmitter control method of structure light camera function, the space-consuming of infrared transmitter is reduced, has saved the system of terminal
This is caused, the structure of terminal is simplified, improves Consumer's Experience.
The infrared transmitter control method of the embodiment of the present application is illustrated with reference to Fig. 1.
Fig. 1 is the flow chart of the infrared transmitter control method of the application one embodiment.
As shown in figure 1, this method is applied to have close in the terminal of function and structure light camera function, including:
Step 101, the current use state of terminal is determined.
Wherein, infrared transmitter control method provided in an embodiment of the present invention, can be configured in arbitrarily has close to work(
Performed in the terminal of energy and structure light camera function.Wherein, the type of terminal is a lot, can be selected according to using needs,
Such as:Mobile phone, computer etc..
Wherein, use state, can be that take pictures state, non-front camera of front camera is taken pictures state etc..
It should be noted that the state of taking pictures in the embodiment of the present invention, the camera for referring to terminal is in the state opened;It is non-
Take pictures state, the camera for referring to terminal is in the state closed.
Step 102, according to the current use state of terminal, the objective emission pattern of the first infrared transmitter is determined.
Wherein, emission mode, can the tranmitting frequency including the first infrared transmitter, lighting angle, the speckle number of transmitting
Amount, operating current and/or operating voltage etc..
Step 103, according to objective emission pattern, control the first infrared transmitter transmitting infrared light.
It is understood that structure light camera function and requirement close to function to the transmission power of infrared transmitter are not
Together.Structure light camera function requires that infrared transmitter launches infrared light with higher transmission power, for example requires infrared transmitter
Operating current when launching infrared light is larger or operating voltage is larger;And close to function, infrared transmitter is only needed with relatively low hair
Power emission infrared light is penetrated, such as, operating current during infrared transmitter transmitting infrared light is smaller or operating voltage is smaller.
Therefore, in embodiments of the present invention, can in order to realize structure light camera function and close to function using same infrared transmitter
To set the first infrared transmitter in the terminal, by controlling the first infrared transmitter infrared with different emission mode transmittings
Light, so as to realize different functions.Wherein, different emission modes corresponds to different transmission powers.
Specifically, due to terminal use state difference when, terminal needs the function realized different, such as in the state of taking pictures
When, terminal needs to realize structure light camera function;In non-exposal model, without realizing structure light camera function, only need to realize
Close to function.Therefore, can be according to the use state of terminal, it is determined that with which kind of emission mode transmitting infrared light, with not
Function corresponding to being realized under same use state.
During specific implementation, the use state that can pre-set terminal is corresponding with the emission mode of the first infrared transmitter
Relation, so as to which it is determined that after the current use state of terminal, the current use of terminal can be determined according to default corresponding relation
The objective emission pattern of first infrared transmitter corresponding to state, so as to according to objective emission pattern, control the first infrared emission
Device launches infrared light.
Wherein, the emission mode of terminal corresponding first infrared transmitter in different usage situations, can be according to difference
The function that terminal under use state needs to realize determines.
It should be noted that when the infrared light of the first infrared transmitter transmitting is speckle, due to the first infrared transmitter
Transmission power is relevant with the tranmitting frequency of the first infrared transmitter, the speckle count of transmitting, operating current, operating voltage, therefore,
Tranmitting frequency, speckle count, operating current and/or the operating voltage of transmitting that can be by the first infrared transmitter of determination, really
The objective emission pattern of fixed first infrared transmitter.That is, step 102 determines the objective emission pattern of the first infrared transmitter, can
With including:
Determine tranmitting frequency, speckle count, operating current and/or the operating voltage of transmitting of the first infrared transmitter.
For example the use state of terminal is that terminal needs to realize structure light camera function, and structure light is taken the photograph when taking pictures state
As function needs infrared transmitter then to be passed through with higher transmission power transmitting infrared light and be set the first infrared transmitter
Tranmitting frequency, speckle count, operating current and/or the operating voltage of transmitting, make the first infrared transmitter with higher transmitting work(
Rate launches infrared light.And the use state of terminal for it is non-take pictures state when, due to need to only realize close to function, and close to function only
Need infrared transmitter to launch infrared light with relatively low transmission power, then can pass through the transmitting of the first infrared transmitter of setting
Frequency, speckle count, operating current and/or the operating voltage of transmitting, make the first infrared transmitter be sent out with relatively low transmission power
Penetrate infrared light.
It should be noted that because terminal is close to function, what is generally detected is external object apart from terminal touch screen
Distance, therefore, the first infrared transmitter in the embodiment of the present invention, it can be arranged on below the touch-screen of terminal front side.
During specific implementation, can set the use state of terminal for front camera take pictures state when, corresponding transmitting mould
Formula is first mode, the use state of terminal for non-front camera take pictures state when, corresponding emission mode is second mode.
Corresponding, step 102 determines the objective emission pattern of the first infrared transmitter, including:
Taken pictures state if the current use state of terminal is front camera, it is determined that the first infrared transmitter is with the first mould
Formula launches infrared light.
Taken pictures state if the current use state of terminal is non-front camera, it is determined that the first infrared transmitter is with second
Mode Launch infrared light.
Wherein, first mode, it is the higher pattern of transmission power, second mode, is the relatively low pattern of transmission power.
Specifically, whether camera open command can be received according to terminal, determine that the current use state of terminal is
State of taking pictures or non-state of taking pictures.
Wherein, camera open command, can be the phonetic order of user, as user says " I will take pictures " to terminal, or
The instruction that person or user are triggered by touch control operations such as click, long-press or slips, is not restricted herein.
During specific implementation, if terminal receives camera open command, it can determine that the current use state of terminal is
Take pictures state, if not receiving camera open command, or receive camera out code, then can determine that terminal is current
Use state is non-state of taking pictures.
Further, the camera switching command that can be received according to terminal, it is determined whether taken pictures for front camera.
Specifically, it is determined that the current use state of terminal for front camera take pictures state when, then can control first
Infrared transmitter launches infrared light in the first pattern, to realize the structure light camera function of terminal;It is determined that terminal is current makes
With state be non-front camera take pictures state when, then the first infrared transmitter can be controlled to launch infrared light in a second mode,
With realize terminal close to function.
It should be noted that because the transmission power of first mode is higher, therefore before the current use state of terminal is
When putting camera exposal model, if the first infrared transmitter launches infrared light in the first pattern always, can cause power consumption compared with
Greatly.In embodiments of the present invention, in order to reduce power attenuation, it can set the first infrared transmitter successively in the first pattern with
Two modes alternate emission infrared light.That is, step 102 can include:
Taken pictures state if current use state is front camera, it is determined that first infrared transmitter is successively with the
One pattern and second mode alternate emission infrared light, wherein, first mode is different from second mode.
Wherein, first mode and the alternating frequency of second mode can be arranged as required to.
By the way that when the current use state of terminal takes pictures state for front camera, the first infrared transmitter of control is successively
Alternate emission infrared light in the first mode and a second mode, while ensureing that terminal can realize structure light camera function, again
Low power loss can be subtracted.
Further, in order to avoid the current use state of terminal be front camera take pictures state when, successively with the
One pattern and second mode alternate emission infrared light, in fact it could happen that at the moment of taking pictures, the first infrared transmitter is just with the second mould
Formula launch infrared light situation, so as to cause to take pictures moment structure light camera function can not normal use, in the embodiment of the present invention
In, front camera can be arranged on and taken pictures the moment, the first infrared transmitter of control launches infrared light in the first pattern, and preceding
Put camera to take pictures the front and rear of moment, still controlling the first infrared transmitter, alternate emission is red in the first mode and a second mode successively
Outer light.
Or in a kind of possible way of realization, the first infrared transmitter can be controlled when front camera is taken pictures
Carve, launch infrared light in the first pattern, before and after front camera takes pictures the moment, launch infrared light in a second mode, so as to
Subtract low power loss to greatest extent.
That is, it is determined that the first infrared transmitter successively in the first mode and a second mode after alternate emission infrared light, also
It can include:
When getting photographing instruction, the first transmitter is controlled to launch infrared light in the first pattern;
After image is got, first infrared transmitter is controlled to launch infrared light in a second mode.
Wherein, the transmission power of the second mode is less than the transmission power of first mode.
Infrared transmitter control method provided in an embodiment of the present invention, it is determined that after the current use state of terminal, pass through
According to objective emission pattern corresponding with the use state that terminal is current, control infrared transmitter transmitting infrared light, profit is realized
The space-consuming for close to function and structure light camera function, reducing infrared transmitter, section are realized with same infrared transmitter
The about manufacturing cost of terminal, simplifies the structure of terminal, improves Consumer's Experience.
By above-mentioned analysis, when the current use state of terminal takes pictures state for front camera, can pass through
The first infrared transmitter in the first pattern or successively alternate emission infrared light in the first mode and a second mode is controlled, so as to realize
Structure light camera function.In actual applications, the current use state of terminal be front camera take pictures state when, can also be same
Shi Shixian structure lights camera function and close to function.With reference to Fig. 2, the above situation is described in detail.
Fig. 2 is the flow chart of the infrared transmitter control method of another embodiment of the present invention.
As shown in Fig. 2 can also include proximity transducer in the terminal, the infrared transmitter control method includes:
Step 201, determine that the current use state of terminal is taken pictures state for front camera.
Step 202, according to the current use state of terminal, the objective emission pattern for determining the first infrared transmitter is first
Pattern.
Step 203, the first infrared transmitter of control launches infrared light in the first pattern.
Wherein, above-mentioned steps 201-203 specific implementation process and principle, it is referred to retouching in detail for above-described embodiment
State, do not repeat herein.
Step 204, the infrared luminous intensity obtained according to proximity transducer, determines the distance between active user and terminal.
It is understood that when user is taken pictures using front camera, the first infrared transmitter transmitting infrared light
Afterwards, a part of infrared light can reflex to proximity transducer by the touch-screen of terminal, and some infrared light can pass through terminal
Touch-screen reflexes to proximity transducer by user.The infrared light that the user that proximity transducer can be got according to it reflects
Intensity, determine the distance of user and terminal.
Specifically, the infrared luminous intensity of proximity transducer acquisition according to the use environment of terminal, can be pre-set, and use
The corresponding relation of the distance between family and terminal, can basis after the infrared light that user's reflection is got so as to proximity transducer
The infrared luminous intensity currently obtained, determines the distance between active user and terminal.
Step 205, according to distance, first mode is adjusted.
Specifically, transmission loss during due to infrared light emission to subject be present, and transmission loss and distance
It is directly proportional, in other words, when the distance between active user and terminal is nearer, the transmission loss very little of infrared light.Now, may be used
On the premise of the effect of structure light camera function is ensured, to pass through the operating voltage or work electricity of the first infrared transmitter of reduction
Stream, or reduce the speckle count of transmitting etc., the mode of the appropriate transmission power for reducing first mode, to reduce power attenuation.
Accordingly, when the distance between user and terminal farther out when, then can pass through increase the first infrared transmitter work
Make voltage or operating current, or speckle count of increase transmitting etc., the mode of the appropriate transmission power for increasing first mode, to protect
Demonstrate,prove the effect of structure light camera function.
In addition, the current use state of terminal for front camera take pictures state when, if the first infrared transmitter of control with
First mode and second mode alternate emission infrared light, proximity transducer can also be utilized, is determined between active user and terminal
Distance, and according to distance, first mode and/or second mode are adjusted.That is, step 202 and step 203 can be distinguished
Replace with:
According to the current use state of terminal, determine that the first infrared transmitter replaces in the first mode and a second mode successively
Launch infrared light;
Control the first infrared transmitter alternate emission infrared light in the first mode and a second mode successively.
It should be noted that in a kind of possible way of realization, the second infrared transmitter can also be set in the terminal,
Make terminal that there is light filling function.
Specifically, the ambient light intensity that can be currently located according to the current use state of terminal and terminal, it is determined whether
Start the second infrared transmitter, to realize the light filling function of terminal.
It is that front camera is taken pictures state and the environment that is currently located in the current use state of terminal during specific implementation
When luminous intensity is less than threshold value, due to needing to carry out light filling, it can now start the second infrared transmitter;In other situations, then
The second infrared transmitter is not started.
That is, infrared transmitter control method provided in an embodiment of the present invention, can also include:
It is that front camera takes pictures state and the ambient light intensity that is currently located is less than threshold in the current use state of terminal
During value, start the second infrared transmitter.
Wherein, threshold value can be arranged as required to.
It should be noted that because transmission loss in communication process be present in light, and transmission loss to apart from directly proportional,
In other words, the distance between active user and terminal farther out when, the transmission loss of light is larger.Therefore, when terminal and quilt
When taking the photograph the distance between object farther out, the operating voltage or operating current of the second infrared transmitter of increase, or increase can be passed through
The mode of the suitably transmission power of increase first mode such as speckle count of transmitting, to ensure light filling effect.
Further, when the distance between terminal and subject is nearer, because the infrared ray of light filling is low-angle
Area source, and it is closer to the distance when, low-angle area source may can only cover the sub-fraction of object, and can not realize larger
The light filling of scope, therefore in order to ensure light filling effect, the lighting angle of the second infrared transmitter can be increased.
That is, proximity transducer can also be included in the terminal, after starting the second infrared transmitter, can also be included:
The infrared luminous intensity obtained according to the proximity transducer, determines the distance between active user and the terminal;
According to the distance, the emission mode of adjustment second infrared transmitter.
Specifically, can be as needed, be positioned proximate to sensor only obtain it is anti-by user after the transmitting of the first infrared transmitter
The infrared light penetrated, or the infrared light reflected after the transmitting of the second infrared transmitter by user is only obtained, or acquisition first is infrared simultaneously
The infrared light reflected after transmitter and the transmitting of the second infrared transmitter by user.And according to the use environment of terminal, pre-set
When proximity transducer obtains first, second or obtains the infrared light of the first and second infrared transmitters transmitting simultaneously, infrared light intensity
The corresponding relation of the distance between degree, user and terminal, so that after the infrared light that proximity transducer gets user's reflection,
The distance between active user and terminal can be determined according to the infrared luminous intensity currently obtained, then according to distance, adjustment the
The transmission power of two infrared transmitters.
Infrared transmitter control method provided in an embodiment of the present invention, it is determined that the current use state of terminal is taken the photograph to be preposition
As head take pictures state when, by launching infrared light, then basis according to first mode corresponding with the use state that terminal is current
The infrared luminous intensity that proximity transducer obtains, determines the distance between active user and terminal, so that according to distance, to the first mould
Formula is adjusted.Realize and realized using same infrared transmitter close to function and structure light camera function, reduced infrared
The space-consuming of transmitter, the manufacturing cost of terminal is saved, simplified the structure of terminal, improve Consumer's Experience.
Further aspect of the present invention embodiment also proposes a kind of terminal.
Fig. 3 is the structure chart for the terminal that the application one embodiment provides.
Wherein, the type of terminal is a lot, can be selected according to using needs, such as:Mobile phone, computer etc..Fig. 3 is with end
Hold and illustrated for mobile phone.
As shown in figure 3, the terminal includes:Processor 31, memory 32 and infrared transmitter 33.
Wherein, memory 32 is used to store executable program code;Infrared transmitter 33 is used to launch infrared light;Processor
31 by reading the executable program code stored in memory 32, to realize such as the infrared transmitter control in previous embodiment
Method.
Specifically, infrared transmitter can be open-celled structure or non-open-celled structure, it is not limited herein.
, accordingly, in terminal can be with when infrared transmitter 33 is open-celled structure in a kind of possible way of realization
Proximity transducer including open-celled structure, now, the edge of infrared transmitter 33 and the center spacing of proximity transducer are more than 2 millis
Rice.
Wherein, the open-celled structure of infrared transmitter 33, which refers to apply on the touch-screen on the top of infrared transmitter 33, can allow infrared ray
By the infrared ray ink for blocking visible light and ultraviolet, receiver open-celled structure refers to the filter in proximity transducer
Upper painting can allow infrared ray to pass through the infrared ray ink of blocking visible light and ultraviolet.
It is understood that the infrared light that infrared transmitter 33 is launched, a part can be reflected by the touch-screen of terminal,
Sensor acquisition is approached, some can pass through the touch-screen of terminal, when there is external object close to touch-screen, through tactile
Proximity transducer can be reflexed to by external object by touching a part of infrared light of screen.Proximity transducer is mainly by detecting extraneous reflection
The infrared light returned, it may be determined that the distance of external object and terminal.
Because infrared transmitter 33 and proximity transducer are open-celled structure, therefore the infrared light that infrared transmitter 33 is launched is only
There is very small percentage to be reflected by the touch-screen of terminal, the touch-screen of terminal can be largely passed through, so as to which proximity transducer leads to
The infrared light that detection is reflected by external object is crossed, can accurately determine the distance of external object and terminal.Now, infrared hair
Emitter 33 and the distance of proximity transducer, little to the influence close to sensor instrument distance, therefore, infrared transmitter 33 passes with close
The distance of sensor, it can be arranged as required to.
In embodiments of the present invention, the in small distance such as infrared of infrared transmitter 33 and proximity transducer can be set
The edge of transmitter 33 and the center spacing of proximity transducer are more than 2 millimeters, to reduce infrared transmitter 33 and proximity transducer
Space-consuming.
In alternatively possible way of realization, when infrared transmitter 33 is non-open-celled structure, accordingly, in terminal also
The proximity transducer of non-open-celled structure can be included.
The edge of infrared transmitter 33 and the center spacing of proximity transducer are more than 7 millimeters.
Wherein, 33 non-open-celled structure of infrared transmitter refers to that painting can block red on the touch-screen on the top of infrared transmitter 33
The white ink of outside line or other ink, the non-open-celled structure of receiver refer to that painting can block red on the filter of proximity transducer
The white ink of outside line or other ink.
Because infrared transmitter 33 and proximity transducer are non-open-celled structure, therefore the infrared light that infrared transmitter 33 is launched
Major part can be reflected by the touch-screen of terminal, and only fraction can pass through the touch-screen of terminal, i.e. proximity transducer obtains red
Outer light, most of is the infrared light reflected by the touch-screen of terminal, so as to which proximity transducer can not be by detecting by external object
The infrared light reflected, the accurate distance for determining external object and terminal.
In embodiments of the present invention, in order to improve proximity transducer determine external object and terminal apart from when it is accurate
Property, the distance of infrared transmitter 33 and proximity transducer can be set slightly larger, for example the edge of infrared transmitter 33 passes with close
The center spacing of sensor is more than 7 millimeters, so that the infrared light by terminal touch screen reflection that proximity transducer receives is less,
To reduce the infrared light of the touch-screen of terminal reflection to the influence close to sensor instrument distance.
It should be noted that proximity transducer provided in an embodiment of the present invention, can be that the infrared proximity being separately provided passes
The two-in-one sensor that sensor or infrared proximity transducer are made jointly with photosensitive sensors, is not restricted herein.
In addition, the end in the embodiment of the present invention is also applied in previous embodiment to the explanation of infrared transmitter control method
End, here is omitted.
The terminal that the embodiment of the present application provides, by according to objective emission mould corresponding with the use state that terminal is current
Formula, control infrared transmitter transmitting infrared light, is realized and is taken the photograph using the realization of same infrared transmitter close to function and structure light
As function, the space-consuming of infrared transmitter is reduced, has saved the manufacturing cost of terminal, simplifies the structure of terminal, improved
Consumer's Experience.
The embodiment of the present application also proposes a kind of computer-readable recording medium, is stored thereon with computer program, when the journey
Realized when sequence is executed by processor such as the infrared transmitter control method in previous embodiment.
The computer-readable recording medium that the embodiment of the present application provides, can be arranged on arbitrarily has close to function and structure
In the terminal of light camera function, by performing the infrared transmitter control method stored thereon, it is possible to achieve utilize same red
External transmitter is realized close to function and structure light camera function, is reduced the space-consuming of infrared transmitter, has been saved terminal
Manufacturing cost, the structure of terminal is simplified, improves Consumer's Experience.
The embodiment of the present application also proposes a kind of computer program product, when the instruction in the computer program product by
When managing device execution, perform such as the infrared transmitter control method in previous embodiment.
The computer program product that the embodiment of the present application provides, it can be arranged on arbitrarily to have and be taken the photograph close to function and structure light
As function terminal in, pass through the program for performing corresponding infrared transmitter control method, it is possible to achieve utilize same infrared hair
Emitter is realized close to function and structure light camera function, is reduced the space-consuming of infrared transmitter, has been saved the manufacture of terminal
Cost, the structure of terminal is simplified, improves Consumer's Experience.
It should be noted that herein, such as first and second or the like relational terms are used merely to a reality
Body or operation make a distinction with another entity or operation, and not necessarily require or imply and deposited between these entities or operation
In any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant are intended to
Nonexcludability includes, so that process, method, article or equipment including a series of elements not only will including those
Element, but also the other element including being not expressly set out, or it is this process, method, article or equipment also to include
Intrinsic key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that
Other identical element also be present in process, method, article or equipment including the key element.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use
In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for
Instruction execution system, device or equipment (such as computer based system including the system of processor or other can be held from instruction
The system of row system, device or equipment instruction fetch and execute instruction) use, or combine these instruction execution systems, device or set
It is standby and use.For the purpose of this specification, " computer-readable medium " can any can be included, store, communicate, propagate or pass
Defeated program is for instruction execution system, device or equipment or the dress used with reference to these instruction execution systems, device or equipment
Put.The more specifically example (non-exhaustive list) of computer-readable medium includes following:Electricity with one or more wiring
Connecting portion (electronic installation), portable computer diskette box (magnetic device), random access memory (RAM), read-only storage
(ROM), erasable edit read-only storage (EPROM or flash memory), fiber device, and portable optic disk is read-only deposits
Reservoir (CDROM).In addition, computer-readable medium, which can even is that, to print the paper of described program thereon or other are suitable
Medium, because can then enter edlin, interpretation or if necessary with it for example by carrying out optical scanner to paper or other media
His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each several part of the present invention can be realized with hardware, software, firmware or combinations thereof.Above-mentioned
In embodiment, software that multiple steps or method can be performed in memory and by suitable instruction execution system with storage
Or firmware is realized.If, and in another embodiment, can be with well known in the art for example, realized with hardware
Any one of row technology or their combination are realized:With the logic gates for realizing logic function to data-signal
Discrete logic, have suitable combinational logic gate circuit application specific integrated circuit, programmable gate array (PGA), scene
Programmable gate array (FPGA) etc..
It should be noted that in the description of this specification, reference term " one embodiment ", " some embodiments ", " show
The description of example ", " specific example " or " some examples " etc. mean to combine the specific features of the embodiment or example description, structure,
Material or feature are contained at least one embodiment or example of the present invention.In this manual, above-mentioned term is shown
The statement of meaning property is necessarily directed to identical embodiment or example.Moreover, specific features, structure, material or the spy of description
Point can combine in an appropriate manner in any one or more embodiments or example.In addition, in the case of not conflicting,
Those skilled in the art can be by the different embodiments or example described in this specification and different embodiments or example
Feature is combined and combined.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means specific features, structure, material or the spy for combining the embodiment or example description
Point is contained at least one embodiment or example of the present invention.In this manual, to the schematic representation of above-mentioned term not
Identical embodiment or example must be directed to.Moreover, specific features, structure, material or the feature of description can be with office
Combined in an appropriate manner in one or more embodiments or example.In addition, in the case of not conflicting, the skill of this area
Art personnel can be tied the different embodiments or example and the feature of different embodiments or example described in this specification
Close and combine.
Although embodiments of the invention have been shown and described above, it is to be understood that above-described embodiment is example
Property, it is impossible to limitation of the present invention is interpreted as, one of ordinary skill in the art within the scope of the invention can be to above-mentioned
Embodiment is changed, changed, replacing and modification.
Claims (12)
1. a kind of infrared transmitter control method, applied to in the terminal close to function and structure light camera function, it is special
Sign is, including:
Determine the current use state of the terminal;
According to the current use state of the terminal, the objective emission pattern of the first infrared transmitter is determined;
According to the objective emission pattern, the first infrared transmitter transmitting infrared light is controlled.
2. the method as described in claim 1, it is characterised in that the objective emission mould for determining first infrared transmitter
Formula, including:
Determine tranmitting frequency, speckle count, operating current and/or the operating voltage of transmitting of first infrared transmitter.
3. the method as described in claim 1, it is characterised in that the objective emission mould for determining first infrared transmitter
Formula, including:
Taken pictures state if the current use state of the terminal is front camera, it is determined that first infrared transmitter is with the
One Mode Launch infrared light;
Or
Taken pictures state if the current use state of the terminal is front camera, it is determined that first infrared transmitter is successively
Alternate emission infrared light in the first mode and a second mode, wherein, first mode is different from second mode.
4. method as claimed in claim 3, it is characterised in that described to determine first infrared transmitter successively with the first mould
After formula and second mode alternate emission infrared light, in addition to:
When getting photographing instruction, the first transmitter is controlled to launch infrared light in the first pattern;
After image is got, first infrared transmitter is controlled to launch infrared light in a second mode, wherein, second mould
The transmission power of formula is less than the transmission power of the first mode.
5. method as claimed in claim 3, it is characterised in that the terminal includes proximity transducer;
After control the first infrared transmitter transmitting infrared light, in addition to:
The infrared luminous intensity obtained according to the proximity transducer, determines the distance between active user and the terminal;
According to the distance, the first mode is adjusted.
6. the method as described in claim 1-5 is any, it is characterised in that the target for determining first infrared transmitter
Emission mode, including:
Taken pictures state if the current use state of the terminal is non-front camera, it is determined that first infrared transmitter with
Second mode launches infrared light.
7. the method as described in claim 1-5 is any, it is characterised in that the terminal also has infrared light filling function, described
Method also includes:
It is determined that the current use state of the terminal for front camera take pictures state and the ambient light intensity that is currently located it is small
When threshold value, start the second infrared transmitter.
8. method as claimed in claim 7, it is characterised in that the terminal includes proximity transducer;
After the second infrared transmitter of the startup, in addition to:
The infrared luminous intensity obtained according to the proximity transducer, determines the distance between active user and the terminal;
According to the distance, the emission mode of adjustment second infrared transmitter.
A kind of 9. terminal, it is characterised in that including:Memory, processor and infrared transmitter;
The memory, for storing executable program code;
The infrared transmitter, for launching infrared light;
The processor is realized as claim 1-8 is any by reading the executable program code stored in the memory
Described infrared transmitter control method.
10. terminal as claimed in claim 9, it is characterised in that the infrared transmitter is open-celled structure, and the terminal is also wrapped
Include the proximity transducer of open-celled structure;
The center spacing at the edge of the infrared transmitter and the proximity transducer is more than 2 millimeters.
11. terminal as claimed in claim 9, it is characterised in that the infrared transmitter is non-open-celled structure, and the terminal is also
Include the proximity transducer of non-open-celled structure;
The center spacing at the edge of the infrared transmitter and the proximity transducer is more than 7 millimeters.
12. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that the program is by processor
The infrared transmitter control method as described in any in claim 1-8 is realized during execution.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711019885.XA CN107896274B (en) | 2017-10-27 | 2017-10-27 | Infrared emitter control method, terminal and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711019885.XA CN107896274B (en) | 2017-10-27 | 2017-10-27 | Infrared emitter control method, terminal and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107896274A true CN107896274A (en) | 2018-04-10 |
CN107896274B CN107896274B (en) | 2020-08-21 |
Family
ID=61802882
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711019885.XA Active CN107896274B (en) | 2017-10-27 | 2017-10-27 | Infrared emitter control method, terminal and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107896274B (en) |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108600537A (en) * | 2018-04-23 | 2018-09-28 | Oppo广东移动通信有限公司 | Proximity sensor, human body shadowing method, electronic device and readable storage medium storing program for executing |
CN108918096A (en) * | 2018-06-21 | 2018-11-30 | 维沃移动通信有限公司 | A kind of detection method of infrared transmitter, mobile terminal |
CN108989494A (en) * | 2018-06-27 | 2018-12-11 | 北京小米移动软件有限公司 | A kind of electronic equipment |
CN109451107A (en) * | 2018-11-16 | 2019-03-08 | Oppo广东移动通信有限公司 | Electronic device |
CN110266394A (en) * | 2019-06-10 | 2019-09-20 | Oppo广东移动通信有限公司 | Adjusting method, terminal and computer readable storage medium |
CN112019660A (en) * | 2019-05-31 | 2020-12-01 | Oppo广东移动通信有限公司 | Control method of electronic device and electronic device |
CN112019674A (en) * | 2019-05-31 | 2020-12-01 | Oppo广东移动通信有限公司 | Control method of electronic device and electronic device |
WO2020238506A1 (en) * | 2019-05-31 | 2020-12-03 | Oppo广东移动通信有限公司 | Control method for electronic apparatus, and electronic apparatus |
WO2020259385A1 (en) * | 2019-06-24 | 2020-12-30 | Oppo广东移动通信有限公司 | Image processing method and device, and storage medium |
CN112164213A (en) * | 2020-09-04 | 2021-01-01 | Oppo(重庆)智能科技有限公司 | Remote control method, remote control device, storage medium and terminal |
CN112399012A (en) * | 2020-11-17 | 2021-02-23 | 惠州Tcl移动通信有限公司 | Proximity sensor setting method, device and storage medium |
CN113765590A (en) * | 2021-09-07 | 2021-12-07 | 维沃移动通信有限公司 | Infrared emission circuit, infrared emission structure, infrared emission control method, infrared emission control device, and infrared emission control medium |
CN117914400A (en) * | 2024-03-20 | 2024-04-19 | 南京国亮光电科技有限公司 | Control method and device for infrared emission tube |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103514437A (en) * | 2012-12-24 | 2014-01-15 | Tcl集团股份有限公司 | Three-dimensional hand gesture recognition device and three-dimensional hand gesture recognition method |
US20140063583A1 (en) * | 2012-09-06 | 2014-03-06 | Samsung Electronics Co., Ltd. | Infrared transmission large-area shutter |
CN103645595A (en) * | 2013-11-05 | 2014-03-19 | 广东明创软件科技有限公司 | Method for shooting light supplement based on mobile terminal and mobile terminal thereof |
US20150009295A1 (en) * | 2013-07-03 | 2015-01-08 | Electronics And Telecommunications Research Institute | Three-dimensional image acquisition apparatus and image processing method using the same |
CN104717348A (en) * | 2013-12-13 | 2015-06-17 | 中兴通讯股份有限公司 | Method, device and terminal for liquid crystal display backlight management |
CN106161894A (en) * | 2016-07-25 | 2016-11-23 | 维沃移动通信有限公司 | A kind of mobile terminal and preparation method thereof |
CN106303277A (en) * | 2016-08-22 | 2017-01-04 | 深圳市金立通信设备有限公司 | The parameter control method of light compensating lamp, terminal and self-shooting bar |
CN106550072A (en) * | 2016-12-06 | 2017-03-29 | 广东欧珀移动通信有限公司 | Cover plate assembly and terminal |
-
2017
- 2017-10-27 CN CN201711019885.XA patent/CN107896274B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140063583A1 (en) * | 2012-09-06 | 2014-03-06 | Samsung Electronics Co., Ltd. | Infrared transmission large-area shutter |
CN103514437A (en) * | 2012-12-24 | 2014-01-15 | Tcl集团股份有限公司 | Three-dimensional hand gesture recognition device and three-dimensional hand gesture recognition method |
US20150009295A1 (en) * | 2013-07-03 | 2015-01-08 | Electronics And Telecommunications Research Institute | Three-dimensional image acquisition apparatus and image processing method using the same |
CN103645595A (en) * | 2013-11-05 | 2014-03-19 | 广东明创软件科技有限公司 | Method for shooting light supplement based on mobile terminal and mobile terminal thereof |
CN104717348A (en) * | 2013-12-13 | 2015-06-17 | 中兴通讯股份有限公司 | Method, device and terminal for liquid crystal display backlight management |
CN106161894A (en) * | 2016-07-25 | 2016-11-23 | 维沃移动通信有限公司 | A kind of mobile terminal and preparation method thereof |
CN106303277A (en) * | 2016-08-22 | 2017-01-04 | 深圳市金立通信设备有限公司 | The parameter control method of light compensating lamp, terminal and self-shooting bar |
CN106550072A (en) * | 2016-12-06 | 2017-03-29 | 广东欧珀移动通信有限公司 | Cover plate assembly and terminal |
Cited By (22)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108600537A (en) * | 2018-04-23 | 2018-09-28 | Oppo广东移动通信有限公司 | Proximity sensor, human body shadowing method, electronic device and readable storage medium storing program for executing |
CN108918096A (en) * | 2018-06-21 | 2018-11-30 | 维沃移动通信有限公司 | A kind of detection method of infrared transmitter, mobile terminal |
CN108918096B (en) * | 2018-06-21 | 2019-11-29 | 维沃移动通信有限公司 | A kind of detection method of infrared transmitter, mobile terminal |
CN108989494A (en) * | 2018-06-27 | 2018-12-11 | 北京小米移动软件有限公司 | A kind of electronic equipment |
CN109451107B (en) * | 2018-11-16 | 2021-09-03 | Oppo广东移动通信有限公司 | Electronic device |
CN109451107A (en) * | 2018-11-16 | 2019-03-08 | Oppo广东移动通信有限公司 | Electronic device |
CN112019674B (en) * | 2019-05-31 | 2021-10-15 | Oppo广东移动通信有限公司 | Control method of electronic device and electronic device |
EP3975528A4 (en) * | 2019-05-31 | 2022-06-29 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | Control method of electronic device and electronic device |
WO2020238506A1 (en) * | 2019-05-31 | 2020-12-03 | Oppo广东移动通信有限公司 | Control method for electronic apparatus, and electronic apparatus |
WO2020238491A1 (en) * | 2019-05-31 | 2020-12-03 | Oppo广东移动通信有限公司 | Control method of electronic device and electronic device |
CN112019674A (en) * | 2019-05-31 | 2020-12-01 | Oppo广东移动通信有限公司 | Control method of electronic device and electronic device |
US11947045B2 (en) | 2019-05-31 | 2024-04-02 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | Controlling method for electronic device, and electronic device |
US11838434B2 (en) | 2019-05-31 | 2023-12-05 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | Controlling method for electronic device and electronic device |
CN112019660B (en) * | 2019-05-31 | 2021-07-30 | Oppo广东移动通信有限公司 | Control method of electronic device and electronic device |
CN112019660A (en) * | 2019-05-31 | 2020-12-01 | Oppo广东移动通信有限公司 | Control method of electronic device and electronic device |
CN110266394A (en) * | 2019-06-10 | 2019-09-20 | Oppo广东移动通信有限公司 | Adjusting method, terminal and computer readable storage medium |
WO2020259385A1 (en) * | 2019-06-24 | 2020-12-30 | Oppo广东移动通信有限公司 | Image processing method and device, and storage medium |
CN112164213A (en) * | 2020-09-04 | 2021-01-01 | Oppo(重庆)智能科技有限公司 | Remote control method, remote control device, storage medium and terminal |
CN112399012B (en) * | 2020-11-17 | 2022-03-25 | 惠州Tcl移动通信有限公司 | Proximity sensor setting method, device and storage medium |
CN112399012A (en) * | 2020-11-17 | 2021-02-23 | 惠州Tcl移动通信有限公司 | Proximity sensor setting method, device and storage medium |
CN113765590A (en) * | 2021-09-07 | 2021-12-07 | 维沃移动通信有限公司 | Infrared emission circuit, infrared emission structure, infrared emission control method, infrared emission control device, and infrared emission control medium |
CN117914400A (en) * | 2024-03-20 | 2024-04-19 | 南京国亮光电科技有限公司 | Control method and device for infrared emission tube |
Also Published As
Publication number | Publication date |
---|---|
CN107896274B (en) | 2020-08-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107896274A (en) | Infrared transmitter control method, terminal and computer-readable recording medium | |
CN107862853A (en) | Infrared transmitter control method, terminal and computer-readable recording medium | |
CN105078409B (en) | Approaches to IM and electronic device | |
EP3693837A1 (en) | Method and apparatus for processing multiple inputs | |
CN108881691A (en) | Control method, microprocessor, computer readable storage medium and computer equipment | |
CN110673783B (en) | Touch control method and electronic equipment | |
CN109656317B (en) | Apparatus having distance sensing function and distance sensing method | |
CN108241434A (en) | Man-machine interaction method, device, medium and mobile terminal based on depth of view information | |
CN110211549A (en) | A kind of screen brightness regulation method, device, terminal and storage medium | |
KR102206877B1 (en) | Method and apparatus for displaying biometric information | |
CN108028891A (en) | Electronic equipment and photographic means | |
CN106506968B (en) | Control method, control device, electronic device | |
CN109788174A (en) | A kind of light compensation method and terminal | |
CN108881645B (en) | Screen control method and device for mobile phone call | |
CN107480664A (en) | Light supplement control method, device and terminal device | |
CN109474789A (en) | The field angle method of adjustment and mobile terminal of light compensating lamp | |
CN109151428A (en) | automatic white balance processing method, device and computer storage medium | |
CN108111776A (en) | Self-timer light compensation method, device, mobile terminal and computer readable storage medium | |
CN110007981A (en) | Start method, apparatus, electronic equipment and the medium of application program | |
CN109120853A (en) | A kind of long exposure image image pickup method and terminal | |
CN105933689A (en) | Image processing method and electronic device supporting the same | |
CN105869552B (en) | A kind of detection method of display screen, detection device and terminal | |
CN109240541A (en) | The screen false-touch prevention method, apparatus and electronic equipment of electronic equipment | |
CN115914460A (en) | Display screen control method and electronic equipment | |
CN112312410B (en) | Deployment method and device of wireless access point |
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 | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |