CN107862853A - Infrared transmitter control method, terminal and computer-readable recording medium - Google Patents

Infrared transmitter control method, terminal and computer-readable recording medium Download PDF

Info

Publication number
CN107862853A
CN107862853A CN201711025736.4A CN201711025736A CN107862853A CN 107862853 A CN107862853 A CN 107862853A CN 201711025736 A CN201711025736 A CN 201711025736A CN 107862853 A CN107862853 A CN 107862853A
Authority
CN
China
Prior art keywords
terminal
infrared transmitter
infrared
mode
transmitter
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
Application number
CN201711025736.4A
Other languages
Chinese (zh)
Other versions
CN107862853B (en
Inventor
吴安平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201711025736.4A priority Critical patent/CN107862853B/en
Publication of CN107862853A publication Critical patent/CN107862853A/en
Application granted granted Critical
Publication of CN107862853B publication Critical patent/CN107862853B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C23/00Non-electrical signal transmission systems, e.g. optical systems
    • G08C23/04Non-electrical signal transmission systems, e.g. optical systems using light waves, e.g. infrared

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 function and the terminal of infrared light filling function, including:Determine the current use state of the terminal and/or the luminous intensity of place environment;According to the current use state of the terminal and/or the luminous intensity of place environment, 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 infrared light filling 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

Infrared transmitter control method, terminal and computer-readable recording medium
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 infrared light filling function, the space-consuming of infrared transmitter is reduced, the manufacturing cost of terminal has been saved, has 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 infrared light filling function, including:
Determine the current use state of the terminal and/or the luminous intensity of place environment;
According to the current use state of the terminal and/or the luminous intensity of place environment, the first infrared transmitter is determined Objective emission pattern;
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 the current use state of terminal and/or institute After the luminous intensity of environment, by being sent out according to target corresponding with use state/or the luminous intensity of place environment that terminal is current Emission mode, control infrared transmitter transmitting infrared light, is realized and is realized using same infrared transmitter close to function and infrared Light filling function, the space-consuming of infrared transmitter is reduced, saved the manufacturing cost of terminal, simplified the structure of terminal, change It has been apt to 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, pass through the light according to the use state current with terminal and/or place environment Objective emission pattern corresponding to intensity, control infrared transmitter transmitting infrared light, is realized real using same infrared transmitter Now close to function and infrared light filling 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 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 any has close to function and infrared In the terminal of light filling function, by performing the infrared transmitter control method stored thereon, it is possible to achieve utilize same infrared Transmitter is realized close to function and infrared light filling 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.
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 infrared light compensating lamp of prior art and red close to function External transmitter merges into an infrared transmitter, is realized so as to realize using same infrared transmitter close to function and infrared benefit The infrared transmitter control method of light function, the space-consuming of infrared transmitter is reduced, saved the manufacturing cost of terminal, letter Change the structure of terminal, improve 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 function and the terminal of infrared light filling function, including:
Step 101, the current use state of terminal and/or the luminous intensity of place environment are 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 infrared light filling function.Wherein, the type of terminal is a lot, can be selected according to using needs, example 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 and/or the luminous intensity of place environment, the first infrared emission is determined The objective emission pattern of device.
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 infrared light filling function is different with the requirement close to function to the transmission power of infrared transmitter. Infrared light filling function requires that infrared transmitter launches infrared light with larger lighting angle;And close to function, only need infrared emission Device launches infrared light with less lighting angle.Therefore, in embodiments of the present invention, for the same infrared emission of utilization Device realizes infrared light filling function and close to function, can set the first infrared transmitter in the terminal, infrared by control first Transmitter launches infrared light with different emission modes, so as to realize different functions.Wherein, different emission modes is corresponding not Same lighting angle.
Specifically, due to terminal use state and/or place environment luminous intensity difference when, terminal needs the work(realized Can be different, for example when the luminous intensity of environment where the state of taking pictures and terminal is smaller, terminal needs to realize infrared light filling function; When the luminous intensity of environment where exposal model and terminal is larger, or during non-exposal model, without realizing infrared light filling function, It need to only realize close to function.Therefore, can according to the use state of terminal and/or the luminous intensity of place environment, it is determined that with Which kind of emission mode transmitting infrared light, with function corresponding to the realization under different use states.
During specific implementation, the use state of terminal and/or the luminous intensity of place environment and first infrared can be pre-set The corresponding relation of the emission mode of transmitter, so as to it is determined that the current use state of terminal and/or the luminous intensity of place environment Afterwards, can be determined according to default corresponding relation corresponding to the current use state of terminal and/or the luminous intensity of place environment The objective emission pattern of one infrared transmitter, so as to according to objective emission pattern, control the first infrared transmitter transmitting infrared light.
Wherein, terminal is in different usage situations and/or during the luminous intensity difference of place environment, corresponding first infrared hair The emission mode of emitter, can be according under different use states and/or during the luminous intensity difference of place environment, and terminal needs to realize Function determine.
Such as luminous intensity that the use state of terminal is the state of taking pictures and place environment it is smaller when, terminal needs to realize red Outer light filling function, and infrared light filling function needs infrared transmitter to launch infrared light with larger lighting angle, then can set Corresponding emission mode is that infrared transmitter launches infrared light with larger lighting angle.And the use state of terminal is shape of taking pictures State and the luminous intensity of place environment is larger or the use state of terminal for it is non-take pictures state when, due to need to only realize close to function, Emission mode corresponding to can then setting is that the first infrared transmitter launches infrared light with less lighting angle.
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, the use state of terminal can be set to be taken pictures state and local environment light intensity for front camera When degree is less than threshold value, corresponding emission mode is first mode;The use state of terminal is taken pictures state and institute for front camera When place's ambient light intensity is more than threshold value, corresponding emission mode is second mode;The use state of terminal is non-front camera During state of taking pictures, corresponding emission mode is second mode.Corresponding, step 102 determines the target hair of the first infrared transmitter Emission mode, including:
State is taken pictures if the current use state of terminal is front camera and local environment luminous intensity is less than threshold value, Determine that the first infrared transmitter launches infrared light in the first pattern;
Or if the current use state of terminal takes pictures state for front camera and local environment luminous intensity is more than threshold Value, it is determined that the first infrared transmitter lights in a second mode;
Or if the current use state of terminal is taken pictures state for non-front camera, it is determined that the first infrared transmitter Light in a second mode.
Wherein, first mode, it is the larger pattern of lighting angle, second mode, is the less pattern of lighting angle.
Threshold value, it can be arranged as required to.
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 is taken pictures state and local environment luminous intensity for front camera During less than threshold value, due to needing to carry out light filling, then the first infrared transmitter can be controlled to launch infrared light in the first pattern, with reality The infrared light filling function of existing terminal;It is determined that the current use state of terminal is taken pictures state and local environment for front camera When luminous intensity is more than threshold value, or the current use state of terminal for non-front camera take pictures state when, due to that need not be mended Light, 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 lighting angle of first mode is larger, it is higher so as to the luminous power of first mode, because This when the current use state of terminal is that front camera exposal model and local environment luminous intensity are less than threshold value, if first Infrared transmitter launches infrared light in the first pattern always, and power consumption can be caused larger.In embodiments of the present invention, in order to subtract Small-power is lost, and can set the first infrared transmitter alternate emission infrared light in the first mode and a second mode successively.That is, walk Rapid 102 can include:
State is taken pictures if the current use state of terminal is front camera and local environment luminous intensity is less than threshold value, The first infrared transmitter alternate emission infrared light in the first mode and a second mode successively is determined, wherein, first mode and second The lighting angle of pattern is different.
Wherein, first mode and the alternating frequency of second mode can be arranged as required to.
By being that front camera takes pictures state and local environment luminous intensity is less than threshold value in the current use state of terminal When, the first infrared transmitter of control alternate emission infrared light in the first mode and a second mode successively, ensureing that terminal can be real While existing infrared light filling function, low power loss can be subtracted again.
Further, in order to avoid being that front camera is taken pictures state and local environment in the current use state of terminal When luminous intensity is less than threshold value, alternate emission infrared light in the first mode and a second mode successively, in fact it could happen that at the moment of taking pictures, One infrared transmitter launches the situation of infrared light in a second mode just, so as to the effect for the moment infrared light filling function that causes to take pictures It is poor, in embodiments of the present invention, front camera can be arranged on and taken pictures the moment, the first infrared transmitter of control is with the first mould Formula launches infrared light, and before and after front camera takes pictures the moment, still controls the first infrared transmitter successively in the first pattern With second mode alternate emission infrared 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, control first transmitter lights in the first pattern;
After image is got, control first transmitter lights in a second mode.
Wherein, the lighting angle of second mode is less than the lighting angle of first mode.
Infrared transmitter control method provided in an embodiment of the present invention, it is determined that the current use state of terminal and/or institute After the luminous intensity of environment, pass through basis target corresponding with the luminous intensity of use state and/or place environment that terminal is current Emission mode, control infrared transmitter transmitting infrared light, is realized and is realized using same infrared transmitter close to function and red Outer light filling function, the space-consuming of infrared transmitter is reduced, has saved the manufacturing cost of terminal, simplify the structure of terminal, Improve Consumer's Experience.
It is that front camera is taken pictures state and local environment in the current use state of terminal by above-mentioned analysis When luminous intensity is less than threshold value, can by control the first infrared transmitter in the first pattern or successively in the first pattern with the second mould Formula alternate emission infrared light, so as to realize infrared light filling function.In actual applications, the current use state of terminal is taken the photograph to be preposition As head takes pictures state and when local environment luminous intensity is less than threshold value, infrared light filling function can also be realized simultaneously 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 the current use state of terminal for front camera take pictures state and local environment luminous intensity it is small In threshold value.
Step 202, according to the current use state of terminal and the luminous intensity of place environment, the first infrared transmitter is determined Objective emission pattern is first mode.
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, because light has a transmission loss in communication process, and transmission loss is to apart from directly proportional, that is to say Say, the distance between active user and terminal farther out when, the transmission loss of light is larger.Therefore, when terminal and subject The distance between farther out when, can by increase the first infrared transmitter operating voltage or operating current, or increase transmitting The mode of the suitably transmission power of increase first mode such as speckle count, 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 first infrared transmitter can be increased.
In addition, the current use state of terminal takes pictures state for front camera and local environment luminous intensity is less than threshold value When, if controlling the first infrared transmitter alternate emission infrared light in the first mode and a second mode, can also utilize close to sensing Device, the distance between active user and terminal are determined, and according to distance, first mode and/or second mode are adjusted. That is, step 202 and step 203 can replace with respectively:
According to the current use state of terminal and the luminous intensity of place environment, determine the first infrared transmitter successively with first Pattern and second mode alternate emission 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 structure light camera function.
Specifically, can be according to the current use state of terminal, it is determined whether start the second infrared transmitter, to realize end The structure light camera function at end.
During specific implementation, when the current use state of terminal takes pictures state for front camera, in order to utilize structure light Imaged, 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:
Taken pictures state if the current use state of terminal is front camera, start the second infrared transmitter.
It should be noted that transmission loss during due to infrared light emission to subject be present, and transmission loss To apart from directly proportional, in other words, when the distance between active user and terminal is nearer, the transmission loss very little of infrared light. At this point it is possible on the premise of the effect of structure light camera function is ensured, by the operating voltage for reducing the second infrared transmitter Or operating current, or reduce the speckle count of transmitting etc., the mode of the appropriate transmission power for reducing first mode, to reduce power Loss.
Accordingly, when the distance between user and terminal farther out when, then can pass through increase the second 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.
That is, after the second infrared transmitter is started, can also include:
The infrared luminous intensity obtained according to proximity transducer, determines the distance between active user and terminal;
According to distance, the emission mode of the second infrared transmitter is adjusted.
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 takes pictures state and when local environment luminous intensity is less than threshold value, by according to the use state current with terminal and residing First mode corresponding to ambient light intensity launches infrared light, the infrared luminous intensity then obtained according to proximity transducer, it is determined that working as The distance between preceding user and terminal, so as to according to distance, be adjusted to first mode.Realize and utilize same infrared hair Emitter is realized close to function and infrared light filling function, is reduced the space-consuming of infrared transmitter, has been saved being manufactured into for terminal This, simplifies the structure of terminal, improves 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 reflected to by touching a part of infrared light of screen.Proximity transducer is mainly reflected red by the detection external world Outer light, 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, pass through the light according to the use state and/or local environment current with terminal Objective emission pattern corresponding to intensity, control infrared transmitter transmitting infrared light, is realized real using same infrared transmitter Now close to function and infrared light filling 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 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 any has close to function and infrared In the terminal of light filling function, by performing the infrared transmitter control method stored thereon, it is possible to achieve utilize same infrared Transmitter is realized close to function and infrared light filling 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.
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, can be arranged on arbitrarily has close to function and infrared light filling In the terminal of function, by the program for performing corresponding infrared transmitter control method, it is possible to achieve utilize same infrared emission Device is realized close to function and infrared light filling function, is reduced the space-consuming of infrared transmitter, has been saved the manufacturing cost of terminal, 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 (10)

1. a kind of infrared transmitter control method, applied to close in function and the terminal of infrared light filling function, its feature It is, including:
Determine the current use state of the terminal and/or the luminous intensity of place environment;
According to the current use state of the terminal and/or the luminous intensity of place environment, the target of the first infrared transmitter is determined Emission mode;
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:
State is taken pictures if the current use state of the terminal is front camera and local environment luminous intensity is less than threshold value, Determine that first infrared transmitter launches infrared light in the first pattern;
Or
State is taken pictures if the current use state of the terminal is front camera and local environment luminous intensity is less than threshold value, Determine first infrared transmitter alternate emission infrared light in the first mode and a second mode successively, wherein, first mode with The lighting angle of second mode is different.
3. method as claimed in claim 2, 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 light in the first pattern;
After image is got, the first transmitter is controlled to light in a second mode, wherein, the light emitting anger of the second mode Lighting angle of the degree less than first mode.
4. method as claimed in claim 2, 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.
5. the method as described in claim 1-4, it is characterised in that the objective emission for determining first infrared transmitter Pattern, including:
State is taken pictures if the current use state of the terminal is front camera and local environment luminous intensity is more than the threshold Value, it is determined that first infrared transmitter is lighted with the second mode;
Or
Taken pictures state if the current use state of the terminal is non-front camera, it is determined that first infrared transmitter with The second mode lights.
6. the method as described in claim 2-4 is any, it is characterised in that the terminal also has structure light camera function, institute Stating terminal includes proximity transducer;
Methods described also includes:
Taken pictures state if the current use state of the terminal is front camera, start the second infrared transmitter;
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 second infrared transmitter is adjusted.
A kind of 7. 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-6 is any by reading the executable program code stored in the memory Described infrared transmitter control method.
8. terminal as claimed in claim 7, 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.
9. terminal as claimed in claim 7, 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.
10. 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-6 is realized during execution.
CN201711025736.4A 2017-10-27 2017-10-27 Infrared emitter control method, terminal and computer readable storage medium Active CN107862853B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711025736.4A CN107862853B (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
CN201711025736.4A CN107862853B (en) 2017-10-27 2017-10-27 Infrared emitter control method, terminal and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN107862853A true CN107862853A (en) 2018-03-30
CN107862853B CN107862853B (en) 2020-12-22

Family

ID=61697015

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711025736.4A Active CN107862853B (en) 2017-10-27 2017-10-27 Infrared emitter control method, terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN107862853B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108924421A (en) * 2018-07-16 2018-11-30 Oppo广东移动通信有限公司 Image processing method, device, computer readable storage medium and electronic equipment
CN109086694A (en) * 2018-07-17 2018-12-25 北京量子光影科技有限公司 A kind of face identification system and method
CN109324633A (en) * 2018-09-27 2019-02-12 Oppo广东移动通信有限公司 Control method and device, flight time device, terminal and computer readable storage medium
CN109543666A (en) * 2018-11-05 2019-03-29 北京小米移动软件有限公司 Structure light assembly control method and device
CN110191210A (en) * 2019-05-22 2019-08-30 珠海格力电器股份有限公司 A kind of control method and terminal device of indicator light
CN112019660A (en) * 2019-05-31 2020-12-01 Oppo广东移动通信有限公司 Control method of electronic device and electronic device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103645595A (en) * 2013-11-05 2014-03-19 广东明创软件科技有限公司 Method for shooting light supplement based on mobile terminal and mobile terminal thereof
CN105718025A (en) * 2016-01-15 2016-06-29 广东欧珀移动通信有限公司 Method and device for controlling infrared proximity sensor
CN205726068U (en) * 2016-07-05 2016-11-23 杨珊珊 The light compensating apparatus of unmanned vehicle
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103645595A (en) * 2013-11-05 2014-03-19 广东明创软件科技有限公司 Method for shooting light supplement based on mobile terminal and mobile terminal thereof
CN105718025A (en) * 2016-01-15 2016-06-29 广东欧珀移动通信有限公司 Method and device for controlling infrared proximity sensor
CN205726068U (en) * 2016-07-05 2016-11-23 杨珊珊 The light compensating apparatus of unmanned vehicle
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 (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108924421A (en) * 2018-07-16 2018-11-30 Oppo广东移动通信有限公司 Image processing method, device, computer readable storage medium and electronic equipment
CN109086694A (en) * 2018-07-17 2018-12-25 北京量子光影科技有限公司 A kind of face identification system and method
CN109086694B (en) * 2018-07-17 2024-01-19 北京量子光影科技有限公司 Face recognition system and method
CN109324633A (en) * 2018-09-27 2019-02-12 Oppo广东移动通信有限公司 Control method and device, flight time device, terminal and computer readable storage medium
CN109543666A (en) * 2018-11-05 2019-03-29 北京小米移动软件有限公司 Structure light assembly control method and device
CN110191210A (en) * 2019-05-22 2019-08-30 珠海格力电器股份有限公司 A kind of control method and terminal device of indicator light
CN110191210B (en) * 2019-05-22 2020-11-03 珠海格力电器股份有限公司 Control method of indicator light, terminal device and computer readable storage medium
CN112019660A (en) * 2019-05-31 2020-12-01 Oppo广东移动通信有限公司 Control method of electronic device and electronic device
CN112019660B (en) * 2019-05-31 2021-07-30 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

Also Published As

Publication number Publication date
CN107862853B (en) 2020-12-22

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
US10069960B2 (en) Method, electronic device, and accessory for carrying out functions based on reflected electromagnetic radiation
CN108881691A (en) Control method, microprocessor, computer readable storage medium and computer equipment
CN106506794A (en) The state monitoring method of terminal unit, device and terminal unit
CN110249613A (en) Display screen condition control method, device, storage medium and electronic equipment
CN109788174A (en) A kind of light compensation method and terminal
CN109656317B (en) Apparatus having distance sensing function and distance sensing method
CN109218711A (en) Detection method, system and the electronic equipment of flash lamp
CN107040645A (en) Accessory classification based on camera
CN110673783B (en) Touch control method and electronic equipment
CN106778623A (en) A kind of terminal screen control method, device and electronic equipment
KR102371211B1 (en) Device and method for authenticating biometric data using a plural camera
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
CN109361815A (en) Light on and off screen control method, device and the electronic equipment of electronic equipment
CN107480664A (en) Light supplement control method, device and terminal device
CN109144224A (en) The power consumption optimization method and device of touch screen
CN106131334A (en) Control the method and device of mobile terminal screen state
CN109379539A (en) A kind of screen light compensation method and terminal
CN109471119A (en) A kind of method and terminal device controlling power consumption
CN109766806A (en) Efficient face identification method and electronic equipment
CN109005254A (en) Information indicating method, control assembly and electronic equipment based on sliding equipment
CN107864274B (en) Control method, device, mobile terminal and the storage medium of mobile terminal

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

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.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant