CN107655447B - Distance measuring method and device and mobile terminal - Google Patents

Distance measuring method and device and mobile terminal Download PDF

Info

Publication number
CN107655447B
CN107655447B CN201710792714.4A CN201710792714A CN107655447B CN 107655447 B CN107655447 B CN 107655447B CN 201710792714 A CN201710792714 A CN 201710792714A CN 107655447 B CN107655447 B CN 107655447B
Authority
CN
China
Prior art keywords
display screen
visible light
mobile terminal
brightness
included angle
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710792714.4A
Other languages
Chinese (zh)
Other versions
CN107655447A (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.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
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 Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN201710792714.4A priority Critical patent/CN107655447B/en
Publication of CN107655447A publication Critical patent/CN107655447A/en
Application granted granted Critical
Publication of CN107655447B publication Critical patent/CN107655447B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C3/00Measuring distances in line of sight; Optical rangefinders
    • G01C3/10Measuring distances in line of sight; Optical rangefinders using a parallactic triangle with variable angles and a base of fixed length in the observation station, e.g. in the instrument
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/1613Constructional details or arrangements for portable computers
    • G06F1/1633Constructional details or arrangements of portable computers not specific to the type of enclosures covered by groups G06F1/1615 - G06F1/1626
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/1613Constructional details or arrangements for portable computers
    • G06F1/1633Constructional details or arrangements of portable computers not specific to the type of enclosures covered by groups G06F1/1615 - G06F1/1626
    • G06F1/1637Details related to the display arrangement, including those related to the mounting of the display in the housing
    • G06F1/1647Details related to the display arrangement, including those related to the mounting of the display in the housing including at least an additional display

Abstract

The present invention relates to the field of terminal technologies, and in particular, to a distance measurement method, a distance measurement device, and a mobile terminal. When the distance is measured, the first visible light and the second visible light are aligned to the object to be measured, the focal points of the first visible light and the second visible light coincide, and the distance between the object to be measured and the mobile terminal is calculated by combining the cosine theorem through the first included angle, the second included angle, the third included angle between the first display screen and the second display screen, the first length of the first display screen and the second length of the second display screen, wherein the first included angle between the first visible light emitted by the first visible light generating unit and the first display screen is equal to the second included angle between the second visible light emitted by the second visible light generating unit and the second display screen. Therefore, the distance measurement is simple, convenient and accurate.

Description

Distance measuring method and device and mobile terminal
Technical Field
The present invention relates to the field of terminal technologies, and in particular, to a distance measurement method, a distance measurement device, and a mobile terminal.
Background
With the rapid development of electronic technology, the functions of mobile terminals are more and more powerful, and more users choose to use dual-screen mobile terminals to watch videos, browse webpages and other activities. The dual-screen mobile terminal comprises a main screen and an auxiliary screen, and the positions of the main screen and the auxiliary screen can be changed relatively, so that the main screen and the auxiliary screen can be displayed in different directions, and a user can watch a webpage, browse a video and the like in different directions by using the dual-screen according to different requirements.
In the application process of the mobile terminal, the related art measures the distance of the object to be measured through the mobile terminal. However, in the process of implementing the present invention, the inventor finds that at least the following problems exist in the prior related art: in the prior art, the step of measuring the distance through the mobile terminal is complicated, and the operation is troublesome.
Disclosure of Invention
An object of an embodiment of the present invention is to provide a distance measuring method, a distance measuring device, and a mobile terminal, which solve the technical problem in the prior art that distance measurement by a mobile terminal is relatively troublesome.
In order to solve the above technical problems, embodiments of the present invention provide the following technical solutions:
in a first aspect, an embodiment of the present invention provides a distance measuring method applied to a mobile terminal, where the mobile terminal includes a first display screen and a second display screen that are foldable with each other, a first visible light generating unit is disposed on one side of the first display screen, a second visible light generating unit is disposed on one side of the second display screen, the first visible light generating unit is opposite to the second visible light generating unit, and a first included angle between a first visible light emitted by the first visible light generating unit and the first display screen is equal to a second included angle between a second visible light emitted by the second visible light generating unit and the second display screen. The method comprises the following steps: when the first visible light and the second visible light are aligned to an object to be measured and the focal points of the first visible light and the second visible light coincide, acquiring the first included angle, the second included angle, a third included angle between the first display screen and the second display screen, a first length of the first display screen and a second length of the second display screen, wherein the first length is equal to the second length; and calculating the distance between the object to be measured and the mobile terminal according to the cosine theorem, the first included angle, the second included angle, a third included angle between the first display screen and the second display screen, the length of the first display screen and the length of the second display screen.
Optionally, the method further comprises: acquiring the light intensity of the surrounding environment of the mobile terminal; and respectively adjusting the brightness of the first visible light and the second visible light according to the light intensity.
Optionally, the adjusting the brightness of the first visible light and the brightness of the second visible light according to the light intensity respectively includes: judging whether the light intensity is greater than a preset threshold value or not; if the brightness of the first visible light is larger than the brightness of the second visible light, the brightness of the first visible light and the brightness of the second visible light are respectively improved; if the brightness of the first visible light ray is smaller than the brightness of the second visible light ray, the current brightness of the first visible light ray and the current brightness of the second visible light ray are kept.
Optionally, after calculating the distance between the object to be measured and the mobile terminal, the method further includes: determining the display states of the first display screen and the second display screen; according to the display states of the first display screen and the second display screen, at least turning off any one of the first display screen and the second display screen; and displaying the distance between the object to be measured and the mobile terminal in the display screen in the screen-off state.
Optionally, the method further comprises: if the display state of the display screen in the screen-off state before being turned off is the awakening state, acquiring foreground application data of the display screen in the screen-off state before being turned off, wherein the foreground application data is executed in a foreground process; and when the exit of the ranging operation is detected, re-executing the foreground application data on the display screen in the screen-off state.
Optionally, the first visible light generating unit and the second visible light generating unit are both infrared light emitters.
In a second aspect, an embodiment of the present invention provides a distance measuring device applied to a mobile terminal, where the mobile terminal includes a first display screen and a second display area that are foldable with each other, a first visible light generating unit is disposed on one side of the first display screen, a second visible light generating unit is disposed on one side of the second display screen, the first visible light generating unit is opposite to the second visible light generating unit, a first included angle between a first visible light emitted by the first visible light generating unit and the first display screen is equal to a second included angle between a second visible light emitted by the second visible light generating unit and the second display screen, and the distance measuring device includes: the first acquisition module is used for acquiring the first included angle, the second included angle, a third included angle between the first display screen and the second display screen, a first length of the first display screen and a second length of the second display screen when the first visible light and the second visible light are aligned to an object to be measured and the focal points of the first visible light and the second visible light coincide with each other, wherein the first length is equal to the second length; and the calculation module is used for calculating the distance between the object to be measured and the mobile terminal according to the cosine theorem, the first included angle, the second included angle, a third included angle between the first display screen and the second display screen, the length of the first display screen and the length of the second display screen.
Optionally, the apparatus further comprises: the second acquisition module is used for acquiring the light intensity of the surrounding environment of the mobile terminal; and the adjusting module is used for respectively adjusting the brightness of the first visible light and the second visible light according to the light intensity.
Optionally, the adjusting module comprises: the judging unit is used for judging whether the light intensity is larger than a preset threshold value or not; the improving unit is used for respectively improving the brightness of the first visible light and the second visible light if the brightness of the first visible light is larger than the brightness of the second visible light; and the holding unit is used for holding the current brightness of the first visible light and the second visible light if the current brightness is smaller than the preset brightness.
Optionally, the apparatus further comprises: the determining module is used for determining the display states of the first display screen and the second display screen; the extinguishing module is used for extinguishing at least any one of the first display screen and the second display screen according to the display states of the first display screen and the second display screen; and the presentation module is used for presenting the distance between the object to be measured and the mobile terminal in the display screen in the screen-off state.
Optionally, the apparatus further comprises: the third acquisition module is used for acquiring foreground application data of the display screen in the screen-off state before being extinguished if the display state of the display screen in the screen-off state before being extinguished is an awakening state, wherein the foreground application data is executed in a foreground process; and the execution module is used for re-executing the foreground application data on the display screen in the screen-off state when the condition that the distance measurement operation is quitted is detected.
Optionally, the first visible light generating unit and the second visible light generating unit are both infrared light emitters.
In a third aspect, an embodiment of the present invention provides a mobile terminal, where the mobile terminal includes: a first display screen; a rotating shaft; the second display screen is connected with the rotating shaft through the rotating shaft; at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the ranging method of any one of the preceding claims.
In a fourth aspect, an embodiment of the present invention provides a non-transitory computer-readable storage medium storing computer-executable instructions for causing a mobile terminal to perform any one of the ranging methods described herein.
In each embodiment of the invention, during ranging, the first visible light and the second visible light are aligned to the object to be measured, the focuses of the first visible light and the second visible light are coincident, and the distance between the object to be measured and the mobile terminal is calculated by combining the cosine theorem through the first included angle, the second included angle, the third included angle between the first display screen and the second display screen, the first length of the first display screen and the second length of the second display screen.
Drawings
One or more embodiments are illustrated by way of example in the accompanying drawings, which correspond to the figures in which like reference numerals refer to similar elements and which are not to scale unless otherwise specified.
Fig. 1 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention;
fig. 2 is a schematic block circuit diagram of a mobile terminal according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating a ranging method based on a mobile station according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of a controller according to an embodiment of the present invention;
FIG. 5 is a schematic structural diagram of a distance measuring device according to an embodiment of the present invention;
FIG. 6 is a schematic structural diagram of a distance measuring device according to another embodiment of the present invention;
FIG. 7 is a schematic structural diagram of a conditioning module according to an embodiment of the present invention;
FIG. 8 is a schematic structural diagram of a distance measuring device according to yet another embodiment of the present invention;
FIG. 9 is a schematic structural diagram of a distance measuring device according to yet another embodiment of the present invention;
fig. 10 is a flowchart illustrating a distance measuring method according to an embodiment of the present invention;
FIG. 11 is a flowchart illustrating a distance measuring method according to another embodiment of the present invention;
FIG. 12 is a schematic flow chart of a step 64 provided by the embodiment of the present invention;
fig. 13 is a flowchart illustrating a distance measuring method according to another embodiment of the present invention;
fig. 14 is a flowchart illustrating a ranging method according to yet another embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The ranging method provided by the embodiment of the present invention may be implemented in any suitable type of mobile terminal having a processor with a user interaction device and computing capability, for example: smart phones, computers, Personal Digital Assistants (PDAs), tablet computers, smart watches, electronic books, and the like.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention. As shown in fig. 1, the mobile terminal 10 includes a first display 110, a second display 120, and a hinge 130. The second display screen 120 can rotate relative to the first display screen 110 through the rotating shaft 130, and a certain included angle is formed between the second display screen 120 and the first display screen 110, that is, the second display screen 120 can be folded relative to the first display screen 110 in this embodiment.
In some embodiments, the first display screen 110 and the second display screen 120 may also be two different display areas formed by a flexible screen, and the same effect as the hinge described above is achieved by the foldable property of the flexible screen.
The first display screen 110 and the second display screen 120 may be any suitable type of display device for displaying video, images, etc. The first display screen 110 and the second display screen 120 are two relatively independent display devices, which can receive corresponding data to display the content related to the mobile terminal through an independently set interface.
In some embodiments, in order to detect the angle between the first display screen 110 and the second display screen 120, a gyroscope sensor is disposed on the first display screen 110 and/or the second display screen 120, and the gyroscope sensor can detect the angle between the first display screen 110 and the second display screen 120.
Referring to fig. 2, fig. 2 is a schematic circuit block diagram of a mobile terminal according to an embodiment of the present invention. As shown in fig. 2, the mobile terminal 20 includes: a first display screen 210, a second display screen 220, a controller 230, and a power module 240.
The specific structures of the second display screen 220 and the first display screen 210 can be as shown in fig. 1, the second display screen 220 and the first display screen 210 can be folded relatively, and the relative position relationship between the two can be adjusted to adapt to different application scene requirements. For example, by rotating the first display screen 210, the first display screen 210 and the second display screen 220 are oriented in the same direction or different directions (the orientation of the first display screen or the second display screen refers to the orientation of the side of the display screen used for displaying content to the user). Since, as shown in fig. 1, the first display screen 210 and the second display screen 22 are connected by a rotation shaft, both can rotate around the rotation shaft. Therefore, the first display screen 210 and the second display screen 220 can be rotated relatively to each other to change the folding angle of the first display screen 210 and the second display screen 220, so as to adapt to the requirements of different application scenarios.
When the change of the relative position state between the first display screen 210 and the second display screen 220 mainly lies in the change of the folding angle therebetween, the relative position state may be divided into two states, i.e., a folded state and an unfolded state, by setting a preset angle threshold.
The folded state refers to a state in which the first display screen 210 and the second display screen 220 tend to face in opposite directions when the folded angle is smaller than a preset angle threshold. The unfolded state is a state in which the first display screen 210 and the second display screen 220 are more oriented in the same direction when the folding angle is greater than the preset angle threshold.
The controller 230 is a core control module of the mobile terminal, which has certain logical operation capability and can execute one or more programmed instructions to complete corresponding operation steps. The controller 230 is connected to the first display screen 210 and the second display screen 220, respectively, and controls the first display screen 210 and the second display screen 220 to display the related content of the mobile terminal 20. Also, the controller 230 may perform an interface display control method described in the following method embodiments based on the first display screen 210 and the second display screen 220, for example, the controller 230 may determine a relative position state of the second display screen 220 and the first display screen 210, and control the first display screen 210 and the second display screen 220 to perform a display mode corresponding to the relative position state.
The power module 240 is an energy supply unit of the mobile terminal 20, and may be any type of energy storage device such as a lithium battery, an ultra-thin battery, or a storage battery. The power module 240 may further have a plurality of different voltage output terminals, which respectively supply power to the first display screen 210, the second display screen 220, and the controller 240, so as to provide working voltages required by the functional modules.
Specifically, the power module 240 may include a first battery 241, a second battery 242, and a power management chip 243.
Wherein the first battery 241 is disposed on the first display screen 210 and the second battery 242 is disposed on the second display screen 242. In some embodiments, in order to ensure the lightness and thinness of the structure and to reduce the thickness, the first battery and the second battery may each employ an ultra-thin lithium battery.
The first battery 241 and the second battery 242 are connected in parallel, and power is supplied to the first display screen 210, the second display screen 220 and the controller 230 through the power management chip 243. The power management chip 243 may be any type of chip that is used to implement relevant power control functions such as re-discharge management and voltage output management. The power management chip may be selected from commercially available chips according to actual situations, and is a technology commonly used by those skilled in the art, and is not described herein again. By the mode, the mobile terminal can keep the pool capacity under the condition of having two display screens, and the whole endurance time and the whole thickness of the mobile terminal cannot be influenced.
Referring to fig. 2, in some embodiments, the controller 230 is connected to the first display screen 210 and the second display screen 220 through a first DSI port and a second DSI port, respectively, which are used for transmitting image data to the first display screen 210 and the second display screen 220. Since the controller 230 is connected to the first display screen 210 and the second display screen 220 through two independent DSI ports, respectively, the controller 230 can independently control the contents displayed by the two display screens, thereby performing a full-screen display mode or a split-screen display mode.
In other embodiments, the first display screen 210 and the second display screen 220 may be connected to the controller 230 through other ports for transmitting different types of data. For example, the control signals are transmitted through an I2C bus by way of an I2C bus.
Since, the controller 230 has two independent DSI ports for connection with the first display screen 210 and the second display screen 220, respectively. Thus, the controller 230 outputs independent display data in both the folded and unfolded states, and the difference between the states is only the relationship or source between the display data output by the controller. Here, the display data output to the first display screen by the controller 230 may be represented using the first display data, and the display data output to the second display screen by the controller 230 may be represented using the second display data.
Of course, in order to satisfy the foldable function of the first display screen and the second display screen, the connection between the controller 230 and the first display screen 210 and the second display screen 220 and the connection between the first battery 241 and the second battery 242 may be implemented by using an FPC flexible board, so as to ensure the flexibility of the connection member.
Further, one side of the first display screen 210 is provided with a first visible light generating unit, one side of the second display screen 220 is provided with a second visible light generating unit, and the first visible light generating unit is opposite to the second visible light generating unit. The first visible light generating unit and the second visible light generating unit are infrared light emitters, and the brightness of the infrared light emitters can be adjusted by the controller 230.
In this embodiment, the mobile terminal 20 may implement ranging through the first visible light generating unit and the second visible light generating unit, wherein a first included angle α between the first visible light emitted by the first visible light generating unit and the first display screen 210 is equal to a second included angle β between the second visible light emitted by the second visible light generating unit and the second display screen 220, and the first included angle α and the second included angle β are configured to be preset on the mobile terminal 20.
As shown in fig. 3, AB is the length of the first display screen 210, AC is the length of the second display screen 220, point O is the position of the object to be measured, straight line BO is the first visible light emitted by the first visible light generating unit, and straight line CO is the second visible light emitted by the second visible light generating unit.
In the following, the embodiment of the present invention describes the ranging method in detail with reference to fig. 3, which includes the following steps:
when measuring the distance between the object to be measured and the mobile terminal, first, the user operates the first display screen 210 and the second display screen 220 to make the first visible light and the second visible light aim at the object to be measured, and the focal points of the first visible light and the second visible light coincide.
Next, the controller 230 accesses the gyro sensor to obtain a third angle θ between the first display screen 210 and the second display screen 220, and meanwhile, the controller 230 further obtains the first angle α, the second angle β, the first length h1 of the first display screen 210, and the second length h2 of the second display screen 220 in sequence, and since the first display screen 210 and the second display screen 220 have the same structure, the first length h1 is equal to the second length h 2.
Thirdly, the controller 230 calculates the distance s between the object to be measured and the mobile terminal according to the cosine theorem, the first included angle α, the second included angle β, the third included angle θ, the first length h1 and the second length h 2:
since AB is AC, the triangle ABC is an isosceles triangle, ∠ ABC is ∠ ACB.
Since the first included angle α is equal to the second included angle β, ∠ OBC is ∠ OCB.
Since ∠ OBC ∠ OCB, OB OC.
For triangle OBA and triangle OCA, since OB ═ OC, α ═ β, and AB ═ AC, triangle OBA and triangle OCA are congruent triangles.
Since triangle OBA and triangle OCA are congruent triangles and OA averages third angle θ, ∠ BAD is ∠ CAD is 0.5 θ
According to the cosine law, when the length value of the AB, the first included angle α and the ∠ BAD are known, and any edge or any angle value in the triangle OBA can be calculated, therefore, the controller 230 calculates OA, that is, the distance S between the object to be measured and the mobile terminal according to the cosine law, the length value of the AB, the first included angle α and the ∠ BAD.
Compared with the traditional technology, the distance measurement is simple, convenient and fast, and the accuracy is high.
When the brightness of the environment where the mobile terminal is located is relatively high, it is difficult for the user to coincide the focal points of the first visible light and the second visible light. When the brightness of the environment where the mobile terminal is located is relatively small, the higher brightness of the first visible light and the second visible light causes energy consumption waste. Therefore, in some embodiments, in the ranging process, the controller 230 may obtain the light intensity of the environment around the mobile terminal by accessing the light intensity sensor disposed on the display screen, and adjust the brightness of the first visible light and the second visible light according to the light intensity. For example: the controller 230 determines whether the light intensity is greater than a preset threshold, and if so, respectively increases the brightness of the first visible light and the second visible light; if the brightness is smaller than the preset value, the current brightness of the first visible light and the second visible light is kept. Therefore, when the brightness of the environment where the mobile terminal is located is large, the user can easily find the coincident focus of the first visible light and the second visible light by improving the brightness of each visible light, and therefore the ranging efficiency is improved.
In some embodiments, controller 230 may also present the final ranging results on a display screen. For example: after the controller 230 calculates the distance between the object to be measured and the mobile terminal, first, the controller 230 determines the display states of the first display screen 210 and the second display screen 220, where the display states include an awake state and an off state, and the awake state refers to a state where the display screens are lit, and can display the image content. The screen-out state means that the display screen fails to light up. Next, the controller 230 turns off at least any one of the first display screen 210 and the second display screen 220 according to the display states of the first display screen 210 and the second display screen 220, for example: the first display screen 210 and the second display screen 220 are both in the wake-up state, and the controller 230 may turn off the first display screen 210 or the second display screen 220, or the controller 230 may turn off the first display screen 210 and the second display screen 220. Finally, the controller 230 presents the distance between the object to be measured and the mobile terminal in the display screen in the screen-off state, for example: the first display screen 210 is in the off-screen state, and the controller 230 presents the ranging result to the first display screen 210.
Therefore, in this way, on the one hand, it can inform the user of the ranging result, and on the other hand, it can reduce power consumption during the ranging process.
After the mobile terminal presents the ranging result to the user, in order to enable the user to quickly cut in the application content before ranging, and improve the user experience, in some embodiments, if the display state of the display screen in the screen-off state before being turned off is the wake-up state, the controller 230 obtains foreground application data of the display screen in the screen-off state before being turned off, where the foreground application data is executed in a foreground process, and the foreground application data is data corresponding to the application executed in the foreground process. Next, the controller 230 re-executes foreground application data on the display screen in the off-screen state when detecting that the ranging operation is exited. For example: before ranging, the foreground process of the first display screen 210 executes game application data, which is data of the game application program. Then, the controller 230 suspends the execution of the game application data and extinguishes the first display screen 210. After the ranging is completed, the user operates the mobile terminal to exit the ranging operation, and then the controller 230 resumes the game application data on the first display screen 210. Therefore, by adopting the mode, the user experience can be improved.
In the above embodiments, as shown in fig. 4, the controller 230 includes: at least one processor 231 and a memory 232 communicatively coupled to the at least one processor 231; in fig. 4, one processor 231 is taken as an example. The processor 231 and the memory 232 may be connected by a bus or other means, such as the bus connection shown in fig. 4.
Wherein the memory 232 stores instructions executable by the at least one processor to enable the at least one processor 231 to execute the control logic of the ranging method described above.
As another aspect of the embodiments of the present invention, an embodiment of the present invention provides a ranging apparatus, which is applied to a mobile terminal, where the mobile terminal may be shown in the foregoing embodiments, for example: as shown in fig. 1 and 2. The ranging apparatus is a software system, which can be stored in the mobile terminal described in the above embodiments. The distance measuring device comprises a plurality of instructions, the instructions are stored in a memory, and a processor can access the memory and call the instructions to execute so as to complete the distance measuring device.
As shown in fig. 5, the distance measuring device 50 includes: a first obtaining module 51 and a calculating module 52.
The first obtaining module 51 is configured to obtain a first included angle, a second included angle, a third included angle between the first display screen and the second display screen, a first length of the first display screen, and a second length of the second display screen when the first visible light and the second visible light are aligned to the object to be measured and the focal points of the first visible light and the second visible light coincide with each other, where the first length is equal to the second length.
The calculating module 52 is configured to calculate a distance between the object to be measured and the mobile terminal according to the cosine theorem, the first included angle, the second included angle, the third included angle between the first display screen and the second display screen, the length of the first display screen, and the length of the second display screen.
Compared with the traditional technology, the distance measurement is simple, convenient and fast, and the accuracy is high.
In some embodiments, as shown in fig. 6, the distance measuring device 50 further includes: a second obtaining module 53 and an adjusting module 54.
The second obtaining module 53 is configured to obtain light intensity of an environment around the mobile terminal;
the adjusting module 54 is used for adjusting the brightness of the first visible light and the brightness of the second visible light respectively according to the light intensity.
In some embodiments, as shown in fig. 7, the adjustment module 54 includes: a determination unit 541, an increasing unit 542, and a holding unit 543.
The determination unit 541 is used for determining whether the light intensity is greater than a preset threshold.
The increasing unit 542 is configured to increase the brightness of the first visible light and the second visible light if the brightness is larger than the first brightness.
The holding unit 543 is used for holding the current brightness of the first visible light and the second visible light if the current brightness is smaller than the first brightness.
In some embodiments, as shown in fig. 8, the distance measuring device 50 further includes: a determination module 55, a blanking module 56, and a presentation module 57.
The determining module 55 is configured to determine display states of the first display screen and the second display screen.
The turning-off module 56 is configured to turn off at least any one of the first display screen and the second display screen according to the display states of the first display screen and the second display screen.
The presenting module 57 is configured to present a distance between the object to be measured and the mobile terminal in the display screen in the screen-off state.
In some embodiments, as shown in fig. 9, the distance measuring device 50 further includes: a third obtaining module 58 and an executing module 59.
The third obtaining module 58 is configured to obtain foreground application data before the display screen in the screen-off state is turned off if the display state of the display screen in the screen-off state before the display screen is turned off is an awake state, where the foreground application data is executed in a foreground process;
the execution module 59 is configured to, when detecting that the ranging operation is exited, re-execute foreground application data on the display screen in the screen-off state.
In some embodiments, the first visible light generating unit and the second visible light generating unit are both infrared light emitters.
Since the device embodiment and the above embodiments are based on the same concept, the content of the device embodiment may refer to the above embodiments on the premise that the contents do not conflict with each other, and will not be described herein.
As another aspect of the embodiments of the present invention, an embodiment of the present invention provides a distance measuring method. In addition to the functions of the ranging method according to the embodiments of the present invention being executed by the software system of the ranging apparatus described in fig. 5 to 9, the ranging method according to the embodiments of the present invention can also be executed by a hardware platform. For example: the ranging method may be performed in a mobile terminal of a suitable type having a processor with computing capabilities, for example: a single chip, a Digital Signal Processing (DSP), a Programmable Logic Controller (PLC), and so on.
The functions corresponding to the ranging methods of the various embodiments described below are stored in the form of instructions in the memory of the mobile terminal, and when the functions corresponding to the ranging methods of the various embodiments described below are to be executed, the processor of the mobile terminal accesses the memory, retrieves and executes the corresponding instructions to implement the functions corresponding to the ranging methods of the various embodiments described below.
The memory, as a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as program instructions/modules (e.g., the respective modules and units described in fig. 5 to 9) corresponding to the ranging apparatus 50 in the above embodiments, or steps corresponding to the ranging method in the following embodiments. The processor executes various functional applications and data processing of the ranging apparatus 50 by executing nonvolatile software programs, instructions and modules stored in the memory, that is, functions of each module and unit of the ranging apparatus 50 according to the following embodiments or functions of steps corresponding to the ranging method according to the following embodiments.
The memory may include high speed random access memory and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, the memory optionally includes memory located remotely from the processor, and such remote memory may be coupled to the processor via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The program instructions/modules stored in the memory, when executed by the one or more processors, perform the ranging method in any of the above method embodiments, e.g., perform the steps shown in fig. 10-14 described in the embodiments below; the functions of the various modules and units described in fig. 5-9 may also be implemented.
The ranging method is applied to a mobile terminal, wherein the mobile terminal may be as shown in the foregoing embodiments, for example: as shown in fig. 1 and 2.
As shown in fig. 10, the ranging method 60 includes:
step 61, when the first visible light and the second visible light are aligned to the object to be measured and the focuses of the first visible light and the second visible light coincide, acquiring a first included angle, a second included angle, a third included angle between the first display screen and the second display screen, a first length of the first display screen and a second length of the second display screen, wherein the first length is equal to the second length;
and step 62, calculating the distance between the object to be measured and the mobile terminal according to the cosine theorem, the first included angle, the second included angle, the third included angle between the first display screen and the second display screen, the length of the first display screen and the length of the second display screen.
Compared with the traditional technology, the distance measurement is simple, convenient and fast, and the accuracy is high.
In some embodiments, as shown in fig. 11, the ranging method 60 further comprises:
step 63, acquiring the light intensity of the surrounding environment of the mobile terminal;
and step 64, respectively adjusting the brightness of the first visible light and the second visible light according to the light intensity.
In some embodiments, as shown in fig. 12, step 64 includes:
step 641 of determining whether the light intensity is greater than a preset threshold;
step 642, if the brightness of the first visible light is larger than the brightness of the second visible light, respectively increasing the brightness of the first visible light and the brightness of the second visible light;
step 643, if the brightness of the first visible light is smaller than the current brightness of the second visible light, the current brightness of the first visible light and the current brightness of the second visible light are maintained.
In some embodiments, as shown in fig. 13, the ranging method 60 further includes:
step 65, determining the display states of the first display screen and the second display screen;
66, at least turning off any one of the first display screen and the second display screen according to the display states of the first display screen and the second display screen;
and 67, displaying the distance between the object to be measured and the mobile terminal in the display screen in the screen-off state.
In some embodiments, as shown in fig. 14, the ranging method 60 further includes:
68, if the display state of the display screen in the screen-off state before being extinguished is the awakening state, acquiring foreground application data of the display screen in the screen-off state before being extinguished, wherein the foreground application data is executed in a foreground process;
and step 69, when the exit of the distance measurement operation is detected, re-executing the foreground application data on the display screen in the screen-off state.
In some embodiments, the first visible light generating unit and the second visible light generating unit are both infrared light emitters.
Since the method embodiment and the above embodiments are based on the same concept, the contents of the method embodiment may refer to the above embodiments on the premise that the contents do not conflict with each other, and are not described herein again.
As another aspect of the embodiments of the present invention, an embodiment of the present invention provides a non-transitory computer-readable storage medium storing computer-executable instructions for causing a mobile terminal to perform any one of the ranging methods.
Compared with the traditional technology, the distance measurement is simple, convenient and fast, and the accuracy is high.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; within the idea of the invention, also technical features in the above embodiments or in different embodiments may be combined, steps may be implemented in any order, and there are many other variations of the different aspects of the invention as described above, which are not provided in detail for the sake of brevity; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.

Claims (13)

1. The utility model provides a range finding method, is applied to mobile terminal, mobile terminal includes first display screen and the second display screen that can fold each other, one side of first display screen is provided with first visible light and produces the unit, one side of second display screen is provided with the second visible light and produces the unit, first visible light produces the unit with the second visible light produces the unit relatively, first visible light that first visible light produced the unit transmission with first contained angle between the first display screen equals the second visible light that the second visible light produced the unit transmission with the second contained angle between the second display screen, first contained angle with the second contained angle set up in advance on mobile terminal, its characterized in that, the method includes:
when the distance between an object to be measured and the mobile terminal is measured, a user operates the first display screen and the second display screen to enable the first visible light and the second visible light to be aligned with the object to be measured, the focal points of the first visible light and the second visible light are overlapped to obtain the first included angle, the second included angle, a third included angle between the first display screen and the second display screen, the first length of the first display screen and the second length of the second display screen, and the first length is equal to the second length;
calculating the distance between the object to be measured and the mobile terminal according to the cosine theorem, the first included angle, the second included angle, a third included angle between the first display screen and the second display screen, the length of the first display screen and the length of the second display screen;
after calculating the distance between the object to be measured and the mobile terminal, the method further comprises:
determining the display states of the first display screen and the second display screen;
and at least turning off any one display screen of the first display screen and the second display screen according to the display states of the first display screen and the second display screen.
2. The method of claim 1, further comprising:
acquiring the light intensity of the surrounding environment of the mobile terminal;
and respectively adjusting the brightness of the first visible light and the second visible light according to the light intensity.
3. The method of claim 2, wherein the adjusting the brightness of the first visible light and the second visible light respectively according to the light intensity comprises:
judging whether the light intensity is greater than a preset threshold value or not;
if the brightness of the first visible light is larger than the brightness of the second visible light, the brightness of the first visible light and the brightness of the second visible light are respectively improved;
if the brightness of the first visible light ray is smaller than the brightness of the second visible light ray, the current brightness of the first visible light ray and the current brightness of the second visible light ray are kept.
4. The method according to any one of claims 1 to 3, further comprising:
and displaying the distance between the object to be measured and the mobile terminal in the display screen in the screen-off state.
5. The method of claim 4, further comprising:
if the display state of the display screen in the screen-off state before being turned off is the awakening state, acquiring foreground application data of the display screen in the screen-off state before being turned off, wherein the foreground application data is executed in a foreground process;
and when the exit of the ranging operation is detected, re-executing the foreground application data on the display screen in the screen-off state.
6. The method of claim 1, wherein the first visible light generating unit and the second visible light generating unit are both infrared light emitters.
7. The utility model provides a range unit, is applied to mobile terminal, mobile terminal is including first display screen and the second display screen that can fold each other, one side of first display screen is provided with first visible light and produces the unit, one side of second display screen is provided with second visible light and produces the unit, first visible light produce the unit with second visible light produces the unit relatively, first visible light that first visible light produced the unit transmission with first contained angle between the first display screen equals second visible light that second visible light produced the unit transmission with second contained angle between the second display screen, first contained angle with the second contained angle is in advance set up on the mobile terminal, its characterized in that, the device includes:
the first acquisition module is used for operating the first display screen and the second display screen by a user when measuring the distance between an object to be measured and the mobile terminal, so that the first visible light and the second visible light are aligned to the object to be measured, the focuses of the first visible light and the second visible light are superposed, the first included angle, the second included angle, a third included angle between the first display screen and the second display screen, the first length of the first display screen and the second length of the second display screen are acquired, and the first length is equal to the second length;
the calculation module is used for calculating the distance between the object to be measured and the mobile terminal according to the cosine theorem, the first included angle, the second included angle, a third included angle between the first display screen and the second display screen, the length of the first display screen and the length of the second display screen;
the determining module is used for determining the display states of the first display screen and the second display screen;
and the extinguishing module is used for extinguishing at least any one of the first display screen and the second display screen according to the display states of the first display screen and the second display screen.
8. The apparatus of claim 7, further comprising:
the second acquisition module is used for acquiring the light intensity of the surrounding environment of the mobile terminal;
and the adjusting module is used for respectively adjusting the brightness of the first visible light and the second visible light according to the light intensity.
9. The apparatus of claim 8, wherein the adjustment module comprises:
the judging unit is used for judging whether the light intensity is larger than a preset threshold value or not;
the improving unit is used for respectively improving the brightness of the first visible light and the second visible light if the brightness of the first visible light is larger than the brightness of the second visible light;
and the holding unit is used for holding the current brightness of the first visible light and the second visible light if the current brightness is smaller than the preset brightness.
10. The apparatus of any one of claims 7 to 9, further comprising:
and the presentation module is used for presenting the distance between the object to be measured and the mobile terminal in the display screen in the screen-off state.
11. The apparatus of claim 10, further comprising:
the third acquisition module is used for acquiring foreground application data of the display screen in the screen-off state before being extinguished if the display state of the display screen in the screen-off state before being extinguished is an awakening state, wherein the foreground application data is executed in a foreground process;
and the execution module is used for re-executing the foreground application data on the display screen in the screen-off state when the condition that the distance measurement operation is quitted is detected.
12. The apparatus of claim 7, wherein the first visible light generating unit and the second visible light generating unit are both infrared light emitters.
13. A mobile terminal, comprising:
a first display screen;
a rotating shaft;
the second display screen is connected with the rotating shaft through the rotating shaft;
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the ranging method of any of claims 1 to 6.
CN201710792714.4A 2017-09-05 2017-09-05 Distance measuring method and device and mobile terminal Active CN107655447B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710792714.4A CN107655447B (en) 2017-09-05 2017-09-05 Distance measuring method and device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710792714.4A CN107655447B (en) 2017-09-05 2017-09-05 Distance measuring method and device and mobile terminal

Publications (2)

Publication Number Publication Date
CN107655447A CN107655447A (en) 2018-02-02
CN107655447B true CN107655447B (en) 2020-06-30

Family

ID=61129220

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710792714.4A Active CN107655447B (en) 2017-09-05 2017-09-05 Distance measuring method and device and mobile terminal

Country Status (1)

Country Link
CN (1) CN107655447B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201059970Y (en) * 2007-06-26 2008-05-14 武汉大学 Laser triangular distance measuring apparatus
CN204759784U (en) * 2015-05-20 2015-11-11 肖龙英 Multimedia teaching terminal with two display screens
CN105758314A (en) * 2016-01-15 2016-07-13 清华大学 Long-distance laser ranging method
CN105929539A (en) * 2016-05-19 2016-09-07 彭波 Automobile or mobile device 3D image acquisition and naked-eye 3D head-up display system and 3D image processing method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201059970Y (en) * 2007-06-26 2008-05-14 武汉大学 Laser triangular distance measuring apparatus
CN204759784U (en) * 2015-05-20 2015-11-11 肖龙英 Multimedia teaching terminal with two display screens
CN105758314A (en) * 2016-01-15 2016-07-13 清华大学 Long-distance laser ranging method
CN105929539A (en) * 2016-05-19 2016-09-07 彭波 Automobile or mobile device 3D image acquisition and naked-eye 3D head-up display system and 3D image processing method

Also Published As

Publication number Publication date
CN107655447A (en) 2018-02-02

Similar Documents

Publication Publication Date Title
EP3335097B1 (en) Method for measuring angles between displays and electronic device using the same
CN107913520B (en) Information processing method, information processing device, electronic equipment and storage medium
US9342138B2 (en) Mobile device and rotating method of image thereon
US10748348B2 (en) Method, apparatus and electronic device for displaying an image and storage medium
US10051180B1 (en) Method and system for removing an obstructing object in a panoramic image
US9377989B2 (en) Information processing method for slicing and displaying object and electric device for implementing the same
CN107360375B (en) Shooting method and mobile terminal
CN106980363B (en) Wearable terminal and control method
US9733553B2 (en) Information processing method for adjusting electronic device with projection function and electronic device with projection function
CN110853128B (en) Virtual object display method and device, computer equipment and storage medium
CN105531648A (en) Information processor and information processing method
US20220101767A1 (en) Control method, electronic apparatus, and computer-readable storage medium
CN108646280A (en) A kind of localization method, device and user terminal
CN106406678A (en) Method and system of displaying icon of mobile terminal dynamically
CN108174086B (en) Shooting method and related product
US20150042633A1 (en) Display method and electronic device
CN106156132B (en) Picture loading display method and device
WO2018077093A1 (en) Method and device for controlling mobile terminal, and mobile terminal
CN104423829A (en) Information processing method and electronic equipment
CN110738972A (en) Page refreshing method and device for ink screen
US20150160841A1 (en) Desktop-like device and method for displaying user interface
CN107655447B (en) Distance measuring method and device and mobile terminal
CN108388336B (en) Power consumption control method and device and computer readable storage medium
CN112099717B (en) Folding screen state detection method and device, electronic equipment and display system
CN112486616A (en) Interface display method, interface display device, electronic equipment and storage medium

Legal Events

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