CN105183160A - Information processing method and electronic device - Google Patents

Information processing method and electronic device Download PDF

Info

Publication number
CN105183160A
CN105183160A CN201510552964.1A CN201510552964A CN105183160A CN 105183160 A CN105183160 A CN 105183160A CN 201510552964 A CN201510552964 A CN 201510552964A CN 105183160 A CN105183160 A CN 105183160A
Authority
CN
China
Prior art keywords
distance
angle
electronic equipment
barrier
moment
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
CN201510552964.1A
Other languages
Chinese (zh)
Other versions
CN105183160B (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201510552964.1A priority Critical patent/CN105183160B/en
Publication of CN105183160A publication Critical patent/CN105183160A/en
Application granted granted Critical
Publication of CN105183160B publication Critical patent/CN105183160B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Controls And Circuits For Display Device (AREA)

Abstract

The invention discloses an information processing method and an electronic device, and the method is used to solve the technical problem of relatively poor accuracy of distance measurement of the electronic device. The method comprises: detecting a distance between a display unit of the electronic device and an obstacle as a first distance; determining a first included angle, wherein the first included angle is an included angle between the display unit and a horizontal plane; determining a second distance according to the first distance and the first included angle; and determining the second distance as an actual distance between the display unit and the obstacle.

Description

A kind of information processing method and electronic equipment
Technical field
The present invention relates to field of computer technology, particularly relate to a kind of information processing method and electronic equipment.
Background technology
Along with the progress of science and technology and the flourish of electronics market, Mobile data processing terminal product almost becomes the requisite electronic product that people carry with, people to the operability of equipment and polyfunctional requirement also more and more higher.
Such as, in order to meet the requirement of user, some equipment provide the function of range finding, can realize display brightness to device screen or the isoparametric adjustment of displaying contents size according to the distance between equipment and user, to provide good viewing effect for user.Such as, for mobile phone, can by be arranged at mobile phone front (i.e. the face at display screen place) range sensor detect with user before distance, but, change along with mobile phone attitude may cause display screen to tilt, angle between display screen and surface level will change, and, the distance that the change of angle can cause range sensor to detect produces error, that is, by the actual distance that detects of range sensor and and user between actual range between there is error, cause the result of range finding inaccurate, and then cause the adjustment of some display parameter also inaccurate.
Visible, in the prior art, because the angle of the display screen of electronic equipment changes, range finding may be caused to produce error, the accuracy of electronic equipment range finding is poor, and precision is lower.
Summary of the invention
The embodiment of the present invention provides a kind of information processing method, the technical matters that the accuracy for solving electronic equipment range finding is poor.
First aspect, provides a kind of information processing method, comprising:
Distance between the display unit of detected electrons equipment and barrier is the first distance;
Determine the first angle; Wherein, described first angle is the angle between described display unit and surface level;
The first angle according to described first Distance geometry, determines second distance;
Described second distance is defined as the actual range between described display unit and described barrier.
Optionally, determine the first angle, comprising:
Obtain the acceleration information of described electronic equipment in the first moment; Wherein, described first moment is the moment detecting described first distance;
According to the acceleration information in described first moment, determine described first angle.
Optionally, according to the acceleration information in described first moment, determine described first angle, comprising:
According to the acceleration information in described first moment, determine two acceleration component values of described electronic equipment in described first moment; Wherein, described two acceleration component values comprise the acceleration component values along the Z-direction in three dimensional coordinate space and X-direction, or described two acceleration component values comprise the acceleration component values along the Z-direction in three dimensional coordinate space and Y-direction;
According to described two acceleration component values, determine described first angle.
Optionally, determine the first angle, comprising:
Described first angle is detected by the angular transducer of described electronic equipment.
Optionally, the distance between the display unit and barrier of detected electrons equipment be first distance afterwards, described method also comprises:
Determine that described barrier is human body;
Determine the first angle, comprising:
When described barrier is human body, determine described first angle.
Optionally, at the first angle according to described first Distance geometry, before determining described second distance, described method also comprises:
Determine that the value of described first angle is not 90 degree.
Optionally, the first angle according to described first Distance geometry, determine second distance, comprising:
Described second distance is determined according to formula L2=L1*cos (90 ° of-A);
Wherein, described L2 represents described second distance, and described L1 represents described first distance, and described A represents described first angle.
Optionally, after described second distance is defined as the actual range between described display unit and described barrier, described method also comprises:
According to the corresponding relation of distance with the value of display parameter, the value of the first display parameter of described electronic equipment is adjusted to the value corresponding with described second distance.
Second aspect, provides the first electronic equipment, comprising:
Display device;
Distance detection device is the first distance for the distance detected between described display device and barrier;
Processor, is connected with described display device and described distance detection device respectively, for determining the first angle; The first angle according to described first Distance geometry, determines second distance; And described second distance is defined as the actual range between described display device and described barrier; Wherein, described first angle is the angle between described display device and surface level.
Optionally, described electronic equipment also comprises acceleration detecting, for:
Detect the acceleration information of described electronic equipment;
Described processor is used for:
Obtain the acceleration information of described electronic equipment in the first moment; Wherein, described first moment is the moment detecting described first distance;
According to the acceleration information in described first moment, determine described first angle.
Optionally, described processor is used for:
According to the acceleration information in described first moment, determine two acceleration component values of described electronic equipment in described first moment; Wherein, described two acceleration component values comprise the acceleration component values along the Z-direction in three dimensional coordinate space and X-direction, or described two acceleration component values comprise the acceleration component values along the Z-direction in three dimensional coordinate space and Y-direction;
According to described two acceleration component values, determine described first angle.
Optionally, described electronic equipment also comprises angular transducer, for:
Detect described first angle.
Optionally, described processor also for:
Described distance detection device for the distance detected between described display device and described barrier be first distance afterwards, determine that described barrier is human body.
Optionally, described processor also for:
At the first angle according to described first Distance geometry, before determining described second distance, determine that the value of described first angle is not 90 degree.
Optionally, described processor is used for:
Described second distance is determined according to formula L2=L1*cos (90 ° of-A);
Wherein, described L2 represents described second distance, and described L1 represents described first distance, and described A represents described first angle.
Optionally, described processor also for:
After described second distance is defined as the actual range between described display device and described barrier, according to the corresponding relation of distance with the value of display parameter, the value of the first display parameter of described electronic equipment is adjusted to the value corresponding with described second distance.
The third aspect, provides the second electronic equipment, comprising:
Detection module is the first distance for the distance detected between the display unit of described electronic equipment and barrier;
First determination module, for determining the first angle; Wherein, described first angle is the angle between described display unit and surface level;
Second determination module, for the first angle according to described first Distance geometry, determines second distance;
Processing module, for being defined as the actual range between described display unit and described barrier by described second distance.
In the embodiment of the present invention, electronic equipment is when detecting that the distance between barrier is the first distance, second distance can be determined according to the angle (embodiment of the present invention is called the first angle) between the first Distance geometry display unit and surface level, finally using the second distance determined as the actual range between barrier, that is, in embodiments of the present invention, electronic equipment not using the first distance of directly detecting as the actual range between barrier, but on the basis of the first distance, by the first angle, corrected Calculation is carried out to obtain second distance to it, and using revised second distance as the actual range between barrier, the accuracy of range measurement can be improved like this, to improve the precision of range observation, realize precisely range finding.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only the embodiment of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to the accompanying drawing provided.
Fig. 1 is the process flow diagram of information processing method in the embodiment of the present invention;
Fig. 2 is the schematic diagram of the sensing range of the range sensor of electronic equipment in the embodiment of the present invention;
Fig. 3 A is the schematic diagram of the setting of three-dimensional cartesian coordinate system in the embodiment of the present invention;
Fig. 3 B is the schematic diagram that the three-dimensional cartesian coordinate system arranged according to Fig. 3 A in the embodiment of the present invention determines the first angle;
Fig. 4 A is the schematic diagram of the first distance and second distance in the embodiment of the present invention;
Fig. 4 B is the geometric representation according to the first Distance geometry first angle calcu-lation second distance in the embodiment of the present invention;
Fig. 5 is the structural representation of electronic equipment in the embodiment of the present invention;
Fig. 6 is the structured flowchart of electronic equipment in the embodiment of the present invention.
Embodiment
Clearly understand for making the object, technical solutions and advantages of the present invention, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.When not conflicting, the embodiment in the present invention and the feature in embodiment can combination in any mutually.Further, although show logical order in flow charts, in some cases, can be different from the step shown or described by order execution herein.
In addition, term "and/or" herein, being only a kind of incidence relation describing affiliated partner, can there are three kinds of relations in expression, and such as, A and/or B, can represent: individualism A, exists A and B simultaneously, these three kinds of situations of individualism B.In addition, character "/" herein, when not illustrating, general expression forward-backward correlation is to the relation liking a kind of "or".
In the embodiment of the present invention, electronic equipment can refer to the electronic equipment that mobile phone, panel computer (PAD), notebook computer etc. are different, for described electronic equipment specifically which type of equipment the present invention do not limit, as long as described electronic equipment can detect the distance between barrier.
In order to better understand technique scheme, below in conjunction with Figure of description and concrete embodiment, technique scheme is described in detail.
Refer to Fig. 1, the embodiment of the present invention provides a kind of information processing method, and the method can be applied to electronic equipment, that is, in the method, the executive agent of each step can be electronic equipment.The flow process of the method is described below.
Step 101: the distance between the display unit of detected electrons equipment and barrier is the first distance.
In specific implementation process, it can be the distance by being arranged between range sensor detected electrons equipment in electronic equipment and barrier, and for the ease of practical application, range sensor is generally positioned at the front (i.e. the face at the display unit place of electronic equipment) of electronic equipment.Such as, be mobile phone for electronic equipment, range sensor is generally positioned in the receiver both sides of mobile phone or the groove at receiver place.In addition, the type of sensor of adjusting the distance in the embodiment of the present invention does not do concrete restriction, as long as it can detect the distance between barrier.
Consider versatility, with comparatively conventional range sensor for example, the principle of its detecting distance is: by utilizing emitted light pulse, and measures this light pulse from being transmitted into the interval time reflected by barrier, then calculates the distance between barrier by this interval time.And in general, the light pulse that range sensor is launched has a coverage, and this coverage is the sensing range of this range sensor.
Such as refer to Fig. 2, the rectangle frame 201 of wherein filling with ater represents the side of the display unit of electronic equipment, with the ellipse representation range sensor that ater is filled, the scope that its light pulse coverage of launching covers for cone 200, namely, the scope that the sensing range of range sensor covers for cone 200, and the height of cone 200 needs to determine according to effective propagation distance of light pulse, the bottom surface radius of a circle of cone 200 needs to determine according to the characteristic of range sensor, namely, the sensing range of range sensor needs to be determined by the self-characteristic of range sensor.
In addition, for the ease of the description of further part, range sensor in the embodiment of the present invention is detected distance between barrier and can be detected by the light pulse represented by the dotted line 202 in such as Fig. 2, namely, detect with the light pulse of launching perpendicular to range sensor (namely perpendicular to the display unit of electronic equipment), that is, in embodiments of the present invention, first distance is that range sensor is detected by the light pulse of launching perpendicular to range sensor and between barrier distance, can think that the first distance is electronic equipment by the distance between actual that directly detect and the barrier of range sensor.And for other light pulse in sensing range, detect and can do similar process to the mode of the distance between barrier.
Step 102: determine the first angle; Wherein, the first angle is the angle between display unit and surface level.
When electronic equipment is in different attitudes, the angle between its display unit from surface level is generally different.Notebook computer for electronic equipment, when the display screen of notebook computer is relative with keyboard face be adjacent to closed time, now can think that the angle between display screen and surface level is 0 °, when display screen is perpendicular to keyboard face, now can think that the angle between display screen and surface level is 90 °, when display screen principle keyboard face and when being close to when the back side of display screen and desktop, now can think that the angle between display screen and surface level is 180 ° gradually, etc.
In specific implementation process, the execution sequence of step 101 and step 102 can be arbitrary, if the performance of electronic equipment meets the demands, step 101 and step 102 can also be carried out simultaneously.
In specific implementation process, corresponding mode can be selected to determine the first angle according to the different hardware configurations of electronic equipment, understand for the ease of reader, below enumerate two kinds of modes and be illustrated.
First kind of way:
Optionally, in an alternative embodiment of the invention, determine the first angle, comprising:
Detected electrons equipment is at the acceleration information in the first moment; Wherein, the first moment was the moment of detection first distance;
According to the acceleration information in the first moment, determine the first angle.
In the motion process of electronic equipment, can by being arranged at the history acceleration information of the acceleration transducer detected electrons equipment in electronic equipment, and preserve, that is, determine at the first this hardware configuration of acceleration transducer that used in the mode of the first angle in electronic equipment.
So, when the first angle determined by needs, electronic equipment can determine the acceleration information in the first moment according to history acceleration information, and the acceleration information in the first moment can show the instant motion state of electronic equipment when the first distance being detected.
Optionally, in an alternative embodiment of the invention, according to the acceleration information in the first moment, determine the first angle, comprising:
According to the acceleration information in the first moment, determine two acceleration component values of electronic equipment in the first moment; Wherein, two acceleration component values comprise the acceleration component values along the Z-direction in three dimensional coordinate space and X-direction, or two acceleration component values comprise the acceleration component values along the Z-direction in three dimensional coordinate space and Y-direction;
According to two acceleration component values, determine the first angle.
After the acceleration information in acquisition first moment, accekeration corresponding with it can be determined.
Because acceleration has directivity, in order to determine the occurrence of the first angle according to the accekeration in the first moment, the acceleration component values in three directions can be decomposed into by degree of will speed up, then calculate the occurrence of the first angle according to acceleration component values.In specific implementation process, a three-dimensional cartesian coordinate system first can be set, then according to arranging three-dimensional cartesian coordinate system, accekeration be decomposed, to obtain acceleration component values.It should be noted that, arranging of three-dimensional cartesian coordinate system can be arbitrary, as long as the acceleration component values that those skilled in the art can obtain according to decomposition determines the occurrence of the first angle, the present invention does not do concrete restriction.
Understand for the ease of reader, be illustrated with a kind of concrete set-up mode of three-dimensional cartesian coordinate system below.
Notebook computer for electronic equipment, refer to Fig. 3 A, using the right edge of the display unit of notebook computer (i.e. Panel) as three-dimensional cartesian coordinate system for Y-axis, and using in right edge away from the positive dirction of the direction of keyboard (i.e. Keyboard) as Y-axis, and X-axis and Z axis are respectively perpendicular to Y-axis, and the positive dirction of the positive dirction of X-axis and Z axis refers to shown in Fig. 3 A.
Again see Fig. 3 B, suppose that the angle between the display unit of notebook and surface level is β, and the accekeration in the first moment of hypothesis acquisition is a, so, obtaining the acceleration component values of a in Y-axis after being decomposed by a is a y, the acceleration component values on Z axis is a z, can in the hope of tan β=a according to geometric relationship y/ a z, so β=arctana y/ a z.
Similarly, also can obtain the acceleration component values of a in X-axis is a x, and then again according to a xand a zcalculate β, concrete calculation procedure just repeats no more herein.
Due to versatility and the ubiquity of acceleration transducer, the versatility of first kind of way is also higher, that is, the custom hardware in electronic equipment can be utilized to configure and determine the first angle, the existing configuration of electronic equipment can be made full use of like this, improve the utilization factor of hardware.
And, in a practical situation, electronic equipment may be generally real time kinematics, and electronic equipment acceleration information at any time more accurately can be detected by acceleration transducer, the occurrence of the first angle is calculated again by acceleration component values, can improve the accuracy determined the first angle largely, the precision determined is higher.
The second way:
Optionally, in an alternative embodiment of the invention, determine the first angle, comprising:
The first angle is detected by the angular transducer of electronic equipment.
That is, this hardware configuration of angular transducer having used electronic equipment in the mode of the first angle is determined at the second.Specifically, can detect the first angle according to the self-characteristic of the angular transducer in electronic equipment, just repeat no more herein.
When electronic configurations has angular transducer, the occurrence of the first angle can be determined fast by the second way, the speed determined, the time of whole ranging process can be reduced as far as possible, raise the efficiency.
In implementation process, if electronic equipment was both configured with acceleration transducer, be configured with angular transducer again, the mode (mode that such as user is arranged is first kind of way) that can arrange according to user determines the first angle, and when user is arranged, electronic equipment can be selected to determine mode voluntarily, such as in order to obtain the higher determination result of precision, can first kind of way be adopted, or, in order to determine the first angle fast, the second way can be adopted, in addition, also can a kind of mode of Stochastic choice, etc.
Certainly, above-mentionedly just list two kinds of modes and be illustrated, the mode as other does not just schematically illustrate one by one, everyly can determine that the mode of the first angle all should within protection scope of the present invention.
Optionally, in an alternative embodiment of the invention, the distance between the display unit and barrier of detected electrons equipment be first distance afterwards, described method also comprises:
Determine that described barrier is human body;
Determine the first angle, comprising:
When described barrier is human body, determine described first angle.
In implementation process, electronic equipment detect and barrier between distance be generally in order to according to the distance measured for user provides certain to serve, such as, electronic equipment can according to the display effect of the distance adjustment display unit detected, so that for user provides good viewing effect, so, in order to avoid maloperation appears in electronic equipment, simultaneously also in order to reduce the processing load of electronic equipment as far as possible, detecting whether the between barrier first distance can also disturbance in judgement thing be human body afterwards, only just subsequent operation can be performed when determining that barrier is human body.
Such as, electronic equipment can gather the image information of barrier by image acquisition units, determine whether barrier is human body actually according to face recognition technology or human body recognition technology again, or, electronic equipment can also detect the temperature of barrier by infrared sensor, judge that whether the temperature detected is corresponding with the general temperature of human body again and determine that whether barrier is actually as human body, or other mode can also be had, be not just illustrated one by one herein.
Step 103: according to the first Distance geometry first angle, determine second distance.
Continuing for electronic equipment is notebook computer, refer to Fig. 4 A, with the ellipse representation range sensor of filled black, barrier is represented with the rectangle frame 400 of filled black, the first distance between the display unit detected by step 101 and barrier is L1, and the first angle between the display unit determined by step 101 and surface level is β.And in fact, distance nearest between barrier and display unit is L2, that is, there is bee-line L2 in barrier and display unit, in order to ensure that range measurement conforms to actual conditions as far as possible as far as possible, using L2 as the actual range between barrier and display unit, can compare with actual conditions like this and conform to.
According to above analysis, L2 is second distance, according to the first Distance geometry first angle determination second distance, is in fact exactly calculate L2 according to L1 and β, revises to obtain L2 by β to L1.
Specifically, optionally, in another embodiment of the present invention, according to the first Distance geometry first angle, determine second distance, comprising:
Determine second distance according to formula (1), formula (1) is: L2=L1*cos (90 ° of-A);
Wherein, L2 represents second distance, and L1 represents the first distance, and A represents the first angle.
After determining L1 and β, directly can calculate L2 according to formula (1).
Understand for the ease of reader, below derivation carried out to formula (1) and illustrate:
Refer to Fig. 4 B, derive according to geometry, can determine that the angle between L1 and L2 is 90 ° of-β, and according to the definition of cosine function, cos (90 ° of-β)=L2/L1, so can determine L2=L1*cos (90 ° of-β).
It should be noted that, the embodiment of the present invention just lists a kind of concrete account form obtaining L2, and those skilled in the art according to geometric knowledge, under the prerequisite not paying creative work, can also adopt other mode to calculate and obtain L2.
In addition, optionally, in an alternative embodiment of the invention, according to the first Distance geometry first angle, before determining second distance, described method also comprises:
Determine that the value of the first angle is not 90 degree.
When display unit is perpendicular to surface level, namely when the value of the first angle is 90 °, according to the characteristic of range sensor detecting distance, can determine to be now the same by the actual distance detected of range sensor with the actual range between display unit and barrier, now can using the actual distance detected directly as the actual range between display unit and barrier.So, determine can using the actual distance detected directly as actual range time, electronic equipment can be saved again according to the operation of the first Distance geometry first angle determination second distance, that is, in order to reduce nuisance operation that electronic equipment carries out and reduce the processing load of electronic equipment, in embodiments of the present invention, before according to the first Distance geometry first angle determination second distance, also need to judge whether the first angle is 90 °, only when determining out of plumb between display unit and surface level, just can perform the operation determining the first angle.
Step 104: second distance is defined as the actual range between display unit and barrier.
That is, the second distance obtained after revising the first distance according to the first angle could show the actual range between display unit and barrier as far as possible, first distance is revised, can reduce (even eliminate) due to the angle change of display unit causes the error produced of finding range as far as possible, and then the accuracy of range measurement can be improved, to improve the precision of range observation, realize precisely finding range.
Optionally, in an alternative embodiment of the invention, after second distance being defined as the actual range between display unit and barrier, described method also comprises:
According to the corresponding relation of distance with the value of display parameter, the value of the first display parameter of electronic equipment is adjusted to the value corresponding with second distance.
That is, after obtaining the actual range between display unit and barrier, electronic equipment according to the automatic adjustment of this actual range realization to the display display effect of display unit, to meet the actual viewing demand of user as far as possible, can strengthen the viewing experience of user.
Such as, when determining that second distance is 1.1 meters, the font size of display unit can be adjusted to No. two fonts by electronic equipment, when determining that second distance is 0.6 meter, font size can be adjusted to No. four fonts.
Again such as; when determining that second distance is 0.9 meter; the display brightness of display unit can be adjusted to 90 by electronic equipment; when determining that second distance is 2.3 meters; display brightness can be adjusted to 60; like this when user is in nearer position, the eyesight of user can be protected by reducing display brightness, and do not affect again the normal viewing of user.
Above-mentioned font size and display brightness all can be understood as the display parameter in the embodiment of the present invention, in specific implementation process, display parameter may be also other parameters, but principle and the process of adjustment are all similar with the adjustment of above-mentioned font size and display brightness, just repeat no longer one by one herein.
In the embodiment of the present invention, electronic equipment is when detecting that the distance between barrier is the first distance, also can according to the first angle determination second distance between the first Distance geometry display unit and surface level, finally using the second distance determined as the actual range between barrier, that is, in the inventive solutions, electronic equipment not using the first distance of directly detecting as the actual range between barrier, but on the basis of the first distance, by the first angle, corrected Calculation is carried out to obtain second distance to it, and using revised second distance as the actual range between barrier.
By obtaining second distance according to the first angle to the first distance correction, can reduce (even eliminate) due to the angle change of display unit causes the error produced of finding range as far as possible, and then the accuracy of range measurement can be improved, to improve the precision of range observation, realize precisely finding range.
Refer to Fig. 5, based on same inventive concept, the embodiment of the present invention provides the first electronic equipment 500, and electronic equipment 500 comprises:
Display device 501;
Distance detection device 502 is the first distance for the distance between detection display device 501 and barrier;
Processor 503, is connected with display device 501 and distance detection device 502 respectively, for determining the first angle; According to the first Distance geometry first angle, determine second distance; And actual range second distance is defined as between display device 501 and barrier; Wherein, the first angle is the angle between display device 501 and surface level.
Specifically, display device 501 can refer to light emitting diode (LightEmittingDiode, LED) display screen, Organic Light Emitting Diode (OrganicLightEmittingDiode, OLED) display screen, active matrix organic light-emitting diode (ActiveMatrixOrganicLightEmittingDiode, AMOLED) display screen, IPS (In-PlaneSwitching, plane conversion) display screen, etc.Display device 501 can have many sides, and many sides can form the shape of class rectangle.In addition, display device 501 has information display function, that is, display device 501 is used for display information.
The type of pick-up unit 502 of adjusting the distance in the embodiment of the present invention does not do concrete restriction, distance detection device 502 can be such as range sensor, or also can be that other can the assembly of detecting distance or device, as long as it can detect the distance between barrier.
Processor 503 can be specifically general central processing unit (CPU), or can be ASIC(Application Specific Integrated Circuit) (ApplicationSpecificIntegratedCircuit, ASIC), or can be one or more for control program perform integrated circuit.
Processor 503 can be connected by connecting line with between display device 501 and distance detection device 502, this connecting line has the effect of Signal transmissions, namely, processor 503 and can keep between display device 501 and distance detection device being electrically connected, may be used for obtaining the first distance from distance detection device 502, can also be used for carrying out controlling and adjustment to the display effect of display device 501.
Further, electronic equipment 500 can also comprise storer, and the quantity of storer can be one or more.Storer can comprise ROM (read-only memory) (ReadOnlyMemory, ROM), random access memory (RandomAccessMemory, RAM) or magnetic disk memory.
Optionally, in another embodiment of the present invention,
Electronic equipment 500 also comprises acceleration detecting, for:
The acceleration information of detected electrons equipment 500;
Processor 503 for:
Obtain the acceleration information of electronic equipment 500 in the first moment; Wherein, the first moment was the moment of detection first distance;
According to the acceleration information in the first moment, determine the first angle.
Optionally, in another embodiment of the present invention, processor 503 for:
According to the acceleration information in the first moment, determine two acceleration component values of electronic equipment 500 in the first moment; Wherein, two acceleration component values comprise the acceleration component values along the Z-direction in three dimensional coordinate space and X-direction, or two acceleration component values comprise the acceleration component values along the Z-direction in three dimensional coordinate space and Y-direction;
According to two acceleration component values, determine the first angle.
Optionally, in another embodiment of the present invention, electronic equipment 500 also comprises angular transducer, for:
Detect the first angle.
Optionally, in another embodiment of the present invention, processor 503 also for:
Distance detection device 502 for the distance between detection display device 501 and barrier be first distance afterwards, determine that barrier is human body.
Optionally, in another embodiment of the present invention, processor 503 also for:
According to the first Distance geometry first angle, before determining second distance, determine that the value of the first angle is not 90 degree.
Optionally, in another embodiment of the present invention, processor 503 for:
Second distance is determined according to formula L2=L1*cos (90 ° of-A);
Wherein, L2 represents described second distance, and L1 represents described first distance, and A represents the first angle.
Optionally, in another embodiment of the present invention, processor 503 also for:
After second distance being defined as the actual range between display device and barrier, according to the corresponding relation of distance with the value of display parameter, the value of the first display parameter of electronic equipment 500 is adjusted to the value corresponding with second distance.
Because the electronic equipment 500 in the embodiment of the present invention is similar to the principle that the information processing method in Fig. 1 is dealt with problems, therefore in the embodiment of the present invention, the enforcement of electronic equipment 500 see the enforcement of information processing method in Fig. 1, can not repeat them here.
In the embodiment of the present invention, electronic equipment 500 is when detecting that the distance between barrier is the first distance, also can according to the first angle determination second distance between the first Distance geometry display device and surface level, finally using the second distance determined as the actual range between barrier, that is, in the inventive solutions, electronic equipment 500 not using the first distance of directly detecting as the actual range between barrier, but on the basis of the first distance, by the first angle, corrected Calculation is carried out to obtain second distance to it, and using revised second distance as the actual range between barrier.
By obtaining second distance according to the first angle to the first distance correction, can reduce (even eliminate) due to the angle change of display device causes the error produced of finding range as far as possible, and then the accuracy of range measurement can be improved, to improve the precision of range observation, realize precisely finding range.
Refer to Fig. 6, based on same inventive concept, the embodiment of the present invention also provides the second electronic equipment, and this electronic equipment comprises detection module 601, first determination module 602, second determination module 603 and processing module 604.
Detection module 601 is the first distance for the distance between the display unit of detected electrons equipment and barrier;
First determination module 602, for determining the first angle; Wherein, the first angle is the angle between display unit and surface level;
Second determination module 603, for according to the first Distance geometry first angle, determines second distance;
Processing module 604, for being defined as the actual range between display unit and barrier by second distance.
Optionally, in another embodiment of the present invention, the first determination module 602 for:
Obtain the acceleration information of electronic equipment in the first moment; Wherein, the first moment was the moment of detection first distance;
According to the acceleration information in the first moment, determine the first angle.
Optionally, in another embodiment of the present invention, the first determination module 602, for the acceleration information according to the first moment, is determined the first angle, is specially:
According to the acceleration information in the first moment, determine two acceleration component values of electronic equipment in the first moment; Wherein, two acceleration component values comprise the acceleration component values along the Z-direction in three dimensional coordinate space and X-direction, or two acceleration component values comprise the acceleration component values along the Z-direction in three dimensional coordinate space and Y-direction;
According to two acceleration component values, determine the first angle.
Optionally, in another embodiment of the present invention, the first determination module 602 for:
The first angle is detected by the angular transducer of electronic equipment.
Optionally, in another embodiment of the present invention,
Electronic equipment also comprises the 3rd determination module, for:
The detection module distance be used between the display unit of detected electrons equipment and barrier be the first distance afterwards, determine that barrier is human body;
First determination module 602 for:
When barrier is human body, determine the first angle.
Optionally, in another embodiment of the present invention, electronic equipment also comprises the 4th determination module, for:
At the second determination module 603 for according to the first Distance geometry first angle, before determining second distance, determine that the value of angle is not 90 degree.
Optionally, in another embodiment of the present invention, the second determination module 603 for:
Second distance is determined according to formula L2=L1*cos (90 ° of-A);
Wherein, L2 represents second distance, and L1 represents the first distance, and A represents the first angle.
Optionally, in another embodiment of the present invention, electronic equipment also comprises adjusting module, for:
In processing module 604 for after second distance being defined as the actual range between display unit and barrier, according to the corresponding relation of distance with the value of display parameter, the value of the first display parameter of electronic equipment is adjusted to the value corresponding with second distance.
Because the electronic equipment in the embodiment of the present invention is similar to the principle that above-mentioned information processing method is dealt with problems, therefore in the embodiment of the present invention, the enforcement of electronic equipment see the enforcement of above-mentioned information processing method, can not repeat them here.
In the embodiment of the present invention, electronic equipment is when detecting that the distance between barrier is the first distance, also can according to the first angle determination second distance between the first Distance geometry display unit and surface level, finally using the second distance determined as the actual range between barrier, that is, in the inventive solutions, electronic equipment not using the first distance of directly detecting as the actual range between barrier, but on the basis of the first distance, by the first angle, corrected Calculation is carried out to obtain second distance to it, and using revised second distance as the actual range between barrier.
By obtaining second distance according to the first angle to the first distance correction, can reduce (even eliminate) due to the angle change of display unit causes the error produced of finding range as far as possible, and then the accuracy of range measurement can be improved, to improve the precision of range observation, realize precisely finding range.
Those skilled in the art can be well understood to, for convenience and simplicity of description, only be illustrated with the division of above-mentioned each functional module, in practical application, can distribute as required and by above-mentioned functions and be completed by different functional units, inner structure by device is divided into different functional units, to complete all or part of function described above.The system of foregoing description, the specific works process of device and unit, with reference to the corresponding process in preceding method embodiment, can not repeat them here.
In several embodiment provided by the present invention, should be understood that, disclosed system, apparatus and method, can realize by another way.Such as, device embodiment described above is only schematic, such as, the division of described module or unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of device or unit or communication connection can be electrical, machinery or other form.
The described unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.Above-mentioned integrated unit both can adopt the form of hardware to realize, and the form of SFU software functional unit also can be adopted to realize.
If described integrated unit using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words or all or part of of this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) or processor (processor) perform all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, ROM (Read-OnlyMemory, ROM (read-only memory)), RAM (RandomAccessMemory, random access memory), magnetic disc or CD etc. various can be program code stored medium.
Specifically, the computer program instructions that a kind of information processing method in the embodiment of the present invention is corresponding can be stored in CD, hard disk, on the storage mediums such as USB flash disk, when the computer program instructions corresponding with a kind of information processing method in storage medium is read by an electronic equipment or be performed, comprise the steps:
Distance between the display unit of detected electrons equipment and barrier is the first distance;
Determine the first angle; Wherein, the first angle is the angle between display unit and surface level;
According to the first Distance geometry first angle, determine second distance;
Second distance is defined as the actual range between display unit and barrier.
Optionally, that store in storage medium and step: determine the first angle, corresponding computer instruction, among the process be performed, comprising:
Obtain the acceleration information of electronic equipment in the first moment; Wherein, the first moment was the moment of detection first distance;
According to the acceleration information in the first moment, determine the first angle.
Optionally, that store in storage medium and step: according to the acceleration information in the first moment, determine the first angle, corresponding computer instruction, among the process be performed, comprising:
According to the acceleration information in the first moment, determine two acceleration component values of electronic equipment in the first moment; Wherein, two acceleration component values comprise the acceleration component values along the Z-direction in three dimensional coordinate space and X-direction, or two acceleration component values comprise the acceleration component values along the Z-direction in three dimensional coordinate space and Y-direction;
According to two acceleration component values, determine the first angle.
Optionally, that store in storage medium and step: determine the first angle, corresponding computer instruction, among the process be performed, comprising:
The first angle is detected by the angular transducer of electronic equipment.
Optionally, that store in storage medium and step: the distance between the display unit of detected electrons equipment and barrier is the first distance, and corresponding computer instruction, after being performed, also comprises:
Determine that barrier is human body;
That store in storage medium and step: determine the first angle, corresponding computer instruction, among the process be performed, comprising: when barrier is human body, determine the first angle.
Optionally, that store in storage medium and step: according to the first Distance geometry first angle, determine second distance, corresponding computer instruction before being executed, also comprises:
Determine that the value of the first angle is not 90 degree.
Optionally, that store in storage medium and step: according to the first Distance geometry first angle, determine second distance, corresponding computer instruction, among the process be performed, comprising:
Second distance is determined according to formula L2=L1*cos (90 ° of-A);
Wherein, L2 represents second distance, and L1 represents the first distance, and A represents the first angle.
Optionally, that store in storage medium and step: second distance is defined as the actual range between display unit and barrier, corresponding computer instruction, after being performed, also comprises:
According to the corresponding relation of distance with the value of display parameter, the value of the first display parameter of electronic equipment is adjusted to the value corresponding with second distance.
The above, above embodiment is only in order to be described in detail technical scheme of the present invention, but the explanation of above embodiment just understands method of the present invention and core concept thereof for helping, and should not be construed as limitation of the present invention.Those skilled in the art are in the technical scope that the present invention discloses, and the change that can expect easily or replacement, all should be encompassed within protection scope of the present invention.

Claims (17)

1. an information processing method, comprising:
Distance between the display unit of detected electrons equipment and barrier is the first distance;
Determine the first angle; Wherein, described first angle is the angle between described display unit and surface level;
The first angle according to described first Distance geometry, determines second distance;
Described second distance is defined as the actual range between described display unit and described barrier.
2. the method for claim 1, is characterized in that, determines the first angle, comprising:
Obtain the acceleration information of described electronic equipment in the first moment; Wherein, described first moment is the moment detecting described first distance;
According to the acceleration information in described first moment, determine described first angle.
3. method as claimed in claim 2, is characterized in that, according to the acceleration information in described first moment, determine described first angle, comprising:
According to the acceleration information in described first moment, determine two acceleration component values of described electronic equipment in described first moment; Wherein, described two acceleration component values comprise the acceleration component values along the Z-direction in three dimensional coordinate space and X-direction, or described two acceleration component values comprise the acceleration component values along the Z-direction in three dimensional coordinate space and Y-direction;
According to described two acceleration component values, determine described first angle.
4. the method for claim 1, is characterized in that, determines the first angle, comprising:
Described first angle is detected by the angular transducer of described electronic equipment.
5. the method for claim 1, is characterized in that, the distance between the display unit and barrier of detected electrons equipment be first distance afterwards, described method also comprises:
Determine that described barrier is human body;
Determine the first angle, comprising:
When described barrier is human body, determine described first angle.
6. the method for claim 1, is characterized in that, at the first angle according to described first Distance geometry, before determining described second distance, described method also comprises:
Determine that the value of described first angle is not 90 degree.
7. the method as described in claim arbitrary in claim 1-6, is characterized in that, the first angle according to described first Distance geometry, determines second distance, comprising:
Described second distance is determined according to formula L2=L1*cos (90 ° of-A);
Wherein, described L2 represents described second distance, and described L1 represents described first distance, and described A represents described first angle.
8. method as claimed in claim 7, it is characterized in that, after described second distance is defined as the actual range between described display unit and described barrier, described method also comprises:
According to the corresponding relation of distance with the value of display parameter, the value of the first display parameter of described electronic equipment is adjusted to the value corresponding with described second distance.
9. an electronic equipment, comprising:
Display device;
Distance detection device is the first distance for the distance detected between described display device and barrier;
Processor, is connected with described display device and described distance detection device respectively, for determining the first angle; The first angle according to described first Distance geometry, determines second distance; And described second distance is defined as the actual range between described display device and described barrier; Wherein, described first angle is the angle between described display device and surface level.
10. electronic equipment as claimed in claim 9, is characterized in that,
Described electronic equipment also comprises acceleration detecting, for:
Detect the acceleration information of described electronic equipment;
Described processor is used for:
Obtain the acceleration information of described electronic equipment in the first moment; Wherein, described first moment is the moment detecting described first distance;
According to the acceleration information in described first moment, determine described first angle.
11. electronic equipments as claimed in claim 10, it is characterized in that, described processor is used for:
According to the acceleration information in described first moment, determine two acceleration component values of described electronic equipment in described first moment; Wherein, described two acceleration component values comprise the acceleration component values along the Z-direction in three dimensional coordinate space and X-direction, or described two acceleration component values comprise the acceleration component values along the Z-direction in three dimensional coordinate space and Y-direction;
According to described two acceleration component values, determine described first angle.
12. electronic equipments as claimed in claim 9, it is characterized in that, described electronic equipment also comprises angular transducer, for:
Detect described first angle.
13. electronic equipments as claimed in claim 9, is characterized in that, described processor also for:
Described distance detection device for the distance detected between described display device and described barrier be first distance afterwards, determine that described barrier is human body.
14. electronic equipments as claimed in claim 9, is characterized in that, described processor also for:
At the first angle according to described first Distance geometry, before determining described second distance, determine that the value of described first angle is not 90 degree.
15. electronic equipments as described in claim arbitrary in claim 9-14, it is characterized in that, described processor is used for:
Described second distance is determined according to formula L2=L1*cos (90 ° of-A);
Wherein, described L2 represents described second distance, and described L1 represents described first distance, and described A represents described first angle.
16. electronic equipments as claimed in claim 15, is characterized in that, described processor also for:
After described second distance is defined as the actual range between described display device and described barrier, according to the corresponding relation of distance with the value of display parameter, the value of the first display parameter of described electronic equipment is adjusted to the value corresponding with described second distance.
17. 1 kinds of electronic equipments, comprising:
Detection module is the first distance for the distance detected between the display unit of described electronic equipment and barrier;
First determination module, for determining the first angle; Wherein, described first angle is the angle between described display unit and surface level;
Second determination module, for the first angle according to described first Distance geometry, determines second distance;
Processing module, for being defined as the actual range between described display unit and described barrier by described second distance.
CN201510552964.1A 2015-09-01 2015-09-01 A kind of information processing method and electronic equipment Active CN105183160B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510552964.1A CN105183160B (en) 2015-09-01 2015-09-01 A kind of information processing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510552964.1A CN105183160B (en) 2015-09-01 2015-09-01 A kind of information processing method and electronic equipment

Publications (2)

Publication Number Publication Date
CN105183160A true CN105183160A (en) 2015-12-23
CN105183160B CN105183160B (en) 2018-08-10

Family

ID=54905286

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510552964.1A Active CN105183160B (en) 2015-09-01 2015-09-01 A kind of information processing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN105183160B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106802420A (en) * 2016-12-05 2017-06-06 珠海格力电器股份有限公司 The method and apparatus of measurement distance
CN109710735A (en) * 2018-12-20 2019-05-03 广东小天才科技有限公司 Content recommendation method and electronic equipment are read aloud based on more social channels

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1195738A (en) * 1997-09-24 1999-04-09 Sharp Corp Automatic display adjustment device of display device
CN101959322A (en) * 2009-07-16 2011-01-26 萨基姆移动电话研发(宁波)有限公司 Method for measuring linear distance between two points by cell phone
TW201240434A (en) * 2011-03-17 2012-10-01 Chi Mei Comm Systems Inc System and method for automatically adjusting a visual angle of 3D images
CN103458115A (en) * 2013-08-22 2013-12-18 Tcl通讯(宁波)有限公司 Processing method for automatically setting size of system font of mobile terminal and mobile terminal
CN103491230A (en) * 2013-09-04 2014-01-01 三星半导体(中国)研究开发有限公司 Mobile terminal capable of automatically adjusting volume and fonts and automatic adjusting method thereof
CN103578430A (en) * 2012-07-18 2014-02-12 中国移动通信集团公司 Method for automatically adjusting brightness of liquid crystal screen, and electronic device
CN104717365A (en) * 2015-03-30 2015-06-17 京东方科技集团股份有限公司 Brilliance regulating system and method and mobile terminal
CN104850320A (en) * 2015-04-23 2015-08-19 惠州Tcl移动通信有限公司 Terminal and method thereof for automatically regulating luminance of display screen

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1195738A (en) * 1997-09-24 1999-04-09 Sharp Corp Automatic display adjustment device of display device
CN101959322A (en) * 2009-07-16 2011-01-26 萨基姆移动电话研发(宁波)有限公司 Method for measuring linear distance between two points by cell phone
TW201240434A (en) * 2011-03-17 2012-10-01 Chi Mei Comm Systems Inc System and method for automatically adjusting a visual angle of 3D images
CN103578430A (en) * 2012-07-18 2014-02-12 中国移动通信集团公司 Method for automatically adjusting brightness of liquid crystal screen, and electronic device
CN103458115A (en) * 2013-08-22 2013-12-18 Tcl通讯(宁波)有限公司 Processing method for automatically setting size of system font of mobile terminal and mobile terminal
CN103491230A (en) * 2013-09-04 2014-01-01 三星半导体(中国)研究开发有限公司 Mobile terminal capable of automatically adjusting volume and fonts and automatic adjusting method thereof
CN104717365A (en) * 2015-03-30 2015-06-17 京东方科技集团股份有限公司 Brilliance regulating system and method and mobile terminal
CN104850320A (en) * 2015-04-23 2015-08-19 惠州Tcl移动通信有限公司 Terminal and method thereof for automatically regulating luminance of display screen

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106802420A (en) * 2016-12-05 2017-06-06 珠海格力电器股份有限公司 The method and apparatus of measurement distance
CN109710735A (en) * 2018-12-20 2019-05-03 广东小天才科技有限公司 Content recommendation method and electronic equipment are read aloud based on more social channels
CN109710735B (en) * 2018-12-20 2021-01-26 广东小天才科技有限公司 Reading content recommendation method based on multiple social channels and electronic equipment

Also Published As

Publication number Publication date
CN105183160B (en) 2018-08-10

Similar Documents

Publication Publication Date Title
EP3806041B1 (en) Method and apparatus for jointly calibrating external parameters of multiple cameras, device and medium
US9632646B2 (en) Electronic apparatus
CN104750232A (en) Eye tracking method and eye tracking device
US9189088B2 (en) Electronic device and touch operating method thereof
CN111310840B (en) Data fusion processing method, device, equipment and storage medium
CN111368760B (en) Obstacle detection method and device, electronic equipment and storage medium
US11953605B2 (en) Method, device, equipment, and storage medium for determining sensor solution
US20150169123A1 (en) Touch sensor controller and method for driving the same
US11054982B2 (en) Electronic device, method and system for detecting fingers and non-transitory computer-readable medium
CN111079079B (en) Data correction method, device, electronic equipment and computer readable storage medium
CN112738886B (en) Positioning method, positioning device, storage medium and electronic equipment
US10379542B2 (en) Location and mapping device and method
EP3767435B1 (en) 6-dof tracking using visual cues
JP6202874B2 (en) Electronic device, calibration method and program
CN105183160A (en) Information processing method and electronic device
US20160139693A9 (en) Electronic apparatus, correction method, and storage medium
KR101533603B1 (en) Device and method for object recognition
KR102395298B1 (en) Apparatus and method for controlling communication of vehicle
KR102014122B1 (en) Input device detection method and detection device
US20130249856A1 (en) Touch device and touch sensing method thereof
CN111612851A (en) Method, apparatus, device and storage medium for calibrating camera
CN104866143A (en) Touch point determining method and apparatus, and touch screen device
US11620846B2 (en) Data processing method for multi-sensor fusion, positioning apparatus and virtual reality device
CN111027423B (en) Automatic driving lane line detection method and device and electronic equipment
CN111932611B (en) Object position acquisition method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant