CN104767953A - Control method and electronic equipment - Google Patents

Control method and electronic equipment Download PDF

Info

Publication number
CN104767953A
CN104767953A CN201410008656.8A CN201410008656A CN104767953A CN 104767953 A CN104767953 A CN 104767953A CN 201410008656 A CN201410008656 A CN 201410008656A CN 104767953 A CN104767953 A CN 104767953A
Authority
CN
China
Prior art keywords
parameter
projection unit
target object
unit
subunit
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.)
Pending
Application number
CN201410008656.8A
Other languages
Chinese (zh)
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 CN201410008656.8A priority Critical patent/CN104767953A/en
Priority to US14/459,693 priority patent/US9430083B2/en
Publication of CN104767953A publication Critical patent/CN104767953A/en
Pending legal-status Critical Current

Links

Landscapes

  • Studio Devices (AREA)

Abstract

The invention discloses a control method applied to electronic equipment. The electronic equipment comprises a projection unit and a depth detection unit, wherein the projection unit can project first multimedia data on a target object. The method comprises that the depth detection unit detects depth information of the target object; a second parameter of the projection unit is calculated according to the depth information of the target object and a first parameter of the projection unit; and on the basis of the second parameter of the projection, the projection unit is moved to a first position so that the projection unit projects a first display frame of the first multimedia data. The invention also discloses the electronic equipment. According to technical schemes of the invention, a projector can be focused rapidly and accurately.

Description

Control method and electronic equipment
Technical Field
The present invention relates to a control technology in the field of projection, and in particular, to a control method and an electronic device.
Background
When a projector projects, the position of an optical lens in the projector needs to be adjusted to project a clear image on a projection surface, and this process is called focusing of the projector. Two modes are generally adopted for adjusting the position of an optical lens in a projector, the first mode is to manually adjust the position of the optical lens, and the mode is troublesome to operate and low in precision; the other method is to use a stepping motor to move the optical lens to a plurality of positions, record the definitions corresponding to the positions, finally obtain the position with the highest definition, and move the optical lens to the position with the highest definition.
Disclosure of Invention
In view of the above, an embodiment of the present invention provides a control method and an electronic device, which can quickly and accurately focus on a projector.
In order to achieve the above purpose, the technical solution of the embodiment of the present invention is realized as follows:
a control method is applied to an electronic device, and the electronic device comprises a projection unit and a depth detection unit; the projection unit is capable of projecting first multimedia data on a target object; the method comprises the following steps:
detecting depth information of the target object by using the depth detection unit;
calculating a second parameter of the projection unit according to the depth information of the target object and the first parameter of the projection unit;
and moving the projection unit to a first position based on the second parameter of the projection unit so that the projection unit projects a first display picture of the first multimedia number.
An electronic device comprising a projection unit capable of projecting first multimedia data on a target object; the electronic device further includes: the device comprises a depth detection unit, a calculation unit and a control unit; wherein,
the depth detection unit is used for detecting the depth information of the target object;
the calculating unit is used for calculating a second parameter of the projecting unit according to the depth information of the target object and the first parameter of the projecting unit;
the control unit is used for moving the projection unit to a first position based on a second parameter of the projection unit so as to enable the projection unit to project a first display picture of the first multimedia number.
According to the technical scheme of the embodiment of the invention, the distance between the projection unit and the target object is determined by acquiring the depth information of the target object, then the second parameter of the projection unit is calculated based on the depth information of the target object and the first parameter of the projection unit, and the projection unit is moved to the corresponding position, so that the projector can be focused quickly and accurately, and the user experience is improved.
Drawings
Fig. 1 is a schematic flowchart of a control method according to a first embodiment of the invention;
FIG. 2 is a flowchart illustrating a control method according to a second embodiment of the present invention;
FIG. 3 is a flowchart illustrating a control method according to a third embodiment of the present invention;
FIG. 4 is a flowchart illustrating a control method according to a fourth embodiment of the present invention;
FIG. 5 is a flowchart illustrating a control method according to a fifth embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to a first embodiment of the invention;
fig. 7 is a schematic structural diagram of an electronic device according to a second embodiment of the invention;
fig. 8 is a schematic structural diagram of an electronic device according to a third embodiment of the present invention;
fig. 9 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention;
fig. 10 is a schematic structural diagram of an electronic device according to a fifth embodiment of the present invention.
Detailed Description
So that the manner in which the features and aspects of the present invention can be understood in detail, a more particular description of the invention, briefly summarized above, may be had by reference to embodiments, some of which are illustrated in the appended drawings.
Fig. 1 is a flowchart illustrating a control method according to a first embodiment of the present invention, where the control method in this example is applied to an electronic device, and the electronic device includes a projection unit and a depth detection unit; the projection unit is capable of projecting first multimedia data on a target object; in a preferred embodiment of the present invention, the control method includes the steps of:
step 101: detecting depth information of the target object using the depth detection unit.
In a specific implementation, the electronic device may be a projector, or may be a terminal provided with a projection device. The projection unit in the electronic device is a projection lens with a projection function, i.e. an optical lens, and the performance of the projection lens is characterized by two important parameters, namely the focal length of the projection lens and the size of the projection lens. The depth detection unit in the electronic device is a depth detection device having a depth detection function, which can obtain depth information of a target object by, but is not limited to:
emitting electromagnetic waves to the target object, and recording the current moment as a first moment;
receiving the electromagnetic wave returned by the target object, and recording the current moment as a second moment;
and calculating the depth information of the target object according to the time interval between the first time and the second time and the transmission speed of the electromagnetic wave.
In the above scheme, obtaining the depth information of the target object may also be obtained by formula (1 a):
<math> <mrow> <mi>D</mi> <mo>=</mo> <mfrac> <mrow> <mrow> <mo>(</mo> <mi>T</mi> <mn>2</mn> <mo>-</mo> <mi>T</mi> <mn>1</mn> <mo>)</mo> </mrow> <mo>&times;</mo> <mi>c</mi> </mrow> <mn>2</mn> </mfrac> <mo>-</mo> <mo>-</mo> <mo>-</mo> <mrow> <mo>(</mo> <mn>1</mn> <mi>a</mi> <mo>)</mo> </mrow> </mrow> </math>
wherein D is the depth information of the target object, T1 is a first time, T2 is a second time, and c is the speed of the electromagnetic wave; preferably, the electromagnetic wave is an electromagnetic wave in the infrared band.
In the above solution, the target object refers to a projection plane. The first multimedia data may be picture data, video data, or audio-video data, etc.
Step 102: and calculating a second parameter of the projection unit according to the depth information of the target object and the first parameter of the projection unit.
Here, the first parameter of the projection unit includes two sub-parameters, which are a focal length of the projection unit and a size of the projection unit, respectively.
In this embodiment, based on the acquired depth information of the target object, the focal length of the projection unit, the size of the projection unit, and other information, the second parameter of the projection unit may be calculated; the second parameter is a distance and a direction that the projection unit should move when the projection unit projects the first display screen of the first multimedia number on the target object.
Step 103: and moving the projection unit to a first position based on the second parameter of the projection unit so that the projection unit projects a first display picture of the first multimedia data.
A receiving step 102, moving the projection unit to a first position based on the distance and the direction that the projection unit should move, wherein the first position is a position of the projection unit when a first display screen of first multimedia data is projected on a target object; here, the first display screen is a screen in which the first multimedia data is displayed most clearly on the target object.
Preferably, the projection unit may be moved to the first position by a stepping motor connected to the projection unit, and thus, the accuracy of the movement of the projection unit may be improved.
Through the technical scheme of the embodiment of the invention, the electronic equipment can be quickly and accurately focused, so that the clearest first multimedia data is presented on the target object, a large amount of time for manual focusing is saved, the projection demonstration efficiency is improved, and the user experience is improved.
Fig. 2 is a flowchart illustrating a control method according to a first embodiment of the present invention, where the control method in this example is applied to an electronic device, and the electronic device includes a projection unit and a depth detection unit; the projection unit is capable of projecting first multimedia data on a target object; the target object comprises N target sub-objects; n is an integer greater than 1; in another preferred embodiment of the present invention, the control method includes the steps of:
step 201: and detecting N pieces of depth sub information of the N target sub objects by using the depth detection unit.
In a specific implementation, the electronic device may be a projector, or may be a terminal provided with a projection device. The projection unit in the electronic device is a projection lens with a projection function, i.e. an optical lens, and the performance of the projection lens is characterized by two important parameters, namely the focal length of the projection lens and the size of the projection lens. The depth detection unit in the electronic device is a depth detection apparatus having a depth detection function, which may obtain depth information of a target sub-object by, but not limited to, for each target sub-object:
emitting electromagnetic waves to the target sub-object, and recording the current moment as a first moment;
receiving the electromagnetic wave returned by the target sub-object, and recording the current moment as a second moment;
and calculating the depth information of the target sub-object according to the time interval between the first time and the second time and the transmission speed of the electromagnetic wave.
In the above scheme, obtaining the depth information of the target sub-object may also be obtained by formula (1 b):
<math> <mrow> <msub> <mi>D</mi> <mi>i</mi> </msub> <mo>=</mo> <mfrac> <mrow> <mrow> <mo>(</mo> <mi>T</mi> <mn>2</mn> <mo>-</mo> <mi>T</mi> <mn>1</mn> <mo>)</mo> </mrow> <mo>&times;</mo> <mi>c</mi> </mrow> <mn>2</mn> </mfrac> <mo>-</mo> <mo>-</mo> <mo>-</mo> <mrow> <mo>(</mo> <mn>1</mn> <mi>b</mi> <mo>)</mo> </mrow> </mrow> </math>
wherein D isiAs depth information of the ith target sub-object, T1 is a first time, T2 is a second time, and c is a velocity of the electromagnetic wave; preferably, the electromagnetic wave is an electromagnetic wave in the infrared band.
In the above solution, the target sub-object refers to a position in the projection plane. The first multimedia data may be picture data, video data, or audio-video data, etc.
Step 202: and averaging the N pieces of depth sub information to obtain the depth information of the target object.
In view of the fact that the target object may have unevenness in a practical situation, the present embodiment obtains N depth sub-information of the N target sub-objects, and then averages the N depth sub-information to obtain the depth information of the target object. Thus, the interference of the target object caused by unevenness is avoided.
Step 203: and calculating a second parameter of the projection unit according to the depth information of the target object and the first parameter of the projection unit.
Here, the first parameter of the projection unit includes two sub-parameters, which are a focal length of the projection unit and a size of the projection unit, respectively.
In this embodiment, based on the acquired depth information of the target object, the focal length of the projection unit, the size of the projection unit, and other information, the second parameter of the projection unit may be calculated; the second parameter is a distance and a direction that the projection unit should move when the projection unit projects the first display screen of the first multimedia number on the target object.
Step 204: and moving the projection unit to a first position based on the second parameter of the projection unit so that the projection unit projects a first display picture of the first multimedia data.
A receiving step 203, moving the projection unit to a first position based on the distance and the direction that the projection unit should move, wherein the first position is the position of the projection unit when a first display screen of first multimedia data is projected on a target object; here, the first display screen is a screen in which the first multimedia data is displayed most clearly on the target object.
Preferably, the projection unit may be moved to the first position by a stepping motor connected to the projection unit, and thus, the accuracy of the movement of the projection unit may be improved.
Through the technical scheme of the embodiment of the invention, the electronic equipment can be quickly and accurately focused, so that the clearest first multimedia data is presented on the target object, a large amount of time for manual focusing is saved, the projection demonstration efficiency is improved, and the user experience is improved.
Fig. 3 is a flowchart illustrating a control method according to a third embodiment of the present invention, where the control method in this example is applied to an electronic device, and the electronic device includes a projection unit and a depth detection unit; the projection unit is capable of projecting first multimedia data on a target object; in another preferred embodiment of the present invention, the control method includes the steps of:
step 301: detecting depth information of the target object using the depth detection unit.
In a specific implementation, the electronic device may be a projector, or may be a terminal provided with a projection device. The projection unit in the electronic device is a projection lens with a projection function, i.e. an optical lens, and the performance of the projection lens is characterized by two important parameters, namely the focal length of the projection lens and the size of the projection lens. The depth detection unit in the electronic device is a depth detection device having a depth detection function, which can obtain depth information of a target object by, but is not limited to:
emitting electromagnetic waves to the target object, and recording the current moment as a first moment;
receiving the electromagnetic wave returned by the target object, and recording the current moment as a second moment;
and calculating the depth information of the target object according to the time interval between the first time and the second time and the transmission speed of the electromagnetic wave.
In the above scheme, obtaining the depth information of the target object may also be obtained by formula (1 c):
<math> <mrow> <mi>D</mi> <mo>=</mo> <mfrac> <mrow> <mrow> <mo>(</mo> <mi>T</mi> <mn>2</mn> <mo>-</mo> <mi>T</mi> <mn>1</mn> <mo>)</mo> </mrow> <mo>&times;</mo> <mi>c</mi> </mrow> <mn>2</mn> </mfrac> <mo>-</mo> <mo>-</mo> <mo>-</mo> <mrow> <mo>(</mo> <mn>1</mn> <mi>c</mi> <mo>)</mo> </mrow> </mrow> </math>
wherein D is the depth information of the target object, T1 is a first time, T2 is a second time, and c is the speed of the electromagnetic wave; preferably, the electromagnetic wave is an electromagnetic wave in the infrared band.
In the above solution, the target object refers to a projection plane. The first multimedia data may be picture data, video data, or audio-video data, etc.
Step 302: and acquiring the size information of the target object.
Generally, the target object is a two-dimensional projection surface having a certain area, i.e., size; in order to calculate the second parameter of the projection unit, size information of the target object needs to be acquired first.
Size information of the target object, which is generally measured in units of inches, may be previously set in the electronic device so that the size information of the target object may be directly read.
Step 303: and calculating a third parameter of the projection unit according to the size information of the target object and the first parameter of the projection unit.
Here, the third parameter characterizes a distance between the projection unit and the target object.
Here, the first parameter of the projection unit includes two sub-parameters, which are a focal length of the projection unit and a size of the projection unit.
Specifically, the third parameter of the projection unit may be calculated by formula (2 c):
<math> <mrow> <mi>H</mi> <mo>=</mo> <mfrac> <mrow> <mi>F</mi> <mo>&times;</mo> <mi>S</mi> <mn>1</mn> </mrow> <mrow> <mi>S</mi> <mn>2</mn> </mrow> </mfrac> <mo>-</mo> <mo>-</mo> <mo>-</mo> <mrow> <mo>(</mo> <mn>2</mn> <mi>c</mi> <mo>)</mo> </mrow> </mrow> </math>
where H is a third parameter of the projection unit, F is a focal length of the projection unit, S1 is a size of the target object, and S2 is a size of the projection unit.
Here, when the first display screen of the first multimedia data is presented on the target object, the distance between the projection unit and the target object is H.
Step 304: and calculating a second parameter of the projection unit according to the third parameter and the depth information of the target object.
Here, the second parameter represents a distance and a direction in which the projection unit is to move, that is, the second parameter refers to a distance and a direction in which the projection unit should move when the projection unit projects a first display screen of a first multimedia number on a target object.
Step 305: and moving the projection unit to a first position based on the second parameter of the projection unit so that the projection unit projects a first display picture of the first multimedia data.
A receiving step 304, moving the projection unit to a first position based on the distance and the direction that the projection unit should move, wherein the first position is a position of the projection unit when a first display screen of first multimedia data is projected on a target object; here, the first display screen is a screen in which the first multimedia data is displayed most clearly on the target object.
Preferably, the projection unit may be moved to the first position by a stepping motor connected to the projection unit, and thus, the accuracy of the movement of the projection unit may be improved.
Through the technical scheme of the embodiment of the invention, the electronic equipment can be quickly and accurately focused, so that the clearest first multimedia data is presented on the target object, a large amount of time for manual focusing is saved, the projection demonstration efficiency is improved, and the user experience is improved.
Fig. 4 is a flowchart illustrating a control method according to a fourth embodiment of the present invention, where the control method in this example is applied to an electronic device, and the electronic device includes a projection unit and a depth detection unit; the projection unit is capable of projecting first multimedia data on a target object; in another preferred embodiment of the present invention, the control method includes the steps of:
step 401: detecting depth information of the target object using the depth detection unit.
In a specific implementation, the electronic device may be a projector, or may be a terminal provided with a projection device. The projection unit in the electronic device is a projection lens with a projection function, i.e. an optical lens, and the performance of the projection lens is characterized by two important parameters, namely the focal length of the projection lens and the size of the projection lens. The depth detection unit in the electronic device is a depth detection device having a depth detection function, which can obtain depth information of a target object by, but is not limited to:
emitting electromagnetic waves to the target object, and recording the current moment as a first moment;
receiving the electromagnetic wave returned by the target object, and recording the current moment as a second moment;
and calculating the depth information of the target object according to the time interval between the first time and the second time and the transmission speed of the electromagnetic wave.
In the above scheme, obtaining the depth information of the target object may also be obtained by formula (1 d):
<math> <mrow> <mi>D</mi> <mo>=</mo> <mfrac> <mrow> <mrow> <mo>(</mo> <mi>T</mi> <mn>2</mn> <mo>-</mo> <mi>T</mi> <mn>1</mn> <mo>)</mo> </mrow> <mo>&times;</mo> <mi>c</mi> </mrow> <mn>2</mn> </mfrac> <mo>-</mo> <mo>-</mo> <mo>-</mo> <mrow> <mo>(</mo> <mn>1</mn> <mi>d</mi> <mo>)</mo> </mrow> </mrow> </math>
wherein D is the depth information of the target object, T1 is a first time, T2 is a second time, and c is the speed of the electromagnetic wave; preferably, the electromagnetic wave is an electromagnetic wave in the infrared band.
In the above solution, the target object refers to a projection plane. The first multimedia data may be picture data, video data, or audio-video data, etc.
Step 402: and acquiring the size information of the target object.
Generally, the target object is a two-dimensional projection surface having a certain area, i.e., size; in order to calculate the second parameter of the projection unit, size information of the target object needs to be acquired first.
Size information of the target object, which is generally measured in units of inches, may be previously set in the electronic device so that the size information of the target object may be directly read.
Step 403: and calculating a third parameter of the projection unit according to the size information of the target object and the first parameter of the projection unit.
Here, the third parameter characterizes a distance between the projection unit and the target object.
Here, the first parameter of the projection unit includes two sub-parameters, which are a focal length of the projection unit and a size of the projection unit.
Specifically, the third parameter of the projection unit may be calculated by formula (2 d):
<math> <mrow> <mi>H</mi> <mo>=</mo> <mfrac> <mrow> <mi>F</mi> <mo>&times;</mo> <mi>S</mi> <mn>1</mn> </mrow> <mrow> <mi>S</mi> <mn>2</mn> </mrow> </mfrac> <mo>-</mo> <mo>-</mo> <mo>-</mo> <mrow> <mo>(</mo> <mn>2</mn> <mi>d</mi> <mo>)</mo> </mrow> </mrow> </math>
where H is a third parameter of the projection unit, F is a focal length of the projection unit, S1 is a size of the target object, and S2 is a size of the projection unit.
Here, when the first display screen of the first multimedia data is presented on the target object, the distance between the projection unit and the target object is H.
Step 404: and calculating a second parameter of the projection unit according to the third parameter and the depth information of the target object.
Here, the second parameter represents a distance and a direction in which the projection unit is to move, that is, the second parameter refers to a distance and a direction in which the projection unit should move when the projection unit projects a first display screen of a first multimedia number on a target object.
Specifically, the second parameter may be calculated by formula (3 d):
Δ=H-D (3d)
wherein Δ is a second parameter, H is a third parameter, and D is depth information of the target object.
Step 405: and judging whether the second parameter is equal to a first preset reference value or not to obtain a first judgment result.
By default, the first preset reference value is set to 0.
Step 406: and when the first judgment result shows that the second parameter is equal to a first preset reference value, fixing the projection unit to the current position so that the projection unit projects the first display picture of the first multimedia number.
Here, the first display screen is a screen in which the first multimedia data is displayed most clearly on the target object.
In the adapting step 405, when the second parameter is equal to 0, it indicates that the third parameter is equal to the depth information of the target object, so that the current position of the projection unit can project a clear display image.
Through the technical scheme of the embodiment of the invention, the electronic equipment can be quickly and accurately focused, so that the clearest first multimedia data is presented on the target object, a large amount of time for manual focusing is saved, the projection demonstration efficiency is improved, and the user experience is improved.
Fig. 5 is a schematic flowchart of a control method according to a fifth embodiment of the present invention, where the control method in this example is applied to an electronic device, and the electronic device includes a projection unit and a depth detection unit; the projection unit is capable of projecting first multimedia data on a target object; in another preferred embodiment of the present invention, the control method includes the steps of:
step 501: detecting depth information of the target object using the depth detection unit.
In a specific implementation, the electronic device may be a projector, or may be a terminal provided with a projection device. The projection unit in the electronic device is a projection lens with a projection function, i.e. an optical lens, and the performance of the projection lens is characterized by two important parameters, namely the focal length of the projection lens and the size of the projection lens. The depth detection unit in the electronic device is a depth detection device having a depth detection function, which can obtain depth information of a target object by, but is not limited to:
emitting electromagnetic waves to the target object, and recording the current moment as a first moment;
receiving the electromagnetic wave returned by the target object, and recording the current moment as a second moment;
and calculating the depth information of the target object according to the time interval between the first time and the second time and the transmission speed of the electromagnetic wave.
In the above scheme, obtaining the depth information of the target object may also be obtained by formula (1 e):
<math> <mrow> <mi>D</mi> <mo>=</mo> <mfrac> <mrow> <mrow> <mo>(</mo> <mi>T</mi> <mn>2</mn> <mo>-</mo> <mi>T</mi> <mn>1</mn> <mo>)</mo> </mrow> <mo>&times;</mo> <mi>c</mi> </mrow> <mn>2</mn> </mfrac> <mo>-</mo> <mo>-</mo> <mo>-</mo> <mrow> <mo>(</mo> <mn>1</mn> <mi>e</mi> <mo>)</mo> </mrow> </mrow> </math>
wherein D is the depth information of the target object, T1 is a first time, T2 is a second time, and c is the speed of the electromagnetic wave; preferably, the electromagnetic wave is an electromagnetic wave in the infrared band.
In the above solution, the target object refers to a projection plane. The first multimedia data may be picture data, video data, or audio-video data, etc.
Step 502: and acquiring the size information of the target object.
Generally, the target object is a two-dimensional projection surface having a certain area, i.e., size; in order to calculate the second parameter of the projection unit, size information of the target object needs to be acquired first.
Size information of the target object, which is generally measured in units of inches, may be previously set in the electronic device so that the size information of the target object may be directly read.
Step 503: and calculating a third parameter of the projection unit according to the size information of the target object and the first parameter of the projection unit.
Here, the third parameter characterizes a distance between the projection unit and the target object.
Here, the first parameter of the projection unit includes two sub-parameters, which are a focal length of the projection unit and a size of the projection unit.
Specifically, the third parameter of the projection unit may be calculated by formula (2 e):
<math> <mrow> <mi>H</mi> <mo>=</mo> <mfrac> <mrow> <mi>F</mi> <mo>&times;</mo> <mi>S</mi> <mn>1</mn> </mrow> <mrow> <mi>S</mi> <mn>2</mn> </mrow> </mfrac> <mo>-</mo> <mo>-</mo> <mo>-</mo> <mrow> <mo>(</mo> <mn>2</mn> <mi>e</mi> <mo>)</mo> </mrow> </mrow> </math>
where H is a third parameter of the projection unit, F is a focal length of the projection unit, S1 is a size of the target object, and S2 is a size of the projection unit.
Here, when the first display screen of the first multimedia data is presented on the target object, the distance between the projection unit and the target object is H.
Step 504: and calculating a second parameter of the projection unit according to the third parameter and the depth information of the target object.
Here, the second parameter represents a distance and a direction in which the projection unit is to move, that is, the second parameter refers to a distance and a direction in which the projection unit should move when the projection unit projects a first display screen of a first multimedia number on a target object.
Specifically, the second parameter may be calculated by formula (3 e):
Δ=H-D (3e)
wherein Δ is a second parameter, H is a third parameter, and D is depth information of the target object.
Step 505: judging whether the second parameter is greater than or less than a first preset reference value or not to obtain a second judgment result; step 506 or step 508 is performed.
By default, the first preset reference value is set to 0.
Step 506: when the second judgment result shows that the second parameter is greater than the first preset reference value, determining that the distance to be moved by the projection unit is an absolute value of the second parameter, and the direction to be moved by the projection unit is a first direction.
Here, when the second parameter is greater than the first preset reference value, it indicates that the third parameter is greater than the depth information of the target object, and thus, the first direction is a direction away from the target object.
Step 507: moving the projection unit to the first position based on the absolute value of the second parameter and the first direction; the flow is ended.
Specifically, the projection unit is moved in a direction away from the target object by a distance of the absolute value of the second parameter.
Step 508: and when the second judgment result shows that the second parameter is smaller than the first preset reference value, determining that the distance to be moved by the projection unit is an absolute value of the second parameter, and the direction to be moved by the projection unit is a second direction.
Here, the second direction is opposite to the first direction.
Here, when the second parameter is smaller than the first preset reference value, it indicates that the third parameter is smaller than the depth information of the target object, and thus, the first direction is a direction approaching the target object.
Step 509: moving the projection unit to the first position based on the absolute value of the second parameter and the second direction.
Specifically, the projection unit is moved in a direction of approaching the target object by a distance of an absolute value of the second parameter.
Here, the first display screen is a screen in which the first multimedia data is displayed most clearly on the target object.
Preferably, the projection unit may be moved to the first position by a stepping motor connected to the projection unit, and thus, the accuracy of the movement of the projection unit may be improved.
Through the technical scheme of the embodiment of the invention, the electronic equipment can be quickly and accurately focused, so that the clearest first multimedia data is presented on the target object, a large amount of time for manual focusing is saved, the projection demonstration efficiency is improved, and the user experience is improved.
Fig. 6 is a schematic structural composition diagram of an electronic device according to a first embodiment of the present invention, where the electronic device in this example includes a projection unit 60, and the projection unit 60 is capable of projecting first multimedia data onto a target object; in a preferred embodiment of the present invention, the electronic device further includes: a depth detection unit 61, a calculation unit 62, a control unit 63; wherein,
the depth detection unit 61 is configured to detect depth information of the target object;
the calculating unit 62 is configured to calculate a second parameter of the projecting unit 60 according to the depth information of the target object and the first parameter of the projecting unit 60;
the control unit 63 is configured to move the projection unit 60 to a first position based on the second parameter of the projection unit 60, so that the projection unit 60 projects the first display frame of the first multimedia number.
Those skilled in the art will understand that the implementation functions of each unit in the electronic device shown in fig. 6 can be understood by referring to the related description of the control method.
Fig. 7 is a schematic structural composition diagram of an electronic device according to a second embodiment of the present invention, where the electronic device in this example includes a projection unit 60, and the projection unit 60 is capable of projecting first multimedia data onto a target object; in another preferred embodiment of the present invention, the electronic device further includes: a depth detection unit 61, a calculation unit 62, a control unit 63; wherein,
the depth detection unit 61 is configured to detect depth information of the target object;
the calculating unit 62 is configured to calculate a second parameter of the projecting unit 60 according to the depth information of the target object and the first parameter of the projecting unit 60;
the control unit 63 is configured to move the projection unit 60 to a first position based on the second parameter of the projection unit 60, so that the projection unit 60 projects the first display frame of the first multimedia number.
Preferably, the target object comprises N target sub-objects; n is an integer greater than 1; accordingly, the depth detection unit 61 includes: a depth detection subunit 611, an averaging subunit 612; wherein,
the depth detection subunit 611 is configured to detect N depth sub information of the N target sub objects;
the averaging subunit 612 is configured to average the N depth sub information to obtain the depth information of the target object.
Those skilled in the art will understand that the implementation functions of the units in the electronic device shown in fig. 7 can be understood by referring to the related description of the control method.
Fig. 8 is a schematic structural composition diagram of an electronic device according to a third embodiment of the present invention, where the electronic device in this example includes a projection unit 60, and the projection unit 60 is capable of projecting first multimedia data onto a target object; in another preferred embodiment of the present invention, the electronic device further includes: a depth detection unit 61, a calculation unit 62, a control unit 63; wherein,
the depth detection unit 61 is configured to detect depth information of the target object;
the calculating unit 62 is configured to calculate a second parameter of the projecting unit 60 according to the depth information of the target object and the first parameter of the projecting unit 60;
the control unit 63 is configured to move the projection unit 60 to a first position based on the second parameter of the projection unit 60, so that the projection unit 60 projects the first display frame of the first multimedia number.
Preferably, the target object comprises N target sub-objects; n is an integer greater than 1; accordingly, the depth detection unit 61 includes: a depth detection subunit 611, an averaging subunit 612; wherein,
the depth detection subunit 611 is configured to detect N depth sub information of the N target sub objects;
the averaging subunit 612 is configured to average the N depth sub information to obtain the depth information of the target object.
Preferably, the calculation unit 62 includes: an acquisition subunit 621, a first calculation subunit 622, a second calculation subunit 623; wherein,
the acquiring subunit 621, configured to acquire size information of the target object;
the first calculating subunit 622, configured to calculate a third parameter of the projection unit 60 according to the size information of the target object and the first parameter of the projection unit 60; the third parameter characterizes a distance between the projection unit 60 and the target object;
the second calculating subunit 623 is configured to calculate a second parameter of the projecting unit 60 according to the third parameter and the depth information of the target object; the second parameter represents the distance and direction to be moved by the projection unit 60.
Those skilled in the art will understand that the implementation functions of each unit in the electronic device shown in fig. 8 can be understood by referring to the related description of the control method.
Fig. 9 is a schematic structural composition diagram of an electronic device according to a fourth embodiment of the present invention, where the electronic device in this example includes a projection unit 60, and the projection unit 60 is capable of projecting first multimedia data onto a target object; in another preferred embodiment of the present invention, the electronic device further includes: a depth detection unit 61, a calculation unit 62, a control unit 63; wherein,
the depth detection unit 61 is configured to detect depth information of the target object;
the calculating unit 62 is configured to calculate a second parameter of the projecting unit 60 according to the depth information of the target object and the first parameter of the projecting unit 60;
the control unit 63 is configured to move the projection unit 60 to a first position based on the second parameter of the projection unit 60, so that the projection unit 60 projects the first display frame of the first multimedia number.
Preferably, the target object comprises N target sub-objects; n is an integer greater than 1; accordingly, the depth detection unit 61 includes: a depth detection subunit 611, an averaging subunit 612; wherein,
the depth detection subunit 611 is configured to detect N depth sub information of the N target sub objects;
the averaging subunit 612 is configured to average the N depth sub information to obtain the depth information of the target object.
Preferably, the calculation unit 62 includes: an acquisition subunit 621, a first calculation subunit 622, a second calculation subunit 623; wherein,
the acquiring subunit 621, configured to acquire size information of the target object;
the first calculating subunit 622, configured to calculate a third parameter of the projection unit 60 according to the size information of the target object and the first parameter of the projection unit 60; the third parameter characterizes a distance between the projection unit 60 and the target object;
the second calculating subunit 623 is configured to calculate a second parameter of the projecting unit 60 according to the third parameter and the depth information of the target object; the second parameter represents the distance and direction to be moved by the projection unit 60.
Preferably, the control unit 63 includes: a first judgment subunit 631, a first control subunit 632; wherein,
the first determining subunit 631 is configured to determine whether the second parameter is equal to a first preset reference value, so as to obtain a first determining result;
the first control subunit 632 is configured to, when the first determination result indicates that the second parameter is equal to a first preset reference value, fix the projection unit 60 to a current position, so that the projection unit 60 projects the first display frame of the first multimedia number.
Those skilled in the art will understand that the implementation functions of each unit in the electronic device shown in fig. 9 can be understood by referring to the related description of the control method.
Fig. 10 is a schematic structural composition diagram of an electronic device according to a fifth embodiment of the present invention, where the electronic device in this example includes a projection unit 60, and the projection unit 60 is capable of projecting first multimedia data onto a target object; in another preferred embodiment of the present invention, the electronic device further includes: a depth detection unit 61, a calculation unit 62, a control unit 63; wherein,
the depth detection unit 61 is configured to detect depth information of the target object;
the calculating unit 62 is configured to calculate a second parameter of the projecting unit 60 according to the depth information of the target object and the first parameter of the projecting unit 60;
the control unit 63 is configured to move the projection unit 60 to a first position based on the second parameter of the projection unit 60, so that the projection unit 60 projects the first display frame of the first multimedia number.
Preferably, the target object comprises N target sub-objects; n is an integer greater than 1; accordingly, the depth detection unit 61 includes: a depth detection subunit 611, an averaging subunit 612; wherein,
the depth detection subunit 611 is configured to detect N depth sub information of the N target sub objects;
the averaging subunit 612 is configured to average the N depth sub information to obtain the depth information of the target object.
Preferably, the calculation unit 62 includes: an acquisition subunit 621, a first calculation subunit 622, a second calculation subunit 623; wherein,
the acquiring subunit 621, configured to acquire size information of the target object;
the first calculating subunit 622, configured to calculate a third parameter of the projection unit 60 according to the size information of the target object and the first parameter of the projection unit 60; the third parameter characterizes a distance between the projection unit 60 and the target object;
the second calculating subunit 623 is configured to calculate a second parameter of the projecting unit 60 according to the third parameter and the depth information of the target object; the second parameter represents the distance and direction to be moved by the projection unit 60.
Preferably, the control unit 63 includes: a first judgment subunit 631, a first control subunit 632; wherein,
the first determining subunit 631 is configured to determine whether the second parameter is equal to a first preset reference value, so as to obtain a first determining result;
the first control subunit 632 is configured to, when the first determination result indicates that the second parameter is equal to a first preset reference value, fix the projection unit 60 to a current position, so that the projection unit 60 projects the first display frame of the first multimedia number.
Preferably, the control unit 63 includes: a second judging subunit 633, a first determining subunit 634, a second determining subunit 635, and a second controlling subunit 636; wherein,
the second judging subunit 633 is configured to judge whether the second parameter is greater than or less than a first preset reference value, so as to obtain a second judgment result;
the first determining subunit 634, configured to determine, when the second determination result indicates that the second parameter is greater than the first preset reference value, that the distance to be moved by the projection unit 60 is an absolute value of the second parameter, and the direction to be moved by the projection unit 60 is a first direction; accordingly, the number of the first and second electrodes,
the second control subunit 636 is configured to move the projection unit 60 to the first position based on the absolute value of the second parameter and the first direction;
the second determining subunit 635, configured to determine, when the second determination result indicates that the second parameter is smaller than the first preset reference value, that the distance to be moved by the projection unit 60 is an absolute value of the second parameter, and the direction to be moved by the projection unit 60 is a second direction; the second direction is opposite to the first direction; accordingly, the number of the first and second electrodes,
the second control subunit 636 is configured to move the projection unit 60 to the first position based on the absolute value of the second parameter and the second direction.
Those skilled in the art will understand that the implementation functions of each unit in the electronic device shown in fig. 10 can be understood by referring to the related description of the control method.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all the functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: a mobile storage device, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Alternatively, the integrated unit of the present invention may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, the technical solutions of the embodiments of the present invention may be essentially implemented or a part contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a mobile storage device, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention.

Claims (10)

1. A control method is applied to an electronic device, and the electronic device comprises a projection unit and a depth detection unit; the projection unit is capable of projecting first multimedia data on a target object; characterized in that the method comprises:
detecting depth information of the target object by using the depth detection unit;
calculating a second parameter of the projection unit according to the depth information of the target object and the first parameter of the projection unit;
and moving the projection unit to a first position based on the second parameter of the projection unit so that the projection unit projects a first display picture of the first multimedia number.
2. The control method according to claim 1, wherein the target object includes N target sub-objects; n is an integer greater than 1; accordingly, the detecting the depth information of the target object by the depth detection unit includes:
detecting N depth sub-information of the N target sub-objects by using the depth detection unit;
and averaging the N pieces of depth sub information to obtain the depth information of the target object.
3. The method according to claim 1 or 2, wherein the calculating a second parameter of the projection unit according to the depth information of the target object and the first parameter of the projection unit includes:
acquiring size information of the target object;
calculating a third parameter of the projection unit according to the size information of the target object and the first parameter of the projection unit; the third parameter characterizes a distance between the projection unit and the target object;
calculating a second parameter of the projection unit according to the third parameter and the depth information of the target object; the second parameter represents the distance and direction to be moved by the projection unit.
4. The control method according to claim 3, characterized in that the method further comprises:
judging whether the second parameter is equal to a first preset reference value or not to obtain a first judgment result;
and when the first judgment result shows that the second parameter is equal to a first preset reference value, fixing the projection unit to the current position so that the projection unit projects the first display picture of the first multimedia number.
5. The control method according to claim 3 or 4, characterized in that the method further comprises:
judging whether the second parameter is greater than or less than a first preset reference value or not to obtain a second judgment result;
when the second judgment result shows that the second parameter is greater than the first preset reference value, determining that the distance to be moved by the projection unit is an absolute value of the second parameter, and the direction to be moved by the projection unit is a first direction; moving the projection unit to the first position based on the absolute value of the second parameter and the first direction;
when the second judgment result shows that the second parameter is smaller than the first preset reference value, determining that the distance to be moved by the projection unit is an absolute value of the second parameter, and the direction to be moved by the projection unit is a second direction; the second direction is opposite to the first direction; moving the projection unit to the first position based on the absolute value of the second parameter and the second direction.
6. An electronic device comprising a projection unit capable of projecting first multimedia data on a target object; characterized in that, the electronic equipment still includes: the device comprises a depth detection unit, a calculation unit and a control unit; wherein,
the depth detection unit is used for detecting the depth information of the target object;
the calculating unit is used for calculating a second parameter of the projecting unit according to the depth information of the target object and the first parameter of the projecting unit;
the control unit is used for moving the projection unit to a first position based on a second parameter of the projection unit so as to enable the projection unit to project a first display picture of the first multimedia number.
7. The electronic device of claim 6, wherein the target object comprises N target sub-objects; n is an integer greater than 1; accordingly, the depth detection unit includes: a depth detection subunit and an averaging subunit; wherein,
the depth detection subunit is configured to detect N depth sub-information of the N target sub-objects;
the averaging subunit is configured to average the N depth sub-information to obtain the depth information of the target object.
8. The electronic device according to claim 6 or 7, wherein the calculation unit includes: the method comprises the steps of obtaining a subunit, a first calculating subunit and a second calculating subunit; wherein,
the acquiring subunit is configured to acquire size information of the target object;
the first calculating subunit is configured to calculate a third parameter of the projection unit according to the size information of the target object and the first parameter of the projection unit; the third parameter characterizes a distance between the projection unit and the target object;
the second calculating subunit is configured to calculate a second parameter of the projection unit according to the third parameter and the depth information of the target object; the second parameter represents the distance and direction to be moved by the projection unit.
9. The electronic device according to claim 8, wherein the control unit includes: the first judging subunit and the first control subunit; wherein,
the first judging subunit is configured to judge whether the second parameter is equal to a first preset reference value, so as to obtain a first judgment result;
the first control subunit is configured to fix the projection unit to a current position when the first determination result indicates that the second parameter is equal to a first preset reference value, so that the projection unit projects the first display frame of the first multimedia number.
10. The electronic device according to claim 8 or 9, wherein the control unit includes: the device comprises a second judgment subunit, a first determination subunit, a second determination subunit and a second control subunit; wherein,
the second judging subunit is configured to judge whether the second parameter is greater than or less than a first preset reference value, so as to obtain a second judgment result;
the first determining subunit is configured to determine, when the second determination result indicates that the second parameter is greater than the first preset reference value, that the distance to be moved by the projection unit is an absolute value of the second parameter, and the direction to be moved by the projection unit is a first direction; accordingly, the number of the first and second electrodes,
the second control subunit is configured to move the projection unit to the first position based on the absolute value of the second parameter and the first direction;
the second determining subunit is configured to determine, when the second determination result indicates that the second parameter is smaller than the first preset reference value, that the distance to be moved by the projection unit is an absolute value of the second parameter, and the direction to be moved by the projection unit is a second direction; the second direction is opposite to the first direction; accordingly, the number of the first and second electrodes,
the second control subunit is configured to move the projection unit to the first position based on the absolute value of the second parameter and the second direction.
CN201410008656.8A 2013-12-11 2014-01-08 Control method and electronic equipment Pending CN104767953A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201410008656.8A CN104767953A (en) 2014-01-08 2014-01-08 Control method and electronic equipment
US14/459,693 US9430083B2 (en) 2013-12-11 2014-08-14 Control method and electronic apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410008656.8A CN104767953A (en) 2014-01-08 2014-01-08 Control method and electronic equipment

Publications (1)

Publication Number Publication Date
CN104767953A true CN104767953A (en) 2015-07-08

Family

ID=53649525

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410008656.8A Pending CN104767953A (en) 2013-12-11 2014-01-08 Control method and electronic equipment

Country Status (1)

Country Link
CN (1) CN104767953A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106559627A (en) * 2015-09-25 2017-04-05 中兴通讯股份有限公司 Projecting method, device and equipment
CN108509090A (en) * 2018-03-26 2018-09-07 联想(北京)有限公司 A kind of method for controlling projection and electronic system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101281289A (en) * 2007-12-29 2008-10-08 青岛海信电器股份有限公司 Automatic focusing method
CN101571665A (en) * 2008-04-28 2009-11-04 鸿富锦精密工业(深圳)有限公司 Automatic focusing device and automatic focusing method for projector
CN101762953A (en) * 2008-12-26 2010-06-30 英业达股份有限公司 Projecting device and method for automatically adjusting imaging size
CN103179363A (en) * 2011-12-23 2013-06-26 技嘉科技股份有限公司 Projector and image calibration method for same
US20130162814A1 (en) * 2011-12-26 2013-06-27 Electronics And Telecommunications Research Institute Projector image correction device and method
CN103309141A (en) * 2012-03-07 2013-09-18 精工爱普生株式会社 Projector and control method for the projector

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101281289A (en) * 2007-12-29 2008-10-08 青岛海信电器股份有限公司 Automatic focusing method
CN101571665A (en) * 2008-04-28 2009-11-04 鸿富锦精密工业(深圳)有限公司 Automatic focusing device and automatic focusing method for projector
CN101762953A (en) * 2008-12-26 2010-06-30 英业达股份有限公司 Projecting device and method for automatically adjusting imaging size
CN103179363A (en) * 2011-12-23 2013-06-26 技嘉科技股份有限公司 Projector and image calibration method for same
US20130162814A1 (en) * 2011-12-26 2013-06-27 Electronics And Telecommunications Research Institute Projector image correction device and method
CN103309141A (en) * 2012-03-07 2013-09-18 精工爱普生株式会社 Projector and control method for the projector

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106559627A (en) * 2015-09-25 2017-04-05 中兴通讯股份有限公司 Projecting method, device and equipment
CN106559627B (en) * 2015-09-25 2021-05-11 中兴通讯股份有限公司 Projection method, device and equipment
CN108509090A (en) * 2018-03-26 2018-09-07 联想(北京)有限公司 A kind of method for controlling projection and electronic system
CN108509090B (en) * 2018-03-26 2020-08-25 联想(北京)有限公司 Projection control method and electronic system

Similar Documents

Publication Publication Date Title
US10061182B2 (en) Systems and methods for autofocus trigger
EP3248374B1 (en) Method and apparatus for multiple technology depth map acquisition and fusion
US9313419B2 (en) Image processing apparatus and image pickup apparatus where image processing is applied using an acquired depth map
US8315443B2 (en) Viewpoint detector based on skin color area and face area
JP5536071B2 (en) Generation of depth data based on spatial light patterns
KR101893771B1 (en) Apparatus and method for processing 3d information
US20150042871A1 (en) Control method, control apparatus and electronic device
US20120300115A1 (en) Image sensing device
CN105007420A (en) Focusing method and mobile terminal
TWI515470B (en) Auto-focus system for multiple lens and method thereof
US20150381964A1 (en) Automatic Stereoscopic Camera Calibration
US10733774B2 (en) Device and method of displaying heat map on perspective drawing
US20100171815A1 (en) Image data obtaining method and apparatus therefor
CN106156696B (en) Information processing method and electronic equipment
WO2017127229A1 (en) Focus hunting prevention for phase detection auto focus (af)
WO2016197494A1 (en) Method and device for adjusting focusing area
CN110475106B (en) Focal length adjusting method and device of projector
US10880536B2 (en) Three-dimensional image capturing device and method
TW201541143A (en) Auto-focus system for multiple lens and method thereof
CN104767953A (en) Control method and electronic equipment
JP6404482B2 (en) Ranging device, ranging control method, and ranging control program
CN104133339A (en) Automatic focusing method and automatic focusing device
CN106033622B (en) Data acquisition and target object reconstruction method and device
KR102350926B1 (en) Method to control Auto Focus
CN108650454A (en) A kind of information processing method, electronic equipment and computer readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20150708