[go: up one dir, main page]

CN118476210A - Projection equipment and display control method - Google Patents

Projection equipment and display control method Download PDF

Info

Publication number
CN118476210A
CN118476210A CN202280086830.3A CN202280086830A CN118476210A CN 118476210 A CN118476210 A CN 118476210A CN 202280086830 A CN202280086830 A CN 202280086830A CN 118476210 A CN118476210 A CN 118476210A
Authority
CN
China
Prior art keywords
target
screen
projection
projection device
distance
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202280086830.3A
Other languages
Chinese (zh)
Inventor
王英俊
陈先义
张伟
何营昊
卢平光
王昊
岳国华
唐高明
矫慧文
曹圆圆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hisense Visual Technology Co Ltd
Original Assignee
Hisense Visual Technology 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
Priority claimed from CN202210343443.5A external-priority patent/CN114885137B/en
Priority claimed from CN202210557800.8A external-priority patent/CN115083342B/en
Application filed by Hisense Visual Technology Co Ltd filed Critical Hisense Visual Technology Co Ltd
Publication of CN118476210A publication Critical patent/CN118476210A/en
Pending legal-status Critical Current

Links

Classifications

    • 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
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
    • G09G3/22Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources
    • G09G3/30Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels
    • G09G3/32Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels semiconductive, e.g. using light-emitting diodes [LED]
    • G09G3/3208Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels semiconductive, e.g. using light-emitting diodes [LED] organic, e.g. using organic light-emitting diodes [OLED]
    • 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]

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Projection Apparatus (AREA)

Abstract

本申请一些实施例中提供一种投影设备及显示控制方法,所述方法可以在接收到自动调焦指令后,通过距离传感器获取光机与投影面之间的间隔距离。再根据间隔距离确定当前应用场景,如果间隔距离小于间隔判断阈值,则确定当前应用场景为近距离场景,因此可以根据间隔距离计算第一调焦量;如果间隔距离大于或等于间隔判断阈值,则确定当前应用场景为远距离场景,因此可以根据投影内容图像的清晰度计算第二调焦量,最后按照第一调焦量或第二调焦量控制驱动马达调整光学组件的焦距。所述方法可以根据不同的应用场景依据不同的数据进行自动调焦,可以快速将光学组件调整至最佳焦距状态,提高投影画面清晰度,并缩短调焦过程所消耗的时间。

In some embodiments of the present application, a projection device and a display control method are provided. The method can obtain the interval distance between the optical machine and the projection surface through a distance sensor after receiving an automatic focusing instruction. Then, the current application scene is determined according to the interval distance. If the interval distance is less than the interval judgment threshold, the current application scene is determined to be a close-distance scene, so the first focusing amount can be calculated according to the interval distance; if the interval distance is greater than or equal to the interval judgment threshold, the current application scene is determined to be a long-distance scene, so the second focusing amount can be calculated according to the clarity of the projected content image, and finally the driving motor is controlled according to the first focusing amount or the second focusing amount to adjust the focal length of the optical component. The method can automatically focus according to different data according to different application scenarios, and can quickly adjust the optical component to the optimal focal length state, improve the clarity of the projection picture, and shorten the time consumed by the focusing process.

Description

一种投影设备及显示控制方法Projection device and display control method

相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS

本申请要求在2021年11月16日提交、申请号为202111355866.0;在2022年03月31日提交、申请号为202210343443.5;在2022年05月19日提交、申请号为202210557800.8的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to Chinese patent applications filed on November 16, 2021, with application number 202111355866.0; filed on March 31, 2022, with application number 202210343443.5; and filed on May 19, 2022, with application number 202210557800.8, all of which are incorporated by reference into this application.

技术领域Technical Field

本申请涉及显示设备技术领域,尤其涉及一种投影设备及显示控制方法。The present application relates to the technical field of display devices, and in particular to a projection device and a display control method.

背景技术Background Art

投影设备是一种可以将图像或视频投射到屏幕上的显示设备。投影设备可以将特定颜色的激光光线通过光学透镜组件的折射作用,投射到屏幕上形成具体影像。在投影过程中,需要将投影设备与屏幕之间保持一定距离,使屏幕上形成的影像可以符合光学透镜组件的焦距范围,以获得清晰的影像。A projection device is a display device that can project images or videos onto a screen. The projection device can project laser light of a specific color onto the screen through the refraction of an optical lens assembly to form a specific image. During the projection process, it is necessary to keep a certain distance between the projection device and the screen so that the image formed on the screen can meet the focal length range of the optical lens assembly to obtain a clear image.

为了适应复杂的应用场景以及不同规格的屏幕,需要对投影设备光学透镜组件的焦距进行调整。例如,用户可以通过观察投影设备投射的画面清晰度,手动调整光学透镜组件中,镜片之间的距离,使光学透镜组件的整体焦距发生变化。随着用户的调整过程,投射画面的清晰度将发生变化,待清晰度满足用户需求后停止。In order to adapt to complex application scenarios and screens of different specifications, the focal length of the optical lens assembly of the projection device needs to be adjusted. For example, the user can manually adjust the distance between the lenses in the optical lens assembly by observing the clarity of the image projected by the projection device, so that the overall focal length of the optical lens assembly changes. As the user adjusts the process, the clarity of the projected image will change, and the adjustment will stop when the clarity meets the user's needs.

显然,手动调焦过程操作繁琐,不便于用户使用。为此,部分投影设备还支持自动调焦功能。自动调焦功能可以通过设置驱动电机,使驱动电机带动光学透镜组件中的部分透镜移动进行调焦。投影设备同时还检测投射画面的清晰度,并根据检测的清晰度控制驱动电机启动或停止运行,实现自动调焦。但是,由于清晰度检测和驱动电机启停过程的控制繁琐,导致上述自动调焦方式的耗时较长,且抗干扰能力差,降低用户体验。Obviously, the manual focusing process is cumbersome and inconvenient for users. For this reason, some projection devices also support automatic focusing. The automatic focusing function can be achieved by setting a drive motor so that the drive motor drives part of the lens in the optical lens assembly to move for focusing. The projection device also detects the clarity of the projected image and controls the drive motor to start or stop running according to the detected clarity to achieve automatic focusing. However, due to the cumbersome control of the clarity detection and the start and stop process of the drive motor, the above-mentioned automatic focusing method takes a long time and has poor anti-interference ability, which reduces the user experience.

发明内容Summary of the invention

一方面,本申请一些实施例中提供一种投影设备,包括:光机、镜头、距离传感器、相机以及控制器。其中所述光机被配置为投射播放内容至投影面;所述镜头包括光学组件和调焦电机;所述调焦电机连接所述光学组件,以调整所述光学组件的焦距;所述距离传感器被配置为检测投影面与光机之间的间隔距离;所述相机被配置为拍摄投影内容图像;所述控制器被配置为:响应于自动调焦指令,获取所述间隔距离;如果所述间隔距离小于间隔判断阈值,根据所述间隔距离计算第一调焦量,以及按照所述第一调焦量控制所述调焦电机调整所述光学组件的焦距;如果所述间隔距离大于或等于间隔判断阈值,根据所述投影内容图像的清晰度计算第二调焦量,以及按照所述第二调焦量控制所述调焦电机调整所述光学组件的焦距。On the one hand, some embodiments of the present application provide a projection device, including: an optical machine, a lens, a distance sensor, a camera, and a controller. The optical machine is configured to project the playback content onto the projection surface; the lens includes an optical component and a focus motor; the focus motor is connected to the optical component to adjust the focal length of the optical component; the distance sensor is configured to detect the interval distance between the projection surface and the optical machine; the camera is configured to capture the projection content image; the controller is configured to: in response to an automatic focusing instruction, obtain the interval distance; if the interval distance is less than the interval judgment threshold, calculate a first focus amount according to the interval distance, and control the focus motor to adjust the focal length of the optical component according to the first focus amount; if the interval distance is greater than or equal to the interval judgment threshold, calculate a second focus amount according to the clarity of the projection content image, and control the focus motor to adjust the focal length of the optical component according to the second focus amount.

另一方面,本申请的一些实施例中还提供一种应用于投影设备的显示控制方法,所述投影设备包括光机、距离传感器、相机以及控制器;其中,所述光机包括光学组件和调焦电机,所述调焦电机连接所述光学组件,以调整所述光学组件的焦距;所述方法包括:响应于自动调焦指令,通过所述距离传感器获取间隔距离;如果所述间隔距离小于间隔判断阈值,根据所述间隔距离计算第一调焦量,以及按照所述第一调焦量控制所述调焦电机调整所述光学组件的焦距;如果所述间隔距离大于或等于间隔判断阈值,根据所述投影内容图像的清晰度计算第二调焦量,以及按照所述第二调焦量控制所述调焦电机调整所述 光学组件的焦距。On the other hand, some embodiments of the present application also provide a display control method applied to a projection device, wherein the projection device includes an optical machine, a distance sensor, a camera and a controller; wherein the optical machine includes an optical component and a focusing motor, and the focusing motor is connected to the optical component to adjust the focal length of the optical component; the method includes: in response to an automatic focusing instruction, obtaining the interval distance through the distance sensor; if the interval distance is less than an interval judgment threshold, calculating a first focusing amount according to the interval distance, and controlling the focusing motor to adjust the focal length of the optical component according to the first focusing amount; if the interval distance is greater than or equal to the interval judgment threshold, calculating a second focusing amount according to the clarity of the projection content image, and controlling the focusing motor to adjust the focal length of the optical component according to the second focusing amount.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1为本申请实施例中投影设备投影状态示意图;FIG1 is a schematic diagram of a projection state of a projection device in an embodiment of the present application;

图2为本申请实施例中投影设备结构示意图;FIG2 is a schematic diagram of the structure of a projection device in an embodiment of the present application;

图3为本申请实施例中投影设备的光机架构示意图;FIG3 is a schematic diagram of an optical-mechanical architecture of a projection device according to an embodiment of the present application;

图4为本申请实施例中投影设备光路示意图;FIG4 is a schematic diagram of an optical path of a projection device in an embodiment of the present application;

图5为本申请实施例投影设备的电路结构示意图;FIG5 is a schematic diagram of a circuit structure of a projection device according to an embodiment of the present application;

图6为本申请实施例中投影设备的系统框架示意图;FIG6 is a schematic diagram of a system framework of a projection device in an embodiment of the present application;

图7为本申请实施例中投影设备的镜头结构示意图;FIG7 is a schematic diagram of a lens structure of a projection device in an embodiment of the present application;

图8为本申请实施例中镜头投影光路示意图;FIG8 is a schematic diagram of a lens projection optical path in an embodiment of the present application;

图9为本申请实施例中距离传感器和相机结构示意图;FIG9 is a schematic diagram of the distance sensor and camera structure in an embodiment of the present application;

图10为本申请实施例中自动调焦方法流程示意图;FIG10 is a schematic diagram of the process of the automatic focusing method in an embodiment of the present application;

图11为本申请实施例中基于清晰度调焦的过程示意图;FIG11 is a schematic diagram of a process of focusing based on clarity in an embodiment of the present application;

图12为本申请实施例中检测目标物体数量流程示意图;FIG12 is a schematic diagram of a process for detecting the number of target objects in an embodiment of the present application;

图13为本申请实施例中多阶段图像调焦过程示意图;FIG13 is a schematic diagram of a multi-stage image focusing process in an embodiment of the present application;

图14为本申请实施例中裁切图像流程示意图;FIG14 is a schematic diagram of a process of cutting an image in an embodiment of the present application;

图15为本申请实施例中自动调焦方法时序关系图;FIG15 is a timing diagram of an automatic focusing method according to an embodiment of the present application;

图16为本申请另一实施例投影设备实现放射眼功能的信令交互时序示意图;FIG16 is a schematic diagram of a signaling interaction timing sequence of a projection device realizing a radiating eye function according to another embodiment of the present application;

图17为本申请另一实施例投影设备实现显示画面校正功能的信令交互时序示意图;FIG17 is a schematic diagram of a signaling interaction timing sequence of a projection device implementing a display image correction function according to another embodiment of the present application;

图18为本申请另一实施例投影设备实现自动对焦算法的流程示意图;FIG18 is a schematic diagram of a flow chart of an automatic focusing algorithm implemented by a projection device according to another embodiment of the present application;

图19为本申请另一实施例投影设备实现梯形校正、避障算法的流程示意图;FIG19 is a schematic diagram of a flow chart of a projection device implementing a trapezoidal correction and obstacle avoidance algorithm according to another embodiment of the present application;

图20为本申请另一实施例投影设备实现入幕算法的流程示意图;FIG20 is a schematic diagram of a flow chart of a projection device implementing an entry algorithm according to another embodiment of the present application;

图21为本申请另一实施例投影设备实现防射眼算法的流程示意图;FIG21 is a schematic diagram of a flow chart of an anti-eye-shooting algorithm implemented by a projection device according to another embodiment of the present application;

图22为本申请实施例的一种屏幕亮度调节方法的应用场景示意图一;FIG22 is a schematic diagram of an application scenario of a screen brightness adjustment method according to an embodiment of the present application;

图23为本申请实施例的一种屏幕亮度调节方法的应用场景示意图二;FIG23 is a second schematic diagram of an application scenario of a method for adjusting screen brightness according to an embodiment of the present application;

图24为本申请实施例的一种屏幕亮度调节方法的流程示意图;FIG24 is a schematic diagram of a flow chart of a method for adjusting screen brightness according to an embodiment of the present application;

图25为本申请实施例的多个屏幕分区的示意图一;FIG25 is a schematic diagram 1 of multiple screen partitions according to an embodiment of the present application;

图26为本申请实施例的多个屏幕分区的示意图二;FIG26 is a second schematic diagram of multiple screen partitions according to an embodiment of the present application;

图27为本申请实施例的目标屏幕分区的示意图一;FIG27 is a first schematic diagram of target screen partitions according to an embodiment of the present application;

图28为本申请实施例的目标屏幕分区的示意图二;FIG28 is a second schematic diagram of target screen partitions according to an embodiment of the present application;

图29为本申请实施例的目标屏幕分区的示意图三;FIG29 is a third schematic diagram of target screen partitions according to an embodiment of the present application;

图30为本申请实施例的调节屏幕亮度的示意图一;FIG30 is a schematic diagram 1 of adjusting screen brightness according to an embodiment of the present application;

图31为本申请实施例的调节屏幕亮度的示意图二。Figure 31 is a second schematic diagram of adjusting screen brightness according to an embodiment of the present application.

具体实施方式DETAILED DESCRIPTION

为使本申请的目的和实施方式更加清楚,下面将结合本申请示例性实施例中的附图,对本申请示例性实施方式进行清楚、完整地描述,显然,描述的示例性实施例仅是本申请一部分实施例,而不是全部的实施例。In order to make the purpose and implementation method of the present application clearer, the exemplary implementation method of the present application will be clearly and completely described below in conjunction with the drawings in the exemplary embodiments of the present application. Obviously, the described exemplary embodiments are only part of the embodiments of the present application, not all of the embodiments.

本申请实施例可以应用于各种类型的投影设备。下文中将以投影设备为例,对投影设备以及自动 调焦方法进行阐述。The embodiments of the present application can be applied to various types of projection devices. The following will take the projection device as an example to explain the projection device and the automatic focusing method.

投影设备是一种可以将图像、或视频投射到屏幕上的设备,投影设备可以通过不同的接口同计算机、广电网络、互联网、VCD(Video Compact Disc:视频高密光盘)、DVD(Digital Versatile Disc Recordable:数字化视频光盘)、游戏机、DV(Digital Video:数码摄像机)等相连接播放相应的视频信号。投影设备广泛应用于家庭、办公室、学校和娱乐场所等。Projection equipment is a device that can project images or videos onto a screen. Projection equipment can be connected to computers, broadcasting networks, the Internet, VCD (Video Compact Disc), DVD (Digital Versatile Disc Recordable), game consoles, DV (Digital Video), etc. through different interfaces to play corresponding video signals. Projection equipment is widely used in homes, offices, schools, and entertainment venues.

图1为本申请一实施例投影设备的摆放示意图,图2为本申请一实施例投影设备光路示意图。FIG. 1 is a schematic diagram of the placement of a projection device according to an embodiment of the present application, and FIG. 2 is a schematic diagram of the optical path of the projection device according to an embodiment of the present application.

在一些实施例中,参考图1、图2,本申请提供的一种投影设备包括投影屏幕1和用于投影的装置2。投影屏幕1固定于第一位置上,用于投影的装置2放置于第二位置上,使得其投影出的画面与投影屏幕1吻合。In some embodiments, referring to Figures 1 and 2, a projection device provided by the present application includes a projection screen 1 and a device for projection 2. The projection screen 1 is fixed at a first position, and the device for projection 2 is placed at a second position so that the image projected by it matches the projection screen 1.

投影设备包括激光光源100,光机200,镜头300,投影介质400。其中,激光光源100为光机200提供照明,光机200对光源光束进行调制,并输出至镜头300进行成像,投射至投影介质400形成投影画面。The projection device includes a laser light source 100, an optical machine 200, a lens 300, and a projection medium 400. The laser light source 100 provides illumination for the optical machine 200, and the optical machine 200 modulates the light source beam and outputs it to the lens 300 for imaging, and projects it to the projection medium 400 to form a projection picture.

在一些实施例中,投影设备的激光光源100包括激光器组件110和光学镜片组件120,激光器组件110发出的光束可透过光学镜片组件120进而为光机提供照明。其中,例如,光学镜片组件120需要较高等级的环境洁净度、气密等级密封;而安装激光器组件的腔室可以采用密封等级较低的防尘等级密封,以降低密封成本。In some embodiments, the laser light source 100 of the projection device includes a laser assembly 110 and an optical lens assembly 120. The light beam emitted by the laser assembly 110 can pass through the optical lens assembly 120 to provide lighting for the optical machine. For example, the optical lens assembly 120 requires a higher level of environmental cleanliness and airtightness; while the chamber where the laser assembly is installed can be sealed with a lower level of dustproofness to reduce the sealing cost.

在一些实施例中,投影设备的光机200可实施为包括蓝色光机、绿色光机、红色光机,还可以包括散热系统、电路控制系统等。需要说明的是,在一些实施例中,投影设备的发光部件还可以通过LED(Light Emitting Diode:发光二极管)光源实现。In some embodiments, the light engine 200 of the projection device may be implemented as a blue light engine, a green light engine, a red light engine, and may also include a heat dissipation system, a circuit control system, etc. It should be noted that, in some embodiments, the light emitting component of the projection device may also be implemented by an LED (Light Emitting Diode: light emitting diode) light source.

图3为本申请一实施例投影设备的电路架构示意图。在一些实施例中,该投影设备可以包括显示控制电路10、激光光源20、至少一个激光器驱动组件30以及至少一个亮度传感器40,该激光光源20可以包括与至少一个激光器驱动组件30一一对应的至少一个激光器。其中,该至少一个是指一个或多个,多个是指两个或两个以上。FIG3 is a schematic diagram of a circuit architecture of a projection device according to an embodiment of the present application. In some embodiments, the projection device may include a display control circuit 10, a laser light source 20, at least one laser driving component 30, and at least one brightness sensor 40. The laser light source 20 may include at least one laser corresponding to the at least one laser driving component 30. The at least one refers to one or more, and the plurality refers to two or more.

基于该电路架构,投影设备可以实现自适应调整。例如,通过在激光光源20的出光路径中设置亮度传感器40,使亮度传感器40可以检测激光光源的第一亮度值,并将第一亮度值发送至显示控制电路10。Based on the circuit architecture, the projection device can achieve adaptive adjustment. For example, by setting a brightness sensor 40 in the light output path of the laser light source 20, the brightness sensor 40 can detect a first brightness value of the laser light source and send the first brightness value to the display control circuit 10.

该显示控制电路10可以获取每个激光器的驱动电流对应的第二亮度值,并在确定该激光器的第二亮度值与该激光器的第一亮度值的差值大于差值阈值时,确定该激光器发生COD(Catastrophic Optical Damage:光学灾变损伤)故障;则显示控制电路可以调整激光器的对应的激光器驱动组件的电流控制信号,直至该差值小于等于该差值阈值,从而消除该蓝色激光器的COD故障;该投影设备能够及时消除激光器的COD故障,降低激光器的损坏率,提高投影设备的图像显示效果。The display control circuit 10 can obtain the second brightness value corresponding to the driving current of each laser, and when it is determined that the difference between the second brightness value of the laser and the first brightness value of the laser is greater than the difference threshold, it is determined that a COD (Catastrophic Optical Damage) failure occurs in the laser; the display control circuit can adjust the current control signal of the laser driving component corresponding to the laser until the difference is less than or equal to the difference threshold, thereby eliminating the COD failure of the blue laser; the projection device can eliminate the COD failure of the laser in time, reduce the damage rate of the laser, and improve the image display effect of the projection device.

图4为本申请一实施例投影设备的结构示意图。FIG. 4 is a schematic diagram of the structure of a projection device according to an embodiment of the present application.

在一些实施例中,该投影设备中的激光光源20可以包括独立设置的蓝色激光器201、红色激光器202和绿色激光器203,该投影设备也可以称为三色投影设备,蓝色激光器201、红色激光器202和绿色激光器203均为模块轻量化(Mirai Console Loader,MCL)封装激光器,其体积小,利于光路的紧凑排布。在一些实施例中,投影设备可以配置相机,用于和投影设备协同运行,以实现对投影过程的调节控制。例如,投影设备配置的相机可具体实施为3D(3-Dimensional)相机,或双目相机;在相机实施为双目相机时,具体包括左相机、以及右相机;双目相机可获取投影设备对应的幕布,即投影面所呈现的图像及播放内容,该图像或播放内容由投影设备内置的光机进行投射。In some embodiments, the laser light source 20 in the projection device may include independently arranged blue laser 201, red laser 202 and green laser 203. The projection device may also be referred to as a three-color projection device. The blue laser 201, the red laser 202 and the green laser 203 are all module lightweight (Mirai Console Loader, MCL) packaged lasers, which are small in size and are conducive to the compact arrangement of the optical path. In some embodiments, the projection device may be configured with a camera for cooperating with the projection device to achieve adjustment and control of the projection process. For example, the camera configured with the projection device may be specifically implemented as a 3D (3-Dimensional) camera or a binocular camera; when the camera is implemented as a binocular camera, it specifically includes a left camera and a right camera; the binocular camera may obtain the screen corresponding to the projection device, that is, the image and playback content presented by the projection surface, and the image or playback content is projected by the built-in optical machine of the projection device.

当投影设备移动位置后,其投射角度、及至投影面距离发生变化,会导致投影图像发生形变,投 影图像会显示为梯形图像或其他畸形图像;投影设备控制器可基于相机拍摄的图像,通过耦合光机与投影面之间的夹角和投影图像的正确显示实现自动梯形校正。When the projection device moves, its projection angle and distance to the projection surface change, which will cause the projected image to deform. The projected image will appear as a trapezoidal image or other deformed image. The projection device controller can achieve automatic trapezoidal correction based on the image taken by the camera, by coupling the angle between the optical machine and the projection surface and the correct display of the projection image.

图5为本申请一实施例投影设备的电路结构示意图。FIG. 5 is a schematic diagram of a circuit structure of a projection device according to an embodiment of the present application.

在一些实施例中,激光器驱动组件30可以包括驱动电路301、开关电路302和放大电路303。该驱动电路301可以为驱动芯片。该开关电路302可以为金属氧化物半导体(metal-oxide-semiconductor,MOS)管。In some embodiments, the laser driving component 30 may include a driving circuit 301, a switching circuit 302, and an amplifying circuit 303. The driving circuit 301 may be a driving chip. The switching circuit 302 may be a metal-oxide-semiconductor (MOS) tube.

其中,该驱动电路301分别与开关电路302、放大电路303以及激光光源20所包括的对应的激光器连接。该驱动电路301用于基于显示控制电路10发送的电流控制信号通过VOUT端向激光光源20中对应的激光器输出驱动电流,并通过ENOUT端将接收到的使能信号传输至开关电路302。The driving circuit 301 is respectively connected to the switch circuit 302, the amplifier circuit 303 and the corresponding laser included in the laser light source 20. The driving circuit 301 is used to output a driving current to the corresponding laser in the laser light source 20 through the VOUT terminal based on the current control signal sent by the display control circuit 10, and transmit the received enable signal to the switch circuit 302 through the ENOUT terminal.

显示控制电路10还用于将放大后的驱动电压确定为激光器的驱动电流,并获取该驱动电流对应的第二亮度值。The display control circuit 10 is further configured to determine the amplified driving voltage as the driving current of the laser, and obtain a second brightness value corresponding to the driving current.

在一些实施例中,放大电路303可以包括:第一运算放大器A1、第一电阻(又称取样功率电阻)R1、第二电阻R2、第三电阻R3和第四电阻R4。In some embodiments, the amplifier circuit 303 may include: a first operational amplifier A1 , a first resistor (also called a sampling power resistor) R1 , a second resistor R2 , a third resistor R3 , and a fourth resistor R4 .

在一些实施例中,显示控制电路10,还用于当激光器的第二亮度值与激光器的第一亮度值的差值小于等于差值阈值时,恢复与激光器对应的激光器驱动组件的电流控制信号至初始值,该初始值为正常状态下对激光器的PWM电流控制信号的大小。从而,当激光器发生COD故障时,可以快速的识别,并及时采取降低驱动电流的措施,减轻激光器自身的持续损伤,帮助其自恢复,整个过程中不需要拆机和人为干涉,提高了激光器光源使用的可靠性,保证了激光投影设备的投影显示质量。In some embodiments, the display control circuit 10 is also used to restore the current control signal of the laser driving component corresponding to the laser to the initial value when the difference between the second brightness value of the laser and the first brightness value of the laser is less than or equal to the difference threshold, and the initial value is the size of the PWM current control signal of the laser under normal conditions. Thus, when a COD failure occurs in the laser, it can be quickly identified and measures to reduce the driving current can be taken in time to reduce the continuous damage to the laser itself and help it to recover. The whole process does not require disassembly and human intervention, which improves the reliability of the use of the laser light source and ensures the projection display quality of the laser projection device.

在一些实施例中控制器包括中央处理器(Central Processing Unit,CPU),视频处理器,音频处理器,图形处理器(Graphics Processing Unit,GPU),RAM Random Access Memory,RAM),ROM(Read-Only Memory,ROM),用于输入/输出的第一接口至第n接口,通信总线(Bus)等中的至少一种。In some embodiments, the controller includes a central processing unit (CPU), a video processor, an audio processor, a graphics processing unit (GPU), RAM Random Access Memory (RAM), ROM (Read-Only Memory, ROM), a first interface to an nth interface for input/output, a communication bus (Bus), etc.

在一些实施例中,投影设备启动后可以直接进入上次选择的信号源的显示界面,或者信号源选择界面,其中信号源可以是预置的视频点播程序,还可以是HDMI接口,直播电视接口等中的至少一种,用户选择不同的信号源后,投影机可以显示从不同信号源获得的内容。In some embodiments, after the projection device is started, it can directly enter the display interface of the last selected signal source, or the signal source selection interface, where the signal source can be a preset video on demand program, or at least one of an HDMI interface, a live TV interface, etc. After the user selects a different signal source, the projector can display content obtained from different signal sources.

在一些实施例中,投影设备可以配置相机,用于和投影设备协同运行,以实现对投影过程的调节控制。例如,投影设备配置的相机可具体实施为3D相机,或双目相机;在相机实施为双目相机时,具体包括左相机、以及右相机;双目相机可获取投影设备对应的幕布,即投影面所呈现的图像及播放内容,该图像或播放内容由投影设备内置的光机进行投射。图6为本申请一实施例投影设备实现显示控制的系统框架示意图。In some embodiments, the projection device may be configured with a camera for cooperating with the projection device to achieve adjustment and control of the projection process. For example, the camera configured with the projection device may be specifically implemented as a 3D camera or a binocular camera; when the camera is implemented as a binocular camera, it specifically includes a left camera and a right camera; the binocular camera may obtain the image and playback content presented by the screen corresponding to the projection device, that is, the projection surface, and the image or playback content is projected by the built-in optical machine of the projection device. Figure 6 is a schematic diagram of the system framework for realizing display control of a projection device in an embodiment of the present application.

在一些实施例中,投影设备具备长焦微投的特点,其控制器通过预设算法可对投影光图像进行显示控制,以实现显示画面自动梯形校正、自动入幕、自动避障、自动调焦、以及防射眼等功能。In some embodiments, the projection device has the characteristics of a telephoto micro-projector, and its controller can control the display of the projection light image through a preset algorithm to achieve functions such as automatic trapezoidal correction of the display screen, automatic screen entry, automatic obstacle avoidance, automatic focusing, and anti-eye-shooting.

在一些实施例中,投影设备配置有陀螺仪传感器;设备在移动过程中,陀螺仪传感器可感知位置移动并主动采集移动数据;然后通过系统框架层将已采集数据发送至应用程序服务层,支撑用户界面交互、应用程序交互过程中所需应用数据,采集的数据还可用于控制器在算法服务实现中的数据调用。In some embodiments, the projection device is configured with a gyroscope sensor; when the device is moving, the gyroscope sensor can sense the position movement and actively collect movement data; the collected data is then sent to the application service layer through the system framework layer to support the application data required during user interface interaction and application interaction. The collected data can also be used for data calls by the controller in the algorithm service implementation.

在一些实施例中,投影设备配置有飞行时间传感器,在飞行时间传感器采集到相应数据后,所述数据将被发送至服务层对应的飞行时间服务;上述飞行时间服务获取数据后,将采集数据通过进程通信框架发送至应用程序服务层,数据将用于控制器的数据调用、用户界面、程序应用等交互使用。In some embodiments, the projection device is configured with a time-of-flight sensor. After the time-of-flight sensor collects corresponding data, the data will be sent to the corresponding time-of-flight service of the service layer; after the above-mentioned time-of-flight service obtains the data, it will send the collected data to the application service layer through the process communication framework, and the data will be used for interactive use such as controller data calls, user interfaces, and program applications.

在一些实施例中,投影设备配置有用于采集图像的相机,所述相机可实施为双目相机、或深度相机、或3D相机等;相机采集数据将发送至摄像头服务,然后由摄像头服务将采集图像数据发送至进程 通信框架、和/或投影设备校正服务;所述投影设备校正服务可接收摄像头服务发送的相机采集数据,控制器针对所需实现的不同功能可在算法库中调用对应的控制算法。In some embodiments, the projection device is configured with a camera for capturing images, and the camera can be implemented as a binocular camera, a depth camera, a 3D camera, etc.; the camera capture data will be sent to the camera service, and then the camera service will send the captured image data to the process communication framework, and/or the projection device correction service; the projection device correction service can receive the camera capture data sent by the camera service, and the controller can call the corresponding control algorithm in the algorithm library according to the different functions to be implemented.

在一些实施例中,通过进程通信框架与应用程序服务进行数据交互,然后经进程通信框架将计算结果反馈至校正服务;校正服务将获取的计算结果发送至投影设备操作系统,以生成控制信令,并将控制信令发送至光机控制驱动以控制光机工况、实现显示图像的自动校正。In some embodiments, data is interacted with the application service through the process communication framework, and then the calculation results are fed back to the correction service through the process communication framework; the correction service sends the obtained calculation results to the projection device operating system to generate control signals, and sends the control signals to the optical machine control driver to control the optical machine working conditions and realize automatic correction of the displayed image.

在一些实施例中,投影设备通过自动调焦算法,利用其配置的激光测距可获得当前物距,以计算初始焦距及搜索范围;然后投影设备驱动相机进行拍照,并利用对应算法进行清晰度评价。In some embodiments, the projection device uses an automatic focusing algorithm and a laser ranging device to obtain the current object distance to calculate the initial focal length and the search range; the projection device then drives the camera to take pictures and uses a corresponding algorithm to evaluate the clarity.

投影设备在上述搜索范围内,基于搜索算法查找可能的最佳焦距,然后重复上述拍照、清晰度评价步骤,最终通过清晰度对比找到最优焦距,完成自动调焦。The projection device searches for the best possible focal length within the above search range based on the search algorithm, and then repeats the above steps of taking pictures and evaluating clarity, and finally finds the optimal focal length through clarity comparison to complete automatic focusing.

例如,在投影设备启动后,用户移动设备;投影设备自动完成校正后重新调焦,控制器将检测自动调焦功能是否开启;当自动调焦功能未开启时,控制器将结束自动调焦业务;当自动调焦功能开启时,投影设备将通过中间件获取飞行时间传感器的检测距离进行计算;For example, after the projection device is started, the user moves the device; the projection device automatically completes the calibration and refocuses, and the controller detects whether the autofocus function is turned on; when the autofocus function is not turned on, the controller ends the autofocus service; when the autofocus function is turned on, the projection device obtains the detection distance of the time-of-flight sensor through the middleware for calculation;

控制器根据获取的距离查询预设的映射表,以获取投影设备的焦距;然后中间件将获取焦距设置到投影设备的光机;光机以上述焦距进行发出激光后,摄像头将执行拍照指令;控制器根据获取的拍摄图像、评价函数,判断投影设备调焦是否完成;The controller queries the preset mapping table according to the acquired distance to obtain the focal length of the projection device; then the middleware sets the acquired focal length to the optical machine of the projection device; after the optical machine emits laser at the above focal length, the camera executes the photo command; the controller determines whether the focus adjustment of the projection device is completed according to the acquired captured image and evaluation function;

如果判定结果符合预设完成条件,则控制自动调焦流程结束;如果判定结果不符合预设完成条件,中间件将微调投影设备中光机的焦距参数,例如可以利用预设步长逐渐微调焦距,并将调整的焦距参数再次设置到光机;从而实现反复拍照、清晰度评价步骤,最终通过清晰度对比找到最优焦距完成自动调焦。If the judgment result meets the preset completion conditions, the control of the automatic focusing process ends; if the judgment result does not meet the preset completion conditions, the middleware will fine-tune the focal length parameters of the optical machine in the projection device. For example, the focal length can be gradually fine-tuned using a preset step length, and the adjusted focal length parameters can be set to the optical machine again; thereby achieving repeated photo taking and clarity evaluation steps, and finally finding the optimal focal length through clarity comparison to complete automatic focusing.

图7在一些实施例中投影设备的镜头结构示意图。为了支持投影设备的自动调焦过程,如图7所示,投影设备的镜头300还可以包括光学组件310和驱动马达320。其中,光学组件310是由一个或多个透镜组成的透镜组,可以对光机200发射的光线进行折射,使光机200发出的光线能够透射到投影面上,形成透射内容影像。FIG7 is a schematic diagram of the lens structure of a projection device in some embodiments. In order to support the automatic focusing process of the projection device, as shown in FIG7 , the lens 300 of the projection device may further include an optical component 310 and a drive motor 320. The optical component 310 is a lens group composed of one or more lenses, which can refract the light emitted by the optical machine 200 so that the light emitted by the optical machine 200 can be transmitted to the projection surface to form a transmission content image.

光学组件310可以包括镜筒以及设置在镜筒内的多个透镜。根据透镜位置是否能够移动,光学组件310中的透镜可以划分为移动镜片311和固定镜片312,通过改变移动镜片311的位置,调整移动镜片311和固定镜片312之间的距离,改变光学组件310整体焦距。因此,驱动马达320可以通过连接光学组件310中的移动镜片311,带动移动镜片311进行位置移动,实现自动调焦功能。The optical assembly 310 may include a lens barrel and a plurality of lenses disposed in the lens barrel. Depending on whether the position of the lens can be moved, the lens in the optical assembly 310 may be divided into a movable lens 311 and a fixed lens 312. By changing the position of the movable lens 311 and adjusting the distance between the movable lens 311 and the fixed lens 312, the overall focal length of the optical assembly 310 may be changed. Therefore, the driving motor 320 may be connected to the movable lens 311 in the optical assembly 310 to drive the movable lens 311 to move its position, thereby realizing an automatic focusing function.

需要说明的是,本申请部分实施例中所述的调焦过程是指通过驱动马达320改变移动镜片311的位置,从而调整移动镜片311相对于固定镜片312之间的距离,即调整像面位置,因此光学组件310中镜片组合的成像原理,所述调整焦距实则为调整像距,但就光学组件310的整体结构而言,调整移动镜片311的位置等效于调节光学组件310的整体焦距调整。因此,为了描述方便,在后续实施例中都使用调整焦距来说明上述过程。It should be noted that the focusing process described in some embodiments of the present application refers to changing the position of the movable lens 311 by driving the motor 320, thereby adjusting the distance between the movable lens 311 and the fixed lens 312, that is, adjusting the image plane position. Therefore, the imaging principle of the lens combination in the optical assembly 310, the adjustment of the focal length is actually the adjustment of the image distance, but in terms of the overall structure of the optical assembly 310, adjusting the position of the movable lens 311 is equivalent to adjusting the overall focal length of the optical assembly 310. Therefore, for the convenience of description, the adjustment of the focal length is used to illustrate the above process in the subsequent embodiments.

驱动马达320可以通过特定的传动机构连接移动镜片311。传动机构的传动原理可以为任何将转动动作转化为移动动作的传动结构。例如,涡轮蜗杆传动结构、滚珠丝杠传动结构、螺纹螺杆传动结构等。对于螺纹螺杆传动结构,移动镜片311的外侧边缘设有镜框,镜框上可以设有螺纹。驱动马达320的动力输出轴连接螺杆,通过螺杆与镜框上的螺纹配合,使驱动马达320输出的转动动作可以转化为镜框的移动动作,从而带动移动镜片311在镜筒内移动。The driving motor 320 can be connected to the moving lens 311 through a specific transmission mechanism. The transmission principle of the transmission mechanism can be any transmission structure that converts a rotational motion into a moving motion. For example, a worm gear transmission structure, a ball screw transmission structure, a threaded screw transmission structure, etc. For the threaded screw transmission structure, a frame is provided at the outer edge of the moving lens 311, and a thread can be provided on the frame. The power output shaft of the driving motor 320 is connected to a screw, and the screw cooperates with the thread on the frame, so that the rotational motion output by the driving motor 320 can be converted into the moving motion of the frame, thereby driving the moving lens 311 to move in the lens barrel.

由于移动镜片311处于不同的位置上时,对光学组件310整体焦距的影响也不同,因此投影设备可以通过驱动马达320转动特定的角度或圈数,使移动镜片311处在相对应的位置上。为了实现上述功能,驱动马达320可以为转动角度可控制的步进电机、伺服电机等。在调焦过程中,投影设备的控制器 500可以向驱动马达320发送移动指令,移动指令中可以包括控制驱动马达320所需要旋转的角度数据。例如,对于步进电机形式的驱动马达320,控制器500所发送的移动指令中可以包括需要转动角度对应的脉冲信号,则在将移动指令方发给驱动马达320后,驱动马达320可以从移动指令中解析出脉冲信号,并根据脉冲信号进行转动。Since the moving lens 311 has different effects on the overall focal length of the optical component 310 when it is in different positions, the projection device can rotate the moving lens 311 to a specific angle or number of turns by the driving motor 320 so that the moving lens 311 is in a corresponding position. In order to achieve the above functions, the driving motor 320 can be a stepping motor, a servo motor, etc. with a controllable rotation angle. During the focusing process, the controller 500 of the projection device can send a movement instruction to the driving motor 320, and the movement instruction can include angle data required to control the rotation of the driving motor 320. For example, for the driving motor 320 in the form of a stepping motor, the movement instruction sent by the controller 500 may include a pulse signal corresponding to the required rotation angle. After sending the movement instruction to the driving motor 320, the driving motor 320 can parse the pulse signal from the movement instruction and rotate according to the pulse signal.

需要说明的是,为了能够将移动镜片311调整至特定的位置,可以预先根据投影设备的内部结构,计算移动镜片311移动距离与驱动马达320转动角度之间的对应关系。移动距离与转动角度之间的对应关系可以为线性关系,受传动机构的传动比影响。则在进行调焦时,投影设备可以先计算移动镜片311的目标位置,再与移动镜片311的当前位置做差计算出调焦过程移动镜片311需要移动距离。再根据移动距离与转动角度之间的对应关系,计算出驱动马达320需要转动的角度,从而生成移动指令发送给驱动马达320。It should be noted that, in order to be able to adjust the movable lens 311 to a specific position, the correspondence between the moving distance of the movable lens 311 and the rotation angle of the driving motor 320 can be calculated in advance according to the internal structure of the projection device. The correspondence between the moving distance and the rotation angle can be a linear relationship, which is affected by the transmission ratio of the transmission mechanism. When focusing, the projection device can first calculate the target position of the movable lens 311, and then calculate the required moving distance of the movable lens 311 during the focusing process by subtracting the target position from the current position of the movable lens 311. Then, based on the correspondence between the moving distance and the rotation angle, the angle that the driving motor 320 needs to rotate is calculated, thereby generating a moving instruction and sending it to the driving motor 320.

由于移动镜片311通常只能够沿着镜筒,在镜筒内移动,因此在调焦过程中,移动镜片311具有行程限制。图8在一些实施例中镜头投影光路示意图,如图8所示,为了便于描述,可以将移动镜片311最靠近光机时的一端称为近端,将移动镜片311最远离光机时的一端称为远端,则移动镜片311的整体移动行程为近端与远端之间的距离。在一些实施例中,为了便于准确调节投影效果,投影设备的实际调焦范围可以在移动镜片311的行程范围内。例如,将移动镜片311移动至近端后,驱动马达320再向前调节300步,可满足投影设备在最近投射距离的调焦需求;而从近端向前再调节900步,则可满足投影设备在最远投射距离的调焦需求,则实际调焦范围可以为驱动马达320在调节300步至900步所对应的位置区间。Since the movable lens 311 can usually only move along the lens barrel and in the lens barrel, the movable lens 311 has a travel limit during the focusing process. FIG8 is a schematic diagram of the lens projection optical path in some embodiments. As shown in FIG8, for the convenience of description, the end of the movable lens 311 closest to the optical machine can be called the near end, and the end of the movable lens 311 farthest from the optical machine can be called the far end. The overall moving stroke of the movable lens 311 is the distance between the near end and the far end. In some embodiments, in order to facilitate accurate adjustment of the projection effect, the actual focusing range of the projection device can be within the travel range of the movable lens 311. For example, after the movable lens 311 is moved to the near end, the driving motor 320 is adjusted forward by 300 steps to meet the focusing requirements of the projection device at the closest projection distance; and if it is adjusted forward by 900 steps from the near end, the focusing requirements of the projection device at the farthest projection distance can be met. The actual focusing range can be the position interval corresponding to the adjustment of the driving motor 320 by 300 steps to 900 steps.

而由于调焦过程还可以受到驱动马达特性、环境特性、摆放姿态等综合因素的影响,使得投影设备在近端和远端位置还需要设定一定的调节余量,以满足实际投影效果。因此,在一些实施例中,投影设备的调节区间可以在实际调焦范围的基础上,增加部分调节余量。例如,对于调节300步至900步所对应的位置区间,在设置100步调节余量后,可以将距离近端200步所在位置和1000步所在位置设定为调节起点和调节终点,以构成最终的调焦范围。Since the focusing process can also be affected by comprehensive factors such as the characteristics of the driving motor, environmental characteristics, and placement posture, the projection device needs to set a certain adjustment margin at the near and far positions to meet the actual projection effect. Therefore, in some embodiments, the adjustment interval of the projection device can increase some adjustment margins on the basis of the actual focusing range. For example, for the position interval corresponding to the adjustment of 300 steps to 900 steps, after setting a 100-step adjustment margin, the position 200 steps away from the near end and the position 1000 steps away can be set as the adjustment start point and adjustment end point to form the final focusing range.

当投影设备与投影面之间相距不同距离时,需要投影设备的镜头调整不同的焦距从而在投影面上透射清晰的图像。而在投影过程中,投影设备与投影面的间隔距离会因用户的摆放位置的不同而需要不同的焦距。因此,为适应不同的使用场景,投影设备需要调节光学组件310的焦距。When the distance between the projection device and the projection surface is different, the lens of the projection device needs to adjust different focal lengths to transmit a clear image on the projection surface. During the projection process, the distance between the projection device and the projection surface will require different focal lengths due to the different placement positions of the user. Therefore, in order to adapt to different usage scenarios, the projection device needs to adjust the focal length of the optical component 310.

在一些实施例中,投影设备可以支持手动调焦功能,即在投影设备上可以设有交互按键,或者投影设备配套有遥控器,用户可以通过投影设备上的焦距调节按键或者遥控器上的焦距调节按键,与投影设备进行交互。则在交互过程中,投影设备的控制器500可以根据用户的按键操作,生成移动指令,并将移动指令发送给驱动马达,以控制驱动马达带动移动镜片311进行移动,改变光学组件的焦距。In some embodiments, the projection device may support a manual focus adjustment function, that is, an interactive button may be provided on the projection device, or the projection device may be equipped with a remote control, and the user may interact with the projection device through the focus adjustment button on the projection device or the focus adjustment button on the remote control. During the interaction, the controller 500 of the projection device may generate a movement instruction according to the user's button operation, and send the movement instruction to the drive motor to control the drive motor to drive the movable lens 311 to move and change the focal length of the optical component.

例如,当用户在使用投影设备时发现投影画面不清晰时,可以按下投影设备上的“前进”按键,则响应于此时用户的按键操作,投影设备可以生成控制移动镜片311向远离光机方向移动的移动指令,并将移动指令发送给驱动马达,驱动马达则在接收到该移动指令后,按照正向(顺时针)方向旋转以输出力矩,驱动移动镜片311向远离光机方向移动。随着移动镜片311的运动过程,投影设备所透射的画面清晰度将发生变化,用户则根据画面的清晰度选择继续调焦或停止调焦操作,直至呈现用户满意的画面效果。For example, when the user finds that the projected image is not clear when using the projection device, the user can press the "forward" button on the projection device. In response to the user's button operation at this time, the projection device can generate a movement instruction to control the movable lens 311 to move away from the optical machine, and send the movement instruction to the drive motor. After receiving the movement instruction, the drive motor rotates in the positive (clockwise) direction to output torque to drive the movable lens 311 to move away from the optical machine. As the movable lens 311 moves, the clarity of the image transmitted by the projection device will change, and the user can choose to continue focusing or stop focusing according to the clarity of the image until a satisfactory image effect is presented.

在手动调焦过程中,投影设备的控制器500可以根据预设的交互规则,实现对驱动马达320的对应控制。即在一些实施例中,控制器500可以根据用户的按键时长确定驱动马达的转动角度量。则在调焦量较大时,用户可以长时间按下调焦按键;而在调焦量较小时,用户可以短时间按下调焦按键。During manual focus adjustment, the controller 500 of the projection device can implement corresponding control of the drive motor 320 according to the preset interaction rules. That is, in some embodiments, the controller 500 can determine the rotation angle of the drive motor according to the duration of the user's key press. When the focus adjustment amount is large, the user can press the focus adjustment button for a long time; when the focus adjustment amount is small, the user can press the focus adjustment button for a short time.

在一些实施例中,投影设备的控制器500还可以根据用户的按键次数,确定驱动马达的转动角度 量。例如,投影设备在粗调状态下,设置每次按键操作的调节量为100步,对应驱动马达转动一周,则当用户向远端调整300步时,需要用户连续按下三次“前进”按键。In some embodiments, the controller 500 of the projection device can also determine the rotation angle of the drive motor according to the number of times the user presses a button. For example, when the projection device is in a coarse adjustment state, the adjustment amount for each button operation is set to 100 steps, corresponding to one rotation of the drive motor. When the user adjusts 300 steps to the far end, the user needs to press the "forward" button three times in succession.

投影设备还可以根据投影效果自动调整焦距。在本申请的一些实施例中提供一种基于间隔距离与焦距关系的调焦方法。即投影设备可以检测光机与投影面之间的间隔距离,由于不同的间隔距离需要不同的焦距才能呈现清晰的画面,因此在检测到相对于投影面的间隔距离后,投影设备可以得到相适应的焦距。再向驱动马达发送移动指令,从而将光学组件的整体焦距调整至相适应的焦距。The projection device can also automatically adjust the focal length according to the projection effect. In some embodiments of the present application, a focusing method based on the relationship between the spacing distance and the focal length is provided. That is, the projection device can detect the spacing distance between the optical machine and the projection surface. Since different spacing distances require different focal lengths to present a clear picture, after detecting the spacing distance relative to the projection surface, the projection device can obtain a corresponding focal length. Then send a movement instruction to the drive motor to adjust the overall focal length of the optical component to a corresponding focal length.

图9在一些实施例中距离传感器和相机结构示意图。如图9所示,投影设备还可以内置或外接相机700,相机700可以对投影设备投射的画面进行图像拍摄,以获取投影内容图像。投影设备再通过对投射内容图像进行清晰度检测,确定当前镜头焦距是否合适,并在不合适时进行焦距调整。基于相机700拍摄的投影内容图像进行自动调焦时,投影设备可以通过不断调整镜头位置并拍照,并通过对比前后位置图片的清晰度找到调焦位置,从而将光学组件中的移动镜片311调整至合适的位置。例如,控制器500可以先控制驱动马达320将移动镜片311从调焦起点位置逐渐移动至调焦终点位置,并在此期间不断通过相机700获取投影内容图像。再通过对多个投影内容图像进行清晰度检测,确定清晰度最高的位置,最后控制驱动马达320将移动镜片311从调焦终端调整到清晰度最高的位置,完成自动调焦。FIG9 is a schematic diagram of the distance sensor and camera structure in some embodiments. As shown in FIG9 , the projection device may also have a built-in or external camera 700, and the camera 700 may capture the image projected by the projection device to obtain the projection content image. The projection device then performs a clarity detection on the projection content image to determine whether the current lens focal length is appropriate, and adjusts the focal length if it is not appropriate. When automatically focusing based on the projection content image captured by the camera 700, the projection device may continuously adjust the lens position and take pictures, and find the focusing position by comparing the clarity of the front and rear position pictures, thereby adjusting the movable lens 311 in the optical component to a suitable position. For example, the controller 500 may first control the drive motor 320 to gradually move the movable lens 311 from the focus starting position to the focus end position, and continuously obtain the projection content image through the camera 700 during this period. Then, by performing a clarity detection on multiple projection content images, the position with the highest clarity is determined, and finally the drive motor 320 is controlled to adjust the movable lens 311 from the focus terminal to the position with the highest clarity to complete the automatic focusing.

为了获得更好的调焦效果,并提高调焦速度,本申请的一些实施例中还提供一种自动调焦方法,图10在一些实施例中自动调焦方法流程示意图,所述调焦方法可以兼顾上述自动调焦方法的优势,根据不同的应用场景采用不同的调焦方式。所述自动调焦方法可以应用于投影设备,并且为了满足该自动调焦方法的实施,所述投影设备可以包括光机200、镜头300、距离传感器600、相机700以及控制器500。其中,如图10所示,控制器500可以用于执行该自动调焦方法对应的程序步骤,包括以下内容:In order to obtain a better focusing effect and increase the focusing speed, an automatic focusing method is also provided in some embodiments of the present application. FIG10 is a flow chart of the automatic focusing method in some embodiments. The focusing method can take into account the advantages of the above-mentioned automatic focusing method and adopt different focusing methods according to different application scenarios. The automatic focusing method can be applied to a projection device, and in order to meet the implementation of the automatic focusing method, the projection device may include an optical machine 200, a lens 300, a distance sensor 600, a camera 700 and a controller 500. Among them, as shown in FIG10, the controller 500 can be used to execute the program steps corresponding to the automatic focusing method, including the following contents:

获取自动调焦指令。其中,自动调焦指令是指用于触发投影设备自动进行调焦的控制指令。自动调焦指令可以由用户手动输入。例如,用户可以在接通投影设备的电源后,按下投影设备或投影设备配套遥控器上的自动调焦按键,使投影设备自动进行调焦,即获取自动调焦指令。Obtain an automatic focus instruction. The automatic focus instruction refers to a control instruction for triggering the projection device to automatically focus. The automatic focus instruction can be manually input by the user. For example, after the projection device is powered on, the user can press the automatic focus button on the projection device or the remote control of the projection device to make the projection device automatically focus, that is, obtain the automatic focus instruction.

在一些实施例中,自动调焦指令也可以根据投影设备内置的控制程序自动生成。例如,当投影设备检测到开机后的首次视频信号输入时,可以触发自动调焦,则生成自动调焦指令。还例如,当投影设备检测到自身摆放姿态或设置位置发生改变时,为了消除改变过程的影响,在检测到摆放姿态或设置位置发生改变,投影设备可以自动进行焦距调整,即生成自动调焦指令。In some embodiments, the automatic focus instruction can also be automatically generated according to the control program built into the projection device. For example, when the projection device detects the first video signal input after power-on, the automatic focus can be triggered, and the automatic focus instruction is generated. For another example, when the projection device detects that its own placement posture or setting position has changed, in order to eliminate the impact of the change process, when the placement posture or setting position is detected to have changed, the projection device can automatically adjust the focus, that is, generate an automatic focus instruction.

在获取自动调焦指令后,投影设备的控制器500可以响应于自动调焦指令,通过距离传感器600获取间隔距离。其中,距离传感器600可以是能够检测目标距离的激光雷达、红外雷达等基于飞行时间(Time of Flight,TOF)原理的传感器设备。距离传感器600可以设置在光机200位置,包括信号的发射端和接收端。在进行间隔距离检测过程中,距离传感器600的发射端可以向投影面方向发射无线信号,无线信号在接触到投影面后,会被反射回距离传感器600接收端,从而根据发射端发出信号的时间和接收端接收信号的时间计算信号飞行时间,再结合飞行速度可以得到无线信号实际飞行距离,进而计算出投影面与光机之间的间隔距离。After obtaining the auto-focus instruction, the controller 500 of the projection device can respond to the auto-focus instruction and obtain the interval distance through the distance sensor 600. Among them, the distance sensor 600 can be a sensor device based on the time of flight (TOF) principle, such as a laser radar, an infrared radar, etc., which can detect the target distance. The distance sensor 600 can be set at the position of the optical machine 200, including a signal transmitter and a receiver. In the process of detecting the interval distance, the transmitter of the distance sensor 600 can transmit a wireless signal in the direction of the projection surface. After the wireless signal contacts the projection surface, it will be reflected back to the receiving end of the distance sensor 600, so that the signal flight time is calculated according to the time when the transmitter sends the signal and the time when the receiver receives the signal. Combined with the flight speed, the actual flight distance of the wireless signal can be obtained, and then the interval distance between the projection surface and the optical machine can be calculated.

在获取间隔距离后,投影设备可以对间隔距离进行判断,确定当前应用场景的类型。在一些实施例中,应用场景类型可以包括近距离场景和远距离场景两种,两种场景的可以通过对比间隔距离与预先设置的间隔判断阈值的大小关系确定。其中,间隔判断阈值可以根据投影设备的用途进行设定,例如,对于家用投影设备,可以设置间隔判断距离为1300mm。则在获取间隔距离后,可以对间隔距离与间隔判断阈值进行比较。当间隔距离小于间隔判断阈值时,确定当前应用场景为近距离场景;而当间隔距离大于或等于间隔判断阈值时,确定当前应用场景为远距离场景。After obtaining the interval distance, the projection device can judge the interval distance and determine the type of the current application scene. In some embodiments, the application scene types can include two types: close-range scenes and long-range scenes. The two scenes can be determined by comparing the size relationship between the interval distance and the preset interval judgment threshold. Among them, the interval judgment threshold can be set according to the purpose of the projection device. For example, for home projection equipment, the interval judgment distance can be set to 1300mm. After obtaining the interval distance, the interval distance can be compared with the interval judgment threshold. When the interval distance is less than the interval judgment threshold, the current application scene is determined to be a close-range scene; and when the interval distance is greater than or equal to the interval judgment threshold, the current application scene is determined to be a long-range scene.

对于近距离场景,由于距离传感器600发射的信号受环境中物体影响较小,距离传感器600能够 较准确的检测到投影面与光机200之间的间隔距离,因此当检测到当前应用场景为近距离场景时,可以充分利用TOF近距离测距准确度高、偏差小的特性,基于测距方式实现快速调焦。即如果间隔距离小于间隔判断阈值,根据间隔距离计算第一调焦量,以及按照第一调焦量控制驱动马达320调整光学组件310的焦距。For close-range scenes, since the signal emitted by the distance sensor 600 is less affected by objects in the environment, the distance sensor 600 can more accurately detect the distance between the projection surface and the optical machine 200. Therefore, when it is detected that the current application scene is a close-range scene, the TOF close-range distance measurement with high accuracy and small deviation can be fully utilized to achieve fast focusing based on the distance measurement method. That is, if the interval distance is less than the interval judgment threshold, the first focusing amount is calculated according to the interval distance, and the driving motor 320 is controlled to adjust the focal length of the optical component 310 according to the first focusing amount.

例如,在确定当前应用场景为近距离场景后,投影设备可以调用存储的间隔距离与焦距对照关系表,再从对照关系表中查询当前间隔距离相适应的焦距。焦距数据可以表现为移动镜片311相对于行程近端或远端的距离,以及对应需要驱动马达320需要转动的方向、角度以及圈数。最后根据查询获得的焦距数据,生成移动指令,并向驱动马达320发送移动指令,以控制驱动马达320带动移动镜片311移动至目标位置。For example, after determining that the current application scenario is a close-range scenario, the projection device can call the stored interval distance and focal length comparison table, and then query the focal length corresponding to the current interval distance from the comparison table. The focal length data can be expressed as the distance of the moving lens 311 relative to the near end or far end of the stroke, and the direction, angle, and number of turns that the corresponding driving motor 320 needs to rotate. Finally, based on the focal length data obtained by the query, a movement instruction is generated, and the movement instruction is sent to the driving motor 320 to control the driving motor 320 to drive the moving lens 311 to move to the target position.

由于调焦过程中移动镜片311的初始位置是不确定的,主要取决于上一次调焦后移动镜片311所处的位置,因此为了能够实现上述基于间隔距离的自动调焦过程,投影设备可以在每次开机启动时进行初始化,将移动镜片311调整至近端或远端位置,以便驱动马达320在接收到移动指令后,可以直接基于近端或远端进行移动。Since the initial position of the movable lens 311 during the focusing process is uncertain and mainly depends on the position of the movable lens 311 after the last focusing, in order to realize the above-mentioned automatic focusing process based on the interval distance, the projection device can be initialized each time it is turned on, and the movable lens 311 can be adjusted to the near or far position, so that the driving motor 320 can move directly based on the near or far end after receiving the movement instruction.

但对于不经常移动的投影设备,光机200与投影面400之间的间隔距离不会频繁变化,则为了避免每次开机运行都重复调焦操作,可以设定在开机启动时不调整光学组件310的焦距,而在投影设备获取自动调焦指令时先将光学组件310移动至近端或远端,再根据移动指令调整到目标位置。However, for a projection device that is not frequently moved, the spacing distance between the optical machine 200 and the projection surface 400 will not change frequently. In order to avoid repeating the focusing operation every time the device is turned on, it can be set not to adjust the focal length of the optical component 310 when the device is turned on. When the projection device obtains an automatic focusing instruction, the optical component 310 is first moved to the near end or the far end, and then adjusted to the target position according to the movement instruction.

在一些实施例中,投影设备还可以在根据间隔距离确定相适应焦距对应的位置后,获取当前移动镜片311所处的位置,并根据当前位置和焦距对应的位置计算要调节的目标位置,从而生成移动指令。显然,此时生成的移动指令中包括驱动马达在当前位置条件下需要转动的方向、角度以及圈数等内容。In some embodiments, the projection device can also obtain the current position of the movable lens 311 after determining the position corresponding to the adapted focal length according to the interval distance, and calculate the target position to be adjusted according to the current position and the position corresponding to the focal length, thereby generating a movement instruction. Obviously, the movement instruction generated at this time includes the direction, angle, and number of turns of the driving motor that need to be rotated under the current position condition.

为了计算目标位置,投影设备中可以预先配置位置存储模块,位置存储模块可以对调焦过程中驱动马达320的转动情况进行实时记录。显然,能够触发实时记录的调焦过程可以是手动调焦过程也可以是自动调焦过程。再通过设置可信度,对记录的当前位置进行评价。所述可信度可以通过特定的数值对当前记忆的位置信息的有效性进行表示。即当可信度为第一数值时,表示当前记忆的位置信息有效;当可信度为第二数值时,表示当前记忆位置信息无效。为了表示有效性,可以设置第一数值大于第二数值。例如,设置第一数值为1,表示当前记忆信息有效;设置第二数值为0,表示当前记忆信息无效。也可以通过其他数值分别表示当前记忆信息的有效性,如奇数表示记忆信息有效,偶数表示记忆信息无效。用户进入手动调焦界面后,控制器500可以通知位置存储模块将进行调焦,位置存储模块接收到通知后将位置可信度置为0,并等待调焦过程完成。投影设备再接收用户操作按键,如果用户通过方向键进行调焦,则按照用户要求移动镜片311位置,并通过临时变量,实时记忆用户的操作过程,包括移动方向和移动步数。In order to calculate the target position, a position storage module can be pre-configured in the projection device, and the position storage module can record the rotation of the drive motor 320 in real time during the focusing process. Obviously, the focusing process that can trigger the real-time recording can be a manual focusing process or an automatic focusing process. Then, by setting the credibility, the recorded current position is evaluated. The credibility can represent the validity of the currently memorized position information through a specific value. That is, when the credibility is a first value, it means that the currently memorized position information is valid; when the credibility is a second value, it means that the currently memorized position information is invalid. In order to indicate the validity, the first value can be set to be greater than the second value. For example, setting the first value to 1 means that the current memorized information is valid; setting the second value to 0 means that the current memorized information is invalid. The validity of the current memorized information can also be represented by other values, such as an odd number indicating that the memorized information is valid, and an even number indicating that the memorized information is invalid. After the user enters the manual focusing interface, the controller 500 can notify the position storage module to focus. After receiving the notification, the position storage module sets the position credibility to 0 and waits for the focusing process to be completed. The projection device then receives the user's operation key. If the user adjusts the focus through the direction key, the lens 311 is moved according to the user's requirements, and the user's operation process, including the moving direction and the number of moving steps, is memorized in real time through temporary variables.

在记忆移动步数时,可以按照驱动马达的实际移动步数为准,从而实现在不同的调焦位置上进行不同精度的位置调整。例如,用户每进行一次调焦操作,控制器500可以向驱动马达320发送沿固定方向移动20步的指令,但当移动镜片311已经移动到可调区间的边缘时,响应于用户的每操作一次,控制器500可以向驱动马达320发送实际移动步数小于20步的移动指令,此时应以实际步数为准记录镜片位置。When memorizing the number of moving steps, the actual number of moving steps of the driving motor may be used as the standard, so as to achieve position adjustment with different precisions at different focusing positions. For example, each time the user performs a focusing operation, the controller 500 may send a command to the driving motor 320 to move 20 steps in a fixed direction, but when the moving lens 311 has moved to the edge of the adjustable range, in response to each operation of the user, the controller 500 may send a moving command to the driving motor 320 with an actual number of moving steps less than 20 steps, and at this time, the lens position should be recorded based on the actual number of steps.

当用户退出手动调焦时,控制器500可以通知位置存储模块调焦结束,并写入驱动马达32在此次调焦过程中的移动方向和移动步数。位置存储模块则在收到通知后更新存储的位置,并将位置可信度置为第一数值,供下次调焦使用。而当手动调焦过程中出现异常退出或崩溃情况,则再次进入手动调焦时,控制器500仍会下发开始调焦的通知,位置存储模块会连续两次收到调焦开始的通知,此时可以视为出现异常,为了减少异常状况的影响,位置存储模块可以在被校准之前,一直设置可信度为第二数值, 即一直处于不可信状态。When the user exits manual focusing, the controller 500 can notify the position storage module that the focusing is finished, and write the moving direction and number of steps of the drive motor 32 during this focusing process. After receiving the notification, the position storage module updates the stored position and sets the position credibility to the first value for the next focusing. If an abnormal exit or crash occurs during the manual focusing process, when entering manual focusing again, the controller 500 will still issue a notification to start focusing, and the position storage module will receive notifications of the start of focusing twice in a row. At this time, it can be regarded as an abnormality. In order to reduce the impact of abnormal conditions, the position storage module can set the credibility to the second value before being calibrated, that is, it is always in an untrustworthy state.

同理,当投影设备在自动调焦过程中移动镜片311位置时,位置存储模块也需要实时记录驱动马达的转动情况,并通过设置可信度,对记录的位置信息进行约束。例如,自动调焦过程开始后,位置存储模块的位置可信度被置位0,表明当前位置是处于不可信状态;如果接收到调焦开始通知,在没有接收到调焦结束的情况下,再一次接收到调焦开始,为保证位置记忆的准确性,视为之前调焦过程存在异常,设置异常标志,并在自动调焦完成位置校准之前,位置可信度始终维持在状态0。Similarly, when the projection device moves the position of the lens 311 during the automatic focusing process, the position storage module also needs to record the rotation of the drive motor in real time, and constrain the recorded position information by setting the credibility. For example, after the automatic focusing process starts, the position credibility of the position storage module is set to 0, indicating that the current position is in an untrusted state; if a focus start notification is received, and the focus start is received again without receiving the focus end notification, in order to ensure the accuracy of the position memory, it is considered that there is an abnormality in the previous focusing process, and an abnormal flag is set, and before the automatic focusing completes the position calibration, the position credibility is always maintained at state 0.

在正常接收到调焦结束通知后,如果本次调焦过程为自动调焦,则由于自动调焦是由程序控制,有可能成功,也有可能失败,而有些失败原因可能影响位置记忆的准确性,因此当自动调焦失败时,设置异常标志并设置可信度为0,确保下次自动调焦过程中,可以对驱动马达320的位置完成一次校准。而本次自动调焦为成功状态,则判断当前位置记忆异常标志是否为1,若为1,则除更新记录的位置外,还需要将异常标志同步清除掉,确保下次自动调焦时,可以充分利用存储的位置。After receiving the focus end notification normally, if the current focus process is automatic focus, since the automatic focus is controlled by the program, it may succeed or fail, and some failure reasons may affect the accuracy of the position memory. Therefore, when the automatic focus fails, the abnormal flag is set and the credibility is set to 0 to ensure that the position of the drive motor 320 can be calibrated once during the next automatic focus process. If the automatic focus is successful, it is determined whether the current position memory abnormal flag is 1. If it is 1, in addition to updating the recorded position, the abnormal flag needs to be cleared synchronously to ensure that the stored position can be fully used during the next automatic focus.

对于远距离场景,由于距离传感器600发射的信号容易受到环境影响,导致TOF精准度下降,不宜直接使用。而基于投影内容图像调焦,则可以大幅缩小调焦过程的有效焦距区间搜索范围,提升调焦速度,并且无需担心陷入局部无效调焦的问题。因此,投影设备可以采用间隔距离与图像检测相结合的方式进行自动调焦。图11在一些实施例中基于清晰度调焦的过程示意图,如图11所示,如果间隔距离大于或等于间隔判断阈值,根据投影内容图像的清晰度计算第二调焦量,以及按照第二调焦量控制驱动马达320调整光学组件310的焦距。For long-distance scenes, since the signal emitted by the distance sensor 600 is easily affected by the environment, resulting in a decrease in TOF accuracy, it is not suitable for direct use. Focusing based on the projection content image can greatly reduce the effective focal length interval search range of the focusing process, improve the focusing speed, and there is no need to worry about falling into the problem of local invalid focusing. Therefore, the projection device can automatically focus by combining the interval distance with image detection. Figure 11 is a schematic diagram of the process of focusing based on clarity in some embodiments. As shown in Figure 11, if the interval distance is greater than or equal to the interval judgment threshold, the second focusing amount is calculated according to the clarity of the projection content image, and the drive motor 320 is controlled according to the second focusing amount to adjust the focal length of the optical component 310.

在一些实施例中,在根据投影内容图像的清晰度计算第二调焦量时,控制器500可以先向驱动马达320发送第一移动指令,以控制驱动马达320将光学组件310从调焦起点位置移动至调焦终点位置。并在光学组件310移动过程中,开启相机700持续进行图像拍摄。再按照预设频率获取相机700拍摄的投影内容图像,其中,每个投影内容图像关联一个调焦位置。因此可以计算投影内容图像的清晰度,再根据投影内容图像的清晰度查找最佳调焦位置。In some embodiments, when calculating the second focus amount according to the clarity of the projected content image, the controller 500 may first send a first movement instruction to the drive motor 320 to control the drive motor 320 to move the optical assembly 310 from the focus starting position to the focus ending position. During the movement of the optical assembly 310, the camera 700 is turned on to continuously capture images. Then, the projected content image captured by the camera 700 is obtained at a preset frequency, wherein each projected content image is associated with a focus position. Therefore, the clarity of the projected content image can be calculated, and then the best focus position can be found according to the clarity of the projected content image.

例如,在确定间隔距离大于或等于间隔判断阈值后,控制器500可以控制驱动马达320进行转动,以带动移动镜片311从调焦起点位置移动到调焦终点位置,并在移动过程中通过相机700持续进行拍照并计算清晰度。其中,投影内容图像的清晰度可以基于频域函数、灰度函数、信息熵等多种方式实现。再通过对比拍照时间顺序前后投影内容图像的清晰度来确认搜索方向,即清晰度低至清晰度高的方向,以找到清晰度最高的投影内容图像所对应的位置。For example, after determining that the interval distance is greater than or equal to the interval judgment threshold, the controller 500 can control the driving motor 320 to rotate to drive the movable lens 311 to move from the focus starting position to the focus end position, and continuously take pictures and calculate the clarity through the camera 700 during the movement. Among them, the clarity of the projected content image can be achieved based on a variety of methods such as frequency domain function, grayscale function, information entropy, etc. Then, the search direction is confirmed by comparing the clarity of the projected content image before and after the photo shooting time sequence, that is, the direction from low clarity to high clarity, so as to find the position corresponding to the projected content image with the highest clarity.

为了满足计算调焦量的需求,投影设备还可以配置多个功能单元,如策略选择单元、电机控制单元、图像采集单元(Camera)、清晰度排序单元等,各功能单元可以相互独立工作。例如,策略选择单元确定基于投影内容图像的清晰度计算第二调焦量后,可以根据设定搜索区间,通知电机控制单元控制驱动马达一次性带动移动镜片311走完搜索区间,无需停下等待拍照和清晰度计算。并且,对于单次调焦过程,控制器500可以在驱动马达320转动到特定状态时,向图像采集单元发送位置信息,并向图像清晰度评价单元写入位置信息,以实现三者的同步。In order to meet the needs of calculating the focus amount, the projection device can also be configured with multiple functional units, such as a strategy selection unit, a motor control unit, an image acquisition unit (Camera), a clarity sorting unit, etc., and each functional unit can work independently of each other. For example, after the strategy selection unit determines to calculate the second focus amount based on the clarity of the projection content image, it can notify the motor control unit to control the drive motor to drive the mobile lens 311 to complete the search interval at one time according to the set search interval, without stopping to wait for taking pictures and clarity calculation. In addition, for a single focusing process, the controller 500 can send position information to the image acquisition unit and write position information to the image clarity evaluation unit when the drive motor 320 rotates to a specific state to achieve synchronization among the three.

由以上技术方案可知,上述实施例提供的自动调焦方法可以根据间隔距离确定当前应用场景。并在近距离场景下,根据间隔距离计算调焦量,从而充分利用TOF近距离测距准确度高、偏差小的特性,基于测距方法实现快速调焦。而在远距离场景下,根据投影内容图像的清晰度计算调焦量,从而克服TOF远距离测距时精度差的缺点,减少重复调焦次数,提升调焦速度。It can be seen from the above technical solutions that the automatic focusing method provided in the above embodiments can determine the current application scenario according to the interval distance. In the close-range scenario, the focusing amount is calculated according to the interval distance, thereby making full use of the characteristics of high accuracy and small deviation of TOF close-range distance measurement, and realizing fast focusing based on the distance measurement method. In the long-range scenario, the focusing amount is calculated according to the clarity of the projected content image, thereby overcoming the disadvantage of poor accuracy of TOF long-range distance measurement, reducing the number of repeated focusing times, and improving the focusing speed.

在一些实施例中,激光雷达、红外雷达等距离传感器可以在特定的平面内进行扫描,并根据扫描结果确定投影面400和光机200之间的环境状态,以减少环境因素对调焦过程的影响。In some embodiments, distance sensors such as laser radar and infrared radar can scan within a specific plane and determine the environmental state between the projection surface 400 and the optical machine 200 based on the scanning results to reduce the impact of environmental factors on the focusing process.

图12为在一些实施例中检测目标物体数量流程示意图,如图12所示,检测目标物体数量的方法 包括以下步骤:FIG. 12 is a schematic diagram of a process for detecting the number of target objects in some embodiments. As shown in FIG. 12 , the method for detecting the number of target objects includes the following steps:

步骤1201,在获取间隔距离时,投影设备可以获取距离传感器600在多次扫描过程中生成的距离检测帧数据;Step 1201, when acquiring the interval distance, the projection device may acquire the distance detection frame data generated by the distance sensor 600 during multiple scanning processes;

步骤1202,再遍历多个距离检测帧数据中的目标物体数量;Step 1202, traverse the number of target objects in multiple distance detection frame data;

步骤1203,根据目标物体数量和对应的间隔距离设置间隔距离的可信度,将所述目标物体数量与数量判断阈值进行比较;如果目标物体数量小于或等于数量判断阈值,执行步骤1204;如果目标物体数量大于数量判断阈值,执行步骤1205;Step 1203, setting the reliability of the interval distance according to the number of target objects and the corresponding interval distance, and comparing the number of target objects with the number judgment threshold; if the number of target objects is less than or equal to the number judgment threshold, executing step 1204; if the number of target objects is greater than the number judgment threshold, executing step 1205;

步骤1204,根据每个目标物体与光机200之间的目标距离计算间隔距离;Step 1204, calculating the separation distance according to the target distance between each target object and the optical engine 200;

如果目标物体数量小于或等于数量判断阈值,即投影面与光机200之间的环境影响因素较少,距离传感器600检测是间隔数据是有效的,则可以根据每个目标物体与光机200之间的目标距离计算间隔距离。If the number of target objects is less than or equal to the number judgment threshold, that is, there are fewer environmental influencing factors between the projection surface and the optical machine 200, and the interval data detected by the distance sensor 600 is valid, the interval distance can be calculated based on the target distance between each target object and the optical machine 200.

步骤1205,根据投影内容图像的清晰度计算第二调焦量。Step 1205: Calculate a second focus adjustment amount according to the clarity of the projected content image.

而如果目标物体数量大于数量判断阈值,则说明当前投影面与光机200之间的环境影响因素较多,距离传感器600检测的间隔距离有效性较低,因此可以不再基于间隔距离进行自动调焦,而是通过检测投影内容图像的清晰度进行自动调焦,即执行根据投影内容图像的清晰度计算第二调焦量的步骤。If the number of target objects is greater than the quantity judgment threshold, it means that there are many environmental influencing factors between the current projection surface and the optical machine 200, and the effectiveness of the interval distance detected by the distance sensor 600 is low. Therefore, automatic focusing is no longer based on the interval distance, but automatic focusing is performed by detecting the clarity of the projection content image, that is, executing the step of calculating the second focusing amount according to the clarity of the projection content image.

例如,控制器500触发自动调焦时,可以同步下发先期测量的间隔距离信息,每次测量均包含如下信息内容:测得的物体个数、每个物体的目标距离(即物体目标与光机200之间的距离)、每个物体的测量状态。则控制器500可以对多次测量结果进行判断,在判断多次测量结果的过程中,可以先检测每次扫描过程是否都只扫描到一个物体目标,如果只扫描到一个物体目标,则该物体目标最有可能是投影面,因此可以计算多次扫描测得的目标物体与光机200之间目标距离的平均值,作为后续调焦过程中匹配对应焦距的间隔距离。如果扫描到的物体目标数量较多,则说明当前环境过于复杂,距离信息可信度较低,此时可以按照上述实施例中提供的方式,根据投影内容图像的清晰度计算调焦量,实现自动调焦。For example, when the controller 500 triggers automatic focusing, the previously measured interval distance information can be sent synchronously, and each measurement contains the following information: the number of objects measured, the target distance of each object (i.e., the distance between the object target and the optical machine 200), and the measurement status of each object. The controller 500 can then judge the results of multiple measurements. In the process of judging the results of multiple measurements, it can first detect whether only one object target is scanned in each scanning process. If only one object target is scanned, the object target is most likely to be the projection surface. Therefore, the average value of the target distance between the target object and the optical machine 200 measured by multiple scans can be calculated as the interval distance for matching the corresponding focal length in the subsequent focusing process. If the number of scanned object targets is large, it means that the current environment is too complex and the distance information is less credible. At this time, the focusing amount can be calculated according to the clarity of the projection content image in the manner provided in the above embodiment to achieve automatic focusing.

在一些实施例中,投影设备还可以在根据每个目标物体与光机之间的目标距离计算间隔距离时,遍历距离检测帧数据中每个目标物体与光机之间的目标距离,并按照目标距离设置目标物体的距离置信度,包括:如果目标距离在预设有效区间内,设置距离可信度为第一数值;如果目标距离不在预设有效区间内,设置距离可信度为第二数值。再计算距离置信度为第一数值的目标物体对应目标距离的平均值,以生成间隔距离。In some embodiments, when calculating the interval distance according to the target distance between each target object and the optical machine, the projection device may also traverse the target distance between each target object and the optical machine in the distance detection frame data, and set the distance confidence of the target object according to the target distance, including: if the target distance is within a preset valid interval, setting the distance confidence to a first value; if the target distance is not within the preset valid interval, setting the distance confidence to a second value. Then, the average value of the target distance corresponding to the target object whose distance confidence is the first value is calculated to generate the interval distance.

对于投影面与光机200之间的环境,由于部分物体目标可以直接根据检测的间隔距离排除其对调焦过程的影响,因此在一些实施例中,投影设备还可以在距离传感器扫描到环境中的物体目标数量较多时,对扫描到的物体目标和目标距离进行再次判断,以减少环境物体的影响。Regarding the environment between the projection surface and the optical machine 200, since the influence of some object targets on the focusing process can be eliminated directly based on the detected interval distance, in some embodiments, the projection device can also re-judge the scanned object targets and target distances when the distance sensor scans a large number of object targets in the environment, so as to reduce the influence of environmental objects.

例如,在多次测量结果的判断过程中,控制器500可以对扫描结果中,是否每次测量都只测到一个物体目标进行判断。如果不是每次测量都只测到一个物体目标,则判断是否最多测到两个物体目标,如果仍不是则说明当前环境过于复杂,距离信息可信度较低,此时可以从扫描结果数据中找出最小有效测量值,并据此测量值设定搜索区间并执行图像调焦。For example, in the process of judging multiple measurement results, the controller 500 can judge whether only one object target is measured in each measurement in the scanning result. If not, it is judged whether at most two object targets are measured. If not, it means that the current environment is too complex and the distance information is less reliable. At this time, the minimum valid measurement value can be found from the scanning result data, and the search interval can be set according to the measurement value and the image focusing can be performed.

如果在某些测量过程中只测到两个物体目标,则可以判断两个物体目标各自对应的目标距离是否在有效区间内。如果两个物体目标对应的间隔距离都在有效区间内,则视为距离可信度欠佳,无法区分投影面和其他物体目标,此时可以按照上述方式,提取最小有效值并执行图像调焦。If only two objects are measured during some measurement processes, it can be determined whether the target distances corresponding to the two objects are within the valid range. If the interval distances corresponding to the two objects are both within the valid range, it is considered that the distance reliability is poor and the projection surface and other objects cannot be distinguished. At this time, the minimum valid value can be extracted and image focusing can be performed in the above manner.

如果在某些测量过程中只测到两个物体目标,但两个物体目标中的最小距离不在有效区间内,则说明该间隔距离来自于距离传感器600自身的校准数据不准导致的干扰值,因此可以直接对最小距离对 应的物体目标做摒弃处理,将剩余的物体目标视为单个物体目标的情况,从而按照只测到一个物体目标的间隔距离确定方式进行处理。If only two object targets are measured during certain measurement processes, but the minimum distance between the two object targets is not within the valid range, it means that the interval distance comes from the interference value caused by inaccurate calibration data of the distance sensor 600 itself. Therefore, the object target corresponding to the minimum distance can be directly discarded, and the remaining object targets can be regarded as a single object target, and then processed according to the interval distance determination method of only one object target.

如果多次测量都只测到一个物体目标,则投影设备可以再判断是否每次测量过程的测量状态都是有效的,如任一帧扫描数据中是否出现空数据、异常数据等。如果每次测量过程对应的测量状态都是有效的,则判断有效测量状态和无效测量状态对应的数量,如果无效测量状态次数过多,则说明使用环境过差,无法完成有效测距,因此可以执行图像调焦。If only one object is measured in multiple measurements, the projection device can determine whether the measurement status of each measurement process is valid, such as whether there is empty data or abnormal data in any frame scan data. If the measurement status corresponding to each measurement process is valid, the number of valid measurement status and invalid measurement status is determined. If the number of invalid measurement status is too many, it means that the use environment is too poor and effective distance measurement cannot be completed, so image focusing can be performed.

如果多次测量都只测到一个物体目标,且所有测量状态都是有效的,则判断多次扫描过程中物体目标对应目标距离测量值的波动值是否在测量精度之内;如果超出测量精度要求,则说明先期测量时可能有干扰介入,考虑到投影面的存在,无法准确确认干扰所在位置,因此可以按最小有效值设定搜索区间后,执行图像调焦。如果波动值在测量精度之内,则计算目标距离的平均值作为间隔距离。If only one object target is measured in multiple measurements and all measurement states are valid, determine whether the fluctuation value of the distance measurement value of the object target corresponding to the target during multiple scans is within the measurement accuracy; if it exceeds the measurement accuracy requirement, it means that there may be interference in the previous measurement. Considering the existence of the projection surface, it is impossible to accurately confirm the location of the interference. Therefore, the search interval can be set according to the minimum valid value and image focusing can be performed. If the fluctuation value is within the measurement accuracy, the average value of the target distance is calculated as the interval distance.

如果平均值超过设定的近距离,则表明此时虽然测距准确,但因为距离过远导致TOF测距结果的偏差值增大,可能影响调焦效果;此时需要设定合适的调焦距离后执行图像调焦;如果平均值在设定的近距离范围内,则执行测距调焦。If the average value exceeds the set close distance, it means that although the distance measurement is accurate, the deviation of the TOF distance measurement result increases due to the long distance, which may affect the focusing effect. At this time, it is necessary to set a suitable focusing distance and perform image focusing. If the average value is within the set close distance range, perform ranging focusing.

由于在根据图像清晰度进行调焦的过程中,需要实时进行图像拍摄以获得多个投影内容图像,并且对投影内容图像的清晰度进行计算,这导致根据图像清晰度进行调焦的过程耗时较长。因此,图13在一些实施例中多阶段图像调焦过程示意图。如图13所示,为了减少调焦耗时,并保证调焦过程的精确度,在一些实施例中,投影设备可以分阶段进行调焦。例如,完整的调焦过程可以分为三个阶段,即模糊调焦阶段、细调阶段和补偿阶段。其中,模糊调焦阶段在于快速找到细调范围,细调阶段在于找到最佳清晰度位置,补偿阶段用于消除并行控制可能引入的位置偏差。Since in the process of focusing according to the image clarity, it is necessary to capture images in real time to obtain multiple projection content images, and calculate the clarity of the projection content images, this results in a long time-consuming process of focusing according to the image clarity. Therefore, Figure 13 is a schematic diagram of a multi-stage image focusing process in some embodiments. As shown in Figure 13, in order to reduce the time consumption of focusing and ensure the accuracy of the focusing process, in some embodiments, the projection device can focus in stages. For example, the complete focusing process can be divided into three stages, namely, a fuzzy focusing stage, a fine adjustment stage, and a compensation stage. Among them, the fuzzy focusing stage is to quickly find the fine adjustment range, the fine adjustment stage is to find the optimal clarity position, and the compensation stage is used to eliminate the position deviation that may be introduced by parallel control.

因此,在根据投影内容图像的清晰度查找最佳调焦位置时,投影设备可以先根据投影内容图像的清晰度对调焦位置进行排序,以获得清晰度序列,并在清晰度序列中提取精细调焦区间,其中,清晰度最高的投影内容图像对应调焦位置在精细调焦区间内。例如,当接收到自动对焦指令时,控制器500可以通知相机700进行拍照,并通知清晰度评价单元进行。之后,camera以特定频率进行拍照,得到投影内容图像。则在拍照后,如果接收到控制器发送的读取照片的指令,则给出最近一次的照片路径,否则做丢弃处理。清晰度评价单元则开始轮询存储对焦位置的容器是否为空,不为空则读取位置信息,并据此读取相应的图片并计算图片清晰度,再将清晰度计算结果存入清晰度存储容器中待用。Therefore, when searching for the best focus position according to the clarity of the projected content image, the projection device can first sort the focus positions according to the clarity of the projected content image to obtain a clarity sequence, and extract the fine focus interval in the clarity sequence, wherein the focus position corresponding to the projected content image with the highest clarity is within the fine focus interval. For example, when receiving an autofocus instruction, the controller 500 can notify the camera 700 to take a picture, and notify the clarity evaluation unit to do so. After that, the camera takes pictures at a specific frequency to obtain the projected content image. After taking pictures, if a command to read a photo is received from the controller, the path of the most recent photo is given, otherwise it is discarded. The clarity evaluation unit starts to poll whether the container storing the focus position is empty. If it is not empty, the position information is read, and the corresponding picture is read accordingly and the picture clarity is calculated, and then the clarity calculation result is stored in the clarity storage container for standby use.

控制器500可以再读取当前记忆的驱动马达320转动位置,根据就近原则将移动镜片311调节至调节起点位置或调节终点位置。再根据固定步数按特定方向驱动驱动马达320。当驱动马达320驱动镜片到达特定位置后,比如调节起点位置和调节终点位置之间每个100步作为一个特定位置,控制器500可以向camera发送当前位置并要求camera返回照片路径,再将当前位置存至对焦位置存储容器。清晰度评价单元检测到上述容器不为空,则读取位置信息,并获得相应的照片后进行清晰度计算。同时驱动马达320继续运动,无需等到清晰度对比结果。The controller 500 can read the currently memorized rotation position of the drive motor 320 again, and adjust the movable lens 311 to the adjustment starting position or the adjustment end position according to the principle of proximity. Then drive the drive motor 320 in a specific direction according to a fixed number of steps. When the drive motor 320 drives the lens to a specific position, such as every 100 steps between the adjustment starting position and the adjustment end position as a specific position, the controller 500 can send the current position to the camera and request the camera to return the photo path, and then store the current position in the focus position storage container. When the clarity evaluation unit detects that the above container is not empty, it reads the position information, and performs clarity calculation after obtaining the corresponding photo. At the same time, the drive motor 320 continues to move without waiting for the clarity comparison result.

重复上述过程直至驱动马达320将移动镜片311驱动到调节起点位置或调节终点位置。此时,清晰度评价单元检测到当前已经抵达调节起点位置或调节终点位置后,会将各个位置的清晰度进行排序,并向控制器500返回清晰度最佳位置。The above process is repeated until the driving motor 320 drives the movable lens 311 to the adjustment starting position or the adjustment end position. At this time, after the clarity evaluation unit detects that the adjustment starting position or the adjustment end position has been reached, it will sort the clarity of each position and return the best clarity position to the controller 500.

控制器500再根据返回的最佳位置和对应的调焦步数,根据就近原则控制驱动马达320运行,以驱动镜片移动到精调区间的某一侧。比如,在上述步骤中从调节起点位置到达调节终点位置后,经检测最佳位置为距离近端600步的位置,则可以确定精细调焦区间为距离近端500步和700步之间位置区间。The controller 500 then controls the driving motor 320 to operate according to the returned optimal position and the corresponding number of focusing steps, based on the principle of proximity, so as to drive the lens to move to one side of the fine adjustment interval. For example, after reaching the adjustment end position from the adjustment starting position in the above steps, it is detected that the optimal position is 600 steps away from the near end, and the fine focus interval can be determined to be the position interval between 500 steps and 700 steps away from the near end.

确定精细调焦区间后,控制器500可以在向驱动马达320发送第二移动指令,以控制光学组件310按照预设调节步长在精细调焦区间内移动。为了获得精细调整效果,光学组件每次移动后,投影设备都 需要从相机700获取拍摄的精细调焦图像,再通过计算精细调焦图像的清晰度,以及按照精细调焦图像的清晰度查找清晰度最高的精细调焦图像对应的调焦位置,以作为最佳调焦位置。After determining the fine focus interval, the controller 500 may send a second movement instruction to the drive motor 320 to control the optical assembly 310 to move within the fine focus interval according to the preset adjustment step. In order to obtain a fine adjustment effect, after each movement of the optical assembly, the projection device needs to obtain a fine focus image captured from the camera 700, and then calculate the clarity of the fine focus image, and find the focus position corresponding to the fine focus image with the highest clarity according to the clarity of the fine focus image, so as to serve as the best focus position.

例如,在确定精细调焦区间为距离近端500步和700步之间位置区间后,投影设备可以通过驱动马达320将镜片驱动到距离近端700步的位置,并每隔10步从相机700获取一张精细调焦图像,并计算每张精细调焦图像的清晰度,从而确定精细调焦区间内的清晰度最高的图像对应的位置,如距离近端550步的位置为最佳调焦位置。For example, after determining that the fine focus interval is a position interval between 500 steps and 700 steps from the near end, the projection device can drive the lens to a position 700 steps from the near end by driving the motor 320, and obtain a fine focus image from the camera 700 every 10 steps, and calculate the clarity of each fine focus image, thereby determining the position corresponding to the image with the highest clarity in the fine focus interval, such as the position 550 steps from the near end as the optimal focus position.

需要说明的是,精细调焦区间在涉及调焦行程的端点位置需要特殊选定,即需要对确认的最佳清晰点分别处理,如最佳清晰点在区间终点,则此时只进一步检索终点到回退100步这一区间即可;如果最佳清晰位置在区间起点,则驱动马达320带动光学组件先运行到起点向前100步的位置,再在此区间内进行搜索即可。It should be noted that the fine focus interval requires special selection of the end point position involving the focusing stroke, that is, the confirmed best clarity point needs to be processed separately. If the best clarity point is at the end point of the interval, then at this time, only the interval from the end point to 100 steps back is further searched; if the best clarity position is at the starting point of the interval, the drive motor 320 drives the optical component to run to the position 100 steps forward from the starting point, and then the search is performed within this interval.

由于相机700拍照不是在马达停止后才进行的拍照,因此照片实际的位置和控制器500中记录的位置存在一定的偏差,但驱动马达320的移动步速和相机700的拍照频率是固定的,因此上述偏差会限定在一定的区间范围内,并且是可计算的。则在最终对焦完成后,可以驱动马达320的步速和相机700的拍照频率计算位置补偿值,并根据补偿值在最佳位置前后移动特定步数,再结合清晰度得到最终的相对最清晰位置。Since the camera 700 does not take pictures after the motor stops, there is a certain deviation between the actual position of the picture and the position recorded in the controller 500, but the moving pace of the driving motor 320 and the shooting frequency of the camera 700 are fixed, so the above deviation will be limited to a certain range and can be calculated. After the final focus is completed, the position compensation value can be calculated based on the pace of the driving motor 320 and the shooting frequency of the camera 700, and a specific number of steps can be moved before and after the optimal position according to the compensation value, and then the final relative clearest position is obtained in combination with the clarity.

即为了消除偏差,在一些实施例中,投影设备可以在根据投影内容图像的清晰度查找最佳调焦位置时,先获取驱动马达的移动速度,以及获取相机700的拍摄频率,再根据移动速度和拍摄频率计算位置补偿值。再通过提取清晰度最高的投影内容图像对应的调焦位置,以获得目标调焦位置,从而使用位置补偿值修正目标调焦位置,以获得最佳调焦位置。That is, in order to eliminate the deviation, in some embodiments, the projection device can first obtain the moving speed of the drive motor and the shooting frequency of the camera 700 when searching for the best focus position according to the clarity of the projected content image, and then calculate the position compensation value according to the moving speed and the shooting frequency. Then, the focus position corresponding to the projected content image with the highest clarity is extracted to obtain the target focus position, and the target focus position is corrected using the position compensation value to obtain the best focus position.

例如,经过精细调焦过程之后,得到的最佳位置是距离近端560步的位置,而根据驱动马达320的步速和相机700的拍摄频率,计算得到的平均位置补偿值为15步,则最终获取在距离近端545步、560步和575步三个位置对应的投影内容图像,以通过对比清晰度,确定最终的最清晰点。For example, after the fine focusing process, the best position is 560 steps away from the near end, and according to the step speed of the driving motor 320 and the shooting frequency of the camera 700, the average position compensation value is calculated to be 15 steps. Finally, the projection content images corresponding to the three positions of 545 steps, 560 steps and 575 steps away from the near end are obtained, so as to determine the final clearest point by comparing the clarity.

由于相机700的拍摄范围通常为覆盖投影面的一个相对较大的区域,因此相机700在拍摄投影内容图像时,还会在拍摄获得的图像中包含投影区域以外的环境内容。这些环境内容会对图像处理过程产生影响,从而影响对图像清晰度的准确判断。为此,在一些实施例中,投影设备可以在获取投影内容图像后,对图像进行裁切,以获得拍照图片中的感兴趣区域(ROI),避免图片中的非投影部分对清晰度评价造成影响。Since the shooting range of the camera 700 is usually a relatively large area covering the projection surface, when the camera 700 shoots the projection content image, the environmental content outside the projection area will also be included in the captured image. These environmental contents will affect the image processing process, thereby affecting the accurate judgment of the image clarity. To this end, in some embodiments, the projection device can crop the image after acquiring the projection content image to obtain the region of interest (ROI) in the photographed picture to avoid the non-projection part of the picture from affecting the clarity evaluation.

对图像进行裁切可以依据预先确定的边界坐标,例如图像中高亮区域的四个顶点坐标等。而由于投影设备在进行梯形校正的过程中,设置边界坐标以进行比例缩放,消除倾斜透射的影响。即梯形校正过程中能够直接获得边界坐标,因此为了提高图像裁切效率,投影设备可以直接使用梯形校正过程产生的边界坐标进行图像裁切。The image can be cropped based on predetermined boundary coordinates, such as the coordinates of the four vertices of the highlight area in the image. Since the projection device sets boundary coordinates for scaling during the trapezoidal correction process to eliminate the influence of oblique transmission, that is, the boundary coordinates can be directly obtained during the trapezoidal correction process, in order to improve the efficiency of image cropping, the projection device can directly use the boundary coordinates generated during the trapezoidal correction process to crop the image.

但在投影设备位置发生移动时,预先存储的边界坐标将可能失效,为此,图14为在一些实施例中裁切图像流程示意图,如图14所示,裁切图像的步骤包括:However, when the position of the projection device moves, the pre-stored boundary coordinates may become invalid. Therefore, FIG. 14 is a schematic diagram of a process of cutting an image in some embodiments. As shown in FIG. 14 , the steps of cutting an image include:

步骤1401,提取边界坐标;Step 1401, extracting boundary coordinates;

投影设备利用重力加速度传感器、陀螺仪等姿态传感器,检测是否被移动过,即姿态传感器被配置为检测投影设备的姿态信息,投影设备可以在按照预设频率获取相机700拍摄的投影内容图像时,提取关键区域的边界坐标,所述边界坐标为投影设备在执行梯形校正时,根据校正后的关键区域存储的顶点坐标。The projection device uses a gravity acceleration sensor, a gyroscope and other attitude sensors to detect whether it has been moved, that is, the attitude sensor is configured to detect the attitude information of the projection device. The projection device can extract the boundary coordinates of the key area when acquiring the projection content image taken by the camera 700 at a preset frequency. The boundary coordinates are the vertex coordinates stored according to the corrected key area when the projection device performs trapezoidal correction.

步骤1402,判断提取的边界坐标是否在可用周期内,若是则执行步骤1403,否则执行步骤1404;Step 1402, determine whether the extracted boundary coordinates are within the available period, if so, execute step 1403, otherwise execute step 1404;

步骤1403,读取边界坐标并裁切图像;Step 1403, read the boundary coordinates and crop the image;

如果边界坐标的存储时间在可用周期内,即投影设备刚刚做过梯形校正,则可以直接使用边界坐标裁切投影内容图像。If the storage time of the boundary coordinates is within the available period, that is, the projection device has just undergone keystone correction, the boundary coordinates can be directly used to crop the projection content image.

步骤1404,获取姿态信息并判断投影设备是否被移动,若是则执行步骤1405,否则执行1407;Step 1404, obtaining posture information and determining whether the projection device is moved, if so, executing step 1405, otherwise executing step 1407;

步骤1405,确定设备的移动距离是否处于可控区间内,若是则执行步骤1403,否则执行步骤1406;Step 1405, determining whether the moving distance of the device is within the controllable range, if so, executing step 1403, otherwise executing step 1406;

步骤1406,根据高亮区域形状裁切;Step 1406, cutting according to the shape of the highlighted area;

如果边界坐标的存储时间不在可用周期内,即投影设备在较长时间之前做过梯形校正,因此通过姿态传感器获取姿态信息,以及根据姿态信息裁切投影内容图像。If the storage time of the boundary coordinates is not within the available period, that is, the projection device has been subjected to keystone correction a long time ago, the posture information is obtained through the posture sensor, and the projection content image is cropped according to the posture information.

其中,根据姿态信息裁切投影内容图像时,投影设备可以对比当前姿态信息与梯形校正过程中存储的原始姿态信息。如果当前姿态信息与原始姿态信息的差值大于姿态检测阈值,即投影设备被较明显的移动过,则需要重新确定边界坐标,即检测投影内容图像中的高亮区域,以及根据高亮区域形状裁切投影内容图像。如果当前姿态信息与原始姿态信息的差值小于或等于姿态检测阈值,即投影设备未被较明显的移动过,则投影设备可以使用边界坐标裁切投影内容图像。Among them, when cutting the projected content image according to the posture information, the projection device can compare the current posture information with the original posture information stored in the trapezoidal correction process. If the difference between the current posture information and the original posture information is greater than the posture detection threshold, that is, the projection device has been moved more obviously, it is necessary to redetermine the boundary coordinates, that is, detect the highlight area in the projected content image, and cut the projected content image according to the shape of the highlight area. If the difference between the current posture information and the original posture information is less than or equal to the posture detection threshold, that is, the projection device has not been moved more obviously, the projection device can use the boundary coordinates to cut the projected content image.

例如,梯形校正过程中会记录在校正完成后投影区域在照片中的顶点坐标,并保存到文件中,同时将当前投射距离与顶点坐标对应保存下来。在触发自动对焦时,可以根据边界坐标的记录时间判断是否在短时间内做过梯形校正,如果是,则直接读取四点坐标获取ROI区域。如果检测到不是梯形校正后的首次对焦,则读取陀螺仪的设备移动信息,即上次梯形校正后是否检测到设备移动过。For example, during the trapezoidal correction process, the vertex coordinates of the projection area in the photo after the correction is completed will be recorded and saved to a file, and the current projection distance and vertex coordinates will be saved in correspondence. When triggering autofocus, you can determine whether trapezoidal correction has been done in a short time based on the recording time of the boundary coordinates. If so, directly read the four-point coordinates to obtain the ROI area. If it is detected that this is not the first focus after trapezoidal correction, read the device movement information of the gyroscope, that is, whether the device has been detected to have moved since the last trapezoidal correction.

步骤1407,确定当前投射距离是否处于可控区间内,若是则执行步骤1405,否则执行步骤1406。Step 1407, determine whether the current projection distance is within the controllable range, if so, execute step 1405, otherwise execute step 1406.

当投影设备未被移动过时,则检测当前投射距离,如果投射距离在可控区间内,则说明当前使用场景与之前很接近,直接读取四点坐标进行ROI区域进行图像裁切。如果检测到设备移动但在可控区间内,则再检测投射距离是不是在可控区间,若是,则读取四点坐标截取ROI区域,否则按常规方法截取ROI区域。When the projection device has not been moved, the current projection distance is detected. If the projection distance is within the controllable range, it means that the current usage scenario is very close to the previous one, and the four-point coordinates are directly read to perform image cropping in the ROI area. If the device is detected to be moved but within the controllable range, the projection distance is detected again. If so, the four-point coordinates are read to intercept the ROI area, otherwise the ROI area is intercepted in the conventional way.

在一些实施例中,投影设备还可以在自动调焦过程中,支持干扰检测,即在调整光学组件的焦距的过程中,通过距离传感器实时检测间隔变化量。如果间隔变化量超出变化量阈值,则获取投影内容图像。并基于图形特征识别算法,在投影内容图像识别干扰目标。在投影内容图像中含有干扰目标时,向驱动马达发送暂停指令,以暂停调整光学组件的焦距。In some embodiments, the projection device may also support interference detection during the automatic focusing process, that is, in the process of adjusting the focal length of the optical component, the interval change is detected in real time by the distance sensor. If the interval change exceeds the change threshold, the projection content image is acquired. And based on the graphic feature recognition algorithm, the interference target is identified in the projection content image. When the projection content image contains the interference target, a pause instruction is sent to the drive motor to pause the adjustment of the focal length of the optical component.

例如,在驱动马达驱动镜片到达指定位置后,可以控制相机700进行拍照,并将位置信息同步发送给清晰度排序单元和干扰监控单元。干扰监控单元再根据位置信息获取图片,并通过图像对比分析此过程中是否有干扰介入;如果没有,则正常执行对焦过程;如果出现干扰,则干扰监控单元通知控制器500出现干扰,并发送出现干扰的位置信息及干扰退出的信息。控制器500再根据此信息做出是否需要重新对焦的决定,以及显示提示信息,以保证最终对焦效果。For example, after the driving motor drives the lens to the specified position, the camera 700 can be controlled to take pictures, and the position information can be synchronously sent to the clarity sorting unit and the interference monitoring unit. The interference monitoring unit then obtains the picture based on the position information, and analyzes whether there is interference in the process through image comparison; if not, the focusing process is performed normally; if interference occurs, the interference monitoring unit notifies the controller 500 of the interference, and sends the location information of the interference and the information of the interference exit. The controller 500 then makes a decision on whether to refocus based on this information, and displays prompt information to ensure the final focusing effect.

图15为在一些实施例中自动调焦方法时序关系图。基于上述自动对焦方法,在本申请的一些实施例中还提供一种投影设备,包括:光机200、镜头300、距离传感器600、相机700以及控制器500,如图15所示。其中所述光机被配置为投射播放内容至投影面;FIG15 is a timing diagram of the automatic focusing method in some embodiments. Based on the above automatic focusing method, in some embodiments of the present application, a projection device is further provided, including: an optical machine 200, a lens 300, a distance sensor 600, a camera 700 and a controller 500, as shown in FIG15. The optical machine is configured to project the playback content onto the projection surface;

所述镜头300包括光学组件和驱动马达;所述驱动马达连接所述光学组件,以调整所述光学组件的焦距;所述距离传感器600被配置为检测投影面与光机之间的间隔距离;所述相机700被配置为拍摄投影内容图像;所述控制器500被配置为:The lens 300 includes an optical component and a driving motor; the driving motor is connected to the optical component to adjust the focal length of the optical component; the distance sensor 600 is configured to detect the interval distance between the projection surface and the optical machine; the camera 700 is configured to capture the projection content image; the controller 500 is configured to:

响应于自动调焦指令,获取所述间隔距离;In response to an automatic focusing instruction, acquiring the interval distance;

如果所述间隔距离小于间隔判断阈值,根据所述间隔距离计算第一调焦量,以及按照所述第一调焦量控制所述驱动马达调整所述光学组件的焦距;If the interval distance is less than the interval judgment threshold, calculating a first focus adjustment amount according to the interval distance, and controlling the driving motor to adjust the focal length of the optical component according to the first focus adjustment amount;

如果所述间隔距离大于或等于间隔判断阈值,根据所述投影内容图像的清晰度计算第二调焦量, 以及按照所述第二调焦量控制所述驱动马达调整所述光学组件的焦距。If the interval distance is greater than or equal to the interval determination threshold, a second focus adjustment amount is calculated according to the clarity of the projection content image, and the driving motor is controlled to adjust the focal length of the optical component according to the second focus adjustment amount.

上述实施例提供的投影设备可以在接收到自动调焦指令后,通过距离传感器获取光机与投影面之间的间隔距离。再根据间隔距离确定当前应用场景,如果间隔距离小于间隔判断阈值,则确定当前应用场景为近距离场景,因此可以根据间隔距离计算第一调焦量;如果间隔距离大于或等于间隔判断阈值,则确定当前应用场景为远距离场景,因此可以根据投影内容图像的清晰度计算第二调焦量,最后按照第一调焦量或第二调焦量控制驱动马达调整光学组件的焦距。所述投影设备可以根据不同的应用场景依据不同的数据进行自动调焦,可以快速将光学组件调整至最佳焦距状态,提高投影画面清晰度,并缩短调焦过程所消耗的时间。The projection device provided in the above embodiment can obtain the interval distance between the optical machine and the projection surface through the distance sensor after receiving the automatic focusing instruction. Then determine the current application scene according to the interval distance. If the interval distance is less than the interval judgment threshold, the current application scene is determined to be a close-distance scene, so the first focusing amount can be calculated according to the interval distance; if the interval distance is greater than or equal to the interval judgment threshold, the current application scene is determined to be a long-distance scene, so the second focusing amount can be calculated according to the clarity of the projected content image, and finally control the drive motor to adjust the focal length of the optical component according to the first focusing amount or the second focusing amount. The projection device can automatically focus according to different data according to different application scenarios, and can quickly adjust the optical component to the optimal focal length state, improve the clarity of the projection picture, and shorten the time consumed by the focusing process.

在一些实施例中,本申请提供的投影设备可实现防射眼功能。为防止用户偶然进入投影设备射出激光轨迹范围内而导致的视力损害危险,在用户进入投影设备所在的预设特定非安全区域时,控制器可控制用户界面显示对应的提示信息,以提醒用户离开当前区域,控制器还可控制用户界面降低显示亮度,以防止激光对用户视力造成伤害。In some embodiments, the projection device provided by the present application can realize an anti-eye-shot function. In order to prevent the user from accidentally entering the laser trajectory range of the projection device and causing the risk of visual damage, when the user enters the preset specific non-safe area where the projection device is located, the controller can control the user interface to display corresponding prompt information to remind the user to leave the current area. The controller can also control the user interface to reduce the display brightness to prevent the laser from causing damage to the user's eyesight.

在一些实施例中,投影设备被配置为儿童观影模式时,控制器将自动开启防射眼开关。In some embodiments, when the projection device is configured as a children's viewing mode, the controller will automatically turn on the anti-eye-shot switch.

在一些实施例中,控制器接收到陀螺仪传感器发送的位置移动数据后、或接收到其它传感器所采集的异物入侵数据后,控制器将控制投影设备开启防射眼开关。In some embodiments, after the controller receives the position movement data sent by the gyroscope sensor, or receives the foreign object intrusion data collected by other sensors, the controller controls the projection device to turn on the anti-eye switch.

在一些实施例中,在飞行时间(TOF)传感器、摄像头设备等设备所采集数据触发预设的任一阈值条件时,控制器将控制用户界面降低显示亮度、显示提示信息、降低光机发射功率、亮度、强度,以实现对用户视力的保护。In some embodiments, when the data collected by a time-of-flight (TOF) sensor, camera device, or other device triggers any preset threshold condition, the controller will control the user interface to reduce the display brightness, display prompt information, and reduce the optical machine transmission power, brightness, and intensity to protect the user's eyesight.

在一些实施例中,投影设备控制器可控制校正服务向飞行时间传感器发送信令,以查询投影设备当前设备状态,然后控制器接受来自飞行时间传感器的数据反馈。In some embodiments, the projection device controller may control the correction service to send a signal to the time-of-flight sensor to query the current device status of the projection device, and then the controller receives data feedback from the time-of-flight sensor.

校正服务可向进程通信框架(HSP Core)发送通知算法服务启动防射眼流程信令;进程通信框架(HSP Core)将从算法库进行服务能力调用,以调取对应算法服务,例如可包括拍照检测算法、截图画面算法、以及异物检测算法等;The correction service can send a notification to the process communication framework (HSP Core) to notify the algorithm service to start the anti-eye-shooting process signaling; the process communication framework (HSP Core) will call the service capability from the algorithm library to call the corresponding algorithm service, for example, it may include a photo detection algorithm, a screenshot algorithm, and a foreign object detection algorithm;

进程通信框架(HSP Core)基于上述算法服务返回异物检测结果至校正服务;针对返回结果,若达到预设阈值条件,控制器将控制用户界面显示提示信息、降低显示亮度,其信令时序如图16所示。The process communication framework (HSP Core) returns the foreign body detection results to the correction service based on the above algorithm service; for the returned results, if the preset threshold conditions are met, the controller will control the user interface to display prompt information and reduce the display brightness. The signaling timing is shown in Figure 16.

在一些实施例中,投影设备防射眼开关在开启状态下,用户进入预设的特定区域时,投影设备将自动降低光机发出激光强度、降低用户界面显示亮度、显示安全提示信息。In some embodiments, when the anti-eye-glare switch of the projection device is turned on, when the user enters a preset specific area, the projection device will automatically reduce the intensity of the laser emitted by the optical machine, reduce the brightness of the user interface display, and display safety prompts.

投影设备对上述防射眼功能的控制,可通过以下方法实现:The control of the above-mentioned anti-eye function of the projection device can be achieved by the following methods:

控制器基于相机获取的投影内容图像,利用边缘检测算法识别投影设备的投影区域;在投影区域显示为矩形、或类矩形时,控制器通过预设算法获取上述矩形投影区域四个顶点的坐标值;The controller uses an edge detection algorithm to identify the projection area of the projection device based on the projection content image obtained by the camera; when the projection area is displayed as a rectangle or a quasi-rectangle, the controller obtains the coordinate values of the four vertices of the above rectangular projection area through a preset algorithm;

在实现对于投影区域内的异物检测时,可使用透视变换方法校正投影区域为矩形,计算矩形和投影截图的差值,以实现判断显示区域内是否有异物;若判断结果为存在异物,投影设备自动触发防射眼功能启动。When realizing foreign object detection in the projection area, the perspective transformation method can be used to correct the projection area into a rectangle, and the difference between the rectangle and the projection screenshot can be calculated to determine whether there is a foreign object in the display area; if the judgment result is that there is a foreign object, the projection device automatically triggers the anti-shooting eye function to start.

在实现对投影区域外一定区域的异物检测时,可将当前帧的相机内容、和上一帧的相机内容做差值,以判断投影区域外区域是否有异物进入;若判断有异物进入,投影设备自动触发防射眼功能。When realizing foreign object detection in a certain area outside the projection area, the camera content of the current frame and the camera content of the previous frame can be subtracted to determine whether there is a foreign object entering the area outside the projection area; if it is determined that a foreign object has entered, the projection device automatically triggers the anti-shooting eye function.

于此同时,投影设备还可利用飞行时间(ToF)相机、或飞行时间传感器检测特定区域的实时深度变化;若深度值变化超过预设阈值,投影设备将自动触发防射眼功能。At the same time, the projection device can also use a time-of-flight (ToF) camera or a time-of-flight sensor to detect real-time depth changes in a specific area; if the depth value changes exceed a preset threshold, the projection device will automatically trigger the anti-glare function.

在一些实施例中,如图21所示,给出投影设备实现防射眼算法的流程示意图,投影设备基于采集的飞行时间数据、截图数据、以及相机数据分析判断是否需要开启防射眼功能。投影设备实现防射眼算法的方式有一下三种:In some embodiments, as shown in FIG21 , a schematic diagram of a process of implementing an anti-eye-shooting algorithm by a projection device is provided. The projection device determines whether to enable the anti-eye-shooting function based on the collected flight time data, screenshot data, and camera data analysis. There are three ways for the projection device to implement the anti-eye-shooting algorithm:

方式一:Method 1:

步骤2100-1,采集飞行时间(TOF)数据;Step 2100-1, collecting time-of-flight (TOF) data;

步骤2100-2,根据采集的飞行时间数据,做深度差值分析;Step 2100-2, performing depth difference analysis based on the collected flight time data;

步骤2100-3,判断深度差值是否大于预设阈值X,若深度差值大于预设阈值X,X实施为0时,执行步骤2103;Step 2100-3, determining whether the depth difference is greater than a preset threshold value X. If the depth difference is greater than the preset threshold value X, and X is 0, executing step 2103;

步骤2103,画面变暗,弹出提示。Step 2103, the screen becomes dark and a prompt pops up.

如果深度差值大于预设阈值X,当预设阈值X实施为0时,则可判定有异物已处于投影设备的特定区域。若用户位于所述特定区域,其视力存在被激光损害风险,投影设备将自动启动防射眼功能,以降低光机发出激光强度、降低用户界面显示亮度、并显示安全提示信息。If the depth difference is greater than a preset threshold value X, when the preset threshold value X is implemented as 0, it can be determined that a foreign object is in a specific area of the projection device. If the user is in the specific area and his vision is at risk of being damaged by the laser, the projection device will automatically activate the anti-eye function to reduce the intensity of the laser emitted by the optical machine, reduce the brightness of the user interface display, and display a safety prompt message.

方式二:Method 2:

步骤2101-1,采集截图数据;Step 2101-1, collecting screenshot data;

步骤2101-2,根据采集的截图数据做加色模式(RGB)差值分析;Step 2101-2, performing additive color mode (RGB) difference analysis based on the collected screenshot data;

步骤2101-3,判断RGB差值是否大于预设阈值Y,若RGB差值大于预设阈值Y,执行步骤2103;Step 2101-3, determine whether the RGB difference is greater than a preset threshold value Y. If the RGB difference is greater than the preset threshold value Y, execute step 2103;

步骤2103,画面变暗,弹出提示。Step 2103, the screen becomes dark and a prompt pops up.

投影设备根据已采集截图数据做加色模式(RGB)差值分析,如所述色加模式差值大于预设阈值Y,则可判定有异物已处于投影设备的特定区域;所述特定区域内若存在用户,其视力存在被激光损害风险,投影设备将自动启动防射眼功能,降低发出激光强度、降低用户界面显示亮度并显示对应的安全提示信息。The projection device performs a color addition mode (RGB) difference analysis based on the collected screenshot data. If the color addition mode difference is greater than the preset threshold Y, it can be determined that a foreign object is in a specific area of the projection device. If there is a user in the specific area, his or her eyesight is at risk of being damaged by the laser. The projection device will automatically activate the anti-eye function, reduce the intensity of the emitted laser, reduce the brightness of the user interface display, and display the corresponding safety prompt information.

方式三:Method 3:

步骤2102-1,采集相机数据;Step 2102-1, collecting camera data;

步骤2102-2,根据采集的相机数据获取投影坐标,若获取的投影坐标处于投影区域,执行步骤2101-3,若获取的投影坐标处于扩展区域,仍执行步骤2101-3;Step 2102-2, obtaining projection coordinates according to the collected camera data, if the obtained projection coordinates are in the projection area, executing step 2101-3, if the obtained projection coordinates are in the extension area, still executing step 2101-3;

步骤2102-3,根据采集的相机数据做加色模式(RGB)差值分析;Step 2102-3, performing additive color mode (RGB) difference analysis based on the collected camera data;

步骤2102-4,判断RGB差值是否大于预设阈值Y,若RGB差值大于预设阈值Y,执行步骤2103。Step 2102 - 4 , determining whether the RGB difference is greater than a preset threshold value Y. If the RGB difference is greater than the preset threshold value Y, executing step 2103 .

步骤2103,画面变暗,弹出提示。Step 2103, the screen becomes dark and a prompt pops up.

投影设备根据已采集相机数据获取投影坐标,然后根据所述投影坐标确定投影设备的投影区域,进一步在投影区域内进行加色模式(RGB)差值分析,如果色加模式差值大于预设阈值Y,则可判定有异物已处于投影设备的特定区域,所述特定区域内若存在用户,其视力存在被激光损害的风险,投影设备将自动启动防射眼功能,降低发出激光强度、降低用户界面显示亮度并显示对应的安全提示信息。The projection device obtains the projection coordinates according to the collected camera data, and then determines the projection area of the projection device according to the projection coordinates, and further performs additive color mode (RGB) difference analysis in the projection area. If the color additive mode difference is greater than the preset threshold value Y, it can be determined that a foreign object is in a specific area of the projection device. If there is a user in the specific area, his or her vision is at risk of being damaged by the laser. The projection device will automatically start the anti-eye function, reduce the intensity of the emitted laser, reduce the brightness of the user interface display, and display the corresponding safety prompt information.

若获取的投影坐标处于扩展区域,控制器仍可在所述扩展区域进行加色模式(RGB)差值分析;如果色加模式差值大于预设阈值Y,则可判定有异物已处于投影设备的特定区域,所述特定区域内若存在用户,其视力存在被投影设备发出激光损害的风险,投影设备将自动启动防射眼功能,降低发出激光强度、降低用户界面显示亮度并显示对应的安全提示信息。If the acquired projection coordinates are in the extended area, the controller can still perform additive color mode (RGB) difference analysis in the extended area; if the color additive mode difference is greater than the preset threshold value Y, it can be determined that a foreign object is in a specific area of the projection device. If there is a user in the specific area, his eyesight is at risk of being damaged by the laser emitted by the projection device. The projection device will automatically activate the anti-eye function, reduce the intensity of the emitted laser, reduce the brightness of the user interface display, and display corresponding safety prompt information.

图17为本申请另一实施例投影设备实现显示画面校正功能的信令交互时序示意图。FIG. 17 is a schematic diagram of the signaling interaction timing of a projection device implementing a display picture correction function according to another embodiment of the present application.

在一些实施例中,通常情况下,投影设备可通过陀螺仪、或陀螺仪传感器对设备移动进行监测。校正服务向陀螺仪发出用于查询设备状态的信令,并接收陀螺仪反馈用于判定设备是否发生移动的信令。In some embodiments, the projection device can monitor the movement of the device through a gyroscope or a gyroscope sensor. The calibration service sends a signal to the gyroscope to query the device status and receives a signal from the gyroscope to determine whether the device has moved.

在一些实施例中,投影设备的显示校正策略可配置为,在陀螺仪、飞行时间传感器同时发生变化时,投影设备优先触发梯形校正;在陀螺仪数据稳定预设时间长度后,控制器启动触发梯形校正;并且控制器还可将投影设备配置为在梯形校正进行时不响应遥控器按键发出的指令;为了配合梯形校正的实现,投影设备将打出纯白图卡。In some embodiments, the display correction strategy of the projection device can be configured as follows: when changes occur in the gyroscope and the time-of-flight sensor at the same time, the projection device prioritizes triggering trapezoidal correction; after the gyroscope data is stable for a preset length of time, the controller starts triggering the trapezoidal correction; and the controller can also configure the projection device to not respond to instructions issued by the remote control buttons while trapezoidal correction is in progress; in order to cooperate with the implementation of trapezoidal correction, the projection device will display a pure white picture card.

其中,梯形校正算法可基于双目相机构建世界坐标系下的投影面与光机坐标系转换矩阵;进一步结合光机内参计算投影画面与播放图卡的单应性,并利用该单应性实现投影画面与播放图卡间的任意形状转换。Among them, the trapezoidal correction algorithm can construct the transformation matrix between the projection surface and the optomechanical coordinate system in the world coordinate system based on the binocular camera; further combine the optomechanical internal parameters to calculate the homography between the projection screen and the playback card, and use the homography to realize arbitrary shape transformation between the projection screen and the playback card.

在一些实施例中,校正服务发送用于通知算法服务启动梯形校正流程的信令至进程通信框架(HSP CORE),所述进程通信框架进一步发送服务能力调用信令至算法服务,以获取能力对应的算法;In some embodiments, the correction service sends a signaling to the process communication framework (HSP CORE) for notifying the algorithm service to start the trapezoidal correction process, and the process communication framework further sends a service capability call signaling to the algorithm service to obtain the algorithm corresponding to the capability;

算法服务获取执行拍照和画面算法处理服务、避障算法服务,并将其以信令携带的方式发送至进程通信框架;在一些实施例中,进程通信框架执行上述算法,并将执行结果反馈给校正服务,所述执行结果可包括拍照成功、以及避障成功。The algorithm service obtains the execution of the photo taking and image algorithm processing service, and the obstacle avoidance algorithm service, and sends them to the process communication framework in the form of signaling; in some embodiments, the process communication framework executes the above algorithm and feeds back the execution result to the correction service, and the execution result may include successful photo taking and successful obstacle avoidance.

在一些实施例中,投影设备执行上述算法、或数据传送过程中,若出现错误校正服务将控制用户界面显示出错返回提示,并控制用户界面再次打出梯形校正、自动对焦图卡。In some embodiments, when the projection device executes the above algorithm or transmits data, if an error occurs, the correction service will control the user interface to display an error return prompt, and control the user interface to display the keystone correction and autofocus chart again.

通过自动避障算法,投影设备可识别幕布;并利用投影变化,将投影画面校正至幕布内显示,实现与幕布边沿对齐的效果。Through the automatic obstacle avoidance algorithm, the projection device can identify the screen; and use the projection changes to correct the projected image to display inside the screen, achieving the effect of alignment with the edge of the screen.

通过自动对焦算法,投影设备可利用飞行时间(ToF)传感器获取光机与投影面距离,基于所述距离在预设的映射表中查找最佳像距,并利用图像算法评价投影画面清晰程度,以此为依据实现微调像距。Through the autofocus algorithm, the projection device can use the time-of-flight (ToF) sensor to obtain the distance between the optical machine and the projection surface, search for the optimal image distance in a preset mapping table based on the distance, and use the image algorithm to evaluate the clarity of the projected picture, thereby fine-tuning the image distance.

在一些实施例中,校正服务发送至进程通信框架的自动梯形校正信令可包含其他功能配置指令,例如可包含是否实现同步避障、是否入幕等控制指令。In some embodiments, the automatic trapezoidal correction signaling sent by the correction service to the process communication framework may include other function configuration instructions, such as control instructions such as whether to implement synchronous obstacle avoidance and whether to enter the screen.

进程通信框架发送服务能力调用信令至算法服务,使算法服务获取执行自动对焦算法,实现调节设备与幕布之间的视距;在一些实施例中,在应用自动对焦算法实现对应功能后,算法服务还可获取执行自动入幕算法,所述过程中可包含梯形校正算法。The process communication framework sends a service capability call signal to the algorithm service, so that the algorithm service obtains and executes the autofocus algorithm to adjust the viewing distance between the device and the screen. In some embodiments, after applying the autofocus algorithm to implement the corresponding function, the algorithm service can also obtain and execute the automatic screen entry algorithm, and the process may include a trapezoidal correction algorithm.

在一些实施例中,投影设备通过执行自动入幕,算法服务可设置投影设备与幕布之间的8位置坐标;然后再次通过自动对焦算法,实现投影设备与幕布的视距调节;最终,将校正结果反馈至校正服务,并控制用户界面显示校正结果,如图17所示。In some embodiments, the projection device automatically enters the screen, and the algorithm service can set the 8-position coordinates between the projection device and the screen; then the autofocus algorithm is used again to adjust the viewing distance between the projection device and the screen; finally, the correction result is fed back to the correction service, and the user interface is controlled to display the correction result, as shown in Figure 17.

在一些实施例中,投影设备通过自动对焦算法,利用其配置的激光测距可获得当前物距,以计算初始焦距、及搜索范围;然后投影设备驱动相机(Camera)进行拍照,并利用对应算法进行清晰度评价。In some embodiments, the projection device uses an autofocus algorithm and its configured laser ranging to obtain the current object distance to calculate the initial focal length and the search range; then the projection device drives the camera to take pictures and uses the corresponding algorithm to evaluate the clarity.

投影设备在上述搜索范围内,基于搜索算法查找可能的最佳焦距,然后重复上述拍照、清晰度评价步骤,最终通过清晰度对比找到最优焦距,完成自动对焦。The projection device searches for the best possible focal length within the above search range based on the search algorithm, and then repeats the above steps of taking pictures and evaluating clarity, and finally finds the optimal focal length through clarity comparison to complete automatic focusing.

例如,在投影设备启动后,实现自动对焦算法的步骤如图18所示,包括以下步骤:For example, after the projection device is started, the steps of implementing the auto-focus algorithm are shown in FIG. 18 , including the following steps:

步骤1801,用户移动设备,投影设备自动完成校正后重新对焦;Step 1801: The user moves the device, and the projection device automatically completes the calibration and refocuses;

步骤1802,控制器将检测自动对焦功能是否开启,若否则控制器将结束自动对焦业务,是则执行步骤1803;Step 1802, the controller will detect whether the auto focus function is turned on, if not, the controller will end the auto focus service, if yes, then execute step 1803;

步骤1803,中间件获取飞行时间(TOF)的检测距离;Step 1803, the middleware obtains the detection distance of the time of flight (TOF);

当自动对焦功能开启时,投影设备将通过中间件获取飞行时间(TOF)传感器的检测距离进行计算。When the autofocus function is turned on, the projection device will obtain the detection distance of the time-of-flight (TOF) sensor through the middleware for calculation.

步骤1804,根据距离查询映射表获取大致焦距;Step 1804, obtaining an approximate focal length by querying a mapping table according to the distance;

步骤1805,中间件设置该焦距给光机;Step 1805, the middleware sets the focal length to the optical engine;

控制器根据获取的距离查询预设的映射表,以获取投影设备的大致焦距;然后中间件将获取焦距设置到投影设备的光机。The controller queries a preset mapping table according to the acquired distance to obtain the approximate focal length of the projection device; then the middleware sets the acquired focal length to the optical machine of the projection device.

步骤1806,摄像头拍照;Step 1806, the camera takes a photo;

步骤1807,根据评价函数,判断对焦是否完成,若是则结束自动对焦流程,否则执行步骤1808;Step 1807, judging whether the focusing is completed according to the evaluation function, if so, the automatic focusing process ends, otherwise, executing step 1808;

步骤1808,中间件微调焦距(步长),再次执行步骤1805。Step 1808, the middleware fine-tunes the focal length (step length) and executes step 1805 again.

光机以上述焦距进行发出激光后,摄像头将执行拍照指令;控制器根据获取的拍照结果、评价函数,判断投影设备对焦是否完成;如果判定结果符合预设完成条件,则控制自动对焦流程结束;After the optical machine emits laser light at the above focal length, the camera will execute the photo command; the controller determines whether the focus of the projection device is completed based on the obtained photo results and the evaluation function; if the judgment result meets the preset completion condition, the automatic focus process is controlled to end;

如果判定结果不符合预设完成条件,中间件将微调投影设备光机的焦距参数,例如可以预设步长逐渐微调焦距,并将调整的焦距参数再次设置到光机;从而实现反复拍照、清晰度评价步骤,最终通过清晰度对比找到最优焦距完成自动对焦。If the judgment result does not meet the preset completion conditions, the middleware will fine-tune the focal length parameters of the projection equipment optical machine. For example, the focal length can be gradually fine-tuned by preset steps, and the adjusted focal length parameters can be set to the optical machine again; thereby achieving repeated photo taking and clarity evaluation steps, and finally finding the optimal focal length through clarity comparison to complete automatic focus.

在一些实施例中,本申请提供的投影设备可通过梯形校正算法实现显示校正功能。In some embodiments, the projection device provided in the present application can implement a display correction function through a trapezoidal correction algorithm.

首先基于标定算法,可获取两相机之间、相机与光机之间的两组外参,即旋转、平移矩阵;然后通过投影设备的光机播放特定棋盘格图卡,并计算投影棋盘格角点深度值,例如通过双目相机之间的平移关系、及相似三角形原理求解xyz坐标值;之后再基于所述xyz拟合出投影面、并求得其与相机坐标系的旋转关系与平移关系,具体可包括俯仰关系(Pitch)和偏航关系(Yaw)。First, based on the calibration algorithm, two sets of external parameters between the two cameras and between the camera and the optical machine, namely the rotation and translation matrices, can be obtained; then, a specific chessboard image card is played through the optical machine of the projection device, and the depth value of the projected chessboard corner point is calculated, for example, the xyz coordinate value is solved through the translation relationship between the binocular cameras and the principle of similar triangles; then, the projection surface is fitted based on the xyz, and its rotation and translation relationships with the camera coordinate system are obtained, which may specifically include the pitch relationship (Pitch) and the yaw relationship (Yaw).

通过投影设备配置的陀螺仪可得到卷(Roll)参数值,以组合出完整旋转矩阵,最终计算求得世界坐标系下投影面到光机坐标系的外参。The roll parameter value can be obtained through the gyroscope configured in the projection device to combine the complete rotation matrix, and finally the external parameters of the projection surface to the optomechanical coordinate system in the world coordinate system are calculated.

结合上述步骤中计算获取的相机与光机的R、T值,可以得出投影面世界坐标系与光机坐标系的转换关系;结合光机内参,可以组成投影面的点到光机图卡点的单应性矩阵。Combining the R and T values of the camera and optomechanical machine obtained in the above steps, the transformation relationship between the world coordinate system of the projection surface and the optomechanical coordinate system can be obtained; combined with the optomechanical internal parameters, the homography matrix from the point of the projection surface to the optomechanical map point can be formed.

最终在投影面选择矩形,利用单应性反求光机图卡对应的坐标,该坐标就是校正坐标,将其设置到光机,即可实现梯形校正。Finally, a rectangle is selected on the projection surface, and the coordinates corresponding to the optical machine chart are inverted using homography. These coordinates are the correction coordinates, and by setting them to the optical machine, trapezoidal correction can be achieved.

如图19所示,给出投影设备实现梯形校正、避障算法的流程示意图,包括以下步骤:As shown in FIG19 , a schematic diagram of a process for implementing a trapezoidal correction and obstacle avoidance algorithm for a projection device is provided, including the following steps:

步骤1901,投影设备控制器获取照片像素点对应点的深度值,或投影点在相机坐标系下的坐标;Step 1901, the projection device controller obtains the depth value of the point corresponding to the pixel point of the photo, or the coordinates of the projection point in the camera coordinate system;

步骤1902,通过深度值,中间件获取光机坐标系与相机坐标系关系;Step 1902, the middleware obtains the relationship between the optical-mechanical coordinate system and the camera coordinate system through the depth value;

步骤1903,然后控制器计算得到投影点在光机坐标系下的坐标值;Step 1903, the controller then calculates the coordinate value of the projection point in the optical-mechanical coordinate system;

步骤1904,基于坐标值拟合平面获取投影面与光机的夹角;Step 1904, fitting the plane based on the coordinate values to obtain the angle between the projection plane and the optical machine;

步骤1905,根据夹角关系获取投影点在投影面的世界坐标系中的对应坐标;Step 1905, obtaining the corresponding coordinates of the projection point in the world coordinate system of the projection surface according to the angle relationship;

步骤1906,根据图卡在光机坐标系下的坐标与投影平面投影面对应点的坐标,可计算得到单应性矩阵;Step 1906, a homography matrix may be calculated based on the coordinates of the chart in the optical-mechanical coordinate system and the coordinates of the corresponding points on the projection plane;

步骤1907,控制器基于上述已获取数据判定障碍物是否存在,若是执行步骤1908,否则执行步骤1909;Step 1907, the controller determines whether there is an obstacle based on the acquired data, and if so, executes step 1908, otherwise, executes step 1909;

步骤1908,在世界坐标系下的投影面上任取矩形坐标,根据单应性关系计算出光机要投射的区域;Step 1908, randomly select rectangular coordinates on the projection surface in the world coordinate system, and calculate the area to be projected by the optical machine according to the homography relationship;

步骤1909,障碍物不存在时,控制器可获取二维码特征点;Step 1909, when there is no obstacle, the controller can obtain the QR code feature points;

步骤1910,获取二维码在预制图卡的坐标;Step 1910, obtaining the coordinates of the QR code on the pre-made map card;

步骤1911,获取相机照片与图纸图卡单应性关系;Step 1911, obtaining the homography relationship between the camera photo and the drawing card;

步骤1912,将获取的障碍物坐标转换到图卡中,获取障碍物遮挡图卡坐标;Step 1912, converting the obtained obstacle coordinates into a map card to obtain the obstacle occlusion map card coordinates;

步骤1913,依据障碍物图卡遮挡区域在光机坐标系下坐标,通过单应性矩阵转换得到投影面的遮挡区域坐标;Step 1913, according to the coordinates of the blocked area of the obstacle map in the optical-mechanical coordinate system, the coordinates of the blocked area of the projection surface are obtained by homography matrix transformation;

步骤1914,在世界坐标系下投影面上任取矩形坐标,同时避开障碍物,根据单应性关系求出光机要投射的区域。Step 1914, randomly select rectangular coordinates on the projection surface in the world coordinate system while avoiding obstacles, and calculate the area to be projected by the optical machine based on the homography relationship.

可以理解,避障算法在梯形校正算法流程选择矩形步骤时,利用算法(OpenCV)库完成异物轮廓提取,选择矩形时避开该障碍物,以实现投影避障功能。It can be understood that when the obstacle avoidance algorithm selects the rectangle step in the trapezoidal correction algorithm process, the algorithm (OpenCV) library is used to complete the foreign body contour extraction, and the obstacle is avoided when the rectangle is selected to realize the projection obstacle avoidance function.

在一些实施例中,如图20所示,为投影设备实现入幕算法的流程示意图,包括以下步骤:In some embodiments, as shown in FIG. 20 , a flowchart of implementing an entry algorithm for a projection device includes the following steps:

步骤2001,中间件获取相机拍到的二维码图卡;Step 2001, the middleware obtains the QR code card captured by the camera;

步骤2002,识别二维码特征点,获取在相机坐标系下的坐标;Step 2002, identifying the feature points of the QR code and obtaining the coordinates in the camera coordinate system;

步骤2003,控制器进一步获取预置图卡在光机坐标系下的坐标;Step 2003, the controller further obtains the coordinates of the preset image card in the optical-mechanical coordinate system;

步骤2004,求解相机平面与光机平面的单应性关系;Step 2004, solving the homography relationship between the camera plane and the optomechanical plane;

步骤2005,控制器基于上述单应性关系,识别相机拍到的幕布四个顶点坐标;Step 2005, the controller identifies the coordinates of the four vertices of the curtain captured by the camera based on the homography relationship;

步骤2006,根据单应性矩阵获取投影到幕布光机要投射图卡的范围。Step 2006, obtaining the range of the image card to be projected onto the screen light machine according to the homography matrix.

可以理解,在一些实施例中,入幕算法基于算法库(OpenCV),可识别最大黑色闭合矩形轮廓并提取,判断是否为16:9尺寸;投影特定图卡并使用相机拍摄照片,提取照片中多个角点用于计算投影面(幕布)与光机播放图卡的单应性,将幕布四顶点通过单应性转换至光机像素坐标系,将光机图卡转换至幕布四顶点即可完成计算比对。It can be understood that in some embodiments, the screen entry algorithm is based on the algorithm library (OpenCV), which can identify and extract the largest black closed rectangular outline to determine whether it is a 16:9 size; project a specific image card and use a camera to take a photo, extract multiple corner points in the photo to calculate the homography of the projection surface (screen) and the optical machine playback image card, convert the four vertices of the screen to the optical machine pixel coordinate system through the homography, and convert the optical machine image card to the four vertices of the screen to complete the calculation and comparison.

长焦微投电视具有灵活移动的特点,每次位移后投影画面可能会出现失真,另外如投影面存在异物遮挡、或投影画面从幕布异常时,本申请提供的投影设备、以及基于几何校正的显示控制方法,可针对上述问题自动完成校正,包括实现自动梯形校正、自动入幕、自动避障、自动对焦、防射眼等功能的。The telephoto micro-projector TV has the characteristic of flexible movement. The projected image may be distorted after each displacement. In addition, if there are foreign objects blocking the projection surface or the projection image is abnormal from the screen, the projection device provided in this application and the display control method based on geometric correction can automatically complete the correction for the above problems, including automatic trapezoidal correction, automatic screen entry, automatic obstacle avoidance, automatic focus, anti-eye shooting and other functions.

本申请的一些实施例中提供的显示控制方法,还可以用于自动调节屏幕亮度,所述自动调节亮度的方法可以应用于投影设备,并且为了满足该自动调节亮度方法的实施,本申请提供一种自动调节屏幕亮度的投影设备,包括投影屏幕1和用于投影的装置2,所述用于投影的装置2包括控制器500;The display control method provided in some embodiments of the present application can also be used to automatically adjust screen brightness. The method for automatically adjusting brightness can be applied to a projection device. In order to meet the implementation of the method for automatically adjusting brightness, the present application provides a projection device for automatically adjusting screen brightness, including a projection screen 1 and a device for projection 2, wherein the device for projection 2 includes a controller 500;

所述控制器500,被配置为:确定多个屏幕分区,并获取各个屏幕分区在目标时长内的灰阶参数;The controller 500 is configured to: determine a plurality of screen partitions, and obtain a grayscale parameter of each screen partition within a target time length;

根据各个屏幕分区的灰阶参数,从多个屏幕分区中确定目标屏幕分区,目标屏幕分区为在目标时长内灰阶参数处于目标灰阶范围的屏幕分区;Determine a target screen partition from the plurality of screen partitions according to the grayscale parameters of each screen partition, the target screen partition being a screen partition whose grayscale parameters are within a target grayscale range within a target time length;

根据目标屏幕分区的灰阶参数,确定目标白平衡参数;Determine the target white balance parameters according to the grayscale parameters of the target screen partition;

基于屏幕的白平衡参数,调节屏幕亮度。Adjust the screen brightness based on the screen's white balance parameters.

上述投影屏幕1,通过对屏幕进行分区来实现亮度的调节,提升了屏幕亮度调节的效率,并且对目标时长内屏幕的亮度进行监控实现及时调节亮度,从而防止投影屏幕1出现烧屏现象,提升了画面的显示效果。The above-mentioned projection screen 1 realizes brightness adjustment by partitioning the screen, thereby improving the efficiency of screen brightness adjustment, and monitors the brightness of the screen within the target time to realize timely brightness adjustment, thereby preventing the projection screen 1 from burning in and improving the display effect of the picture.

一些实施例中,投影屏幕1还包括环境光传感器,环境光传感器被配置为:检测环境光参数;In some embodiments, the projection screen 1 further comprises an ambient light sensor, and the ambient light sensor is configured to: detect ambient light parameters;

控制器500,被配置为:获取环境光传感器检测的环境光参数;The controller 500 is configured to: obtain ambient light parameters detected by the ambient light sensor;

根据目标屏幕分区的灰阶参数以及环境光参数,确定目标白平衡参数。The target white balance parameters are determined according to the grayscale parameters of the target screen partition and the ambient light parameters.

上述投影屏幕1考虑到环境光影响,需要在环境光变化的情况下,及时调整屏幕亮度,以适应当前环境,实现了在较亮环境下保证屏幕可视的同时,降低屏幕亮度防止屏幕出现烧屏现象。The projection screen 1 takes into account the influence of ambient light and needs to adjust the screen brightness in time when the ambient light changes to adapt to the current environment, thereby ensuring that the screen is visible in a brighter environment while reducing the screen brightness to prevent screen burn-in.

如图22所示,图22为本申请实施例提供的一种屏幕亮度调节方法的应用场景示意图一,图22中包括投影屏幕1。为便于说明,图中投影屏幕1上显示调整白平衡参数的亮度控件204,亮度控件204用于展示当前屏幕的亮度,也即白平衡参数。图22中(a)对应的投影屏幕1的白平衡参数为80%,表示屏幕亮度处于高亮度状态,长时间处于高亮状态会损伤屏幕,因此要降低亮度。本公开通过将投影屏幕1的屏幕进行划分得到多个屏幕分区,获取各个屏幕分区在目标时长内的灰阶参数,然后根据各个屏幕分区的灰阶参数从多个屏幕分区中确定目标屏幕分区,目标屏幕分区是目标时长内灰阶参数持续处于目标灰阶范围的屏幕分区;进一步的,根据目标屏幕分区对应的灰阶参数确定目标白平衡参数,最后根据该白平衡参数调节屏幕亮度。如图22中(b)白平衡参数由80%调整至60%,则当前屏幕的亮度处于安全状态,实现了对屏幕亮度的降低。通过对屏幕进行分区来实现亮度的调节,提升了屏幕亮度调节的效率,并且对目标时长内屏幕的亮度进行监控实现及时调节亮度,从而防止投影屏幕1出现烧屏现象,提升了画面的显示效果。As shown in FIG. 22, FIG. 22 is a schematic diagram of an application scenario of a screen brightness adjustment method provided by an embodiment of the present application, and FIG. 22 includes a projection screen 1. For ease of explanation, a brightness control 204 for adjusting white balance parameters is displayed on the projection screen 1 in the figure, and the brightness control 204 is used to display the brightness of the current screen, that is, the white balance parameter. The white balance parameter of the projection screen 1 corresponding to (a) in FIG. 22 is 80%, indicating that the screen brightness is in a high brightness state. Being in a high brightness state for a long time will damage the screen, so the brightness needs to be reduced. The present disclosure divides the screen of the projection screen 1 into multiple screen partitions, obtains the grayscale parameters of each screen partition within a target duration, and then determines the target screen partition from the multiple screen partitions according to the grayscale parameters of each screen partition. The target screen partition is a screen partition whose grayscale parameters are continuously in the target grayscale range within the target duration; further, the target white balance parameter is determined according to the grayscale parameter corresponding to the target screen partition, and finally the screen brightness is adjusted according to the white balance parameter. As shown in FIG. 22 (b), the white balance parameter is adjusted from 80% to 60%, then the brightness of the current screen is in a safe state, and the screen brightness is reduced. The brightness is adjusted by partitioning the screen, which improves the efficiency of screen brightness adjustment. The brightness of the screen within the target time is monitored to adjust the brightness in time, thereby preventing the projection screen 1 from burning in and improving the display effect of the picture.

如图23所示,图23为本申请实施例提供的一种屏幕亮度调节方法的应用场景示意图二,图23中包括投影屏幕1。为便于说明,图中投影屏幕1上显示调整白平衡参数的控件204,亮度控件用于展示当前屏幕的亮度,也即白平衡参数。图22中(a)对应的投影屏幕1的白平衡参数为40%,表示屏幕亮度处于低亮度状态,检测屏幕的历史白平衡参数,确定历史白平衡参数为60%。本公开通过将投影屏幕1的屏幕进行划分得到多个屏幕分区,获取各个屏幕分区在目标时长内的灰阶参数,然后根据各个屏幕分区的灰阶参数从多个屏幕分区中确定目标屏幕分区,目标屏幕分区是目标时长内灰阶参数持续处于目标灰阶范围的屏幕分区;进一步的,根据目标屏幕分区对应的灰阶参数确定目标白平衡参数,最后根据该白平衡参数调节屏幕亮度。如图22中(b)白平衡参数由40%调整至60%,则当前屏幕的亮度处于安全状态,并且实现了提高了屏幕亮度,保障了用户的良好观看体验。通过对屏幕进行分区来实现亮度的调节,提升了屏幕亮度调节的效率,并且对目标时长内屏幕的亮度进行监控实现及时调节亮度,从而防止投影屏幕1出现烧屏现象,提升了画面的显示效果。As shown in FIG. 23 , FIG. 23 is a schematic diagram of an application scenario of a screen brightness adjustment method provided by an embodiment of the present application, and FIG. 23 includes a projection screen 1. For ease of explanation, a control 204 for adjusting white balance parameters is displayed on the projection screen 1 in the figure, and the brightness control is used to display the brightness of the current screen, that is, the white balance parameter. The white balance parameter of the projection screen 1 corresponding to (a) in FIG. 22 is 40%, indicating that the screen brightness is in a low brightness state, and the historical white balance parameter of the screen is detected to determine that the historical white balance parameter is 60%. The present disclosure divides the screen of the projection screen 1 into multiple screen partitions, obtains the grayscale parameters of each screen partition within a target duration, and then determines the target screen partition from the multiple screen partitions according to the grayscale parameters of each screen partition. The target screen partition is a screen partition whose grayscale parameters are continuously in the target grayscale range within the target duration; further, the target white balance parameter is determined according to the grayscale parameter corresponding to the target screen partition, and finally the screen brightness is adjusted according to the white balance parameter. As shown in Figure 22 (b), the white balance parameter is adjusted from 40% to 60%, and the current screen brightness is in a safe state, and the screen brightness is improved, ensuring a good viewing experience for users. The brightness is adjusted by partitioning the screen, which improves the efficiency of screen brightness adjustment, and the brightness of the screen is monitored within the target time to adjust the brightness in time, thereby preventing the projection screen 1 from burning in and improving the display effect of the picture.

需要说明的是,本公开提供的一种屏幕亮度调节方法可以是无感调节,即投影屏幕1上不显示调整白平衡参数的控件204,亮度的变化在投影设备的后台处理。后续为便于说明调节亮度的结果,仍利用亮度控件进行阐述。It should be noted that the screen brightness adjustment method provided by the present disclosure can be a non-sensing adjustment, that is, the control 204 for adjusting the white balance parameter is not displayed on the projection screen 1, and the brightness change is processed in the background of the projection device. In order to facilitate the description of the result of adjusting the brightness, the brightness control is still used for explanation.

本申请实施例中提供的显示控制方法,用于实现屏幕亮度调节时,可以通过计算机设备实现,计算机设备包括但不限于服务器、个人电脑、笔记本电脑、平板电脑、智能电视、车载设备等。The display control method provided in the embodiment of the present application can be implemented by a computer device when used to implement screen brightness adjustment. The computer device includes but is not limited to a server, a personal computer, a laptop computer, a tablet computer, a smart TV, a vehicle-mounted device, etc.

如图24所示,图24为本申请实施例提供的一种屏幕亮度调节方法的流程示意图,该方法可以由屏幕亮度调节装置执行,其中该装置可以采用软件和/或硬件实现,一般可集成在电子设备中,例如上述投影设备。如图24所示,该方法主要包括如下步骤2401~2404:As shown in FIG. 24 , FIG. 24 is a flow chart of a screen brightness adjustment method provided in an embodiment of the present application. The method can be performed by a screen brightness adjustment device, wherein the device can be implemented by software and/or hardware and can generally be integrated in an electronic device, such as the above-mentioned projection device. As shown in FIG. 24 , the method mainly includes the following steps 2401 to 2404:

步骤2401,确定多个屏幕分区,并获取各个屏幕分区在目标时长内的灰阶参数。Step 2401, determine a plurality of screen partitions, and obtain the grayscale parameters of each screen partition within a target time length.

其中,灰阶参数为各个屏幕分区的像素点的平均灰阶值,或所有像素点中的最大灰阶值,或所有像素点的均方灰阶值。在本申请实施例中,计算平均灰阶值的方式较取最大值的方式具有更好的抗干扰性,比均方根的方式具有更高的效率,在一些实施例中,选择利用计算平均灰阶值的方式。可以理解的是,灰阶参数是本领域技术人员所知晓的灰阶,灰阶是将最亮与最暗之间的亮度变化,区分为若干份,以便于进行信号输入相对应的屏幕亮度管控。Among them, the grayscale parameter is the average grayscale value of the pixels of each screen partition, or the maximum grayscale value of all pixels, or the mean square grayscale value of all pixels. In the embodiment of the present application, the method of calculating the average grayscale value has better anti-interference than the method of taking the maximum value, and has higher efficiency than the root mean square method. In some embodiments, the method of calculating the average grayscale value is selected. It can be understood that the grayscale parameter is the grayscale known to those skilled in the art. The grayscale is to divide the brightness change between the brightest and the darkest into several parts to facilitate the screen brightness control corresponding to the signal input.

目标时长根据多个屏幕分区的待显示内容的类型确定,待显示内容的类型不同则目标时长不同。待显示内容的类型是指亮度动态范围,亮度动态范围包括但不限于:标准动态范围(Standard Dynamic Range,SDR)、高动态范围(High-Dynamic Range,HDR)。举例来说,待显示内容的类型为SDR,则目标时长为5分钟;待显示内容的类型为HDR,则目标时长为1分钟。上述针对目标时长所设置的数值仅为示例性说明,本公开对此不作限制。The target duration is determined according to the type of content to be displayed in multiple screen partitions, and the target duration is different for different types of content to be displayed. The type of content to be displayed refers to the brightness dynamic range, which includes but is not limited to: standard dynamic range (Standard Dynamic Range, SDR), high dynamic range (High-Dynamic Range, HDR). For example, if the type of content to be displayed is SDR, the target duration is 5 minutes; if the type of content to be displayed is HDR, the target duration is 1 minute. The above-mentioned values set for the target duration are only exemplary, and the present disclosure does not limit this.

本申请实施例中提供一种实施方式,根据预设时间检测多个屏幕分区的灰阶参数,在次数达到预设阈值的情况下,得到多个屏幕分区在目标时长内的灰阶参数。An implementation method is provided in an embodiment of the present application, which detects grayscale parameters of multiple screen partitions according to a preset time, and obtains grayscale parameters of the multiple screen partitions within a target time length when the number reaches a preset threshold.

预设时间为5s,预设阈值为60,则目标时长为5分钟。5s一次检测多个屏幕分区的灰阶参数,直至检测次数达到60次,则得到5分钟内多个屏幕分区的灰机参数。The preset time is 5s, the preset threshold is 60, and the target duration is 5 minutes. The grayscale parameters of multiple screen partitions are detected once every 5s until the number of detections reaches 60 times, and the grayscale parameters of multiple screen partitions within 5 minutes are obtained.

其中,SDR图像不具有更全面的细节,不具备更宽的色彩范围。图像曝光过度,图像较亮部分的信息将丢失;同样,当图像曝光不足时,图像较暗部分的信息也会丢失。HDR可以提供更多的色彩范围和图像细节,提高图像明暗对比度,所见即所得,极大还原真实环境,呈现极高的图像品质。针对不同的亮度动态范围设置不同的目标时长能够更加准确地检测出处于高亮度的,易出现烧屏现象的屏幕分区。Among them, SDR images do not have more comprehensive details and do not have a wider color range. When the image is overexposed, the information of the brighter part of the image will be lost; similarly, when the image is underexposed, the information of the darker part of the image will also be lost. HDR can provide more color range and image details, improve the image contrast, what you see is what you get, greatly restore the real environment, and present extremely high image quality. Setting different target durations for different brightness dynamic ranges can more accurately detect screen partitions that are at high brightness and prone to burn-in.

下述将对多个屏幕分区的确定过程进行说明:The following describes the process of determining multiple screen partitions:

如图25所示,图25为本申请实施例提供的多个屏幕分区的示意图一,屏幕划分为3行3列得到9个屏幕分区,分别为S1、S2、S3、S4、S5、S6、S7、S8、S9。As shown in Figure 25, Figure 25 is a schematic diagram of multiple screen partitions provided in an embodiment of the present application. The screen is divided into 3 rows and 3 columns to obtain 9 screen partitions, namely S1, S2, S3, S4, S5, S6, S7, S8, and S9.

如图26所示,图26为本申请实施例提供的多个屏幕分区的示意图二,本申请实施例中提供另一种实施方式,首先确定屏幕的中心区域,再将中心以外的区域进行划分,确定多个屏幕分区。图26中首先确定中心区域C1,再将中心区域C1以外的区域进行划分得到C2、C3、C4、C5,则确定了5个屏幕分区:C1、C2、C3、C4、C5。需要强调的是,本公开对屏幕的划分方式不做具体限制,上述图25、图26仅为示例性说明。As shown in Figure 26, Figure 26 is a second schematic diagram of multiple screen partitions provided in an embodiment of the present application. Another implementation method is provided in an embodiment of the present application. First, the central area of the screen is determined, and then the area outside the center is divided to determine multiple screen partitions. In Figure 26, the central area C1 is first determined, and then the area outside the central area C1 is divided into C2, C3, C4, and C5, and 5 screen partitions are determined: C1, C2, C3, C4, and C5. It should be emphasized that the present disclosure does not make specific restrictions on the way of dividing the screen, and the above Figures 25 and 26 are only exemplary.

一些实施例中,投影设备可根据用户的输入,确定多个屏幕分区,从而满足用户的多元化需求。本申请实施例中提供一种实施方式,首先获取用户输入的参数,该参数可以是屏幕分区的数量,还可以是各个屏幕分区的面积值。然后根据用户输入的参数确定多个屏幕分区,举例来说,投影屏幕1的分辨率为3840×2160,获取到的用户输入的参数是屏幕分区的数量:2304,则确定2304个屏幕分区,又比如用户输入的参数为各个屏幕分区的面积值:64×36,则确定2304个屏幕分区。In some embodiments, the projection device can determine multiple screen partitions based on user input to meet the diverse needs of users. An implementation method is provided in an embodiment of the present application. First, a parameter input by the user is obtained. The parameter can be the number of screen partitions or the area value of each screen partition. Then, multiple screen partitions are determined based on the parameters input by the user. For example, the resolution of projection screen 1 is 3840×2160, and the parameter input by the user is the number of screen partitions: 2304, then 2304 screen partitions are determined. For another example, the parameter input by the user is the area value of each screen partition: 64×36, then 2304 screen partitions are determined.

一些实施例中,在确定多个屏幕分区之后,获取各个屏幕分区在目标时长内的灰阶参数。各个屏幕分区中包含一定数量的像素点,将屏幕分区作为整体进行计算,避免一次性计算大量像素点的灰阶参数,减少了投影设备控制器的处理负担。本申请实施例中提供一种实施方式,首先获取每个屏幕分区中所有像素点的灰阶参数,然后进行平均,得到每个屏幕分区的灰阶参数。In some embodiments, after determining multiple screen partitions, the grayscale parameters of each screen partition within the target duration are obtained. Each screen partition contains a certain number of pixels, and the screen partition is calculated as a whole to avoid calculating the grayscale parameters of a large number of pixels at one time, thereby reducing the processing burden of the projection device controller. An implementation method is provided in the embodiment of the present application, first obtaining the grayscale parameters of all pixels in each screen partition, and then averaging them to obtain the grayscale parameters of each screen partition.

上述实施例将屏幕分为多个屏幕分区,将屏幕分为作为整体进行计算能够减少计算量,减少投影设备控制器的处理负担,从而更加精准的调节屏幕的亮度。The above embodiment divides the screen into a plurality of screen partitions. Calculating the screen as a whole can reduce the amount of calculation and the processing burden of the projection device controller, thereby more accurately adjusting the brightness of the screen.

步骤2402,根据各个屏幕分区的灰阶参数,从多个屏幕分区中确定目标屏幕分区。Step 2402 : determining a target screen partition from a plurality of screen partitions according to the grayscale parameters of each screen partition.

其中,目标屏幕分区为在目标时长内灰阶参数处于目标灰阶范围的屏幕分区。可以理解的是,目标屏幕分区的数量可以是一个,也可以是多个,本公开对此不作限制。The target screen partition is a screen partition whose grayscale parameter is within the target grayscale range within the target duration. It is understandable that the number of target screen partitions may be one or more, and the present disclosure does not limit this.

如前述,目标时长根据待显示内容的类型确定,相应的,目标灰阶范围也根据待显示内容的类型确定。举例来说,待显示内容的类型为SDR,则目标灰阶范围为大于或等于90%;待显示内容的类型为HDR,则目标灰阶范围为大于或等于80%。As mentioned above, the target duration is determined according to the type of content to be displayed, and accordingly, the target grayscale range is also determined according to the type of content to be displayed. For example, if the type of content to be displayed is SDR, the target grayscale range is greater than or equal to 90%; if the type of content to be displayed is HDR, the target grayscale range is greater than or equal to 80%.

本申请实施例中提供一种实施方式,根据预设时间检测多个屏幕分区的灰阶参数,在灰阶参数处于目标灰阶范围的情况下,计数器加一,在计数器累计到预设次数的情况下,则确定该屏幕分区为目标屏幕分区。An implementation method is provided in the embodiment of the present application, which detects the grayscale parameters of multiple screen partitions according to a preset time. When the grayscale parameters are within the target grayscale range, a counter is incremented by one. When the counter accumulates to a preset number of times, the screen partition is determined to be a target screen partition.

预设时间为5s,预设次数为60,则目标时长为5分钟。5s一次检测多个屏幕分区的灰阶参数,当检测到屏幕分区的灰阶参数处于大于或等于90%的范围内,则计数器加一,在计数器累加到60次,则表示该屏幕分区在5分钟内灰阶参数持续处于大于或等于90%的范围内,存在烧屏的可能性,将该屏幕分区确定为目标屏幕分区。The preset time is 5s, the preset number of times is 60, and the target duration is 5 minutes. The grayscale parameters of multiple screen partitions are detected once every 5s. When the grayscale parameters of the screen partition are detected to be greater than or equal to 90%, the counter is incremented by one. When the counter accumulates to 60 times, it means that the grayscale parameters of the screen partition are continuously greater than or equal to 90% within 5 minutes, and there is a possibility of screen burn-in. The screen partition is determined as the target screen partition.

通常情况下,投影设备的投影屏幕上每个像素点的灰阶参数是持续变化的,本公开提供的实施例,针对目标时长内,灰阶参数在目标灰阶范围内变化的屏幕分区进行处理,实现了全面检测屏幕的亮度情况,从而精准确定高亮度、存在烧屏可能性的屏幕分区。Normally, the grayscale parameters of each pixel on the projection screen of the projection device change continuously. The embodiment provided in the present disclosure processes the screen partitions whose grayscale parameters change within the target grayscale range within the target time length, thereby achieving comprehensive detection of the screen brightness, thereby accurately determining the screen partitions with high brightness and the possibility of burn-in.

如图27所示,图27为本申请实施例提供的目标屏幕分区的示意图一。目标灰阶范围是大于或等于90%,屏幕分区S5在目标时长内灰阶参数从91%变化至93%又变化至92%,可见屏幕分区S5的灰阶参数在目标时长内持续处于目标灰阶范围内,可确定屏幕分区S5为目标屏幕分区。而屏幕分区S9在目标时长内灰阶参数从94%变化至90%又变化至83%,则屏幕分区S9不是目标屏幕分区。As shown in FIG. 27 , FIG. 27 is a schematic diagram of a target screen partition provided by an embodiment of the present application. The target grayscale range is greater than or equal to 90%. The grayscale parameter of screen partition S5 changes from 91% to 93% and then to 92% within the target duration. It can be seen that the grayscale parameter of screen partition S5 is continuously within the target grayscale range within the target duration, and screen partition S5 can be determined as the target screen partition. However, the grayscale parameter of screen partition S9 changes from 94% to 90% and then to 83% within the target duration, so screen partition S9 is not the target screen partition.

一些实施例中,根据各个屏幕分区的灰阶参数,设置不同的灰阶范围,从而更精细的确定目标屏幕分区,首先从多个屏幕分区中灰阶参数大于第二预设灰阶阈值的屏幕分区,例如第二预设灰阶阈值为 60%,则从多个屏幕分区中确定了A个灰阶参数大于60%的屏幕分区。In some embodiments, different grayscale ranges are set according to the grayscale parameters of each screen partition, so as to more precisely determine the target screen partition. First, screen partitions with grayscale parameters greater than a second preset grayscale threshold are selected from multiple screen partitions. For example, if the second preset grayscale threshold is 60%, A screen partitions with grayscale parameters greater than 60% are determined from the multiple screen partitions.

通常情况下,屏幕的灰阶参数大于第二预设灰阶阈值的情况下可能出现烧屏的现象,通过上述实施方式,去除灰阶参数小于或等于第二预设灰阶阈值的屏幕分区,这些屏幕分区处于亮度的安全范围,无需降低亮度,从而减少了不必要的计算量,提升了投影设备控制器的处理效率。Normally, screen burn-in may occur when the grayscale parameter of the screen is greater than the second preset grayscale threshold. Through the above implementation, screen partitions with grayscale parameters less than or equal to the second preset grayscale threshold are removed. These screen partitions are within a safe range of brightness and do not need to reduce the brightness, thereby reducing unnecessary calculations and improving the processing efficiency of the projection device controller.

如图28所示,图28为本申请实施例提供的目标屏幕分区的示意图二。图28中,第二预设灰阶阈值为60%,屏幕分区C1的灰阶范围为90%~95%、屏幕分区C2的灰阶范围为85%~90%、屏幕分区C3的灰阶范围为50%~60%、屏幕分区C4的灰阶范围为85%~90%、屏幕分区C5的灰阶范围为50%~60%。根据第二预设灰阶阈值60%,则确定屏幕分区C3和C5处于亮度的安全范围,无需降低亮度。进一步的,根据目标灰阶范围是大于或等于90%,从屏幕分区C1、C2、C4中确定目标屏幕分区,得到目标屏幕分区为C1。As shown in Figure 28, Figure 28 is a schematic diagram of the target screen partition provided by the embodiment of the present application. In Figure 28, the second preset grayscale threshold is 60%, the grayscale range of screen partition C1 is 90% to 95%, the grayscale range of screen partition C2 is 85% to 90%, the grayscale range of screen partition C3 is 50% to 60%, the grayscale range of screen partition C4 is 85% to 90%, and the grayscale range of screen partition C5 is 50% to 60%. According to the second preset grayscale threshold of 60%, it is determined that screen partitions C3 and C5 are in a safe range of brightness and there is no need to reduce the brightness. Further, according to the target grayscale range being greater than or equal to 90%, the target screen partition is determined from screen partitions C1, C2, and C4, and the target screen partition is obtained as C1.

一些实施例中,目标灰阶范围包括第一灰阶范围和第二灰阶范围,其中,第一灰阶范围是大于第一预设灰阶阈值且小于第二预设灰阶阈值的范围;第二灰阶范围是大于或等于第二预设灰阶阈值的范围。例如第一预设灰阶阈值为60%,第二预设灰阶阈值为80%,则目标灰阶范围包括60%-80%以及大于80%这两个阶段的灰阶范围。In some embodiments, the target grayscale range includes a first grayscale range and a second grayscale range, wherein the first grayscale range is a range greater than a first preset grayscale threshold and less than a second preset grayscale threshold; the second grayscale range is a range greater than or equal to the second preset grayscale threshold. For example, if the first preset grayscale threshold is 60% and the second preset grayscale threshold is 80%, the target grayscale range includes grayscale ranges of two stages: 60%-80% and greater than 80%.

如图29所示,图29为本申请实施例提供的目标屏幕分区的示意图三。如表1所示,表1示出图29中各个屏幕分区的灰阶参数。As shown in Figure 29, Figure 29 is a schematic diagram of the target screen partition provided by the embodiment of the present application. As shown in Table 1, Table 1 shows the grayscale parameters of each screen partition in Figure 29.

屏幕分区Screen partition 灰阶参数Grayscale parameters S1S1 70%~75%70%~75% S2S2 80%~85%80%~85% S3S3 70%~75%70%~75% S4S4 80%~85%80%~85% S5S5 90%~95%90%~95% S6S6 80%~85%80%~85% S7S7 70%~75%70%~75% S8S8 80%~85%80%~85% S9S9 70%~75%70%~75%

表1Table 1

由于目标灰阶范围包括60%-80%以及大于80%这两个阶段的灰阶范围,则根据表1中示出的图29中屏幕分区S1、S2、S3、S4、S5、S6、S7、S8、S9的灰阶参数,确定屏幕分区S1、S2、S3、S4、S5、S6、S7、S8、S9的灰阶参数均为目标屏幕分区,而其中屏幕分区S2、S4、S5、S6、S8的灰阶参数大于80%,则为第二灰阶范围的目标屏幕分区,屏幕分区S1、S3、S7、S9的灰阶参数在60%-80%内,则为第一灰阶范围的目标屏幕分区。Since the target grayscale range includes two stages of grayscale ranges: 60%-80% and greater than 80%, according to the grayscale parameters of screen partitions S1, S2, S3, S4, S5, S6, S7, S8, S9 in Figure 29 shown in Table 1, it is determined that the grayscale parameters of screen partitions S1, S2, S3, S4, S5, S6, S7, S8, S9 are all target screen partitions, and if the grayscale parameters of screen partitions S2, S4, S5, S6, S8 are greater than 80%, they are the target screen partitions of the second grayscale range, and if the grayscale parameters of screen partitions S1, S3, S7, S9 are within 60%-80%, they are the target screen partitions of the first grayscale range.

下述将针对目标屏幕分区的分类进行说明:The following describes the classification of target screen partitions:

A、目标屏幕分区一A. Target screen partition 1

目标屏幕分区一为在目标时长内,灰阶参数持续处于第一灰阶范围的屏幕分区。例如,上述屏幕分区S1、S3、S7、S9。The target screen partition 1 is a screen partition whose grayscale parameters are continuously in the first grayscale range within the target time duration, for example, the above-mentioned screen partitions S1, S3, S7, and S9.

B、目标屏幕分区二B. Target screen partition 2

目标屏幕分区二为在目标时长内,灰阶参数持续处于第二灰阶范围的屏幕分区。例如,上述屏幕分区S2、S4、S5、S6、S8。The target screen partition 2 is a screen partition whose grayscale parameters are continuously in the second grayscale range within the target time duration, for example, the above-mentioned screen partitions S2, S4, S5, S6, and S8.

a、目标时长内灰阶参数持续处于目标子灰阶范围的屏幕分区。a. The screen partition whose grayscale parameters are continuously within the target sub-grayscale range within the target duration.

一些实施例中,第二灰阶范围包括至少两个子灰阶范围,目标屏幕分区包括m个屏幕分区,m为大于2的正整数。从m个屏幕分区中,确定第一屏幕分区,第一屏幕分区为m个屏幕分区中处于目标子灰阶范围的屏幕分区。其中,灰阶参数处于目标子灰阶范围内屏幕分区的数量大于处于其他子灰阶范围内屏幕分区的数量,其他子灰阶范围为至少两个子灰阶范围内除目标子灰阶范围以外的子灰阶范围。In some embodiments, the second grayscale range includes at least two sub-grayscale ranges, and the target screen partition includes m screen partitions, where m is a positive integer greater than 2. From the m screen partitions, a first screen partition is determined, and the first screen partition is a screen partition in the m screen partitions that is in the target sub-grayscale range. The number of screen partitions whose grayscale parameters are in the target sub-grayscale range is greater than the number of screen partitions in other sub-grayscale ranges, and the other sub-grayscale ranges are sub-grayscale ranges other than the target sub-grayscale range within at least two sub-grayscale ranges.

如表1所示,第二灰阶范围包括至少两个子灰阶范围90%~95%和80%~85%,目标屏幕分区包括S2、S4、S5、S6、S8。从5个目标屏幕分区中确定第一屏幕分区S2、S4、S6、S8,第一屏幕分区S2、S4、S6、S8的灰阶参数均处于80%~85%,可确定80%~85%为目标子灰阶范围,可以理解的是,处于目标子灰阶范围80%~85%的第一屏幕分区是5个目标屏幕分区中数量最多的屏幕分区,根据灰阶范围为第二灰阶范围且数量最多的第一屏幕分区确定目标白平衡参数,保证了屏幕亮度的均匀性。As shown in Table 1, the second grayscale range includes at least two sub-grayscale ranges of 90% to 95% and 80% to 85%, and the target screen partitions include S2, S4, S5, S6, and S8. The first screen partitions S2, S4, S6, and S8 are determined from the five target screen partitions. The grayscale parameters of the first screen partitions S2, S4, S6, and S8 are all between 80% and 85%, and 80% to 85% can be determined as the target sub-grayscale range. It can be understood that the first screen partition in the target sub-grayscale range of 80% to 85% is the screen partition with the largest number among the five target screen partitions. The target white balance parameters are determined according to the first screen partition with the largest number and the second grayscale range, thereby ensuring the uniformity of the screen brightness.

b、目标时长内灰阶参数持续处于第二灰阶范围,且数量比例大于预设数量比例的屏幕分区。例如,预设数量比例为60%,第二灰阶范围为80%~85%,屏幕分区S2、S4、S5、S6、S8中S2、S4、S6、S8的灰阶参数均处于80%~85%,在5个屏幕分区中有4个屏幕分区的灰阶参数处于第二灰阶范围,占比为80%,大于预设数量比例60%,则确定目标屏幕分区为屏幕分区S2、S4、S6、S8。b. The grayscale parameters are continuously in the second grayscale range within the target duration, and the number ratio is greater than the preset number ratio of the screen partitions. For example, the preset number ratio is 60%, the second grayscale range is 80% to 85%, the grayscale parameters of S2, S4, S6, and S8 in the screen partitions S2, S4, S5, S6, and S8 are all between 80% and 85%, and the grayscale parameters of 4 of the 5 screen partitions are in the second grayscale range, accounting for 80%, which is greater than the preset number ratio of 60%, and the target screen partitions are determined to be screen partitions S2, S4, S6, and S8.

c、目标时长内,灰阶参数持续处于第二灰阶范围,且灰阶参数最高的屏幕分区。例如,屏幕分区S2、S4、S5、S6、S8中S2、S4、S6、S8的灰阶参数均处于80%~85%,而屏幕分区S5的灰阶参数处于90%~95%,则确定屏幕分区S5为目标屏幕分区。c. Within the target duration, the grayscale parameters are continuously in the second grayscale range and the screen partition with the highest grayscale parameters. For example, among the screen partitions S2, S4, S5, S6, and S8, the grayscale parameters of S2, S4, S6, and S8 are all between 80% and 85%, and the grayscale parameter of the screen partition S5 is between 90% and 95%, then the screen partition S5 is determined as the target screen partition.

上述实施例,将目标屏幕分区加以细化,从而在后续根据目标屏幕分区确定更加准确度,符合亮度调节需求的白平衡参数。In the above embodiment, the target screen partition is refined, so that a more accurate white balance parameter that meets the brightness adjustment requirement is subsequently determined according to the target screen partition.

步骤2403,根据目标屏幕分区的灰阶参数,确定目标白平衡参数。Step 2403, determining target white balance parameters according to the grayscale parameters of the target screen partition.

其中,白平衡参数是本领域技术人员知晓的白平衡,白平衡是描述投影屏幕1中红、绿、蓝三基色混合生成后白色精确度的一项指标。The white balance parameter is white balance known to those skilled in the art, and white balance is an indicator that describes the accuracy of white generated by mixing the three primary colors of red, green and blue in the projection screen 1 .

一些实施例中,若目标屏幕分区为根据待显示内容的类型确定目标灰阶范围的屏幕分区,则根据目标屏幕分区的灰阶参数,确定目标白平衡参数。In some embodiments, if the target screen partition is a screen partition whose target grayscale range is determined according to the type of content to be displayed, the target white balance parameter is determined according to the grayscale parameter of the target screen partition.

如前述,当待显示内容的类型为SDR时,目标屏幕分区是灰阶范围处于大于或等于90%的屏幕分区,则可根据目标屏幕分区的灰阶参数91%,确定目标白平衡参数为当前白平衡参数的80%;当待显示内容的类型为HDR时,目标屏幕分区是灰阶范围处于大于或等于80%的屏幕分区,则可根据目标屏幕分区的灰阶参数91%,确定目标白平衡参数为当前白平衡参数的70%。As mentioned above, when the type of content to be displayed is SDR, the target screen partition is a screen partition with a grayscale range greater than or equal to 90%, then the target white balance parameter can be determined as 80% of the current white balance parameter based on the grayscale parameter of 91% of the target screen partition; when the type of content to be displayed is HDR, the target screen partition is a screen partition with a grayscale range greater than or equal to 80%, then the target white balance parameter can be determined as 70% of the current white balance parameter based on the grayscale parameter of 91% of the target screen partition.

由于实际应用中,显示设备屏幕的各个屏幕分区的使用状况不同,即使是同一时刻,各个屏幕分区的灰阶参数的大小也不尽相同,导致屏幕分区的老化程度不同,容易出现烧屏现象。为延长屏幕的使用寿命,可根据使用频率最高的或老化程度最严重的屏幕分区的灰阶参数确定目标白平衡参数。In actual applications, the usage conditions of each screen partition of the display device screen are different. Even at the same time, the grayscale parameters of each screen partition are also different, resulting in different aging degrees of the screen partitions, which is prone to screen burn-in. In order to extend the service life of the screen, the target white balance parameters can be determined based on the grayscale parameters of the screen partition with the highest frequency of use or the most serious aging degree.

其中,各个屏幕分区的位置信息可表征其老化程度,例如,通常情况下,屏幕中心的老化程度较高,靠近中心的屏幕分区的老化程度次之,屏幕边缘的老化程度最低。各个屏幕分区的历史显示时长可表征其使用频率,历史显示时长是各个屏幕分区处于目标灰阶范围的历史时长,可以理解的是,历史显示时长越大,表示屏幕分区处于高亮度状态的时间越长,使用频率越高。Among them, the location information of each screen partition can represent its aging degree. For example, under normal circumstances, the aging degree of the center of the screen is higher, the aging degree of the screen partition close to the center is second, and the aging degree of the edge of the screen is the lowest. The historical display time of each screen partition can represent its usage frequency. The historical display time is the historical time that each screen partition is in the target grayscale range. It can be understood that the longer the historical display time is, the longer the screen partition is in a high brightness state and the higher the usage frequency.

一些实施例中,根据多个屏幕分区的位置信息,确定各个屏幕分区的权重系数。其中,权重系数与屏幕分区的位置信息正相关。屏幕分区的位置信息越靠近中心区域,权重系数越大,表示屏幕分区的老化程度越高。In some embodiments, a weight coefficient of each screen partition is determined based on the position information of the plurality of screen partitions. The weight coefficient is positively correlated with the position information of the screen partition. The closer the position information of the screen partition is to the central area, the larger the weight coefficient is, indicating that the aging degree of the screen partition is higher.

以图26为例,根据多个屏幕分区的位置信息,确定各个屏幕分区的权重系数,则屏幕分区C1的权重系数大于屏幕分区C2、C3、C4、C5。Taking FIG. 26 as an example, the weight coefficient of each screen partition is determined according to the position information of multiple screen partitions, and the weight coefficient of screen partition C1 is greater than that of screen partitions C2, C3, C4, and C5.

一些实施例中,根据多个屏幕分区的历史显示时长,确定各个屏幕分区的权重系数。其中,权重 系数与历史显示时长正相关。历史显示时长越大,则权重系数越大,表示屏幕分区的老化程度越高。In some embodiments, the weight coefficient of each screen partition is determined according to the historical display time of multiple screen partitions. The weight coefficient is positively correlated with the historical display time. The greater the historical display time, the greater the weight coefficient, indicating that the aging degree of the screen partition is higher.

以图26为例,屏幕分区C1的历史显示时长为t1,屏幕分区C2的历史显示时长为t2,且t1>t2,则屏幕分区C1的权重系数a大于屏幕分区C2的权重系数b。Taking FIG. 26 as an example, the historical display time of screen partition C1 is t1, the historical display time of screen partition C2 is t2, and t1>t2, then the weight coefficient a of screen partition C1 is greater than the weight coefficient b of screen partition C2.

一些实施例中,根据多个屏幕分区的位置信息和历史显示时长,确定各个屏幕分区的权重系数。In some embodiments, a weight coefficient of each screen partition is determined based on the location information and historical display duration of the multiple screen partitions.

以图26为例,根据屏幕分区C1的位置信息得到权重系数x,屏幕分区C2的位置信息得到权重系数y。根据屏幕分区C1的历史显示时长t1得到权重系数a,根据屏幕分区C1的历史显示时长t2得到权重系数b,则屏幕分区C1的权重系数为ax,屏幕分区C2的权重系数为by。Taking Figure 26 as an example, the weight coefficient x is obtained according to the position information of the screen partition C1, and the weight coefficient y is obtained according to the position information of the screen partition C2. The weight coefficient a is obtained according to the historical display time t1 of the screen partition C1, and the weight coefficient b is obtained according to the historical display time t2 of the screen partition C1. Then, the weight coefficient of the screen partition C1 is ax, and the weight coefficient of the screen partition C2 is by.

上述实施例根据多个屏幕分区的位置信息和/或历史显示时长确定屏幕分区的老化程度和使用频率,从而得到确定白平衡参数所需的权重系数,则能够重点关注烧屏可能性最高的屏幕分区进行白平衡参数的确定,从而更加精准的调节屏幕亮度。The above embodiment determines the aging degree and usage frequency of the screen partitions according to the position information and/or historical display time of multiple screen partitions, thereby obtaining the weight coefficient required to determine the white balance parameters. It is then possible to focus on the screen partition with the highest possibility of burn-in to determine the white balance parameters, thereby more accurately adjusting the screen brightness.

在得到各个屏幕分区的权重系数之后,根据目标屏幕分区的灰阶参数,确定目标白平衡参数,从而实现按照老化程度最大和/或使用频率最高的屏幕分区进行亮度的调节,最大程度保护屏幕,防止出现烧屏现象。After obtaining the weight coefficients of each screen partition, the target white balance parameters are determined according to the grayscale parameters of the target screen partition, so as to adjust the brightness according to the screen partition with the greatest degree of aging and/or the highest frequency of use, thereby protecting the screen to the greatest extent and preventing screen burn-in.

一些实施例中,根据各个屏幕分区的权重系数以及目标屏幕分区的灰阶参数,确定所述目标白平衡参数,可以理解的是,各个屏幕分区的白平衡参数相同,也即,屏幕根据一个白平衡参数实现整个屏幕的亮度调节。In some embodiments, the target white balance parameter is determined based on the weight coefficients of each screen partition and the grayscale parameters of the target screen partition. It can be understood that the white balance parameters of each screen partition are the same, that is, the screen achieves brightness adjustment of the entire screen based on one white balance parameter.

一些实施例中,根据各个屏幕分区的权重系数以及目标屏幕分区的灰阶参数,分别确定各个屏幕分区的白平衡参数,可以理解的是,针对每个屏幕分区确定了对应的白平衡参数,从而能够根据这些白平衡参数实现分屏的亮度调节,以满足用户的多元化需求,提升用户体验。In some embodiments, the white balance parameters of each screen partition are determined separately according to the weight coefficients of each screen partition and the grayscale parameters of the target screen partition. It can be understood that the corresponding white balance parameters are determined for each screen partition, so that the brightness adjustment of the split screen can be achieved according to these white balance parameters to meet the diverse needs of users and enhance the user experience.

另外,还可以根据各个屏幕分区的白平衡参数确定目标白平衡参数,得到最终的整个目标白平衡参数,实现整个屏幕亮度的调节,提升了画面亮度的均匀性。In addition, the target white balance parameters can be determined according to the white balance parameters of each screen partition to obtain the final target white balance parameters of the entire screen, so as to adjust the brightness of the entire screen and improve the uniformity of the brightness of the picture.

如前述,目标灰阶范围可以是两个阶段的灰阶范围,从而有针对性的对不同灰阶程度的屏幕分区进行亮度调节,提升了屏幕亮度调节的准确性。下述将针对第一灰阶范围对应的目标屏幕分区以及第二灰阶范围对应的目标屏幕分区,对确定目标白平衡参数的过程进行说明:As mentioned above, the target grayscale range can be a grayscale range of two stages, so as to adjust the brightness of screen partitions with different grayscales in a targeted manner, thereby improving the accuracy of screen brightness adjustment. The following will describe the process of determining the target white balance parameters for the target screen partition corresponding to the first grayscale range and the target screen partition corresponding to the second grayscale range:

(1)目标屏幕分区为在目标时长内,灰阶参数持续处于第一灰阶范围的屏幕分区(1) The target screen partition is the screen partition whose grayscale parameters are continuously in the first grayscale range within the target duration.

若目标屏幕分区为在目标时长内,灰阶参数持续处于第一灰阶范围的屏幕分区,则根据第一比例系数确定所述目标白平衡参数。其中,第一比例系数与第一灰阶范围成负相关,可以理解的是,第一灰阶范围的灰阶参数越大,则表示目标屏幕分区的亮度越高,需要调节的程度越大,相应的,第一比例系数也就越小。If the target screen partition is a screen partition whose grayscale parameter is continuously in the first grayscale range within the target time length, the target white balance parameter is determined according to the first proportional coefficient. The first proportional coefficient is negatively correlated with the first grayscale range. It can be understood that the larger the grayscale parameter in the first grayscale range, the higher the brightness of the target screen partition, the greater the degree of adjustment required, and accordingly, the smaller the first proportional coefficient.

第一灰阶范围为60%~80%,第一比例系数设置为90%,表示将屏幕的白平衡参数调整至当前白平衡参数的90%。The first grayscale range is 60% to 80%, and the first proportional coefficient is set to 90%, which means that the white balance parameter of the screen is adjusted to 90% of the current white balance parameter.

(2)目标屏幕分区为在目标时长内,灰阶参数持续处于第二灰阶范围的屏幕分区(2) The target screen partition is the screen partition whose grayscale parameters are continuously in the second grayscale range within the target duration.

若目标屏幕分区为在目标时长内,灰阶参数持续处于第二灰阶范围的屏幕分区,则根据第二比例系数确定目标白平衡参数。其中,第二比例系数与第二灰阶范围成负相关,可以理解的是,第二灰阶范围的灰阶参数越大,则表示目标屏幕分区的亮度越高,需要调节的程度越大,相应的,第二比例系数也就越小。If the target screen partition is a screen partition whose grayscale parameter is continuously in the second grayscale range within the target time length, the target white balance parameter is determined according to the second proportional coefficient. The second proportional coefficient is negatively correlated with the second grayscale range. It can be understood that the larger the grayscale parameter in the second grayscale range, the higher the brightness of the target screen partition, the greater the degree of adjustment required, and accordingly, the smaller the second proportional coefficient.

第二灰阶范围为大于80%,第二比例系数设置为80%,表示将屏幕的白平衡参数调整至当前白平衡参数的80%。The second grayscale range is greater than 80%, and the second proportional coefficient is set to 80%, which means that the white balance parameter of the screen is adjusted to 80% of the current white balance parameter.

一些实施例中,目标屏幕分区的数量为多个,为更好的防止出现烧屏现象,目标屏幕分区为在目标时长内,灰阶参数持续处于第二灰阶范围,且灰阶参数最高的屏幕分区,则需要针对灰阶参数最高, 最有可能出现烧屏的目标屏幕分区进行白平衡参数的确定。根据第二比例系数和所述目标屏幕分区的灰阶参数,确定目标白平衡参数。In some embodiments, there are multiple target screen partitions. To better prevent screen burn-in, the target screen partition is the screen partition whose grayscale parameter is continuously in the second grayscale range within the target time length and whose grayscale parameter is the highest. Then, it is necessary to determine the white balance parameter for the target screen partition with the highest grayscale parameter and the most likely screen burn-in. The target white balance parameter is determined according to the second proportional coefficient and the grayscale parameter of the target screen partition.

一些实施例中,为保证屏幕亮度调节的均匀性,将目标时长内灰阶参数持续处于目标子灰阶范围,目标子灰阶范围包括数量最多的第一屏幕分区,然后根据第二比例系数和所述目标屏幕分区的灰阶参数,确定目标白平衡参数。还可以预先设置目标屏幕分区在多个屏幕分区所占的数量比例,例如目标时长内灰阶参数持续处于第二灰阶范围,且数量比例大于预设数量比例的屏幕分区作为目标屏幕分区。In some embodiments, to ensure uniformity of screen brightness adjustment, the grayscale parameter is continuously in the target sub-grayscale range within the target duration, the target sub-grayscale range includes the first screen partition with the largest number, and then the target white balance parameter is determined according to the second proportional coefficient and the grayscale parameter of the target screen partition. The number ratio of the target screen partition in the multiple screen partitions can also be preset, for example, the screen partition whose grayscale parameter is continuously in the second grayscale range within the target duration and whose number ratio is greater than the preset number ratio is used as the target screen partition.

一些实施例中,考虑到环境光影响,需要在环境光变化的情况下,及时调整屏幕亮度,获取环境光参数,然后,根据环境光参数以及目标屏幕分区对应的灰阶参数,确定目标白平衡参数。In some embodiments, considering the influence of ambient light, it is necessary to adjust the screen brightness in time when the ambient light changes, obtain the ambient light parameters, and then determine the target white balance parameters based on the ambient light parameters and the grayscale parameters corresponding to the target screen partition.

环境光参数指示当前环境较亮,而屏幕已经在目标时长内持续处于高亮度状态,需要降低亮度,则获取环境光参数,结合屏幕分区的灰阶参数,确定目标白平衡参数,以适应当前环境,实现了在较亮环境下保证屏幕可视的同时,降低屏幕亮度防止屏幕出现烧屏现象,也节省了电能。The ambient light parameters indicate that the current environment is brighter, and the screen has been in a high-brightness state for the target duration. If the brightness needs to be reduced, the ambient light parameters are obtained and combined with the grayscale parameters of the screen partitions to determine the target white balance parameters to adapt to the current environment. This ensures that the screen is visible in a brighter environment while reducing the screen brightness to prevent screen burn-in and save energy.

上述实施例通过针对不同灰阶范围的目标屏幕分区,按照不同的比例系数调节,从而更加精准地调节屏幕的亮度。The above embodiment adjusts the screen brightness more accurately by partitioning the target screen into different grayscale ranges and adjusting according to different proportional coefficients.

步骤2404,将屏幕的白平衡参数调整为目标白平衡参数。Step 2404, adjusting the white balance parameters of the screen to the target white balance parameters.

一些实施例中,在得到目标白平衡参数之后,调节整个屏幕的亮度。例如,将目标白平衡参数调整至当前白平衡参数的80%,则屏幕亮度降低至当前亮度的80%。In some embodiments, after obtaining the target white balance parameter, the brightness of the entire screen is adjusted. For example, the target white balance parameter is adjusted to 80% of the current white balance parameter, and the screen brightness is reduced to 80% of the current brightness.

一些实施例中,在得到各个屏幕分区的白平衡参数之后,根据每个屏幕分区的白平衡参数进行调节,从而实现对整个屏幕的亮度调节。如图30所示,图30为本公开提供的调节屏幕亮度的示意图一。图30中,在确定屏幕分区S1、S3、S7、S9的白平衡参数为90%之后,将屏幕分区S1、S3、S7、S9的亮度调整至当前亮度的90%,如图30中(a),当前白平衡参数为90%则调整至如图30中(b)所示的81%。在确定屏幕分区S2、S4、S5、S6、S8的白平衡参数为80%之后,如图30中(a)所示当前白平衡参数为100%则调整至如图30中(b)所示的80%,实现了分屏调节亮度。In some embodiments, after obtaining the white balance parameters of each screen partition, the white balance parameters of each screen partition are adjusted to achieve brightness adjustment of the entire screen. As shown in Figure 30, Figure 30 is a schematic diagram of adjusting screen brightness provided by the present disclosure. In Figure 30, after determining that the white balance parameters of screen partitions S1, S3, S7, and S9 are 90%, the brightness of screen partitions S1, S3, S7, and S9 is adjusted to 90% of the current brightness, as shown in Figure 30 (a), and the current white balance parameter is 90%, which is adjusted to 81% as shown in Figure 30 (b). After determining that the white balance parameters of screen partitions S2, S4, S5, S6, and S8 are 80%, the current white balance parameter is 100% as shown in Figure 30 (a), and it is adjusted to 80% as shown in Figure 30 (b), achieving split screen brightness adjustment.

除此之外,调节屏幕亮度还包括提高屏幕亮度,本申请实施例中提供的目标灰阶范围可以是小于60%,例如,目标灰阶范围为40%~60%,长时间处于该亮度影响用户的观看体验,因此,本申请实施例中,提供一种实施方式,获取目标时长之前目标白平衡参数,在该白平衡参数大于预设白平衡参数的情况下,确定目标白平衡参数为目标时长之前目标白平衡参数,实现恢复屏幕亮度,以适应用户的多元化需求。In addition, adjusting the screen brightness also includes increasing the screen brightness. The target grayscale range provided in the embodiment of the present application may be less than 60%. For example, the target grayscale range is 40% to 60%. Being at this brightness for a long time affects the user's viewing experience. Therefore, in an embodiment of the present application, an implementation method is provided to obtain the target white balance parameter before the target duration. When the white balance parameter is greater than the preset white balance parameter, the target white balance parameter is determined to be the target white balance parameter before the target duration, so as to restore the screen brightness and meet the diverse needs of users.

一些实施例中,与上述提高屏幕亮度相似,可根据目标屏幕分区的灰阶参数以及各个屏幕分区的权重系数分别确定各个屏幕分区的白平衡参数。In some embodiments, similar to the above-mentioned improvement of screen brightness, white balance parameters of each screen partition may be determined according to the grayscale parameters of the target screen partition and the weight coefficients of each screen partition.

如图31所示,图31为本公开提供的调节屏幕亮度的示意图二。图31中,在确定屏幕分区S1、S3、S7、S9的白平衡参数为40%之后,确定屏幕分区S1、S3、S7、S9的白平衡参数在目标时长之前为60%,则将屏幕分区S1、S3、S7、S9的白平衡参数调整至60%,如图31中(a),当前白平衡参数为40%调整至如图31中(b)所示的60%。在确定屏幕分区S2、S4、S5、S6、S8的白平衡参数为50%之后,确定屏幕分区S2、S4、S5、S6、S8的白平衡参数在目标时长之前为60%,如图31中(a)所示当前白平衡参数为50%则调整至如图31中(b)所示的60%,实现了分屏恢复亮度。As shown in FIG31 , FIG31 is a schematic diagram of adjusting screen brightness provided by the present disclosure. In FIG31 , after determining that the white balance parameters of screen partitions S1, S3, S7, and S9 are 40%, it is determined that the white balance parameters of screen partitions S1, S3, S7, and S9 are 60% before the target duration, and the white balance parameters of screen partitions S1, S3, S7, and S9 are adjusted to 60%, as shown in FIG31 (a), and the current white balance parameter is 40% and adjusted to 60% as shown in FIG31 (b). After determining that the white balance parameters of screen partitions S2, S4, S5, S6, and S8 are 50%, it is determined that the white balance parameters of screen partitions S2, S4, S5, S6, and S8 are 60% before the target duration, and the current white balance parameter is 50% as shown in FIG31 (a), and is adjusted to 60% as shown in FIG31 (b), realizing the split screen restoration brightness.

综上,本公开提供一种显示控制方法,用于屏幕亮度调节时该方法将显示设备的屏幕进行划分得到多个屏幕分区,获取各个屏幕分区在目标时长内的灰阶参数,然后根据各个屏幕分区的灰阶参数从多个屏幕分区中确定目标屏幕分区,目标屏幕分区是目标时长内灰阶参数处于目标灰阶范围的屏幕分区;进一步的,根据目标屏幕分区对应的灰阶参数确定目标白平衡参数,最后根据该白平衡参数调节屏幕亮度。通过对屏幕进行分区来实现亮度的调节,提升了屏幕亮度调节的效率,并且对目标时长内屏幕的亮 度进行监控实现及时调节亮度,从而防止显示设备出现烧屏现象,提升了画面的显示效果。In summary, the present disclosure provides a display control method, which is used for screen brightness adjustment. The method divides the screen of a display device into multiple screen partitions, obtains the grayscale parameters of each screen partition within a target duration, and then determines the target screen partition from the multiple screen partitions according to the grayscale parameters of each screen partition. The target screen partition is a screen partition whose grayscale parameters are within a target grayscale range within a target duration; further, the target white balance parameters are determined according to the grayscale parameters corresponding to the target screen partition, and finally the screen brightness is adjusted according to the white balance parameters. The brightness adjustment is achieved by partitioning the screen, which improves the efficiency of screen brightness adjustment, and the brightness of the screen is monitored within the target duration to adjust the brightness in a timely manner, thereby preventing the display device from burning in and improving the display effect of the picture.

Claims (28)

  1. A projection device, comprising:
    a light machine configured to project the play content to a projection surface;
    A lens including an optical assembly and a driving motor; the driving motor is connected with the optical component to adjust the focal length of the optical component;
    A distance sensor configured to detect a separation distance between the projection surface and the optical machine;
    A camera configured to capture a projected content image;
    A controller configured to:
    responding to an automatic focusing instruction, and acquiring the interval distance;
    If the interval distance is smaller than an interval judgment threshold value, calculating a first focusing amount according to the interval distance, and controlling the driving motor to adjust the focal length of the optical component according to the first focusing amount;
    And if the interval distance is larger than or equal to an interval judgment threshold value, calculating a second focusing amount according to the definition of the projection content image, and controlling the driving motor to adjust the focal length of the optical component according to the second focusing amount.
  2. The projection device of claim 1, the controller configured to:
    acquiring distance detection frame data generated by the distance sensor in a multi-scanning process;
    traversing the number of target objects in a plurality of the distance detection frame data;
    if the number of the target objects is smaller than or equal to a number judgment threshold, calculating the interval distance according to the target distance between each target object and the optical machine;
    And if the number of the target objects is larger than a number judgment threshold, calculating a second focusing amount according to the definition of the projection content image.
  3. The projection device of claim 2, the controller configured to:
    Traversing a target distance between each target object in the distance detection frame data and the optical machine;
    Setting the distance confidence of the target object according to the target distance, including: if the target distance is within a preset effective interval, setting the distance reliability as a first numerical value; if the target distance is not in the preset effective interval, setting the distance reliability as a second numerical value; the first value is greater than the second value;
    and calculating the average value of the target distances corresponding to the target objects, of which the distance confidence is the first value, so as to generate the interval distance.
  4. The projection device of claim 1, the controller configured to:
    A first moving instruction is sent to the driving motor so as to control the driving motor to move the optical component from a focusing start position to a focusing end position;
    In the moving process of the optical component, acquiring projection content images shot by the camera according to preset frequency, wherein each projection content image is associated with a focusing position;
    Calculating the definition of the projection content image;
    and searching the optimal focusing position according to the definition of the projection content image.
  5. The projection device of claim 4, the controller configured to:
    ordering the focusing positions according to the definition of the projection content image to obtain a definition sequence;
    Extracting a fine focusing interval from the definition sequence, wherein the corresponding focusing position of the projection content image with the highest definition is in the fine focusing interval;
    sending a second movement instruction to the driving motor to control the optical component to move in the fine focusing interval according to a preset adjustment step length;
    acquiring a fine focusing image shot by the camera after each movement of the optical component;
    Calculating the definition of the fine focusing image, and searching an optimal focusing position according to the definition of the fine focusing image, wherein the optimal focusing position is the focusing position corresponding to the fine focusing image with the highest definition.
  6. The projection device of claim 4, the controller configured to:
    acquiring a moving speed of the driving motor and acquiring a shooting frequency of the camera;
    calculating a position compensation value according to the moving speed and the shooting frequency;
    extracting a focusing position corresponding to the projection content image with highest definition to obtain a target focusing position;
    And correcting the target focusing position by using the position compensation value to obtain the optimal focusing position.
  7. The projection device of claim 1, further comprising a pose sensor configured to detect pose information of the projection device; the controller is configured to:
    Extracting boundary coordinates of a key area, wherein the boundary coordinates are vertex coordinates stored according to the corrected key area when the projection equipment executes trapezoidal correction;
    If the storage time of the boundary coordinates is in the available period, cutting the projection content image by using the boundary coordinates;
    And if the storage time of the boundary coordinates is not in the available period, acquiring the gesture information through the gesture sensor, and cutting the projection content image according to the gesture information.
  8. The projection device of claim 7, the controller configured to:
    comparing the current posture information with original posture information stored in the trapezoid correction process;
    If the difference value between the current gesture information and the original gesture information is larger than a gesture detection threshold value, detecting a highlight region in the projection content image, and cutting the projection content image according to the shape of the highlight region;
    And if the difference value between the current gesture information and the original gesture information is smaller than or equal to a gesture detection threshold value, cutting the projection content image by using the boundary coordinates.
  9. The projection device of claim 1, the controller configured to:
    Detecting the interval variation in real time through the distance sensor;
    if the interval variation exceeds the variation threshold, acquiring a projection content image;
    Identifying an interference target in the projected content image;
    And when the interference target is contained in the projection content image, sending a pause instruction to the driving motor so as to pause the adjustment of the focal length of the optical component.
  10. The projection device of claim 1, the controller further configured to: identifying a projection area of the projection device by using an edge detection algorithm based on the projection content image acquired by the camera; when the projection area is displayed as a rectangle or a rectangle-like shape, the controller acquires coordinate values of four vertexes of the rectangular projection area through a preset algorithm.
  11. The projection device of claim 10, the controller further configured to: and correcting the projection area into a rectangle by using a perspective transformation method, and calculating the difference between the rectangle and the projection screen shot to judge whether foreign matters exist in the display area.
  12. The projection device of claim 10, the controller further configured to: when foreign matter detection is realized on a certain area outside the projection area, the camera content of the current frame and the camera content of the previous frame can be made into a difference value to judge whether foreign matter enters the area outside the projection area; if the foreign matter is judged to enter, the function of preventing the injection of eyes is automatically triggered.
  13. The projection device of claim 10, the controller further configured to: detecting real-time depth changes of the specific area with a time-of-flight camera, or a time-of-flight sensor; and if the change of the depth value exceeds a preset threshold value, automatically triggering the eye-shot prevention function.
  14. The projection device of claim 10, the controller further configured to: and analyzing and judging whether an eye-shooting prevention function needs to be started or not based on the collected flight time data, screenshot data and camera data.
  15. The projection device of claim 10, the controller further configured to: if the specific object is detected to be located in the preset area, the eye-shot prevention function is automatically started, so that the laser intensity emitted by the optical machine is reduced, the display brightness of the user interface is reduced, and the safety prompt information is displayed.
  16. The projection device of claim 10, the controller further configured to: monitoring the movement of the device by a gyroscope, or a gyroscopic sensor; signaling for inquiring the state of the equipment is sent to the gyroscope, and signaling for judging whether the equipment moves or not is received from the gyroscope.
  17. The projection device of claim 10, the controller further configured to:
    after the gyroscope data is stable for a preset time length, controlling the starting to trigger the trapezoidal correction, and not responding to an instruction sent by a key of the remote controller when the trapezoidal correction is performed.
  18. The projection device of claim 10, the controller further configured to:
    The curtain is identified through an automatic obstacle avoidance algorithm, projection changes are utilized, projection content images are corrected to the inside of the curtain to be displayed, and the effect of alignment with the edge of the curtain is achieved.
  19. The projection device of claim 1, the controller further configured to:
    Determining a plurality of screen partitions, and acquiring gray scale parameters of each screen partition in a target duration;
    Determining a target screen partition from the plurality of screen partitions according to the gray scale parameters of each screen partition, wherein the target screen partition is a screen partition with the gray scale parameters in a target gray scale range in the target duration;
    determining a target white balance parameter according to the gray scale parameter of the target screen partition;
    and adjusting the white balance parameter of the screen to the target white balance parameter.
  20. The projection device of claim 19, the controller configured to: determining a weight coefficient of each screen partition in the plurality of screen partitions according to the position information of the plurality of screen partitions and/or a history display time length, wherein the history display time length is the history time length of each screen partition in the target gray scale range;
    And determining the target white balance parameter according to the gray scale parameter of the target screen partition and the weight coefficient of each screen partition.
  21. The projection device of claim 20, the controller further configured to: and respectively determining the white balance parameters of each screen partition according to the gray scale parameters of the target screen partition and the weight coefficients of each screen partition.
  22. The projection device of claim 19, the target duration and the target gray scale range being determined according to a type of content to be displayed of the plurality of screen partitions.
  23. The projection device of claim 19, the controller further configured to: acquiring an ambient light parameter;
    The controller is configured to: and determining the target white balance parameter according to the gray scale parameter of the target screen partition and the ambient light parameter.
  24. The projection apparatus of claim 19, wherein the target gray scale range is a first gray scale range that is a range greater than a first preset gray scale threshold and less than a second preset gray scale threshold;
    The controller is configured to:
    And determining the target white balance parameter according to a first scale coefficient and the gray scale parameter of the target screen partition, wherein the first scale coefficient corresponds to the first gray scale range.
  25. The projection apparatus of claim 19, wherein the target gray scale range is a second gray scale range, the second gray scale range being a range greater than or equal to a second preset gray scale threshold;
    The controller is configured to:
    and determining the target white balance parameter according to a second proportionality coefficient and the gray scale parameter of the target screen partition, wherein the second proportionality coefficient corresponds to the second gray scale range.
  26. The projection device of claim 19, wherein the gray scale parameter of the target screen section is a highest gray scale parameter in the respective screen section.
  27. The projection device of claim 25, the target gray scale range being a second gray scale range, the second gray scale range comprising at least two sub-gray scale ranges, the target screen partition comprising m screen partitions, the m screen partitions being at least two screen partitions of the plurality of screen partitions;
    The controller is configured to:
    Determining a first screen partition from the m screen partitions, wherein the first screen partition is a screen partition in a target sub-gray scale range in the m screen partitions;
    The number of the screen partitions of the gray scale parameters in the target sub-gray scale range is larger than the number of the screen partitions in other sub-gray scale ranges, and the other sub-gray scale ranges are sub-gray scale ranges except the target sub-gray scale ranges in the at least two sub-gray scale ranges;
    and determining the target white balance parameter according to the second proportionality coefficient and the gray scale parameter of the first screen partition.
  28. A display control method for a projection device, the projection device comprising an optical machine, a lens, a distance sensor, a camera, and a controller; the lens comprises an optical component and a driving motor, wherein the driving motor is connected with the optical component so as to adjust the focal length of the optical component; the display control method includes:
    Acquiring a spacing distance through the distance sensor in response to an automatic focusing instruction;
    If the interval distance is smaller than an interval judgment threshold value, calculating a first focusing amount according to the interval distance, and controlling the driving motor to adjust the focal length of the optical component according to the first focusing amount;
    And if the interval distance is larger than or equal to an interval judgment threshold value, calculating a second focusing amount according to the definition of the projection content image, and controlling the driving motor to adjust the focal length of the optical component according to the second focusing amount.
CN202280086830.3A 2021-11-16 2022-09-29 Projection equipment and display control method Pending CN118476210A (en)

Applications Claiming Priority (7)

Application Number Priority Date Filing Date Title
CN2021113558660 2021-11-16
CN202111355866 2021-11-16
CN202210343443.5A CN114885137B (en) 2021-11-16 2022-03-31 Projection equipment and automatic focusing method
CN2022103434435 2022-03-31
CN2022105578008 2022-05-19
CN202210557800.8A CN115083342B (en) 2022-05-19 2022-05-19 Display device and screen brightness adjustment method
PCT/CN2022/122673 WO2023087948A1 (en) 2021-11-16 2022-09-29 Projection device and display control method

Publications (1)

Publication Number Publication Date
CN118476210A true CN118476210A (en) 2024-08-09

Family

ID=86396217

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202280086830.3A Pending CN118476210A (en) 2021-11-16 2022-09-29 Projection equipment and display control method

Country Status (2)

Country Link
CN (1) CN118476210A (en)
WO (1) WO2023087948A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118972542A (en) * 2024-10-15 2024-11-15 深圳优立全息科技有限公司 A multi-viewing image fusion processing method and system for holographic projection
CN120084215A (en) * 2025-04-27 2025-06-03 浙江视觉智能创新中心有限公司 Thermos cup liner detection method and device based on special projection of 3D camera

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118972532B (en) * 2024-10-14 2025-01-14 深圳领创光显科技有限公司 Intelligent eye protection method and system based on projector
CN120201173B (en) * 2025-05-26 2025-08-19 深圳市大屏影音技术有限公司 Picture frame rate synchronous control method and system for multiple projection devices

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104536249B (en) * 2015-01-16 2016-08-24 努比亚技术有限公司 The method and apparatus of regulation projector focal length
CN107318007A (en) * 2016-04-27 2017-11-03 中兴通讯股份有限公司 The method and device of projected focus
JP6756149B2 (en) * 2016-05-18 2020-09-16 セイコーエプソン株式会社 projector
JP2019062462A (en) * 2017-09-27 2019-04-18 キヤノン株式会社 Display device, control device therefor, and control method thereof
CN112799275B (en) * 2019-11-13 2023-01-06 青岛海信激光显示股份有限公司 Focusing method and focusing system of ultra-short-focus projection lens and projector
CN114466173B (en) * 2021-11-16 2024-12-20 海信视像科技股份有限公司 Projection equipment and projection display control method for automatically putting into screen area
CN115083342B (en) * 2022-05-19 2025-08-22 海信视像科技股份有限公司 Display device and screen brightness adjustment method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118972542A (en) * 2024-10-15 2024-11-15 深圳优立全息科技有限公司 A multi-viewing image fusion processing method and system for holographic projection
CN118972542B (en) * 2024-10-15 2025-01-24 深圳优立全息科技有限公司 A multi-viewing image fusion processing method and system for holographic projection
CN120084215A (en) * 2025-04-27 2025-06-03 浙江视觉智能创新中心有限公司 Thermos cup liner detection method and device based on special projection of 3D camera

Also Published As

Publication number Publication date
WO2023087948A1 (en) 2023-05-25

Similar Documents

Publication Publication Date Title
CN114885137B (en) Projection equipment and automatic focusing method
CN118476210A (en) Projection equipment and display control method
CN115002433B (en) Projection equipment and ROI feature area selection method
WO2023087960A1 (en) Projection device and focusing method
US20240305754A1 (en) Projection device and obstacle avoidance projection method
WO2023087947A1 (en) Projection device and correction method
US20150002650A1 (en) Eye gaze detecting device and eye gaze detecting method
CN115002432B (en) Projection equipment and obstacle avoidance projection method
CN116320335A (en) Projection equipment and method for adjusting projection picture size
CN115243021A (en) Projection equipment and obstacle avoidance projection method
CN114928728B (en) Projection apparatus and foreign matter detection method
CN114760454B (en) Projection device and trigger correction method
CN114866751B (en) Projection equipment and trigger correction method
CN114885142B (en) Projection equipment and method for adjusting projection brightness
US12041352B2 (en) Image pickup control device, image pickup device, control method for image pickup device, non-transitory computer-readable storage medium
WO2023087951A1 (en) Projection device, and display control method for projected image
CN115529445A (en) Projection equipment and projection image quality adjusting method
CN115604442A (en) Projection equipment and method for adjusting brightness of light source
CN115623180A (en) Projection equipment and method for adjusting brightness of light source
CN119788824A (en) Projection apparatus and projection control method
CN120034632A (en) Projection device and projection obstacle avoidance method
CN119653059A (en) Projection device and projection method
CN118233608A (en) Laser projection correction method and projection display device

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