CN108471524B - Focusing method and device and storage medium - Google Patents

Focusing method and device and storage medium Download PDF

Info

Publication number
CN108471524B
CN108471524B CN201810169320.8A CN201810169320A CN108471524B CN 108471524 B CN108471524 B CN 108471524B CN 201810169320 A CN201810169320 A CN 201810169320A CN 108471524 B CN108471524 B CN 108471524B
Authority
CN
China
Prior art keywords
focusing
preset
projection
instruction
focal length
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
CN201810169320.8A
Other languages
Chinese (zh)
Other versions
CN108471524A (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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201810169320.8A priority Critical patent/CN108471524B/en
Publication of CN108471524A publication Critical patent/CN108471524A/en
Application granted granted Critical
Publication of CN108471524B publication Critical patent/CN108471524B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/12Picture reproducers
    • H04N9/31Projection devices for colour picture display, e.g. using electronic spatial light modulators [ESLM]
    • H04N9/3141Constructional details thereof
    • H04N9/317Convergence or focusing systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Projection Apparatus (AREA)

Abstract

The disclosure relates to a focusing method, a focusing device and a storage medium, which are applied to projection equipment, wherein the method comprises the following steps: acquiring the distance between the projection equipment and a projection plane according to a preset acquisition cycle in a preset time period; determining whether an acquisition result meets an automatic focusing failure condition, wherein the automatic focusing failure condition is used for determining that the projection equipment is not suitable for automatic focusing; when the acquisition result meets the automatic focusing failure condition, generating a focusing prompt message; the focusing prompt message is used for prompting the focal length adjustment of the projection equipment.

Description

Focusing method and device and storage medium
Technical Field
The present disclosure relates to the field of imaging technologies, and in particular, to a focusing method and apparatus, and a storage medium.
Background
Projection devices typically require that the projection be accomplished through a projection plane (e.g., a wall, a screen, etc.). Because the distance between projection equipment and the projection plane can influence the definition of the projection image in the imaging plane, in order to enable the definition of the projection image to meet the visual requirement of a user, the focal length of the projection equipment can be adjusted through the focusing structure, and therefore the clear projection image can be displayed.
At present, can install distance measuring appearance (like infrared distance measuring appearance, ultrasonic ranging appearance or laser range finder etc.) on projection equipment, like this, after distance measuring appearance detected the distance between projection equipment and the projection plane, can carry out focus adjustment to projection equipment according to the distance that detects intelligently to realize auto focus.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure proposes a focusing method and apparatus, and a storage medium.
According to a first aspect of the embodiments of the present disclosure, there is provided a focusing method applied to a projection apparatus, including:
acquiring the distance between the projection equipment and a projection plane according to a preset acquisition cycle in a preset time period;
determining whether the acquisition result meets an automatic focusing failure condition; the automatic focusing failure condition is used for determining that the projection equipment is not suitable for automatic focusing;
when the acquisition result meets the automatic focusing failure condition, generating a focusing prompt message; the focusing prompt message is used for prompting the focal length adjustment of the projection equipment.
Optionally, the auto-focus failure condition comprises:
the distance is not acquired within the preset time period; alternatively, the first and second electrodes may be,
the difference value between any two of the collected multiple distances is greater than or equal to a preset difference value; alternatively, the first and second electrodes may be,
any one of the collected multiple distances is greater than or equal to a first preset threshold value; alternatively, the first and second electrodes may be,
any one of the acquired distances is less than or equal to a second preset threshold.
Optionally, the method further comprises:
receiving a focusing instruction according to the focusing prompt message;
and adjusting the focal length of the projection equipment according to the focusing instruction.
Optionally, the focusing instruction comprises an audio focusing instruction, and the method further comprises:
determining whether the audio focusing instruction comprises a preset focusing word or not;
the adjusting the focal length of the projection device according to the focusing instruction comprises:
and when the audio focusing instruction comprises the preset focusing words, determining corresponding adjusting parameters according to the preset focusing words, and adjusting the focal length of the projection equipment according to the adjusting parameters.
Optionally, the determining whether the preset focusing word is included in the audio focusing instruction includes:
converting the audio focusing instruction into focusing text information;
performing word segmentation processing on the focusing text information to obtain at least one word;
sequentially determining whether each word is the same as the preset focusing word;
determining that the preset focusing words are included in the audio focusing instruction when any one of the words is determined to be the same as the preset focusing words.
Optionally, the adjusting parameters include a moving distance of a focal point of the projection device and a moving direction of the focal point of the projection device, and the adjusting the focal length of the projection device according to the adjusting parameters includes:
and adjusting the focal length of the projection equipment according to the moving distance and the moving direction.
Optionally, the receiving a focusing instruction according to the focusing prompt message includes:
after the focusing prompt message is generated, receiving a focusing instruction sent by a control terminal connected with the projection equipment;
the adjusting the focal length of the projection device according to the focusing instruction comprises:
determining a moving distance of a focus of the projection equipment and a moving direction of the focus of the projection equipment according to the focusing instruction;
and adjusting the focal length of the projection equipment according to the moving distance and the moving direction.
According to a second aspect of the embodiments of the present disclosure, there is provided a focusing device applied to a projection apparatus, including:
the acquisition module is configured to acquire the distance between the projection equipment and the projection plane according to a preset acquisition cycle in a preset time period;
a first determination module configured to determine whether the acquisition result satisfies an autofocus failure condition; the automatic focusing failure condition is used for determining that the projection equipment is not suitable for automatic focusing;
the generating module is configured to generate a focusing prompt message when the acquisition result meets the automatic focusing failure condition; the focusing prompt message is used for prompting the focal length adjustment of the projection equipment.
Optionally, the auto-focus failure condition comprises:
the distance is not acquired within the preset time period; alternatively, the first and second electrodes may be,
the difference value between any two of the collected multiple distances is greater than or equal to a preset difference value; alternatively, the first and second electrodes may be,
any one of the collected multiple distances is greater than or equal to a first preset threshold value; alternatively, the first and second electrodes may be,
any one of the acquired distances is less than or equal to a second preset threshold.
Optionally, the method further comprises:
a receiving module configured to receive a focusing instruction according to the focusing prompt message;
an adjusting module configured to perform focus adjustment on the projection device according to the focusing instruction.
Optionally, the focusing instruction includes an audio focusing instruction, further including:
a second determination module configured to determine whether a preset focusing word is included in the audio focusing instruction;
the adjusting module is configured to determine a corresponding adjusting parameter according to the preset focusing word when the audio focusing instruction includes the preset focusing word, and adjust the focal length of the projection device according to the adjusting parameter.
Optionally, the second determining module includes:
a conversion sub-module configured to convert the audio focusing instruction into focusing text information;
the word segmentation sub-module is configured to perform word segmentation processing on the focusing text information to obtain at least one word;
a first determining submodule configured to sequentially determine whether each of the words is the same as the preset focusing word;
a second determination submodule configured to determine that the preset focusing word is included in the audio focusing instruction when it is determined that any one of the words is the same as the preset focusing word.
Optionally, the adjustment parameter includes a moving distance of a focal point of the projection device and a moving direction of the focal point of the projection device, and the adjustment module is configured to adjust the focal length of the projection device according to the moving distance and the moving direction.
Optionally, the receiving module is configured to receive a focusing instruction sent by a control terminal connected to the projection device after the focusing prompt message is generated;
the adjustment module includes:
a third determination submodule configured to determine a movement distance of the focus of the projection apparatus and a movement direction of the focus of the projection apparatus according to the focusing instruction;
an adjusting submodule configured to adjust a focal length of the projection device according to the movement distance and the movement direction.
According to a third aspect of the embodiments of the present disclosure, there is provided a focusing apparatus including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring the distance between the projection equipment and a projection plane according to a preset acquisition cycle in a preset time period;
determining whether the acquisition result meets an automatic focusing failure condition; the automatic focusing failure condition is used for determining that the projection equipment is not suitable for automatic focusing;
when the acquisition result meets the automatic focusing failure condition, generating a focusing prompt message; the focusing prompt message is used for prompting the focal length adjustment of the projection equipment.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the steps of the method of the first aspect described above.
According to the technical scheme, the distance between the projection equipment and the projection plane is acquired according to the preset acquisition cycle in the preset time period; determining whether an acquisition result meets an automatic focusing failure condition, wherein the automatic focusing failure condition is used for determining that the projection equipment is not suitable for automatic focusing; when the acquisition result meets the automatic focusing failure condition, generating a focusing prompt message; the focusing prompt message is used for prompting the projection equipment to carry out focus adjustment, so that the focusing prompt message can be generated to prompt a user to carry out focus adjustment on the projection equipment in other modes when the projection equipment cannot realize automatic focusing determined by the automatic focusing failure condition, and the problem that the projection equipment cannot carry out focusing when the automatic focusing fails is avoided.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows.
Drawings
The accompanying drawings, which are included to provide a further understanding of the disclosure and are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and together with the description serve to explain the disclosure without limiting the disclosure. In the drawings:
FIG. 1 is a flow chart illustrating a focusing method according to an exemplary embodiment;
FIG. 2 is a flow chart illustrating yet another focusing method according to an exemplary embodiment;
FIG. 3 is a block diagram illustrating a first focusing device according to an exemplary embodiment;
FIG. 4 is a block diagram illustrating a second focusing device according to an exemplary embodiment;
FIG. 5 is a block diagram illustrating a third focusing device according to an exemplary embodiment;
FIG. 6 is a block diagram illustrating a fourth focusing device in accordance with an exemplary embodiment;
FIG. 7 is a block diagram illustrating a fifth focusing device according to an exemplary embodiment;
fig. 8 is a block diagram illustrating a sixth focusing device according to an exemplary embodiment.
Detailed Description
The following detailed description of specific embodiments of the present disclosure is provided in connection with the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating the present disclosure, are given by way of illustration and explanation only, not limitation.
Before describing the focusing method provided by the present disclosure, an application scenario related to the present disclosure is first described, and an implementation environment related to various embodiments of the present disclosure may include a projection device, and a projection plane (such as a wall or a screen), where the projection device may include a distance detector, a lens, a focusing structure, and the like. This focusing structure is connected with this distance measurement appearance, and this distance measurement appearance can be infrared distance measurement appearance, ultrasonic ranging appearance or laser range finder etc to be used for gathering the distance between this projection equipment and this projection plane, this focusing structure is used for the focus according to this projection equipment of distance adjustment that this distance measurement appearance gathered. However, when the distance detector fails, the distance detector cannot obtain an accurate distance, so that the projection apparatus cannot perform auto-focusing. According to the method and the device, whether the acquisition result meets the automatic focusing failure condition or not can be determined, when the automatic focusing failure condition is met, the fact that the projection equipment cannot realize automatic focusing is determined, at the moment, a focusing prompt message can be generated to prompt a user to adjust the focal length of the projection equipment in other modes, and therefore the problem that the projection equipment cannot focus when the automatic focusing fails is avoided.
The present disclosure will be described in detail with reference to specific examples.
Fig. 1 is a flowchart illustrating a focusing method according to an exemplary embodiment, as shown in fig. 1, applied to a projection apparatus, including the following steps:
in step 101, the distance between the projection device and the projection plane is acquired according to a preset acquisition cycle within a preset time period.
Optionally, a distance detector is installed on the projection device, so that the distance between the projection device and the projection plane can be acquired by the distance detector, and the projection device performs auto-focusing on the distance acquired by the distance detector. For example, the distance detector may be installed at the most front position of the projection apparatus, and the above examples are only illustrative and the disclosure is not limited thereto.
In this step, the preset time period may be a time period for the projection device to perform auto-focusing, for example, the preset time period may be a time period with a starting time of the projection device as a starting point, and the preset acquisition period may be a preset period.
In step 102, it is determined whether the acquisition result satisfies an autofocus failure condition.
In this step, the autofocus failure condition is used to determine that the projection device is not suitable for autofocus, wherein the autofocus failure condition may include: the distance is not acquired within the preset time period; or the difference value between any two of the collected multiple distances is greater than or equal to a preset difference value; or, any one of the collected multiple distances is greater than or equal to a first preset threshold; or, any one of the acquired distances is less than or equal to a second preset threshold. Thus, when the acquisition result meets the automatic focusing failure condition, it is determined that the distance detector has a fault, at this time, the projection device cannot perform automatic focusing according to the distance between the projection device and the projection plane acquired by the distance detector, and conversely, when the acquisition result does not meet the automatic focusing failure condition, it is determined that the projection device can realize automatic focusing.
In step 103, when the collection result meets the auto-focusing failure condition, a focusing prompt message is generated.
And the focusing prompt message is used for prompting the focal length adjustment of the projection equipment.
And after the focusing instruction message is acquired, receiving a focusing instruction according to the focusing prompt message, and adjusting the focal length of the projection equipment according to the focusing instruction.
Here, the focus adjustment may be performed on the projection device according to the adjustment parameter by receiving a focusing instruction and determining a corresponding adjustment parameter according to the focusing instruction, where the adjustment parameter includes a moving distance of the focus of the projection device and a moving direction of the focus of the projection device:
a first implementation manner is that after the focusing prompt message is generated, a focusing instruction sent by a control terminal connected to the projection device is received, at this time, a moving distance of a focus of the projection device and a moving direction of the focus of the projection device may be determined according to the focusing instruction, and a focal length of the projection device may be adjusted according to the moving distance and the moving direction, where the moving distance may be a preset distance. For example, a button "far" and a button "near" may be displayed in a control page of the control terminal, and when a user clicks the button "far", it may be determined that the focal point of the projection device moves according to a preset distance and a direction away from the projection device; when the user clicks the button "near", it may be determined that the focus of the projection device moves in a preset distance and direction to approach the projection device. Of course, in a possible implementation, the moving distance may also be determined according to the click time of the user clicking the button. For example, the longer the click time, the longer the movement distance, and conversely, the shorter the click time, the shorter the movement distance. In this way, the moving distance of the focus of the projection device can be determined by the time when the user clicks the button, so that the use experience of the user is improved. The foregoing examples are illustrative only, and the disclosure is not limited thereto.
The second implementation manner is that the focusing instruction is received according to the focusing operation of the user on the focusing button of the projection equipment. At this time, if the rotation direction of the focus button is one direction, the corresponding movement direction is a direction in which the focal point of the projection apparatus is away from the projection apparatus, and if the rotation direction of the focus button is another direction, the corresponding movement direction is a direction in which the focal point of the projection apparatus is close to the projection apparatus. The larger the rotation angle of the focusing button is, the larger the corresponding moving distance is, and conversely, the smaller the rotation angle of the focusing button is, the smaller the corresponding moving distance is. The foregoing examples are illustrative only, and the disclosure is not limited thereto.
A third implementation is to collect an audio focusing instruction (corresponding to the focusing instruction in the present disclosure) by a voice collecting device (such as a microphone). At this time, the audio focusing instruction may be converted into focusing text information, the focusing text information is subjected to word segmentation processing to obtain at least one word, whether each word is the same as the preset focusing word is determined in sequence, and when it is determined that any word is the same as the preset focusing word, it is determined that the audio focusing instruction includes the preset focusing word. Because the corresponding relation between the preset focusing words and the moving distance and the moving direction is established in advance, the moving distance and the moving direction corresponding to the preset focusing words are determined according to the corresponding relation, and the focal length of the projection equipment is adjusted according to the moving distance and the moving direction.
By adopting the method, whether the acquisition result meets the automatic focusing failure condition or not can be determined, and when the automatic focusing failure condition is met, the projection equipment cannot realize automatic focusing, and at the moment, a focusing prompt message can be generated to prompt a user to adopt other modes to adjust the focal length of the projection equipment, so that the problem that the projection equipment cannot focus when the automatic focusing fails is avoided.
Fig. 2 is a flowchart of a focusing method according to an exemplary embodiment, as shown in fig. 2, applied to a projection device, in this embodiment, a preset time period is taken as a time period for performing auto-focusing on the projection device, and an implementation manner of collecting an audio focusing instruction by a voice collecting device (e.g., a microphone) to receive a focusing instruction is described as an example, the method includes the following steps:
in step 201, the distance between the projection device and the projection plane is acquired according to a preset acquisition cycle during the time period when the projection device performs auto-focus.
The projection device is provided with a distance detector, so that the distance between the projection device and the projection plane can be detected by the distance detector, and the distance acquired by the projection device through the distance detector can be automatically focused, for example, the distance detector can be arranged at the most front position of the projection device. The foregoing examples are illustrative only, and the disclosure is not limited thereto.
For example, if the time period for the projection apparatus to perform auto-focusing is 2min and the preset acquisition period is 2s, the distance between the projection apparatus and the projection plane may be acquired every 2s within 2 min. The foregoing examples are illustrative only, and the disclosure is not limited thereto.
In step 202, it is determined whether the acquisition result satisfies an autofocus failure condition.
In this step, the autofocus failure condition is used to determine that the projection device is not suitable for autofocus, and the autofocus failure condition may include: the distance is not acquired within the preset time period; or the difference value between any two of the collected multiple distances is greater than or equal to a preset difference value; or, any one of the collected multiple distances is greater than or equal to a first preset threshold; or, any one of the acquired distances is less than or equal to a second preset threshold. Therefore, when the acquisition result meets the automatic focusing failure condition, the distance detector can be determined to have an automatic focusing fault. At this time, the projection device cannot automatically focus according to the distance between the projection device and the projection plane, which is acquired by the distance detector; conversely, when the acquisition result does not satisfy the autofocus failure condition, it is determined that the projection device can achieve autofocus.
When the acquisition result meets the automatic focusing failure condition, executing the steps 203, 205 and 206;
when the acquisition result does not meet the automatic focusing failure condition, executing step 204;
in step 203, a focus prompt message is generated.
The focusing prompt message is used for prompting the projection equipment to adjust the focal length, so that when the acquisition result meets the automatic focusing failure condition, a user can be prompted to adopt other modes to focus the projection equipment. For example, the focusing prompt message may be "the projection device cannot complete automatic focusing at present, please adjust the focus in another way", and the focusing prompt message may also be "the projection device cannot complete automatic focusing at present, please select another focusing way from the following list". The foregoing examples are illustrative only, and the disclosure is not limited thereto.
In step 204, the focal length of the projection device is adjusted according to the distance between the projection device and the projection plane.
In step 205, an audio focusing instruction is collected by a voice collecting device.
The voice collecting device may be a microphone, which is not limited in this disclosure.
In step 206, it is determined whether the audio focusing instruction includes a preset focusing word.
The audio focusing instruction can be converted into focusing text information through a voice recognition method, word segmentation processing is carried out on the focusing text information to obtain at least one word, and whether each word is the same as a preset focusing word or not is determined in sequence. When any word is determined to be the same as the preset focusing word, determining that the audio focusing instruction comprises the preset focusing word; and when each word is determined to be different from the preset focusing word, determining that the preset focusing word is not included in the audio focusing instruction. For example, if the preset focusing words include "far" and "near", the "far" indicates that the focal length of the projection device is increased, and the "near" indicates that the focal length of the projection device is decreased. Thus, when the focusing text information corresponding to the audio focusing instruction is "focus adjustment far", the focusing text information is subjected to word segmentation processing, at least one word obtained comprises "focus", adjustment "and" far ", the at least one word is sequentially matched with a preset focusing word, the" far "can be determined to be the same as the preset focusing word, and at the moment, the audio focusing instruction can be determined to comprise the preset focusing word. The foregoing examples are illustrative only, and the disclosure is not limited thereto.
When it is determined that the audio focusing instruction includes a preset focusing word, executing step 207;
upon determining that the preset focusing word is not included in the audio focusing instruction, step 208 is performed.
In step 207, a corresponding adjustment parameter is determined according to the preset focusing word, and the focal length of the projection device is adjusted according to the adjustment parameter.
In this step, the corresponding relationship between the preset focusing words and the adjustment parameters may be preset. Wherein the adjustment parameter may include a moving distance of the focal point of the projection device and a moving direction of the focal point of the projection device. In one possible implementation, the moving distance may be a preset distance set in advance. For example, if the preset focusing word includes "far", the moving distance of the focus of the corresponding projection device is a preset distance, and the moving direction is a direction in which the focus of the projection device is far away from the projection device; if the preset focusing word includes "near", the moving distance of the focus of the corresponding projection device is the preset distance, and the moving direction is the direction in which the focus of the projection device is close to the projection device. Continuing with the example in step 206 as an example, if it is determined that "far" is the same as the preset focusing word, it may be determined that the moving distance is 2cm (corresponding to the preset distance), and the moving direction is a direction in which the focal point of the projection device is far away from the projection device. Therefore, the focal length of the projection equipment can be adjusted according to the moving direction and the moving distance, and after the focal length is adjusted, if the focal length is still not appropriate, the audio focusing instruction can be continuously input to adjust the focal length of the projection equipment until the definition of a projection image of the projection equipment meets the visual requirement of a user.
It should be noted that, in another possible implementation manner, in order to improve the experience of the user in the focusing process, the preset focusing words are different, and the moving distance is also different, so that after the preset focusing words are determined to exist in the audio focusing instruction of the user, the moving distance can be determined according to the preset focusing words. For example, if the preset focusing words include "far point", "far multiple points", "near point", and "near multiple points", etc., a moving distance corresponding to the preset focusing word "far point" may be preset to be 1cm, and a moving direction is a direction in which a focal point of the projection apparatus is far away from the projection apparatus. The movement distance corresponding to a preset focusing word of 'far multiple points' can be preset to be 3cm, and the movement direction is the direction in which the focus of the projection equipment is far away from the projection equipment; the movement distance corresponding to a preset focusing word 'close to one point' can be preset to be 1cm, and the movement direction is the direction in which the focus of the projection equipment is close to the projection equipment; the movement distance corresponding to the preset focusing word "near multiple points" may be preset to be 3cm, and the movement direction is a direction in which the focus of the projection device is close to the projection device. Therefore, the focal length can be adjusted according to the preset corresponding relation between the focusing words and the moving distance and the moving direction. It should be noted that the above-mentioned moving distance is merely an example, and the disclosure is not limited thereto. For example, if the focused text information corresponding to the audio focusing instruction is "far focus point", the at least one word obtained through the word segmentation processing may include "focus point" and "far focus point", and since the at least one word includes the preset focusing word "far focus point", at this time, it may be determined that the movement distance corresponding to the preset focusing word is 1cm, and the movement direction is a direction in which the focus of the projection apparatus is far away from the projection apparatus. The foregoing examples are illustrative only, and the disclosure is not limited thereto.
In step 208, an error alert message is generated.
The error prompt message is used for prompting that the user cannot recognize the audio focusing instruction, so that the user can input the audio focusing instruction again, and the projection equipment is focused according to the input audio focusing instruction again. For example, the error prompt message may be "you input an audio focus command error, please re-input". The foregoing examples are illustrative only, and the disclosure is not limited thereto.
By adopting the method, whether the acquisition result meets the automatic focusing failure condition or not can be determined, and when the automatic focusing failure condition is met, the projection equipment cannot realize automatic focusing, and at the moment, a focusing prompt message can be generated to prompt a user to adopt other modes to adjust the focal length of the projection equipment, so that the problem that the projection equipment cannot focus when the automatic focusing fails is avoided.
Fig. 3 is a block diagram of a focusing device according to an exemplary embodiment, which is applied to a projection apparatus. Referring to fig. 3, the apparatus includes an acquisition module 301, a first determination module 302, and a generation module 303.
The acquisition module 301 is configured to acquire a distance between the projection device and the projection plane according to a preset acquisition cycle within a preset time period;
the first determination module 302 configured to determine whether the acquisition result satisfies an autofocus failure condition; the automatic focusing failure condition is used for determining that the projection equipment is not suitable for automatic focusing;
the generating module 303, configured to generate a focusing prompt message when the acquisition result meets the autofocus failure condition; the focusing prompt message is used for prompting the focal length adjustment of the projection equipment.
Optionally, the auto-focus failure condition comprises:
the distance is not acquired within the preset time period; alternatively, the first and second electrodes may be,
the difference value between any two of the collected multiple distances is greater than or equal to a preset difference value; alternatively, the first and second electrodes may be,
any one of the collected multiple distances is greater than or equal to a first preset threshold value; alternatively, the first and second electrodes may be,
any one of the acquired distances is less than or equal to a second preset threshold.
FIG. 4 is a block diagram illustrating a focusing apparatus according to an exemplary embodiment. Referring to fig. 4, further includes:
a receiving module 304 configured to receive a focusing instruction according to the focusing prompt message;
an adjusting module 305 configured to perform focus adjustment on the projection device according to the focusing instruction.
FIG. 5 is a block diagram illustrating a focusing apparatus according to an exemplary embodiment. Referring to fig. 5, the focusing instruction includes an audio focusing instruction, and the method further includes:
a second determining module 306 configured to determine whether the audio focusing instruction includes a preset focusing word;
the adjusting module 305 is configured to determine a corresponding adjusting parameter according to the preset focusing word when the preset focusing word is included in the audio focusing instruction, and perform focus adjustment on the projection apparatus according to the adjusting parameter.
FIG. 6 is a block diagram illustrating a focusing apparatus according to an exemplary embodiment. Referring to fig. 6, the second determination module 306 includes:
a conversion submodule 3061 configured to convert the audio focus instruction into focus text information;
a word segmentation submodule 3062 configured to perform word segmentation on the focused text information to obtain at least one word;
a first determining submodule 6063 configured to sequentially determine whether each of the words is the same as the preset focusing word;
the second determining submodule 3064 is configured to determine that the preset focusing word is included in the audio focusing instruction upon determining that any one of the words is the same as the preset focusing word.
Optionally, the adjustment parameter includes a moving distance of the focal point of the projection device and a moving direction of the focal point of the projection device, and the adjustment module 305 is configured to adjust the focal length of the projection device according to the moving distance and the moving direction.
FIG. 7 is a block diagram illustrating a focusing apparatus according to an exemplary embodiment. Referring to fig. 7, the receiving module 304 is configured to receive a focusing instruction sent by a control terminal connected to the projection device after generating the focusing prompt message; the adjustment module 305 includes:
a third determination submodule 3051 configured to determine a moving distance of the focus of the projection apparatus and a moving direction of the focus of the projection apparatus according to the focusing instruction;
an adjusting sub-module 3052 configured to adjust the focal length of the projection apparatus according to the moving distance and the moving direction.
By adopting the device, whether the acquisition result meets the automatic focusing failure condition or not can be determined, and when the automatic focusing failure condition is met, the projection equipment cannot realize automatic focusing, and at the moment, a focusing prompt message can be generated to prompt a user to adopt other modes to adjust the focal length of the projection equipment, so that the problem that the projection equipment cannot focus when the automatic focusing fails is avoided.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
The embodiment of the present disclosure further provides a focusing apparatus, including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to: acquiring the distance between the projection equipment and a projection plane according to a preset acquisition cycle in a preset time period; determining whether the acquisition result meets an automatic focusing failure condition; the automatic focusing failure condition is used for determining that the projection equipment is not suitable for automatic focusing; when the acquisition result meets the automatic focusing failure condition, generating a focusing prompt message; the focusing prompt message is used for prompting the focal length adjustment of the projection equipment.
The present disclosure also provides a computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the steps of the focusing method provided by the present disclosure.
FIG. 8 is a block diagram illustrating a focusing apparatus 800 according to an exemplary embodiment. For example, the apparatus 800 may be a projection device, a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 8, the apparatus 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and a communication component 816.
The processing component 802 generally controls overall operation of the device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to perform all or some of the steps of the focusing method described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the apparatus 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power component 806 provides power to the various components of device 800. The power components 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the device 800.
The multimedia component 808 includes a screen that provides an output interface between the device 800 and a user, in some embodiments, the screen may include a liquid crystal display (L CD) and a Touch Panel (TP). if the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the device 800. For example, the sensor assembly 814 may detect the open/closed status of the device 800, the relative positioning of components, such as a display and keypad of the device 800, the sensor assembly 814 may also detect a change in the position of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, the orientation or acceleration/deceleration of the device 800, and a change in the temperature of the device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communications between the apparatus 800 and other devices in a wired or wireless manner. The device 800 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), programmable logic devices (P L D), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the above-described focusing methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the device 800 to perform the focusing method described above is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
The preferred embodiments of the present disclosure are described in detail with reference to the accompanying drawings, however, the present disclosure is not limited to the specific details of the above embodiments, and various simple modifications may be made to the technical solution of the present disclosure within the technical idea of the present disclosure, and these simple modifications all belong to the protection scope of the present disclosure.
It should be noted that, in the foregoing embodiments, various features described in the above embodiments may be combined in any suitable manner, and in order to avoid unnecessary repetition, various combinations that are possible in the present disclosure are not described again.
In addition, any combination of various embodiments of the present disclosure may be made, and the same should be considered as the disclosure of the present disclosure, as long as it does not depart from the spirit of the present disclosure.

Claims (8)

1. A focusing method is applied to a projection device and comprises the following steps:
acquiring the distance between the projection equipment and a projection plane according to a preset acquisition cycle in a preset time period;
determining whether the acquisition result meets an automatic focusing failure condition; the automatic focusing failure condition is used for determining that the projection equipment is not suitable for automatic focusing;
when the acquisition result meets the automatic focusing failure condition, generating a focusing prompt message; the focusing prompt message is used for prompting the focal length adjustment of the projection equipment; the method further comprises the following steps:
receiving a focusing instruction according to the focusing prompt message;
carrying out focal length adjustment on the projection equipment according to the focusing instruction;
the focus instructions comprise audio focus instructions, the method further comprising:
determining whether the audio focusing instruction comprises a preset focusing word or not;
the adjusting the focal length of the projection device according to the focusing instruction comprises:
when the audio focusing instruction comprises the preset focusing words, determining corresponding adjusting parameters according to the preset focusing words, and adjusting the focal length of the projection equipment according to the adjusting parameters;
and presetting the corresponding relation between the preset focusing words and the adjusting parameters.
2. The method of claim 1, wherein the autofocus-disabled condition comprises:
the distance is not acquired within the preset time period; alternatively, the first and second electrodes may be,
the difference value between any two of the collected multiple distances is greater than or equal to a preset difference value; alternatively, the first and second electrodes may be,
any one of the collected multiple distances is greater than or equal to a first preset threshold value; alternatively, the first and second electrodes may be,
any one of the acquired distances is less than or equal to a second preset threshold.
3. The method of claim 1, wherein the determining whether the audio focus instruction includes a preset focus word comprises:
converting the audio focusing instruction into focusing text information;
performing word segmentation processing on the focusing text information to obtain at least one word;
sequentially determining whether each word is the same as the preset focusing word;
determining that the preset focusing words are included in the audio focusing instruction when any one of the words is determined to be the same as the preset focusing words.
4. The method of claim 1 or 3, wherein the adjustment parameters comprise a moving distance of a focal point of the projection device and a moving direction of the focal point of the projection device, and wherein the adjusting the focal length of the projection device according to the adjustment parameters comprises:
and adjusting the focal length of the projection equipment according to the moving distance and the moving direction.
5. The method of claim 1, wherein receiving a focusing instruction according to the focusing hint message comprises:
after the focusing prompt message is generated, receiving a focusing instruction sent by a control terminal connected with the projection equipment;
the adjusting the focal length of the projection device according to the focusing instruction comprises:
determining a moving distance of a focus of the projection equipment and a moving direction of the focus of the projection equipment according to the focusing instruction;
and adjusting the focal length of the projection equipment according to the moving distance and the moving direction.
6. A focusing device applied to a projection device comprises:
the acquisition module is configured to acquire the distance between the projection equipment and the projection plane according to a preset acquisition cycle in a preset time period;
a first determination module configured to determine whether the acquisition result satisfies an autofocus failure condition; the automatic focusing failure condition is used for determining that the projection equipment is not suitable for automatic focusing;
the generating module is configured to generate a focusing prompt message when the acquisition result meets the automatic focusing failure condition; the focusing prompt message is used for prompting the focal length adjustment of the projection equipment;
the device further comprises: a receiving module configured to receive a focusing instruction according to the focusing prompt message;
the adjusting module is configured to adjust the focal length of the projection device according to the focusing instruction;
the focusing instructions include audio focusing instructions, the apparatus further comprising:
a second determination module configured to determine whether a preset focusing word is included in the audio focusing instruction;
the adjusting module is configured to determine a corresponding adjusting parameter according to the preset focusing word when the audio focusing instruction includes the preset focusing word, and adjust the focal length of the projection device according to the adjusting parameter;
and presetting the corresponding relation between the preset focusing words and the adjusting parameters.
7. A focusing apparatus, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring the distance between the projection equipment and a projection plane according to a preset acquisition cycle in a preset time period;
determining whether the acquisition result meets an automatic focusing failure condition; the automatic focusing failure condition is used for determining that the projection equipment is not suitable for automatic focusing;
when the acquisition result meets the automatic focusing failure condition, generating a focusing prompt message; the focusing prompt message is used for prompting the focal length adjustment of the projection equipment;
the processor is further configured to: receiving a focusing instruction according to the focusing prompt message;
carrying out focal length adjustment on the projection equipment according to the focusing instruction;
the focusing instructions comprise audio focusing instructions, the processor configured to:
determining whether the audio focusing instruction comprises a preset focusing word or not;
the adjusting the focal length of the projection device according to the focusing instruction comprises:
when the audio focusing instruction comprises the preset focusing words, determining corresponding adjusting parameters according to the preset focusing words, and adjusting the focal length of the projection equipment according to the adjusting parameters;
and presetting the corresponding relation between the preset focusing words and the adjusting parameters.
8. A computer-readable storage medium, on which computer program instructions are stored, which program instructions, when executed by a processor, carry out the steps of the method according to any one of claims 1 to 5.
CN201810169320.8A 2018-02-28 2018-02-28 Focusing method and device and storage medium Active CN108471524B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810169320.8A CN108471524B (en) 2018-02-28 2018-02-28 Focusing method and device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810169320.8A CN108471524B (en) 2018-02-28 2018-02-28 Focusing method and device and storage medium

Publications (2)

Publication Number Publication Date
CN108471524A CN108471524A (en) 2018-08-31
CN108471524B true CN108471524B (en) 2020-08-07

Family

ID=63265035

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810169320.8A Active CN108471524B (en) 2018-02-28 2018-02-28 Focusing method and device and storage medium

Country Status (1)

Country Link
CN (1) CN108471524B (en)

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7643745B2 (en) * 2006-08-15 2010-01-05 Sony Ericsson Mobile Communications Ab Electronic device with auxiliary camera function
CN102547100B (en) * 2010-12-10 2014-10-08 佳能企业股份有限公司 Automatic focusing module of image capturing device
CN104065885B (en) * 2014-06-27 2018-02-13 宇龙计算机通信科技(深圳)有限公司 A kind of terminal, video shooting device and method
CN106023990A (en) * 2016-05-20 2016-10-12 深圳展景世纪科技有限公司 Speech control method and device based on projector equipment
CN106483740B (en) * 2016-09-30 2019-09-20 北京小米移动软件有限公司 Projector focusing method and device
CN106534674A (en) * 2016-10-17 2017-03-22 努比亚技术有限公司 Method for displaying focus area and mobile terminal
CN106791739A (en) * 2016-11-28 2017-05-31 北京小米移动软件有限公司 Projecting apparatus and its focusing method and device
CN206649264U (en) * 2017-04-17 2017-11-17 潘杨 A kind of auxiliary focusing mechanism

Also Published As

Publication number Publication date
CN108471524A (en) 2018-08-31

Similar Documents

Publication Publication Date Title
CN110557547B (en) Lens position adjusting method and device
US11516377B2 (en) Terminal, focusing method and apparatus, and computer readable storage medium
KR101712301B1 (en) Method and device for shooting a picture
EP3076716A1 (en) Method and apparatus for network access
EP3176709A1 (en) Video categorization method and apparatus, computer program and recording medium
EP3136699A1 (en) Method and device for connecting external equipment
CN106201734B (en) File sharing method and device
US11457437B2 (en) Method and apparatus for configuring information, base station and user equipment
EP3147802B1 (en) Method and apparatus for processing information
CN111294511B (en) Focusing method and device of camera module and storage medium
CN110312300B (en) Control method, control device and storage medium
EP3614711A1 (en) Method for outputting networking authentication information, networking method, apparatus and storage medium
CN107948876B (en) Method, device and medium for controlling sound box equipment
CN107885464B (en) Data storage method, device and computer readable storage medium
CN108471524B (en) Focusing method and device and storage medium
US11792518B2 (en) Method and apparatus for processing image
CN112702514B (en) Image acquisition method, device, equipment and storage medium
US20210076386A1 (en) Information indication method and apparatus, base station and user equipment
CN116418975A (en) Occlusion detection method, device and medium for camera group
EP3176740A1 (en) Information processing method and apparatus, computer program and recording medium
EP3239856A1 (en) Information acquisition method, device and system
EP3786852A1 (en) Method for subnetwork sampling, and method and device for building a hypernetwork topology
CN111667827A (en) Voice control method and device of application program and storage medium
EP3177043A2 (en) Method and apparatus for managing routing device and mobile terminal
CN117893591B (en) Light curtain template recognition method and device, equipment, storage medium and program product

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