WO2021128601A1 - 投影对焦的方法、装置、投影仪和可读存储介质 - Google Patents

投影对焦的方法、装置、投影仪和可读存储介质 Download PDF

Info

Publication number
WO2021128601A1
WO2021128601A1 PCT/CN2020/079216 CN2020079216W WO2021128601A1 WO 2021128601 A1 WO2021128601 A1 WO 2021128601A1 CN 2020079216 W CN2020079216 W CN 2020079216W WO 2021128601 A1 WO2021128601 A1 WO 2021128601A1
Authority
WO
WIPO (PCT)
Prior art keywords
motor position
projection
focusing
projection distance
motor
Prior art date
Application number
PCT/CN2020/079216
Other languages
English (en)
French (fr)
Inventor
钟波
肖适
王鑫
宁仲
Original Assignee
成都极米科技股份有限公司
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 成都极米科技股份有限公司 filed Critical 成都极米科技股份有限公司
Priority to JP2022504320A priority Critical patent/JP7265678B2/ja
Priority to US17/598,318 priority patent/US11849263B2/en
Priority to EP20906561.4A priority patent/EP3933501A4/en
Publication of WO2021128601A1 publication Critical patent/WO2021128601A1/zh

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
    • GPHYSICS
    • G03PHOTOGRAPHY; CINEMATOGRAPHY; ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ELECTROGRAPHY; HOLOGRAPHY
    • G03BAPPARATUS OR ARRANGEMENTS FOR TAKING PHOTOGRAPHS OR FOR PROJECTING OR VIEWING THEM; APPARATUS OR ARRANGEMENTS EMPLOYING ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ACCESSORIES THEREFOR
    • G03B21/00Projectors or projection-type viewers; Accessories therefor
    • G03B21/14Details
    • G03B21/53Means for automatic focusing, e.g. to compensate thermal effects
    • GPHYSICS
    • G03PHOTOGRAPHY; CINEMATOGRAPHY; ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ELECTROGRAPHY; HOLOGRAPHY
    • G03BAPPARATUS OR ARRANGEMENTS FOR TAKING PHOTOGRAPHS OR FOR PROJECTING OR VIEWING THEM; APPARATUS OR ARRANGEMENTS EMPLOYING ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ACCESSORIES THEREFOR
    • G03B21/00Projectors or projection-type viewers; Accessories therefor
    • G03B21/14Details
    • G03B21/142Adjusting of projection optics
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/67Focus control based on electronic image sensor signals

Definitions

  • the present invention relates to the technical field of projection automatic focusing, in particular to a method, device, projector and readable storage medium for projection focusing.
  • the existing projection focusing methods include camera-based focusing schemes and ranging-based focusing schemes.
  • the camera-based focusing schemes are based on projection contrast focusing technology, which mainly uses the difference between different pixels of the image to focus and project the clearest position That is, when the pixel difference is the maximum value, but the method needs to traverse multiple positions sequentially from a certain initial position each time, it takes a long time, the focusing scheme is slow, and the focusing scheme based on distance measurement has insufficient stability and accuracy.
  • the present application provides a method, device, projector, and readable storage medium for projection focusing, which can solve or at least partially solve the above-mentioned problems.
  • the technical solution provided by the present invention is a projection focusing method, including:
  • the driving motor moves from the start point of the target motor position range to the end point of the target motor position range according to the focusing direction, and the current projection image definition value is calculated every time the driving motor moves one step.
  • the driving motor moves to the motor position with the highest projection image definition value When the focus is completed.
  • the method for determining the focus direction according to the first projection distance value and the second projection distance value includes:
  • the focus direction is set to the second direction, that is, the movement of the motor in the second direction corresponds to the longer the projection distance.
  • the method of converting the target motor position into the target motor position range according to the preset motor position error includes:
  • the difference between the target motor position and the motor position error is taken as the starting point of the target motor position range, and the sum of the target motor position and the motor position error is taken as the end point of the target motor position range.
  • the driving motor moves from the starting point of the target motor position range to the end point of the target motor position range according to the focusing direction, and the current projection image definition value is calculated every time the driving motor moves one step.
  • the driving motor moves to the projection image definition
  • the methods to accomplish focusing at the highest motor position include:
  • the drive motor reaches the starting point of the target motor position range according to the focusing direction;
  • the drive motor moves to the end of the target motor position range. Each time the drive motor moves one step, the current projected screen image is obtained and the sharpness value of the current projected screen image is calculated, and the sharpness value of the current projected screen image is compared with that of the previous projected screen image. The size of the sharpness value. If the sharpness value of the current projected screen image is lower than the sharpness value of the previous projected screen image, the drive motor will move back to the previous step to complete focusing.
  • the present invention also provides a projection focusing device, including:
  • the projection distance acquisition module is used to acquire the current motor position, and obtain the first projection distance value corresponding to the current motor position according to the preset mapping relationship between the projection distance and the motor position;
  • the target position obtaining module is used to obtain the current projection distance, that is, the second projection distance value, and obtain the target motor position corresponding to the second projection distance value according to the preset mapping relationship between the projection distance and the motor position;
  • the focus range acquisition module is configured to determine the focus direction according to the first projection distance value and the second projection distance value, and convert the target motor position into the target motor position range according to a preset motor position error;
  • the driving focus calculation module is used to drive the motor to move from the start point of the target motor position range to the end point of the target motor position range according to the focusing direction.
  • the current projection image definition value is calculated every time the motor is moved by one step. When the drive motor moves to the projection image Focus is completed at the motor position with the highest sharpness value.
  • the focusing range acquisition module includes:
  • the focusing direction judging unit is used to judge whether the first projection distance value is greater than the second projection distance value, if yes, then enter the first setting unit, if not, then enter the second setting unit;
  • the first setting unit is configured to set the focusing direction to the first direction, that is, the movement of the motor in the first direction corresponds to the projection distance getting closer;
  • the second setting unit is used to set the focusing direction to the second direction, that is, the movement of the motor in the second direction corresponds to the longer the projection distance.
  • the focusing range acquisition module includes:
  • the focus range generating unit is used to take the difference between the target motor position and the motor position error as the starting point of the target motor position range and the sum of the target motor position and the motor position error as the target motor position range according to the preset motor position error end.
  • the driving focus calculation module includes:
  • the motor drive unit is used to drive the motor to the starting point of the target motor position range according to the focusing direction;
  • the sharpness comparison unit is used to drive the motor to move to the end of the target motor position range. Each time the motor is moved by one step, the current projected screen image is obtained and the sharpness value of the current projected screen image is calculated, and the sharpness value of the current projected screen image is compared with The size of the sharpness value of the last projected screen image. If the sharpness value of the current projected screen image is lower than the sharpness value of the last projected screen image, the drive motor will move back to the previous step to complete focusing.
  • the present invention also provides a projector, including:
  • Memory used to store computer programs
  • the processor is configured to execute the computer program to implement the steps of the above projection focusing method.
  • the present invention also provides a readable storage medium, the readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above projection focusing method are realized.
  • the projection focusing method provided by this application roughly determines the starting position of the focusing motor based on the current projection distance, and according to the current projection distance and the projection distance corresponding to the current motor position Determine the focus direction, by traversing a few motor positions, you can find the clearest position of the projection screen, which greatly improves the speed and accuracy of the projection focus.
  • FIG. 1 is a schematic flowchart of a method for projection focusing according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of a method for determining a focus direction according to an embodiment of the present invention
  • FIG. 3 is a schematic flowchart of a method for driving a motor to move and focus according to an embodiment of the present invention
  • FIG. 4 is a schematic flowchart of a method of step S14 according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a projection focusing device provided by an embodiment of the present invention.
  • an embodiment of the present invention provides a projection focusing method, including:
  • S11 Obtain the current motor position, and obtain the first projection distance value corresponding to the current motor position according to the preset mapping relationship between the projection distance and the motor position;
  • S12 Obtain the current projection distance, that is, the second projection distance value, and obtain the target motor position corresponding to the second projection distance value according to the preset mapping relationship between the projection distance and the motor position;
  • S13 Determine the focus direction according to the first projection distance value and the second projection distance value, and convert the target motor position into a target motor position range according to a preset motor position error;
  • S14 Drive the motor to move from the starting point of the target motor position range to the end of the target motor position range according to the focusing direction.
  • the current projection screen definition value is calculated every time the drive motor moves one step. When the drive motor moves to the highest projection screen definition value Focus is completed when the motor is in position.
  • the method/device for projection focusing can be applied to electronic equipment with projection functions such as projectors, projectors, and projection televisions
  • the electronic equipment includes projection function modules (optical machines, etc.), The shooting function module (camera, etc.) and the distance measuring function module (ranging sensor, etc.).
  • the projection function module is used to project the image to the projection surface
  • the shooting function module is used to shoot the projection screen on the projection surface to obtain the projection surface image
  • the distance function module is used to measure the distance from the projection function module to the projection surface.
  • the three functional modules can be assembled in one piece or separately, and all of them can use the projection focusing method/device provided in this application.
  • a preprocessing step is also included, that is, S10: establishing a mapping relationship between the projection distance and the focal length, that is, establishing a mapping relationship between the projection distance and the motor position.
  • the method of obtaining the current motor position in S11 can read the current motor position in the device.
  • the current motor position is the motor position after the last focus is completed.
  • the projection distance during the last focus can be calculated, that is, the first projection distance value corresponding to the current motor position can be obtained.
  • the method for obtaining the current projection distance in S12 is to measure the distance between the device and the projection surface through the distance measuring module, that is, to obtain the second projection distance value. According to the preset projection distance and motor position mapping relationship, it can be mapped to the motor position, that is, the target motor position corresponding to the second distance value is calculated, that is, under the projection distance, the motor can be adjusted to the target motor position to achieve focusing .
  • the method of determining the focus direction according to the first projection distance value and the second projection distance value in S13 includes:
  • the method of converting the target motor position into the target motor position range according to the preset motor position error in S13 includes:
  • the difference between the target motor position and the motor position error is taken as the starting point of the target motor position range, and the sum of the target motor position and the motor position error is taken as the end point of the target motor position range.
  • the preset motor position error is obtained by obtaining the deviation range of the corresponding motor position according to the ranging error range of the ranging sensor.
  • the motor deviation range corresponding to the theoretical maximum error range of the ranging is obtained by obtaining the motor deviation range corresponding to the theoretical maximum error range of the ranging.
  • the second projection distance value of the projection function module from the projection surface is measured by the distance measuring sensor.
  • the second projection distance value may be limited due to equipment cost and principle, and the accuracy is insufficient.
  • the method of S14 includes:
  • S142 Drive the motor to move to the end of the target motor position range, each time the drive motor moves one step, the current projected screen image is obtained and the sharpness value of the current projected screen image is calculated, and the sharpness value of the current projected screen image is compared with the previous projected screen. The sharpness value of the image. If the sharpness value of the current projected screen image is lower than the sharpness value of the previous projected screen image, the drive motor will move back to the previous step to complete focusing.
  • the focus starting position (motor position) is determined according to the second projection distance value.
  • the focus direction of the motor can be known to drive the horse.
  • d represents the motor position error.
  • the motor starts to rotate with Xd as the starting point, and drives the motor to go N positions.
  • the sharpness of a picture until the current picture sharpness is lower than the sharpness of the previous motor position, it indicates that the most in-focus position has been found, the drive motor returns to the in-focus position, and the focusing process ends.
  • an embodiment of the present invention also provides a projection focusing device, which is characterized in that it includes:
  • the projection distance acquisition module 21 is used to acquire the current motor position, and obtain the first projection distance value corresponding to the current motor position according to the preset mapping relationship between the projection distance and the motor position;
  • the target position obtaining module 22 is configured to obtain the current projection distance, that is, the second projection distance value, and obtain the target motor position corresponding to the second projection distance value according to the preset mapping relationship between the projection distance and the motor position;
  • the focus range acquisition module 23 is configured to determine the focus direction according to the first projection distance value and the second projection distance value, and convert the target motor position into the target motor position range according to a preset motor position error;
  • the driving focus calculation module 24 is used to drive the motor to move from the start point of the target motor position range to the end point of the target motor position range according to the focusing direction, and calculate the current projection image definition value every time the motor moves one step. When the drive motor moves to the projection Focus is completed at the motor position with the highest image sharpness value.
  • the focus range acquisition module 23 includes:
  • the focusing direction judging unit is used to judge whether the first projection distance value is greater than the second projection distance value, if yes, then enter the first setting unit, if not, then enter the second setting unit;
  • the first setting unit is configured to set the focusing direction to the first direction, that is, the movement of the motor in the first direction corresponds to the projection distance getting closer;
  • the second setting unit is used to set the focusing direction to the second direction, that is, the movement of the motor in the second direction corresponds to the longer the projection distance.
  • the focus range acquisition module 23 includes:
  • the focus range generating unit is used to take the difference between the target motor position and the motor position error as the starting point of the target motor position range and the sum of the target motor position and the motor position error as the target motor position range according to the preset motor position error end.
  • the driving focus calculation module 24 includes:
  • the motor drive unit is used to drive the motor to the starting point of the target motor position range according to the focusing direction;
  • the sharpness comparison unit is used to drive the motor to move to the end of the target motor position range. Each time the motor is moved by one step, the current projected screen image is obtained and the sharpness value of the current projected screen image is calculated, and the sharpness value of the current projected screen image is compared with The size of the sharpness value of the last projected screen image. If the sharpness value of the current projected screen image is lower than the sharpness value of the last projected screen image, the drive motor will move back to the previous step to complete focusing.
  • An embodiment of the present invention also provides a projector, including: a memory, configured to store a computer program; and a processor, configured to execute the computer program to implement the steps of the above-mentioned projection focusing method.
  • the present invention also provides a readable storage medium, the readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above projection focusing method are realized.
  • the steps of the method or algorithm described in combination with the embodiments disclosed herein can be directly implemented by hardware, a software module executed by a processor, or a combination of the two.
  • the software module can be placed in random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disks, removable disks, CD-ROMs, or all areas in the technical field. Any other known storage media.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Optics & Photonics (AREA)
  • Projection Apparatus (AREA)
  • Transforming Electric Information Into Light Information (AREA)
  • Automatic Focus Adjustment (AREA)
  • Focusing (AREA)

Abstract

本发明涉及投影自动对焦技术领域,实施例具体公开一种投影对焦的方法、装置、投影仪和可读存储介质。本申请提供的投影对焦方法是基于当前的投影距离粗定对焦的马达起始位置,根据当前的投影距离和当前马达位置对应的投影距离确定对焦方向,通过遍历很少的几个马达位置,就可以找到投影画面最清晰位置,大大提升了投影对焦的速度和精度。

Description

投影对焦的方法、装置、投影仪和可读存储介质 技术领域
本发明涉及投影自动对焦技术领域,具体涉及一种投影对焦的方法、装置、投影仪和可读存储介质。
背景技术
现有的投影对焦方法包括基于摄像头的对焦方案和基于测距的对焦方案,基于摄像头的对焦方案是基于投影反差对焦技术,主要是利用图像的不同像素之间差值进行对焦,投影最清晰位置也就是像素差值最大值时,但该方法需要每次从某个初始位置依序遍历多个位置,耗时长,对焦方案速度慢,而基于测距的对焦方案稳定性和精度不够。
发明内容
有鉴于此,本申请提供一种投影对焦的方法、装置、投影仪和可读存储介质,能够解决或者至少部分解决上述存在的问题。
为解决以上技术问题,本发明提供的技术方案是一种投影对焦的方法,包括:
获取当前马达位置,根据预设的投影距离与马达位置映射关系式,获得当前马达位置对应的第一投影距离值;
获取当前的投影距离,即第二投影距离值,根据预设的投影距离与马达位置映射关系式,获得第二投影距离值对应的目标马达位置;
根据第一投影距离值和第二投影距离值确定对焦方向,根据预设的马达位置误差,将目标马达位置转换为目标马达位置范围;
驱动马达按对焦方向从目标马达位置范围的起点向目标马达位置范围的终点移动,每驱动马达移动一步则计算当前的投影画面清晰度值,当驱动马达移动到投影画面清晰度值最高的马达位置时完成对焦。
优选的,所述根据第一投影距离值和第二投影距离值确定对焦方向的方法包括:
判断第一投影距离值是否大于第二投影距离值,
若是,则设置对焦方向为第一方向,即马达向第一方向移动对应着投影距离变近;
若否,则设置对焦方向为第二方向,即马达向第二方向移动对应着投影距离变远。
优选的,所述根据预设的马达位置误差,将目标马达位置转换为目标马达位置范围的方法包括:
根据预设的马达位置误差,将目标马达位置与马达位置误差的差值作为目标马达位置范围的起点,将目标马达位置与马达位置误差的和值作为目标马达位置范围终点。
优选的,所述驱动马达按对焦方向从目标马达位置范围的起点向目标马达位置范围的终点移动,每驱动马达移动一步则计算当前的投影画面清晰度值,当驱动马达移动到投影画面清晰度值最高的马达位置时完成对焦的方法包括:
驱动马达按对焦方向到达目标马达位置范围的起点;
驱动马达向目标马达位置范围的终点移动,每驱动马达移动一步,获取当前投影画面图像并计算当前投影画面图像的清晰度值,比较当前投影画面图像的清晰度值与上一张投影画面图像的清晰度值大小,若当前投影画面图像的清晰度值低于上一张投影画面图像的清晰度值,则驱动马达返回移动到上一步完成对焦。
本发明还提供一种投影对焦的装置,包括:
投影距离获取模块,用于获取当前马达位置,根据预设的投影距离与马达位置映射关系式,获得当前马达位置对应的第一投影距离值;
目标位置获取模块,用于获取当前的投影距离,即第二投影距离值,根据预设的投影距离与马达位置映射关系式,获得第二投影距离值对应的目标马达位置;
对焦范围获取模块,用于根据第一投影距离值和第二投影距离值确定对焦方向,根据预设的马达位置误差,将目标马达位置转换为目标马达位置范围;
驱动对焦计算模块,用于驱动马达按对焦方向从目标马达位置范围的起点向目标马达位置范围的终点移动,每驱动马达移动一步则计算当前的投影画面清晰度值,当驱动马达移动到投影画面清晰度值最高的马达位置时完成对焦。
优选的,所述对焦范围获取模块包括:
对焦方向判断单元,用于判断第一投影距离值是否大于第二投影距离值,若是,则进入第一设置单元,若否,则进入第二设置单元;
第一设置单元,用于设置对焦方向为第一方向,即马达向第一方向移动对应着投影距离变近;
第二设置单元,用于设置对焦方向为第二方向,即马达向第二方向移动对应着投影距离变远。
优选的,所述对焦范围获取模块包括:
对焦范围生成单元,用于根据预设的马达位置误差,将目标马达位置与马达位置误差的差值作为目标马达位置范围的起点,将目标马达位置与马达位置误差的和值作为目标马达位置范围终点。
优选的,所述驱动对焦计算模块包括:
马达驱动单元,用于驱动马达按对焦方向到达目标马达位置范围的起点;
清晰度比较单元,用于驱动马达向目标马达位置范围的终点移动,每驱动马达移动一步,获取当前投影画面图像并计算当前投影画面图像的清晰度值,比较当前投影画面图像的清晰度值与上一张投影画面图像的清晰度值大小,若当前投影画面图像的清晰度值低于上一张投影画面图像的清晰度值,则驱动马达返回移动到上一步完成对焦。
本发明还提供一种投影仪,包括:
存储器,用于存储计算机程序;
处理器,用于执行所述计算机程序以实现如上述投影对焦的方法的步骤。
本发明还提供一种可读存储介质,所述可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现如上述投影对焦的方法的步骤。
本申请与现有技术相比,其有益效果详细说明如下:本申请提供的投影对焦方法基于当前的投影距离粗定对焦的马达起始位置,根据当前的投影距离和当前马达位置对应的投影距离确定对焦方向,通过遍历很少的几个马达位置,就可以找到投影画面最清晰位置,大大提升投影对焦的速度和精度。
附图说明
为了更清楚地说明本发明实施例,下面将对实施例中所需要使用的附图做简单的介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本发明实施例提供的一种投影对焦的方法流程示意图;
图2为本发明实施例提供的一种确定对焦方向的方法流程示意图;
图3为本发明实施例提供的一种驱动马达移动对焦的方法流程示意图;
[根据细则91更正 24.03.2020] 
图4为本发明实施例提供的步骤S14的方法流程示意图;
[根据细则91更正 24.03.2020] 
图5为本发明实施例提供的一种投影对焦的装置结构示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下,所获得的所有其他实施例,都属于本发明保护范围。
为了使本领域的技术人员更好地理解本发明的技术方案,下面结合附图和具体实施例对本发明作进一步的详细说明。
如图1所示,本发明实施例提供一种投影对焦的方法,包括:
S11:获取当前马达位置,根据预设的投影距离与马达位置映射关系式,获得当前马达位置对应的第一投影距离值;
S12:获取当前的投影距离,即第二投影距离值,根据预设的投影距离与马达位置映射关系式,获得第二投影距离值对应的目标马达位置;
S13:根据第一投影距离值和第二投影距离值确定对焦方向,根据预设的马达位置误差,将目标马达位置转换为目标马达位置范围;
S14:驱动马达按对焦方向从目标马达位置范围的起点向目标马达位置范围的终点移动,每驱动马达移动一步则计算当前的投影画面清晰度值,当驱动马达移动到投影画面清晰度值最高的马达位置时完成对焦。
需要说明的是,本申请提供的一种投影对焦的方法/装置可以应用于投影仪、投影机、投影电视等具有投影功能的电子设备,且该电子设备包含投影功能模块(光机等)、拍摄功能模块(摄像头等)和测距功能模块(测距传感器等),其中,投影功能模块用于投射图像到投影面,拍摄功能模块用于拍摄投影面上的投影画面获得投影面图像,测距功能模块用于测量投影功能模块到投影面的距离。该3个功能模块可以一体组装,也可以分体组装,均可以采用本申请提供的投影对焦的方法/装置。
具体的,S11前还包括预处理步骤,即S10:建立投影距离和焦距之间的映射关系式,即建立投影距离和马达位置映射关系式。建立的方法,包括根据调焦结构,如马达参数和调焦减速比等参数,确定调焦曲线模型,对应的关系是M=Log(a)x+b,其中a是通过调焦结构参数定下来的一个值,x表示的是投影距离,b表示不同机器间的差异性,M表示马达位置。
需要说明的是,S11中获取当前马达位置的方法,可以读取设备中的当前马达位置,当前马达位置即为上一次对焦完成后的马达位置,根据预设的投影距离和马 达位置映射关系式,可以计算出上次对焦时的投影距离,即获得当前马达位置对应的第一投影距离值。
具体的,对焦有两种方式,一种是手动,一种是自动,需要通过改变马达位置来改变焦距,通过记录马达位置,可以根据前后两次马达的移动步数来确定投影距离是变远还是变近。
需要说明的是,S12中获取当前的投影距离的方法,即通过测距模块测量设备与投影面之间的距离,即获得第二投影距离值。根据预设的投影距离和马达位置映射关系式,可以映射到马达位置,即计算出第二距离值对应的目标马达位置,即在该投影距离下,将马达调整到目标马达位置即可实现对焦。
如图2所示,需要说明的是,S13中根据第一投影距离值和第二投影距离值确定对焦方向的方法包括:
S131:判断第一投影距离值是否大于第二投影距离值,
S132:若是,则设置对焦方向为第一方向,即马达向第一方向移动对应着投影距离变近;
S133:若否,则设置对焦方向为第二方向,即马达向第二方向移动对应着投影距离变远。
需要说明的是,S13中根据预设的马达位置误差,将目标马达位置转换为目标马达位置范围的方法包括:
根据预设的马达位置误差,将目标马达位置与马达位置误差的差值作为目标马达位置范围的起点,将目标马达位置与马达位置误差的和值作为目标马达位置范围终点。
具体的,如图3所示,考虑到自动对焦和手动对焦会穿插着做,所以必须实时记录马达的位置,把马达位置映射成投影距离值,统一用投影距离值的变化来确定对焦的方向,因此确定马达的起始位置非常关键,因为距离的测量值和马达位置映 射到的距离值都存在一定的误差,如图3所示为投影距离值(马达位置)与清晰度值对应图,测距误差的范围会在f1f2之间波动,波动范围是一个经验值F,为了对焦成功,就需要在f1f2中找到最清晰的位置,粗定位是根据测量的第一投影距离值和马达位置对应的第二投影距离值做对比,把马达的起始位置移动到s或者e点,然后在s f1 f2或者e f2 f1区间中找最清晰点。
这里,预设的马达位置误差是根据测距传感器存在的测距误差范围,得到对应马达位置的偏差范围得到的,在这里我们取理论上测距最大误差范围对应的马达偏差范围。
具体的,通过测距传感器测量到投影功能模块距离投影面的第二投影距离值,该第二投影距离值会因设备成本和原理限制,精度不够,在得到第二投影距离值后,换算成对应的马达位置X,根据对焦方向,驱动马达到X-d位置,d表示马达位置误差,对焦范围为(X-d,X+d)。
如图4所示,需要说明的是,S14的方法包括:
S141:驱动马达按对焦方向到达目标马达位置范围的起点;
S142:驱动马达向目标马达位置范围的终点移动,每驱动马达移动一步,获取当前投影画面图像并计算当前投影画面图像的清晰度值,比较当前投影画面图像的清晰度值与上一张投影画面图像的清晰度值大小,若当前投影画面图像的清晰度值低于上一张投影画面图像的清晰度值,则驱动马达返回移动到上一步完成对焦。
具体的,在触发对焦之前,获取到第二投影距离值,根据第二投影距离值确定对焦起始位置(马达位置),确定马达变远和变近后,可以知道马达的对焦方向,驱动马达到X-d位置,d表示马达位置误差,马达以X-d为起始点,开始转动,驱动马达走N个位置,N是根据预设的马达位置误差计算的,N=2*d,就是马达再走N个位置内,必定有其中之一的位置是最清晰的,因此同时启动摄像头,拍摄投影画面,每走1步,拍摄一张投影画面分析画面的清晰度,利用方差法进行计算,对 比前后两张画面的清晰度,直到当前的画面清晰度低于前一个马达位置的清晰度,表明已经找到最合焦位置,驱动马达返回到合焦位置,对焦流程结束。
如图4所示,本发明实施例还提供一种投影对焦的装置,其特征在于,包括:
投影距离获取模21,用于获取当前马达位置,根据预设的投影距离与马达位置映射关系式,获得当前马达位置对应的第一投影距离值;
目标位置获取模块22,用于获取当前的投影距离,即第二投影距离值,根据预设的投影距离与马达位置映射关系式,获得第二投影距离值对应的目标马达位置;
对焦范围获取模块23,用于根据第一投影距离值和第二投影距离值确定对焦方向,根据预设的马达位置误差,将目标马达位置转换为目标马达位置范围;
驱动对焦计算模块24,用于驱动马达按对焦方向从目标马达位置范围的起点向目标马达位置范围的终点移动,每驱动马达移动一步则计算当前的投影画面清晰度值,当驱动马达移动到投影画面清晰度值最高的马达位置时完成对焦。
需要说明的是,对焦范围获取模块23包括:
对焦方向判断单元,用于判断第一投影距离值是否大于第二投影距离值,若是,则进入第一设置单元,若否,则进入第二设置单元;
第一设置单元,用于设置对焦方向为第一方向,即马达向第一方向移动对应着投影距离变近;
第二设置单元,用于设置对焦方向为第二方向,即马达向第二方向移动对应着投影距离变远。
需要说明的是,对焦范围获取模块23包括:
对焦范围生成单元,用于根据预设的马达位置误差,将目标马达位置与马达位置误差的差值作为目标马达位置范围的起点,将目标马达位置与马达位置误差的和值作为目标马达位置范围终点。
需要说明的是,驱动对焦计算模块24包括:
马达驱动单元,用于驱动马达按对焦方向到达目标马达位置范围的起点;
清晰度比较单元,用于驱动马达向目标马达位置范围的终点移动,每驱动马达移动一步,获取当前投影画面图像并计算当前投影画面图像的清晰度值,比较当前投影画面图像的清晰度值与上一张投影画面图像的清晰度值大小,若当前投影画面图像的清晰度值低于上一张投影画面图像的清晰度值,则驱动马达返回移动到上一步完成对焦。
本发明实施例还提供一种投影仪,包括:存储器,用于存储计算机程序;处理器,用于执行计算机程序以实现如上述投影对焦的方法的步骤。
本发明还提供一种可读存储介质,可读存储介质存储有计算机程序,计算机程序被处理器执行时实现如上述投影对焦的方法的步骤。
图5所对应实施例中特征的说明可以参见图1-图4所对应实施例的相关说明,这里不再一一赘述。
以上对本发明实施例所提供的一种投影对焦的方法、装置、投影仪和可读存储介质进行了详细介绍。说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以对本发明进行若干改进和修饰,这些改进和修饰也落入本发明权利要求的保护范围内。
专业人员还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所 描述的功能,但是这种实现不应认为超出本发明的范围。
结合本文中所公开的实施例描述的方法或算法的步骤可以直接用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。

Claims (10)

  1. 一种投影对焦的方法,其特征在于,包括:
    获取当前马达位置,根据预设的投影距离与马达位置映射关系式,获得当前马达位置对应的第一投影距离值;
    获取当前的投影距离,即第二投影距离值,根据预设的投影距离与马达位置映射关系式,获得第二投影距离值对应的目标马达位置;
    根据第一投影距离值和第二投影距离值确定对焦方向,根据预设的马达位置误差,将目标马达位置转换为目标马达位置范围;
    驱动马达按对焦方向从目标马达位置范围的起点向目标马达位置范围的终点移动,每驱动马达移动一步则计算当前的投影画面清晰度值,当驱动马达移动到投影画面清晰度值最高的马达位置时完成对焦。
  2. 根据权利要求1所述的投影对焦的方法,其特征在于,所述根据第一投影距离值和第二投影距离值确定对焦方向的方法包括:
    判断第一投影距离值是否大于第二投影距离值,
    若是,则设置对焦方向为第一方向,即马达向第一方向移动对应着投影距离变近;
    若否,则设置对焦方向为第二方向,即马达向第二方向移动对应着投影距离变远。
  3. 根据权利要求1所述的投影对焦的方法,其特征在于,所述根据预设的马达位置误差,将目标马达位置转换为目标马达位置范围的方法包括:
    根据预设的马达位置误差,将目标马达位置与马达位置误差的差值作为目标马达位置范围的起点,将目标马达位置与马达位置误差的和值作为目标马达位置范围终点。
  4. 根据权利要求1所述的投影对焦的方法,其特征在于,所述驱动马达按对焦方向从目标马达位置范围的起点向目标马达位置范围的终点移动,每驱动马达移动 一步则计算当前的投影画面清晰度值,当驱动马达移动到投影画面清晰度值最高的马达位置时完成对焦的方法包括:
    驱动马达按对焦方向到达目标马达位置范围的起点;
    驱动马达向目标马达位置范围的终点移动,每驱动马达移动一步,获取当前投影画面图像并计算当前投影画面图像的清晰度值,比较当前投影画面图像的清晰度值与上一张投影画面图像的清晰度值大小,若当前投影画面图像的清晰度值低于上一张投影画面图像的清晰度值,则驱动马达返回移动到上一步完成对焦。
  5. 一种投影对焦的装置,其特征在于,包括:
    投影距离获取模块,用于获取当前马达位置,根据预设的投影距离与马达位置映射关系式,获得当前马达位置对应的第一投影距离值;
    目标位置获取模块,用于获取当前的投影距离,即第二投影距离值,根据预设的投影距离与马达位置映射关系式,获得第二投影距离值对应的目标马达位置;
    对焦范围获取模块,用于根据第一投影距离值和第二投影距离值确定对焦方向,根据预设的马达位置误差,将目标马达位置转换为目标马达位置范围;
    驱动对焦计算模块,用于驱动马达按对焦方向从目标马达位置范围的起点向目标马达位置范围的终点移动,每驱动马达移动一步则计算当前的投影画面清晰度值,当驱动马达移动到投影画面清晰度值最高的马达位置时完成对焦。
  6. 根据权利要求5所述的投影对焦的装置,其特征在于,所述对焦范围获取模块包括:
    对焦方向判断单元,用于判断第一投影距离值是否大于第二投影距离值,若是,则进入第一设置单元,若否,则进入第二设置单元;
    第一设置单元,用于设置对焦方向为第一方向,即马达向第一方向移动对应着投影距离变近;
    第二设置单元,用于设置对焦方向为第二方向,即马达向第二方向移动对应着 投影距离变远。
  7. 根据权利要求5所述的投影对焦的装置,其特征在于,所述对焦范围获取模块包括:
    对焦范围生成单元,用于根据预设的马达位置误差,将目标马达位置与马达位置误差的差值作为目标马达位置范围的起点,将目标马达位置与马达位置误差的和值作为目标马达位置范围终点。
  8. 根据权利要求5所述的投影对焦的装置,其特征在于,所述驱动对焦计算模块包括:
    马达驱动单元,用于驱动马达按对焦方向到达目标马达位置范围的起点;
    清晰度比较单元,用于驱动马达向目标马达位置范围的终点移动,每驱动马达移动一步,获取当前投影画面图像并计算当前投影画面图像的清晰度值,比较当前投影画面图像的清晰度值与上一张投影画面图像的清晰度值大小,若当前投影画面图像的清晰度值低于上一张投影画面图像的清晰度值,则驱动马达返回移动到上一步完成对焦。
  9. 一种投影仪,其特征在于,包括:
    存储器,用于存储计算机程序;
    处理器,用于执行所述计算机程序以实现如权利要求1至4中任一项所述投影对焦的方法的步骤。
  10. 一种可读存储介质,其特征在于,所述可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至4中任一项所述投影对焦的方法的步骤。
PCT/CN2020/079216 2019-12-26 2020-03-13 投影对焦的方法、装置、投影仪和可读存储介质 WO2021128601A1 (zh)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP2022504320A JP7265678B2 (ja) 2019-12-26 2020-03-13 投影フォーカス方法、装置、プロジェクター、及び読み取り可能な記憶媒体
US17/598,318 US11849263B2 (en) 2019-12-26 2020-03-13 Projection focusing method, projection focusing apparatus, projector, and readable storage medium
EP20906561.4A EP3933501A4 (en) 2019-12-26 2020-03-13 METHOD AND DEVICE FOR PROJECTION FOCUSING, PROJECTOR AND READABLE STORAGE MEDIUM

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911370175.0A CN111050151B (zh) 2019-12-26 2019-12-26 投影对焦的方法、装置、投影仪和可读存储介质
CN201911370175.0 2019-12-26

Publications (1)

Publication Number Publication Date
WO2021128601A1 true WO2021128601A1 (zh) 2021-07-01

Family

ID=70239124

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/079216 WO2021128601A1 (zh) 2019-12-26 2020-03-13 投影对焦的方法、装置、投影仪和可读存储介质

Country Status (5)

Country Link
US (1) US11849263B2 (zh)
EP (1) EP3933501A4 (zh)
JP (1) JP7265678B2 (zh)
CN (1) CN111050151B (zh)
WO (1) WO2021128601A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114640792A (zh) * 2022-02-09 2022-06-17 浙江大华技术股份有限公司 一种位置调整方法、装置、电子设备及存储介质

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113301314B (zh) * 2020-06-12 2023-10-24 阿里巴巴集团控股有限公司 对焦方法、投影仪、成像设备和存储介质
CN112925158A (zh) * 2021-01-25 2021-06-08 四川长虹电器股份有限公司 一种投影设备调焦方法、计算机设备及存储介质
CN112904653A (zh) * 2021-01-26 2021-06-04 四川长虹电器股份有限公司 用于投影设备的调焦方法和调焦装置
CN114466173A (zh) * 2021-11-16 2022-05-10 海信视像科技股份有限公司 投影设备及自动投入幕布区域的投影显示控制方法

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201541957A (zh) * 2014-04-30 2015-11-01 Altek Semiconductor Corp 多鏡頭的影像調整系統及其方法
CN105842972A (zh) * 2016-04-28 2016-08-10 乐视控股(北京)有限公司 一种调整投影仪的投影焦距的方法及投影仪
TW201721267A (zh) * 2015-12-02 2017-06-16 鴻海精密工業股份有限公司 鏡頭馬達對焦曲線的校正方法及裝置
CN106896466A (zh) * 2017-04-20 2017-06-27 成都市极米科技有限公司 自动调焦方法、装置及投影仪
CN108710251A (zh) * 2018-04-20 2018-10-26 广景视睿科技(深圳)有限公司 一种自动对焦方法、装置及投影仪
CN109856902A (zh) * 2017-11-30 2019-06-07 中强光电股份有限公司 投影装置及自动对焦方法
CN109963067A (zh) * 2017-12-25 2019-07-02 浙江宇视科技有限公司 回程差消除方法及装置

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004347871A (ja) 2003-05-22 2004-12-09 Fuji Photo Film Co Ltd プロジェクタ及びデジタルカメラ
JP2005043728A (ja) 2003-07-23 2005-02-17 Seiko Precision Inc プロジェクタ、その焦点調節方法、およびその焦点調節プログラム
JP2005049604A (ja) 2003-07-29 2005-02-24 Seiko Precision Inc プロジェクタ及びプロジェクタの焦点調節方法
JP2005143043A (ja) 2003-11-10 2005-06-02 Seiko Precision Inc プロジェクタ装置及び焦点検出方法
JP2005234350A (ja) 2004-02-20 2005-09-02 Seiko Precision Inc プロジェクタ装置および焦点調節方法
JP2006184569A (ja) * 2004-12-27 2006-07-13 Toshiba Corp 投射型表示装置および同装置の焦点調整方法
JP4232042B2 (ja) * 2005-01-07 2009-03-04 セイコーエプソン株式会社 投写制御システム、プロジェクタ、プログラム、情報記憶媒体および投写制御方法
JP6205714B2 (ja) * 2012-11-13 2017-10-04 株式会社リコー オートフォーカス装置、投射レンズ装置、及び画像投射装置
US9420246B2 (en) * 2012-11-30 2016-08-16 Piqs Technology (Shenzhen) Limited Projection system with infrared monitoring function
JP6503756B2 (ja) * 2014-02-14 2019-04-24 セイコーエプソン株式会社 プロジェクター、及び、プロジェクターの制御方法
CN104570569B (zh) 2015-01-27 2017-01-11 神画科技(深圳)有限公司 基于传感器的投影仪自动调焦方法
CN106154721B (zh) * 2015-04-27 2021-01-01 中兴通讯股份有限公司 一种测距方法、自动调焦方法及装置
CN107318007A (zh) * 2016-04-27 2017-11-03 中兴通讯股份有限公司 投影对焦的方法及装置
CN108668118A (zh) * 2017-03-31 2018-10-16 中强光电股份有限公司 自动对焦系统、具有自动对焦系统的投影机以及自动对焦方法

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201541957A (zh) * 2014-04-30 2015-11-01 Altek Semiconductor Corp 多鏡頭的影像調整系統及其方法
TW201721267A (zh) * 2015-12-02 2017-06-16 鴻海精密工業股份有限公司 鏡頭馬達對焦曲線的校正方法及裝置
CN105842972A (zh) * 2016-04-28 2016-08-10 乐视控股(北京)有限公司 一种调整投影仪的投影焦距的方法及投影仪
CN106896466A (zh) * 2017-04-20 2017-06-27 成都市极米科技有限公司 自动调焦方法、装置及投影仪
CN109856902A (zh) * 2017-11-30 2019-06-07 中强光电股份有限公司 投影装置及自动对焦方法
CN109963067A (zh) * 2017-12-25 2019-07-02 浙江宇视科技有限公司 回程差消除方法及装置
CN108710251A (zh) * 2018-04-20 2018-10-26 广景视睿科技(深圳)有限公司 一种自动对焦方法、装置及投影仪

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3933501A4 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114640792A (zh) * 2022-02-09 2022-06-17 浙江大华技术股份有限公司 一种位置调整方法、装置、电子设备及存储介质
CN114640792B (zh) * 2022-02-09 2024-04-05 浙江大华技术股份有限公司 一种位置调整方法、装置、电子设备及存储介质

Also Published As

Publication number Publication date
US20220321848A1 (en) 2022-10-06
US11849263B2 (en) 2023-12-19
CN111050151B (zh) 2021-08-17
EP3933501A1 (en) 2022-01-05
JP7265678B2 (ja) 2023-04-26
JP2022526043A (ja) 2022-05-20
CN111050151A (zh) 2020-04-21
EP3933501A4 (en) 2022-12-14

Similar Documents

Publication Publication Date Title
WO2021128601A1 (zh) 投影对焦的方法、装置、投影仪和可读存储介质
JP2696044B2 (ja) 合焦検出方法、これを用いた非接触変位測定方法及び装置
JP4858263B2 (ja) 3次元計測装置
CN111083457B (zh) 多光机投影图像的校正方法、装置和多光机投影仪
CN105763795A (zh) 一种聚焦方法及装置、摄像机和摄像系统
WO2021128599A1 (zh) 一种投影仪调焦方法、投影仪调焦装置和投影仪
CN1704837A (zh) 具有用于测量倾斜角的设备的投影仪
JPH0774856B2 (ja) 自動焦点調節方法
US9817207B2 (en) Image pickup information output apparatus and lens apparatus equipped with same
US20060221227A1 (en) Focusing method for image-capturing device
US20170310897A1 (en) Image processing apparatus, imaging apparatus, and image processing method
CN113301314B (zh) 对焦方法、投影仪、成像设备和存储介质
CN110300252B (zh) 镜头倾斜矫正方法及装置
CN109714581A (zh) 投影机的自动对焦方法
JP4442991B2 (ja) ディジタル画像記録装置
CN109752909B (zh) 自动调焦系统、方法以及投影设备
JPH0836129A (ja) ピント調整方法
JP7463133B2 (ja) 面積計測装置、面積計測方法、及びプログラム
CN111669573A (zh) 一种马达稳定性检测方法及装置
CN117369204A (zh) 投影机自动对焦方法
CN219778080U (zh) 一种自动对焦投影仪
CN114900677B (zh) 一种获取投影仪的最佳投影焦点的方法及系统
CN115914597A (zh) 一种投影设备及其长期使用后的投影精度校正方法
US20060155499A1 (en) Method for calibration of digital image-captured devices
CN117492164A (zh) 基于dlp结构光与电机系统的自动对焦系统及方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20906561

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2022504320

Country of ref document: JP

Kind code of ref document: A

ENP Entry into the national phase

Ref document number: 2020906561

Country of ref document: EP

Effective date: 20210929

NENP Non-entry into the national phase

Ref country code: DE