Projection device and automatic focusing method
By using an automatic focus method combined with optical components and focus motor in the projection device, fast automatic focus is achieved based on the TOF principle and clarity evaluation, solving the problem of slow focus speed in the existing technology and improving the user experience.
Patent Information
- Application Number
- CN202210343444.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2021-11-16
- Filing Date
- 2022-03-31
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2042-03-31
AI Technical Summary
Existing projectors focus slowly when using cameras to focus, which cannot meet users' needs for fast autofocus.
Using an automatic focus method combined with optical components and focus motor, the distance between the projection device and the projection surface is obtained based on the TOF principle by the camera or sensor, the fine adjustment interval is calculated based on the preset focus curve, and the fine adjustment interval is entered through the focus motor. Inside moving optical components, combined with clarity evaluation to achieve fast autofocus.
Without increasing the time-consuming focus, the focus speed is improved, the problem of unclear focus caused by local focus is avoided, and the user experience is improved.
Smart Images

Figure CN114885138B_ABST
Abstract
Description
[0001] This application claims priority to a Chinese patent application filed with the China Patent Office on November 16, 2021, with application number 202111355866.0 and invention name “A projection device and a display control method based on geometric correction”, the entire contents of which are incorporated by reference in this application. Technical Field
[0002] The present application relates to the technical field of display devices, and in particular to a projection device and an automatic focusing method. Background Art
[0003] A projection device is a device that can project images or videos onto a screen for display. It can be connected to computers, VCDs, DVDs, BDs, game consoles, DVs, radio and television signal sources, video signal sources, etc. through different interfaces to play corresponding video signals.
[0004] Projection equipment usually uses laser or LED light sources, which have the characteristics of pure light source, bright colors, true restoration, and support for displaying high-resolution images. The projected image enters the human eye through diffuse reflection and professional anti-light gain screen reflection. The image is soft and natural, the screen has no electromagnetic radiation, can reduce eye stimulation, and is not easy to cause fatigue. Regardless of the daylight environment or the indoor night environment, the projector has the ability to display clearly.
[0005] In the related technology, a camera is generally used for focusing, and the position of the lens motor is adjusted based on the projection image obtained by the camera until the focus is completed. However, the focusing speed is slow when the camera is used for focusing. As users have higher and higher demands for the experience of projection equipment, a fast automatic focusing function is currently needed to increase the focusing speed of the projection equipment and improve the convenience of operation. Summary of the invention
[0006] The present application provides a projection device and an automatic focusing method to solve the problem of slow focusing speed when a camera is focusing.
[0007] On the one hand, some embodiments of the present application provide a projection device, including: an optical machine, a lens, a camera, and a controller. The optical machine is configured to project the playback content onto a 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 camera is configured to capture the projection content image; the controller is configured to:
[0008] Get auto focus instructions;
[0009] In response to the auto-focus instruction, acquiring a first distance between the projection device and the projection surface;
[0010] Calculating a fine adjustment interval based on a preset focus curve and the first distance;
[0011] Sending a first movement instruction to the focus motor to control the focus motor to move the optical component within the fine adjustment interval;
[0012] Calculating the clarity of the projection content image captured by the camera during the movement of the optical component;
[0013] A second movement instruction is sent to the focus motor to control the focus motor to move the optical component to a target position, where the target position is a shooting position of the projection content image with the highest clarity value.
[0014] On the other hand, some embodiments of the present application further provide an autofocus method, which is applied to a projection device, wherein the projection device includes an optical machine, a lens, a camera, and a controller; wherein the lens includes an optical component and a focus motor, and the focus motor is connected to the optical component to adjust the focal length of the optical component; the autofocus method includes:
[0015] Get auto focus instructions;
[0016] In response to the auto-focus instruction, acquiring the distance between the projection device and the projection surface;
[0017] Calculating a fine adjustment interval based on a preset focus curve and the distance;
[0018] Sending a first movement instruction to the focus motor to control the focus motor to move the optical component within the fine adjustment interval;
[0019] Calculating the clarity of the projection content image captured by the camera during the movement of the optical component;
[0020] A second movement instruction is sent to the focus motor to control the focus motor to move the optical component to a target position, where the target position is a shooting position of the projection content image with the highest definition.
[0021] It can be seen from the above technical solutions that the projection device and the autofocus method provided in some embodiments of the present application can obtain the first distance between the projection device and the projection surface through a camera or a sensor based on the TOF principle (time of flight ranging principle) after receiving the autofocus instruction. The fine adjustment interval is calculated based on the preset focus curve and the first distance, so that the focusing motor drives the optical component to reach the adjustment starting point or adjustment end point of the fine adjustment interval to complete the first section of coarse focusing. After coarse focusing, a first movement instruction is sent to the focusing motor to control the focusing motor to move the optical component within the fine adjustment interval, and the clarity of the projection content image captured by the camera during the movement of the optical component is calculated; a second movement instruction is sent to the focusing motor to control the focusing motor to move the optical component to the target position, and the target position is the shooting position of the projection content image with the highest clarity value, to complete the second section of fine focusing. The method uses two-stage focusing to avoid falling into the problem of unclear focus caused by local focusing without increasing the time consumption of focusing, thereby improving the focusing speed and user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the technical solution of the present application, the drawings required for use in the embodiments are briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0023] Figure 1 A schematic diagram showing the placement of a projection device according to an embodiment of the present application is shown;
[0024] Figure 2 A schematic diagram of the optical path of a projection device according to an embodiment of the present application is shown;
[0025] Figure 3 A schematic diagram of the circuit architecture of a projection device according to an embodiment of the present application is shown;
[0026] Figure 4 A schematic diagram of the structure of a projection device according to an embodiment of the present application is shown;
[0027] Figure 5 A schematic diagram of the circuit structure of a projection device according to an embodiment of the present application is shown;
[0028] Figure 6 A schematic diagram of a system framework for realizing display control of a projection device according to an embodiment of the present application is shown;
[0029] Figure 7 Schematic diagram of lens projection light path is shown as an example;
[0030] Figure 8 A schematic diagram of the automatic focusing method flow chart of some embodiments is exemplified;
[0031] Fig. 9 The flowchart of the auto-focus method of some embodiments is exemplarily shown;
[0032] Fig.10 The flowchart of the auto-focus method of some embodiments is exemplarily shown;
[0033] Fig.11 The flowchart of the auto-focus method of some embodiments is exemplarily shown;
[0034] Fig.12 A schematic diagram of a fine focusing process in an autofocus method of some embodiments is exemplarily shown;
[0035] Fig.13 The timing relationship diagram of the auto-focus method in the embodiment of the present application is exemplified. DETAILED DESCRIPTION
[0036] The following embodiments are described in detail, and examples thereof are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following embodiments do not represent all implementations consistent with the present application. They are only examples of systems and methods consistent with some aspects of the present application as detailed in the claims.
[0037] The terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover but not exclude inclusion, for example, a product or device comprising a list of components is not necessarily limited to all the components expressly listed but may include other components not expressly listed or inherent to such product or device.
[0038] The term "module" refers to any known or later developed hardware, software, firmware, artificial intelligence, fuzzy logic, or combination of hardware and / or software code that is capable of performing the functions associated with that element.
[0039] A projector is a device that can project images or videos onto a screen. It can be connected to computers, broadcasting networks, the Internet, VCD (Video Compact Disc), DVD (Digital Versatile Disc Recordable), game consoles, DV, etc. through different interfaces to play corresponding video signals. Projectors are widely used in homes, offices, schools, and entertainment venues.
[0040] Figure 1 A schematic diagram of the placement of a projection device according to an embodiment of the present application is shown.
[0041] In some embodiments, a projection device provided by the present application includes a projection screen and a projection device. The projection screen is fixed at a desired position, and the projection device is placed at a specific position so that the image projected by it matches the projection screen. This step is performed by professional after-sales technicians, that is, the specific position is the best placement position for the projection device.
[0042] Figure 2 A schematic diagram of the optical path of a projection device according to an embodiment of the present application is shown.
[0043] The embodiment of the present application provides a projection device, including 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.
[0044] In some embodiments, the laser light source of the projection device includes a laser assembly and an optical lens assembly, and the light beam emitted by the laser assembly can pass through the optical lens assembly to provide lighting for the optical machine. For example, the optical lens assembly 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.
[0045] In some embodiments, the optical engine 200 of the projection device may be implemented as a blue optical engine, a green optical engine, a red optical 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 projector may also be implemented by an LED light source.
[0046] In some embodiments, the present application provides a projection device, including a three-color light engine and a controller; wherein the three-color light engine is used to modulate the laser light containing pixels to generate the user interface, including a blue light engine, a green light engine, and a red light engine; the controller is configured to: obtain the average grayscale value of the user interface; when it is determined that the average grayscale value is greater than a first threshold value and its duration is greater than a time threshold value, control the working current value of the red light engine to decrease according to a preset gradient value to reduce the heating of the three-color light engine. It can be found that by reducing the working current of the red light engine integrated in the three-color light engine, it is possible to control the overheating of the red light engine, so as to control the overheating of the three-color light engine and the projection device.
[0047] In some embodiments, the optical system of the projection device consists of a light source part and an optomechanical part. The light source part provides illumination for the optomechanical part, and the optomechanical part modulates the illumination beam provided by the light source, which is then emitted through the lens to form a projection picture.
[0048] In some embodiments, the light source part specifically includes a housing, a laser assembly, and an optical lens assembly. The light beam emitted by the laser assembly is shaped and combined by the optical lens assembly to provide lighting for the optical machine. Among them, the laser assembly includes a variety of devices such as a light-emitting chip, a collimating lens, and a wire, but it is usually a packaged component. When used as a component, compared with optical lenses, which are also precision components, optical lenses have higher requirements for environmental cleanliness. Because if the surface of the lens is covered with dust, on the one hand, it will affect the lens's light processing effect, causing the brightness of the emitted light to decay, and ultimately affect the effect of the projection device projecting an image through the lens. On the other hand, dust will absorb high-energy laser beams to form heat, which can easily damage the lens.
[0049] Figure 3 A schematic diagram of the circuit architecture of a projection device according to an embodiment of the present application is shown.
[0050] 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.
[0051] 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.
[0052] In some embodiments, the display control circuit 10 is further used to obtain a second brightness value corresponding to the driving current of each laser. If the difference between the second brightness value of the laser and the first brightness value of the laser is detected to be greater than a difference threshold, indicating that a COD fault occurs in the laser, the display control circuit 10 can adjust the current control signal of the laser driving component 30 until the difference is less than or equal to the difference threshold, that is, the COD fault of the laser is eliminated by reducing the driving current of the laser. In some embodiments, if the difference between the second brightness value of the laser detected and the first brightness value of the laser is less than or equal to the difference threshold, indicating that a COD fault does not occur in the laser, the display control circuit 10 does not need to adjust the current control signal of the laser driving component 30 corresponding to the laser.
[0053] In some embodiments, the display control circuit 10 can monitor in real time whether a COD fault occurs in each laser according to the first brightness value of each laser acquired by at least one brightness sensor 40 and the second brightness value corresponding to the driving current of each laser. When it is determined that a COD fault occurs in any laser, the COD fault of the laser is eliminated in time, the duration of the COD fault of the laser is reduced, the damage to the laser is reduced, and the image display effect of the projection device is ensured.
[0054] Figure 4 A schematic structural diagram of a projection device according to an embodiment of the present application is shown.
[0055] 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 called a three-color projection device. The blue laser 201, the red laser 202 and the green laser 203 are all MCL type packaged lasers, which are small in size and conducive to the compact arrangement of the optical path.
[0056] Figure 5 A schematic diagram of the circuit structure of a projection device according to an embodiment of the present application is shown.
[0057] 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.
[0058] 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.
[0059] 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.
[0060] 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 .
[0061] 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.
[0062] 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.
[0063] In some embodiments, the system of the projection device may include a kernel, a command parser (shell), a file system, and an application. The kernel, shell, and file system together constitute the basic operating system structure, which allows users to manage files, run programs, and use the system. After power-on, the kernel starts, activates the kernel space, abstracts the hardware, initializes hardware parameters, etc., runs and maintains virtual memory, schedulers, signals, and inter-process communication (IPC). After the kernel starts, the shell and user applications are loaded. After startup, the application is compiled into machine code to form a process.
[0064] In some embodiments, the system is divided into four layers, from top to bottom, namely, the application layer (Applications) layer (referred to as "application layer"), the application framework layer (Application Framework) layer (referred to as "framework layer"), the Android runtime (Android runtime) and system library layer (referred to as "system runtime library layer"), and the kernel layer.
[0065] 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.
[0066] In some embodiments, the projection device may be equipped with a camera for cooperating with the projection device to achieve adjustment and control of the projection process. For example, the camera configured for the projector 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 screen corresponding to the projector, 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 projector.
[0067] Figure 6 A schematic diagram of a system framework for realizing display control of a projection device according to an embodiment of the present application is shown.
[0068] In some embodiments, the system of the projection device provided by the present application includes an application service layer (APKService: Android application package Service), a service layer, and an underlying algorithm library.
[0069] The application service layer is used to realize the interaction between the projector and the user; based on the display of the user interface, the user can configure the various parameters of the projector and the display screen. The controller can realize the function of automatically correcting the display screen of the projector when the display is abnormal by coordinating and calling the algorithm services corresponding to various functions.
[0070] The service layer may include correction services, camera services, time of flight (TOF) services, etc. The services can focus on the application service layer (APK Service) to realize the corresponding specific functions of different service configurations of the projector; the service layer is connected to the algorithm library, camera, time of flight sensor and other data acquisition services to realize the function of encapsulating the underlying complex logic and transmitting the business data to the corresponding service layer.
[0071] The underlying algorithm library can provide correction services and control algorithms for various functions of the projector. The algorithm library can, for example, perform various mathematical operations based on OpenCV to provide basic capabilities for correction services. OpenCV is a cross-platform computer vision and machine learning software library released under the BSD license (open source) and can run on operating systems such as Linux, Windows, Android and Mac OS.
[0072] In some embodiments, the projector provided in the present application has the characteristics of a telephoto micro-projector. The projector includes a controller, which can control the display of the optical machine picture through a preset algorithm to achieve functions such as automatic trapezoidal correction of the display picture, automatic screen entry, automatic obstacle avoidance, automatic focus, and anti-eye-shooting.
[0073] In some embodiments, the projector is also equipped with a gyroscope sensor; during the movement of the projector, the gyroscope sensor can sense the position movement and actively collect movement data, and then send the collected data to the application service layer through the system framework layer to support the application data required during the user interface interaction and application interaction process. The collected data can also be used for data calls by the controller in the algorithm service implementation.
[0074] In some embodiments, the projector is equipped with a time of flight (TOF) sensor. After the TOF sensor collects corresponding data, the data will be sent to the corresponding TOF service of the service layer.
[0075] The time-of-flight service continues to send the data collected by the time-of-flight sensor to the application service layer of the projector through the process communication framework (HSPCore). The data will be used for data calls of the controller and for interaction with the user interface and program applications.
[0076] In some embodiments, the projector is configured with a camera for capturing images, and the camera can be implemented as a binocular camera, a depth camera, etc.; the captured data will be sent to the camera service, and then the camera service will send the image data captured by the binocular camera to the process communication framework (HSP Core) and / or the projector correction service for the implementation of the projector function.
[0077] In some embodiments, the projector calibration service may receive camera acquisition data sent by the camera service, and the controller may call corresponding control algorithms in the algorithm library according to different functions to be implemented.
[0078] In some embodiments, data can be exchanged 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 projector operating system to generate corresponding control signals, and sends the control signals to the optical machine control driver to control the working condition of the optical machine and realize automatic correction of the display effect.
[0079] The projector can achieve flexible position movement in a telephoto micro-projection scenario through the autofocus method provided in this application; and during each movement of the device, the controller can control the projector to implement the autofocus function to automatically restore normal display in response to possible problems such as projection image distortion and projection image abnormality.
[0080] In some embodiments, the projector can use a 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 an image algorithm to evaluate the clarity of the projected picture, thereby fine-tuning the image distance.
[0081] In some embodiments, the projector 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 projector drives the camera to take pictures and uses the corresponding algorithm to evaluate the clarity.
[0082] The projector 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.
[0083] When the projection device needs to be focused, the TOF principle is used to detect the distance for active focusing of the lens and the image detection and clarity judgment are used to perform passive focusing of the lens, so as to realize the automatic focusing of the projection device. However, in practice, if the contrast conditions are not set properly, there will be too many focus attempts, resulting in too long focusing time. In some embodiments, by configuring a fast autofocus function in the projection device, the focusing speed of the projection device is improved, and the convenience of operation is improved.
[0084] To support the auto-focus process of the projection device, in some embodiments, such as Figure 7 As shown, the lens 300 of the projection device may further include an optical component 310 and a focus 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.
[0085] 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 focus 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 auto-focusing function.
[0086] The focus 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 lens frame is provided at the outer edge of the moving lens 311, and a thread can be provided on the lens frame. The power output shaft of the focus motor 320 is connected to a screw, and the screw cooperates with the thread on the lens frame, so that the rotational motion output by the focus motor 320 can be converted into the moving motion of the lens frame, thereby driving the moving lens 311 to move in the lens barrel.
[0087] Since the movable 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 focus motor 320 by a specific angle or number of turns so that the movable lens 311 is in a corresponding position. In order to achieve the above functions, the focus motor 320 can be a stepper 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 focus motor 320, and the movement instruction may include angle data required to control the focus motor 320 to rotate. For example, for the focus motor 320 in the form of a stepper 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 focus motor 320, the focus motor 320 can parse the pulse signal from the movement instruction and rotate according to the pulse signal.
[0088] It should be noted that, in order to be able to adjust the movable lens 311 to a specific position, the corresponding relationship between the moving distance of the movable lens 311 and the rotation angle of the focusing motor 320 can be calculated in advance according to the internal structure of the projection device. The corresponding relationship 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 corresponding relationship between the moving distance and the rotation angle, the angle that the focusing motor 320 needs to rotate is calculated, thereby generating a moving instruction and sending it to the focusing motor 320. The focusing motor 320 controls the movable lens 311 to move the required distance according to the moving instruction.
[0089] In some embodiments of the present application, an automatic focusing method is also provided, which can take into account the advantages of the above-mentioned projection device focusing method and achieve fast focusing according to multi-stage focusing. 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 sensor 600, a camera 700, and a controller 500. Figure 8 As shown, the controller can be used to execute the program steps of the auto-focus method, including the following steps:
[0090] Obtain an auto-focus instruction. The auto-focus instruction is a control instruction that triggers the projection device to perform auto-focus. The controller 500 can receive instructions from a remote control device that is compatible with the projection device, and can also receive auto-focus instructions sent by a user through other devices (such as a mobile phone or other smart devices).
[0091] This application does not limit the manner or path for the controller 500 to obtain the auto-focus instruction. For example, the user can press a button specified by the remote control, and the remote control sends the corresponding auto-focus instruction to the projection device; or the user can output a voice auto-focus instruction to the projection device.
[0092] In some embodiments, the auto-focus instruction can be not only manually input by the user, but also generated and issued according to the control program configured by the projection device. For example, when the projection device detects that the input video interface is switched, the auto-focus instruction is generated. For another example, when it is detected that the projection device is turned on for the first time or restored to the factory settings, the auto-focus instruction is generated.
[0093] After the controller 500 obtains the autofocus instruction, it automatically turns on the fast autofocus function, wherein the fast autofocus function includes multi-stage focusing; in some embodiments, the fine adjustment interval can be determined by the first stage of coarse focusing, and the focusing motor 320 is controlled to drive the optical component 310 to move in the fine interval according to the first movement instruction sent by the controller 500, and the position with the highest clarity is obtained through clarity evaluation, and the focusing motor 320 is controlled to drive the optical component 310 to reach the position with the highest clarity according to the second movement instruction sent by the controller 500, thereby completing the second stage of fine focusing. Among them, the first movement instruction is that the controller 500 controls the focusing motor 320 to drive the optical component 310 to move in the fine interval, and the second movement instruction is that the controller 500 controls the focusing motor 320 to drive the optical component 310 to reach the position with the highest clarity.
[0094] In the first coarse focusing process, after obtaining the autofocus instruction, the controller 500 responds to the autofocus instruction, obtains the flight time data based on the time-of-flight ranging principle (TOF principle) through the camera 700 or the sensor 600 by continuously emitting light pulses to the projection surface, and then receiving the light pulses reflected back from the projection surface, and calculates the distance between the projection surface and the camera 700 or the sensor 600, that is, the first distance, by detecting the flight (round-trip) time of the light pulses.
[0095] After obtaining the first distance, the controller 500 determines the position that the lens 300 needs to reach, namely the first position, in combination with the preset focus curve, and obtains the distance between the first position and the current position by comparing the first position. The controller 500 queries the preset mapping table based on the distance to obtain the number of rotation steps of the focusing motor 320 corresponding to the distance, namely the first number of rotation steps.
[0096] Among them, the preset focus curve is that before the projection equipment leaves the factory, a coordinate system is established with the zoom parameter as the horizontal coordinate and the focus parameter as the vertical coordinate, the object distance in the process of the lens capturing the image to be processed is a constant, and a monotonic hill climbing algorithm is used to determine the preset zoom parameter key points in the coordinate system, as well as the focus parameter points that meet the preset clarity conditions corresponding to each of the preset zoom parameter key points; a focus curve is generated according to the focus parameter points that meet the preset clarity conditions corresponding to each of the preset zoom parameter key points, and this focus curve is the preset focus curve.
[0097] The preset mapping table is prepared by analyzing the focus curve according to the projection image and the projection distance, wherein the mapping table includes the projection image, the projection distance, the focus group movement amount and the focus group rotation step number. The preset focus curve and the preset mapping table are stored in the controller 500.
[0098] Among them, the preset mapping table in some embodiments of the present application is shown in Table 1.
[0099] Table 1
[0100]
[0101]
[0102] According to the distance between the projection screen and the projection device, the preset mapping table can be queried to obtain the required movement amount and rotation steps to determine the fine adjustment range of fine focus.
[0103] After determining the rotation step number of the focus motor 320, ie, the first rotation step number, the controller 500 sends a third movement instruction to the focus motor, ie, controls the focus motor 320 to move the optical component 310 to the first position according to the first rotation step number.
[0104] Due to the different distances between the projection device and the projection surface, the calculated first position may be in front of or behind the current lens 300. If the first position is behind the current lens 300, the direction of the lens 300 needs to be adjusted so that the focusing motor 320 rotates in the opposite direction to drive the optical component 310 to move, thereby ensuring that the lens 300 reaches the first position.
[0105] For example: through flight data calculation, it is obtained that the distance between the projection device and the projection surface is 1585mm. The controller 500 determines that the lens 300 moves from the current position to the first position in combination with the preset focus curve, and the required movement amount is 0.047mm. By querying the preset mapping table, it is obtained that the first rotation step number corresponding to the movement amount is 85 steps, and then a third movement instruction is sent to the focusing motor 320, and the focusing motor 320 is controlled according to the current direction to drive the optical component 310 to move forward 85 steps to reach the first position.
[0106] Another example: the distance between the projection device and the projection surface is calculated to be 3991 mm through flight data. The controller 500 determines that the lens 300 moves from the current position to the first position in combination with the preset focus curve. The required movement amount is -0.069 mm, that is, the first position is behind the lens 300. By querying the preset mapping table, the first rotation step number corresponding to the movement amount is -125 steps, and a third movement instruction is sent to the focusing motor 320 to control the focusing motor 320 in the opposite direction to drive the optical component 310 to move backward 125 steps, that is, 125 steps, thereby reaching the first position.
[0107] In some embodiments, in order to meet the needs of calculating the focusing 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 evaluation unit, etc., and each functional unit can work independently of each other. For example, after the strategy selection unit determines the second position calculated based on the clarity of the projection content image, it can determine the fine adjustment interval and notify the motor control unit to control the focus motor 320 to drive the optical component 310 to complete the fine adjustment interval at one time 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 focus motor 320 rotates to a specific state to achieve synchronization between the three.
[0108] When the controller 500 sends the third movement instruction, the camera 700 takes pictures at a specific frequency, obtains the projection content image taken during the movement of the optical component 310 to the first position, and stores the projection content image in the focus position storage container.
[0109] After the focusing unit 320 moves the optical assembly 310 to the first position, the controller 500 reads the projection content image in the focus position storage container. The clarity values of all projection content images are calculated by the clarity evaluation function set in the clarity evaluation unit of the system, and all the calculated clarity values are compared with the preset first clarity, and the projection content images with higher clarity than the first clarity are screened out, and the shooting position for shooting the projection content image is determined, and the shooting position is the second position.
[0110] The first position is determined as the adjustment starting point of the fine adjustment interval, and the second position is determined as the adjustment end point of the fine adjustment interval, so as to obtain the fine adjustment interval and complete the first section of coarse focus adjustment. Fig. 9 shown.
[0111] In some embodiments, the clarity evaluation unit is configured with a variety of clarity evaluation functions to perform clarity evaluation. The clarity evaluation function may be Brenner, Tenengrad, Laplacian, SMD, Variance, Energy, etc. The clarity evaluation unit is pre-set with a first clarity and a second clarity before leaving the factory, wherein the second clarity value is higher than the first clarity value, the first clarity is used to evaluate the clarity of the projection content image obtained in the first coarse focusing step, and the second clarity is used to evaluate the clarity of the projection content image obtained in the second fine focusing step.
[0112] After taking a photo, if the camera 700 receives a command from the system to read the photo, it will give the path of the most recent photo, otherwise it will be discarded. The clarity evaluation unit will start to poll whether the storage container storing the focus position is empty. If it is not empty, it will read the position information, and read the corresponding photo based on it to calculate the picture clarity, and then store the result in the clarity storage container for later use; the clarity evaluation can be implemented based on the frequency domain function, grayscale function, information entropy and other methods preset in the clarity evaluation unit.
[0113] In some embodiments, the user can modify the first clarity and the second clarity value by himself, but the second clarity must be higher than the first clarity; the fine adjustment interval is determined by the first clarity, and fine focusing is performed to find the position of the highest clarity value in the fine adjustment interval. If the second clarity is lower than the first clarity, the final highest clarity value may be lower than the first clarity, and fine focusing cannot be achieved.
[0114] In some embodiments, the adjustment start point and adjustment end point of the fine adjustment interval may be adaptively exchanged due to the current position of the focus motor 320, that is, the first position may be the adjustment end point of the fine adjustment interval, and the second position may be the adjustment start point of the fine adjustment interval.
[0115] For example, the first position is 0.134 mm away from the current position (i.e., the original position) of the focusing motor 320. The table shows that the first rotation step is 242 steps. When the focusing motor 320 drives the optical component 310 to move forward according to the first rotation step, the image clarity of the projection content at the 150-step position is higher than the first clarity. The 150-step position is determined to be the second position. At this time, the distance from the original position to 150-242 steps is the fine adjustment interval, and the second position is the adjustment starting point, and the first position is the adjustment end point.
[0116] For example, the first position is -0.087 mm away from the current position of the focusing motor 320 (i.e., the original position). The table shows that the first rotation step is -157 steps. When the focusing motor 320 drives the optical component 310 to move backward according to the first rotation step, the image clarity of the projection content at the -50 step position is higher than the first clarity. The -50 step position is determined to be the second position. At this time, the distance from the original position -157 to -50 steps is the fine adjustment range, so the first position is the adjustment starting point and the second position is the adjustment end point.
[0117] In some embodiments, in the step of the focusing unit 320 moving the optical component 310 to the first position, the controller 500 is also configured to determine whether the clarity of the projected image after focusing is better than the clarity of the previous frame of projection image, and if so, send a same-direction focusing signal to the focusing motor 320, otherwise send a reverse focusing signal to the focusing motor 320.
[0118] Among them, the rotation direction information of the focusing motor 320 of the projection device in the same direction focusing signal is the same as the rotation direction information of the focusing motor 320 of the projection device in the focusing signal sent last time, and the rotation direction information of the focusing motor 320 of the projection device in the reverse focusing signal is opposite to the rotation direction information of the focusing motor 320 of the projection device in the focusing signal sent last time.
[0119] When measuring the distance between the projection surface and the projection device using the TOF principle, the first distance measured at the same position may fluctuate due to different sensitivity ranges of each TOF sensor or camera and different errors of each TOF sensor or camera.
[0120] Based on this, in the process of obtaining the first position using the above method, the projection device also collects multiple time-of-flight distances, calculates the average, and substitutes the average into the time-of-flight ranging preset linear regression model configured by the system to calculate the theoretical distance value between the projection device and the projection surface; because the more times the collection is performed, the closer the average is to the true value, which can reduce the impact of different devices in the time-of-flight ranging process.
[0121] In some embodiments, the controller 500 obtains multiple flight data at preset time intervals to calculate multiple first distances; and takes the average of the multiple first distances to obtain an average distance; the average distance is input into a preset linear regression model of the time-of-flight ranging to obtain a theoretical distance value between the projection device and the projection surface, i.e., the second distance; the second distance is combined with a preset focus curve to determine the position that the lens 300 needs to reach, i.e., the first position.
[0122] In some embodiments, it is possible to manually set the flight data to be measured five times within 30ms, thereby obtaining five first distances and taking the average, and substituting the average into the linear regression model of TOF distance measurement (y=mx+b, where x is the sample point and y is the true value), and obtaining the theoretical distance value of the TOF sensor or camera at the current position, thereby reducing the impact caused by the difference in equipment. Among them, the linear regression model of TOF distance measurement is preset by the system and saved to the disk partition of the controller 500 when the projection device leaves the factory. The partition is retained during program upgrades and other operations and managed as a property of the device. When the user disassembles, repairs, or changes the position of the TOF sensor, a new calibration is required, that is, data collection is performed again to obtain a new linear regression model.
[0123] In some embodiments, when the focusing motor 320 reverses again after rotating forward, there will be a return error. At this time, the position reached by the focusing motor 320 according to the first rotation step is not the target position, that is, not the first position, which will affect the subsequent fine focusing process.
[0124] Therefore, when the controller 500 controls the focus motor 320 to move the optical component 310 to the first position according to the first rotation step number, Fig.10 As shown, the projection device also determines whether to subtract a preset return error based on the current rotation direction of the focus motor 320 and the last rotation direction recorded by the system to obtain the actual number of steps to be rotated so that the focus motor drives the lens to accurately reach the first position.
[0125] The controller 500 obtains the current rotation direction of the focusing motor 320; compares the current rotation direction of the focusing motor 320 with the rotation direction of the focusing motor 320 when it last performed autofocus; if the current rotation direction of the focusing motor 320 is inconsistent with the rotation direction of the focusing motor 320 when it last performed autofocus, it is determined that there will be a return error during this autofocus process, and the first rotation step number is added with the preset return error to obtain a second rotation step number; after obtaining the second rotation step number, the controller 500 sends a fourth movement instruction to the focusing motor 320, i.e., controls the focusing motor 320 to move the optical component 310 to the first position according to the second rotation step number.
[0126] The return error is measured before the projection device leaves the factory, and the average error is obtained by multiple forward and reverse rotations of the focus motor 320, and finally the preset return error is obtained. The preset return error is also recorded in the disk partition of the controller 500.
[0127] like Fig.11As shown, after the controller 500 obtains the fine adjustment interval, the second fine adjustment is performed. The controller 500 sends a first movement instruction to the focus motor 320, and controls the focus motor 320 to move the optical component 310 within the fine adjustment interval according to a preset number of rotation steps or a first fine adjustment speed.
[0128] like Fig.12 As shown, when the controller 500 sends the first movement instruction, the camera 700 takes pictures at a specific frequency to shoot the projection content at the current position. When the focus motor 320 controls the optical component 310 to reach the adjustment starting point or the adjustment end point, it stops moving, which is recorded as a fine focus. After a fine focus is completed, the controller 500 obtains multiple projection content images shot by the camera 700 during the movement of the optical component 310, and calculates the clarity of all projection content images. The clarity of all projection content images is sorted to obtain the highest clarity value. The controller 500 compares the highest clarity value with the preset second clarity. If the highest clarity value is higher than the second clarity, the shooting position of the projection content image corresponding to the highest clarity value is determined, and the shooting position is recorded as the best clarity position. The controller 500 sends a second movement instruction to the focus motor 320 to control the focus motor 320 to move the optical component 310 to the target position, and the target position is the shooting position of the projection content image with the highest clarity value.
[0129] For example: after the first coarse focus, the determined fine adjustment interval is that the number of rotation steps of the focusing motor 320 from the current position is between 400 and 800, and the current position of the focusing motor is recorded as the original position. The controller 500 sends a first movement instruction to control the focusing motor 320 to drive the optical component 310 to move within the fine adjustment interval. When the focusing motor 320 drives the optical component 310 from the first position to the second position, that is, the position 800 steps away from the original position of the focusing motor 320, the focusing motor 320 stops moving. At this time, the clarity evaluation unit of the system obtains the projection content image taken by the camera, sorts the clarity of each position, and obtains the highest clarity value. The shooting position of the projection content corresponding to the highest clarity value is 200 steps away from the adjustment starting point, that is, 600 steps away from the original position of the focusing motor 320. At this time, the highest clarity value is higher than the second clarity value, and the position 600 steps away from the original position of the focusing motor 320 is recorded as the target position. The controller 500 sends a second movement instruction to control the focusing motor 320 to drive the optical component 310 from the current position, that is, from the adjustment end point to the target position, that is, the focusing motor 320 drives the optical component 310 to move from the adjustment end point to the adjustment starting point with a rotation step number of 200 steps, and finally completes this automatic focus.
[0130] If the highest definition value is lower than or equal to the second definition value, the controller 500 adjusts the rotation steps or fine adjustment speed of the focus motor 320, controls the focus motor 320 to move the optical assembly 310 within the fine adjustment interval, and starts a new round of fine focusing. The controller 500 drives the focus motor 320 to move from the adjustment start point or the adjustment end point to the other side of the fine adjustment interval according to the proximity principle. For example: the fine adjustment interval is between 400-800 rotation steps of the focus motor 320 from the original position. After the last fine focusing, the focus motor 320 is in the second position, that is, 800 steps away from the original position of the focus motor 320. In a new round of fine focusing, the controller 500 controls the focus motor 320 to drive the optical component 310 to move from the second position to the first position. When the focus motor 320 drives the optical component 310 to move to the first position, the clarity of the projection image captured by the camera 700 during this fine focusing process is calculated again by the clarity evaluation unit. If the maximum clarity value of this fine focusing is still not higher than the second clarity, the rotation steps or fine adjustment speed of the focus motor 320 are continued to be adjusted to start a new round of focusing until the position with the best clarity is found (this position is the shooting position of the projection content image with a maximum clarity value higher than the second clarity).
[0131] In some embodiments, the controller 500 records the number of fine focusing times. Before starting a new round of fine focusing, the controller 500 compares the recorded number of fine focusing times with a preset threshold. If the recorded number of fine focusing times is higher than the preset threshold, a new round of fine focusing is not started. The controller 500 sends a fifth movement instruction to control the focusing motor 320 to drive the optical component 310 to move to the shooting position of the projection content image corresponding to the highest clarity value in the previous round of fine focusing, thereby ending this autofocus.
[0132] For example: the number of fine focusing is set to no more than 20 times. After starting fine focusing 20 times, the position with the best clarity still cannot be found, that is, the highest clarity value is not higher than the second clarity. A new round of fine focusing is no longer started, and the controller 500 sends a fifth movement instruction to control the focusing motor 320 to drive the optical component 310 to move to the shooting position corresponding to the projection screen image with the highest clarity value during the 20th fine focusing process, and the automatic focusing is ended to avoid too many automatic focusing attempts resulting in too long a time consumption.
[0133] In some embodiments, multiple specific positions can be set within the fine adjustment interval. When the focusing motor 320 drives the optical component 310 to a specific position, the camera 700 takes a picture to obtain the projection content image of the specific position, and the clarity of the projection content images taken at the multiple specific positions is sorted, and the fine adjustment interval is gradually narrowed, thereby reducing the time for one fine focusing, thereby saving time and achieving fast automatic focusing.
[0134] For example: through the first stage of coarse focusing, the fine adjustment interval is obtained at a position 400-900 steps away from the original position, and multiple specific positions are set in the fine adjustment interval: specific position 1 (a position 500 steps away from the original position), specific position 2 (a position 600 steps away from the original position), specific position 3 (a position 700 steps away from the original position) and specific position 4 (a position 800 steps away from the original position); with the position 400 steps away from the original position as the adjustment starting point, the controller 500 controls the focusing motor 320 to drive the optical component 310 to move from the adjustment starting point to the adjustment end point (a position 900 steps away from the original position). When reaching the specific position, the camera 700 takes a picture. When the focusing motor 320 drives the optical component 310 to move to the adjustment end point, the movement stops.
[0135] The controller 500 compares the clarity of the projection content images captured at multiple specific positions, and determines that the specific position 3 is the highest clarity value, but the highest clarity value is not higher than the second clarity, then starts the next round of fine focusing, and the fine adjustment interval in the new round of fine focusing is no longer 400-900 steps away from the original position, but 700-900 steps away from the original position; the controller 500 controls the focusing motor 320 to drive the optical component 310 to move 200 steps from the adjustment end point to the adjustment starting point. During the movement, the camera 700 captures the projection content image during the movement multiple times at a preset frequency, calculates the projection content image, and obtains a highest clarity value higher than the second clarity. The shooting position of the projection content image corresponding to the highest clarity value is 750 steps away from the original position as the best clarity position, and the controller 500 controls the focusing motor 320 to drive the optical component 310 to move to the best clarity position to complete automatic focusing.
[0136] In some embodiments, since the camera 700 does not take pictures after the focus motor 320 stops, but takes pictures while the focus motor 320 is moving, there is a certain deviation between the actual shooting position of the picture and the position set by the controller 500. However, since the speed of the focus motor 320 and the shooting frequency of the camera 700 are fixed, the above deviation will be limited to a certain range. The present application solves this problem by introducing a compensation value. When the position with the best clarity is obtained according to the second-stage fine focusing, that is, the position is the shooting position of the projection content image with the highest clarity value higher than the second clarity, the compensation value is calculated according to the pace of the focus motor 320 and the shooting frequency of the camera 700, and the theoretical value of clarity is calculated by moving a specific number of steps before and after the best position according to the compensation value, and the final relative clarity best position can be obtained.
[0137] For example: the best clarity position obtained through the second stage of fine focusing is 200 steps from the starting point of distance adjustment, and the calculated average position compensation value is 20 steps. The final relative best clarity position is determined at the three positions of 180 steps, 200 steps and 220 steps from the starting point of distance adjustment.
[0138] Based on the above-mentioned autofocus method, some embodiments of the present application further provide a projection device, including: an optical machine, a lens, a camera, and a controller. Fig.13 As shown. 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 camera is configured to capture the projection content image; the controller is configured to:
[0139] Get auto focus instructions;
[0140] In response to the auto-focus instruction, acquiring a first distance between the projection device and the projection surface;
[0141] Calculating a fine adjustment interval based on a preset focus curve and the first distance;
[0142] Sending a first movement instruction to the focus motor to control the focus motor to move the optical component within the fine adjustment interval;
[0143] Calculating the clarity of the projection content image captured by the camera during the movement of the optical component;
[0144] A second movement instruction is sent to the focus motor to control the focus motor to move the optical component to a target position, where the target position is a shooting position of the projection content image with the highest clarity value.
[0145] It can be seen from the above technical solution that after receiving the autofocus instruction, the projection device provided in the above embodiment obtains the first distance between the projection device and the projection surface, and then calculates the fine adjustment interval according to the preset focusing curve and the first distance to complete the first stage of coarse focusing; after determining the fine adjustment interval, the focusing motor is controlled to move the optical component in the fine adjustment interval, and the shooting position of the projection content with the highest clarity is obtained by calculating the clarity of the projection content image captured by the camera during the movement of the optical component, and the focusing motor is controlled to move the optical component to the position to complete the autofocus. The projection device determines the fine adjustment interval through the first stage of coarse focusing according to the multi-stage focusing, and finds the position with the best clarity in the fine adjustment interval through the second stage of fine focusing to complete the autofocus, avoiding the problem of unclear focus caused by local focusing without increasing the time consumption of focusing, improving the focusing speed and enhancing the user experience.
[0146] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
[0147] For the convenience of explanation, the above description has been made in conjunction with specific embodiments. However, the above exemplary discussion is not intended to be exhaustive or limit the embodiments to the specific forms disclosed above. Based on the above teachings, various modifications and variations can be obtained. The selection and description of the above embodiments are to better explain the principles and practical applications, so that those skilled in the art can better use the embodiments and various different variations of the embodiments suitable for specific use considerations.
Claims
1. A projection device, characterized in that: include: An optical machine is configured to project playback content onto a projection surface; A lens, comprising an optical assembly and a focus motor; The focusing motor is connected to the optical component to adjust the focal length of the optical component; A camera configured to capture an image of the projected content; The controller is configured as: Get auto focus instructions; In response to the auto-focus instruction, acquiring a first distance between the projection device and the projection surface; Obtaining a first position according to a preset focus curve and the first distance; Obtaining the current rotation direction of the focus motor; If the current rotation direction of the focus motor is consistent with the rotation direction of the focus motor when it last performed autofocus, calculating a first rotation step number of the focus motor according to the current position of the focus motor and the first position; sending a third movement instruction to the focus motor to control the focus motor to move the optical component to the first position according to the first rotation step number; If the current rotation direction of the focus motor is inconsistent with the rotation direction of the focus motor when it last performed autofocus, adding a preset return error to the first rotation step number to obtain a second rotation step number, and sending a fourth movement instruction to the focus motor to control the focus motor to move the optical component to the first position according to the second rotation step number; Calculating the clarity of the projection content image captured by the camera when the optical component moves to the first position; screening and obtaining the projection content image with a higher clarity than the first clarity; A fine adjustment interval is set according to the first position and the second position, wherein the second position is a shooting position of the projection content image having a higher definition than the first definition; the first position is an adjustment starting point of the fine adjustment interval, and the second position is an adjustment end point of the fine adjustment interval; Sending a first movement instruction to the focus motor to control the focus motor to move the optical component within the fine adjustment interval; Calculating the clarity of the projection content image captured by the camera during the movement of the optical component; Comparing the highest definition value with a second definition; the second definition is greater than the first definition; If the highest value of clarity is higher than the second clarity, a second movement instruction is sent to the focus motor to control the focus motor to move the optical component to a target position, where the target position is a shooting position of the projection content image with the highest value of clarity.
2. The projection device according to claim 1, characterized in that: The projection device further includes a sensor; and the controller is further configured to: In the step of obtaining the first distance between the projection device and the projection surface, the camera or sensor is used to obtain time-of-flight data based on the time-of-flight ranging principle; A first distance between the projection device and the projection surface is obtained according to the flight time data.
3. The projection device according to claim 1, characterized in that: The controller is further configured to: In the step of obtaining the first position according to the preset focus curve and the first distance, a plurality of the first distances are obtained at preset time intervals; Calculate the average of a plurality of the first distances to obtain an average distance; Input the average distance into a preset linear regression model of time-of-flight ranging to obtain a second distance; the second distance is a theoretical distance value between the projection device and the projection surface; The first position is obtained according to the preset focus curve and the second distance.
4. The projection device according to claim 1, characterized in that: The controller is also configured to: Controlling the focus motor to move the optical component within the fine adjustment interval according to a first fine adjustment speed; Acquire a plurality of projection content images captured by the camera at a preset frequency during the movement of the optical component; Calculating the clarity of the multiple projection content images to obtain the highest clarity value; Sending a second movement instruction to the focus motor to control the focus motor to move the optical component to a target position; The target position is the shooting position of the projection content image with the highest definition value.
5. The projection device according to claim 4, characterized in that: The controller is further configured to: In the step of comparing the highest clarity value with the second clarity, if the highest clarity value is equal to or lower than the second clarity, the focusing motor is controlled to move the optical component within the fine adjustment interval at a second fine adjustment speed.
6. An automatic focusing method, characterized in that: Applied to a projection device, the projection device includes an optical machine, a lens, a camera and a controller; wherein the lens includes an optical component and a focus motor, and the focus motor is connected to the optical component to adjust the focal length of the optical component; the automatic focusing method includes: Get auto focus instructions; In response to the auto-focus instruction, acquiring a first distance between the projection device and the projection surface; Obtaining a first position according to a preset focus curve and the first distance; Obtaining the current rotation direction of the focus motor; If the current rotation direction of the focus motor is consistent with the rotation direction of the focus motor when it last performed autofocus, calculate a first rotation step number of the focus motor according to the current position of the focus motor and the first position; send a third movement instruction to the focus motor to control the focus motor to move the optical component to the first position according to the first rotation step number; If the current rotation direction of the focus motor is inconsistent with the rotation direction of the focus motor when it last performed autofocus, adding a preset return error to the first rotation step number to obtain a second rotation step number, and sending a fourth movement instruction to the focus motor to control the focus motor to move the optical component to the first position according to the second rotation step number; Calculating the clarity of the projection content image captured by the camera when the optical component moves to the first position; screening and obtaining the projection content image with a higher clarity than the first clarity; A fine adjustment interval is set according to the first position and the second position, wherein the second position is a shooting position of the projection content image having a higher definition than the first definition; the first position is an adjustment starting point of the fine adjustment interval, and the second position is an adjustment end point of the fine adjustment interval; Sending a first movement instruction to the focus motor to control the focus motor to move the optical component within the fine adjustment interval; Calculating the clarity of the projection content image captured by the camera during the movement of the optical component; comparing the highest clarity value with a second clarity; the second clarity is greater than the first clarity; If the highest value of definition is higher than the second definition, a second movement instruction is sent to the focus motor to control the focus motor to move the optical component to a target position, where the target position is a shooting position of the projection content image with the highest definition.
