Projection device and display control method for automatically correcting projection image
Obtain the projection surface image through a binocular camera, determine the homography relationship between the projection chart and the projection surface, realize automatic correction of the projection rectangular area, solve the problem of low accuracy and difficulty in correction caused by irregular assembly of projector components, and improve the efficiency of the projector. correction efficiency and accuracy.
Patent Information
- Application Number
- CN202210050600.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2021-11-16
- Filing Date
- 2022-01-17
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2042-01-17
AI Technical Summary
Irregular assembly of projector components results in low parameter accuracy and difficulty in measuring the included angle, resulting in problems where the projector repeatedly corrects the projected image or fails to correct it accurately.
A binocular camera is used to obtain the first image and the second image of the projection surface, and the homography relationship between the projection chart and the projection surface is determined through feature comparison. Based on this relationship, the captured image is converted to the world coordinate system to realize automatic correction of the projection rectangular area. correction.
It realizes automatic correction of the projected image after the projector position changes, reduces the correction time, improves the correction accuracy, and ensures that the projected image is completely displayed in the preset area.
Smart Images

Figure CN114205570B_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 into this application. Technical Field
[0002] The present application relates to the technical field of display devices, and in particular, to a projection device and a display control method for automatically correcting a projection image. Background Art
[0003] The deviation of projection angle or projection distance caused by the movement of the projector will cause the projection image to not be completely projected to the preset projection area, such as forming a trapezoidal projection image; through the projector's projection image correction function, the display position and display shape of the projection image can be corrected, so that the projection image is completely displayed in the preset projection area and the center of the projection image coincides with the center of the projection area.
[0004] In some implementations of automatic correction of projection images, the position of the projection surface in the camera coordinate system is usually first obtained through the RGBD (RGB Deep: color depth) camera configured by the projector; then the external parameters between the projector optical machine and the RGBD camera are obtained through calibration, and the position of the projection image in the camera coordinate system is converted to the optical machine coordinate system; finally, the measured angle between the projector optical machine and the projection surface is obtained for measurement, thereby realizing the correction of the projection image.
[0005] However, when the projector optics, camera, screen and other components are not assembled in a standardized manner and errors occur, the accuracy of the above parameters will be reduced; and the calibration method is complicated, and obtaining the angle between the projector optics and the projection surface is sometimes inaccurate, causing the projector to repeatedly correct the projected image, or the calibration time is long, or the projection image cannot be accurately corrected. Summary of the invention
[0006] In order to solve the problems of low parameter accuracy due to improper assembly of projector components, inaccurate angle data due to difficulty in measuring the angle, which causes the projector to repeatedly correct the projected image, or take a long time to correct, or cannot accurately correct the projected image, the present application provides a projection device and a display control method for automatically correcting the projected image.
[0007] The embodiment of the present application is implemented as follows:
[0008] A first aspect of an embodiment of the present application provides a projection device, comprising: an optical machine, for projecting playback content onto a projection surface; a binocular camera, comprising a left camera and a right camera, for acquiring a display image of the projection surface; a controller, configured to: after detecting movement of the projection device, control the binocular camera to acquire a first image and a second image successively projected onto the projection surface by the optical machine, the first image corresponding to a projected first image card, the second image corresponding to a projected second image card, the first image and the second image being used for corresponding feature comparison to determine a homography between the projection image card and the projection surface in a world coordinate system; based on the homography relationship, acquire an image captured by one of the binocular cameras and convert it into a rectangular area in the world coordinate system, control the optical machine to project the playback content onto the rectangular area, the rectangular area being used to replace a deformed projection area formed on the projection surface after the projection device moves.
[0009] A second aspect of an embodiment of the present application provides a display control method for automatically correcting a projection screen, the method comprising: after detecting movement, acquiring a first image and a second image projected successively onto a projection surface, the first image corresponding to a projected first image card, the second image corresponding to a projected second image card, the first image and the second image being used for corresponding feature comparison to determine a homography between the projection image card and the projection surface in a world coordinate system; based on the homography, acquiring an image captured by one of the binocular cameras and converting it to a rectangular area in the world coordinate system, projecting the playback content onto the rectangular area, the rectangular area being used to replace a deformed projection area formed on the projection surface after the movement.
[0010] The beneficial effects of the present application are as follows: by projecting the first and second image cards, the corresponding first and second images can be obtained; further, by comparing the feature points of the first and second images, the homography relationship between the projection image card and the projection surface can be determined, so that the captured image can be converted to the world coordinate system based on the homography relationship, and the corrected projection rectangular area can be determined, so that the deformed projection area generated after the projector moves and changes in position can be automatically corrected. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0012] Figure 1A A schematic diagram showing the placement of a projection device according to an embodiment of the present application is shown;
[0013] Figure 1B A schematic diagram of the optical path of a projection device according to an embodiment of the present application is shown;
[0014] Figure 2 A schematic diagram of the circuit architecture of a projection device according to an embodiment of the present application is shown;
[0015] Figure 3 A schematic diagram of the structure of a projection device according to an embodiment of the present application is shown;
[0016] Figure 4 A schematic diagram showing the structure of a projection device according to another embodiment of the present application is shown;
[0017] Figure 5 A schematic diagram of the circuit structure of a projection device according to an embodiment of the present application is shown;
[0018] Fig. 6A 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;
[0019] Figure 6B A schematic diagram of the signaling interaction timing of a projection device realizing a radiating eye function according to another embodiment of the present application is shown;
[0020] Figure 6C 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 is shown;
[0021] Fig.6D A schematic diagram showing a flow chart of an automatic focusing algorithm implemented by a projection device according to another embodiment of the present application is shown;
[0022] Fig. 6E 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 is shown;
[0023] Fig. 6F A schematic diagram of a flow chart of a projection device implementing an entry algorithm according to another embodiment of the present application is shown;
[0024] Figure 6G 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 is shown;
[0025] Figure 6H A schematic diagram of projection of a projection device according to another embodiment of the present application is shown;
[0026] Fig.6I A schematic diagram of projection of a projection device according to another embodiment of the present application is shown;
[0027] Figure 6J A schematic diagram of a process for realizing automatic correction of a projected image by a projection device according to another embodiment of the present application is shown;
[0028] Figure 6K The figure shows a schematic diagram of a process for a projection device according to another embodiment of the present application to realize automatic correction of a projection image. DETAILED DESCRIPTION
[0029] 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, rather than all the embodiments.
[0030] It should be noted that the brief description of terms in this application is only for the convenience of understanding the embodiments described below, and is not intended to limit the embodiments of this application. Unless otherwise specified, these terms should be understood according to their common and usual meanings.
[0031] The terms "first", "second", "third", etc. in the specification and claims of this application and the above drawings are used to distinguish similar or similar objects or entities, and do not necessarily mean to limit a specific order or sequence, unless otherwise noted. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances.
[0032] 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.
[0033] 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.
[0034] Figure 1A A schematic diagram of the placement of a projection device according to an embodiment of the present application is shown.
[0035] In some embodiments, a projection device provided by the present application includes a projection screen 1 and a projection device 2. The projection screen 1 is fixed at a first position, and the projection device 2 is placed at a second position so that the image projected by it matches the projection screen 1. This step is performed by professional after-sales technicians, that is, the second position is the best placement position for the projection device 2.
[0036] Figure 1B A schematic diagram of the optical path of a projection device according to an embodiment of the present application is shown.
[0037] 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.
[0038] 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.
[0039] 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.
[0040] 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.
[0041] The light engine 200 may be implemented as a three-color light engine that integrates a blue light engine, a green light engine, and a red light engine.
[0042] The following will take the implementation of the optical machine 200 of the projection device including a blue optical machine, a green optical machine, and a red optical machine as an example to illustrate the technical solution provided by the present application.
[0043] 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.
[0044] In some embodiments, the laser assembly includes a red laser module, a green laser module, and a blue laser module, and each laser module and the corresponding mounting port are installed in a dust-proof seal via a sealing ring (made of fluororubber or other sealing materials).
[0045] Figure 2 A schematic diagram of the circuit architecture of a projection device according to an embodiment of the present application is shown.
[0046] In some embodiments, the projection device provided by the present disclosure includes multiple groups of lasers. By setting a brightness sensor in the light output path of the laser light source, the brightness sensor can detect a first brightness value of the laser light source and send the first brightness value to the display control circuit.
[0047] The display control circuit 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 fault 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 fault of the blue laser; the projection device can eliminate the COD fault of the laser in time, reduce the damage rate of the laser, and ensure the image display effect of the projection device.
[0048] 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.
[0049] In some embodiments, the projection device includes a laser driving component 30 and a brightness sensor 40. Accordingly, the laser light source 20 includes three lasers corresponding to the laser driving component 30. The three lasers may be a blue laser 201, a red laser 202, and a green laser 203. The blue laser 201 is used to emit a blue laser, the red laser 202 is used to emit a red laser, and the green laser 203 is used to emit a green laser. In some embodiments, the laser driving component 30 may be implemented as including a plurality of sub-laser driving components, each corresponding to a laser of a different color.
[0050] The display control circuit 10 is used to output a primary color enable signal and a primary color current control signal to the laser driving component 30 to drive the laser to emit light. Specifically, Figure 2As shown, the display control circuit 10 is connected to the laser driving component 30, and is used to output at least one enable signal corresponding to the three primary colors of each frame of the multi-frame display image, and transmit the at least one enable signal to the corresponding laser driving component 30, and output at least one current control signal corresponding to the three primary colors of each frame of the image, and transmit the at least one current control signal to the corresponding laser driving component 30. For example, the display control circuit 10 can be a microcontroller unit (MCU), also known as a single-chip microcomputer. Among them, the current control signal can be a pulse width modulation (PWM) signal.
[0051] In some embodiments, the blue laser 201, the red laser 202, and the green laser 203 are respectively connected to the laser driving component 30. The laser driving component 30 can provide a corresponding driving current to the blue laser 201 in response to the blue PWM signal B_PWM and the enable signal B_EN sent by the display control circuit 10. The blue laser 201 is used to emit light under the driving of the driving current.
[0052] The brightness sensor is set in the light path of the laser light source, usually on one side of the light path, without blocking the light path. Figure 2 As shown, at least one brightness sensor 40 is arranged in the light output path of the laser light source 20 , and each brightness sensor is connected to the display control circuit 10 for detecting a first brightness value of a laser and sending the first brightness value to the display control circuit 10 .
[0053] In some embodiments, the display control circuit 10 can obtain the second brightness value corresponding to the driving current of each laser from the corresponding relationship, where the driving current is the actual working current of the laser, and the second brightness value corresponding to the driving current is the brightness value that the laser can emit when it is driven normally by the driving current. The difference threshold value can be a fixed value pre-stored in the display control circuit 10.
[0054] In some embodiments, when adjusting the current control signal of the laser driving component 30 corresponding to the laser, the display control circuit 10 may reduce the duty cycle of the current control signal of the laser driving component 30 corresponding to the laser, thereby reducing the driving current of the laser.
[0055] In some embodiments, the brightness sensor 40 can detect the first brightness value of the blue laser 201 and send the first brightness value to the display control circuit 10. The display control circuit 10 can obtain the driving current of the blue laser 201, and obtain the second brightness value corresponding to the driving current from the corresponding relationship between the current and the brightness value. Then, it is detected whether the difference between the second brightness value and the first brightness value is greater than the difference threshold. If the difference is greater than the difference threshold, it indicates that the blue laser 201 has a COD failure, and the display control circuit 10 can reduce the current control signal of the laser driving component 30 corresponding to the blue laser 201. After that, the display control circuit 10 can obtain the first brightness value of the blue laser 201 again, and the second brightness value corresponding to the driving current of the blue laser 201, and when the difference between the second brightness value and the first brightness value is greater than the difference threshold, the current control signal of the laser driving component 30 corresponding to the blue laser 201 is reduced again. This cycle is repeated until the difference is less than or equal to the difference threshold. Thus, by reducing the driving current of the blue laser 201 , the COD failure of the blue laser 201 is eliminated.
[0056] Figure 3 A schematic structural diagram of a projection device according to an embodiment of the present application is shown.
[0057] 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.
[0058] In some embodiments, reference Figure 3 The at least one brightness sensor 40 may include a first brightness sensor 401, a second brightness sensor 402 and a third brightness sensor 403, wherein the first brightness sensor 401 is a blue light brightness sensor or a white light brightness sensor, the second brightness sensor 402 is a red light brightness sensor or a white light brightness sensor, and the third brightness sensor 403 is a green light brightness sensor or a white light brightness sensor.
[0059] The display control circuit 10 is also used to read the brightness value detected by the first brightness sensor 401 when the blue laser 201 is controlled to emit blue laser light, and stop reading the brightness value detected by the first brightness sensor 401 when the blue laser 201 is controlled to be turned off.
[0060] The display control circuit 10 is also used to read the brightness value detected by the second brightness sensor 402 when controlling the red laser 202 to emit red laser light, and stop reading the brightness value detected by the second brightness sensor 402 when controlling the red laser 202 to turn off.
[0061] The display control circuit 10 is also used to read the brightness value detected by the third brightness sensor 403 when controlling the green laser 203 to emit green laser light, and stop reading the brightness value detected by the third brightness sensor 403 when controlling the green laser 203 to turn off.
[0062] It should be noted that there may be only one brightness sensor, which is disposed in the combined light path of the three-color laser.
[0063] Figure 4 A schematic structural diagram of a projection device according to another embodiment of the present application is shown.
[0064] In some embodiments, the projection device may further include a light pipe 110 , which serves as a light-collecting optical component for receiving and homogenizing the three-color laser light in a combined light state.
[0065] In some embodiments, the brightness sensor 40 may include a fourth brightness sensor 404, which may be a white light brightness sensor. The fourth brightness sensor 404 is disposed in the light-emitting path of the light pipe 110, such as on the light-emitting side of the light pipe, close to its light-emitting surface. Furthermore, the fourth brightness sensor is a white light brightness sensor.
[0066] The display control circuit 10 is also used to read the brightness value detected by the fourth brightness sensor 404 when the blue laser 201, the red laser 202 and the green laser 203 are controlled to be turned on in time division, so as to ensure that the fourth brightness sensor 404 can detect the first brightness value of the blue laser 201, the first brightness value of the red laser 202 and the first brightness value of the green laser 203. And when the blue laser 201, the red laser 202 and the green laser 203 are all controlled to be turned off, stop reading the brightness value detected by the fourth brightness sensor 404.
[0067] In some embodiments, during the process of the projection device projecting an image, the fourth brightness sensor 404 is always in an on state.
[0068] In some embodiments, reference Figure 3 or Figure 4The projection device may further include a fourth dichroic plate 604, a fifth dichroic plate 605, a fifth reflector 904, a second lens assembly 90, a diffusion wheel 150, a TIR lens 120, a DMD 130 and a projection lens 140. The second lens assembly 90 includes a first lens 901, a second lens 902 and a third lens 903. The fourth dichroic plate 604 can transmit blue laser light and reflect green laser light. The fifth dichroic plate 605 can transmit red laser light and reflect green laser light and blue laser light.
[0069] Figure 5 A schematic diagram of the circuit structure of a projection device according to an embodiment of the present application is shown.
[0070] 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.
[0071] 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. The laser may include n sub-lasers connected in series, namely, sub-lasers LD1 to LDn. n is a positive integer greater than 0.
[0072] The switch circuit 302 is connected in series in the current path of the laser, and is used to control the current path to be turned on when the received enable signal is at a valid potential.
[0073] The amplifier circuit 303 is respectively connected to the detection node E in the current path of the laser light source 20 and the display control circuit 10, and is used to convert the detected driving current of the laser component into a driving voltage, amplify the driving voltage, and transmit the amplified driving voltage to the display control circuit 10.
[0074] 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.
[0075] 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 .
[0076] In some embodiments, the display control circuit 10, the driving circuit 301, the switching circuit 302 and the amplifying circuit 303 form a closed loop to implement feedback adjustment of the driving current of the laser, so that the display control circuit 10 can timely adjust the driving current of the laser through the difference between the second brightness value and the first brightness value of the laser, that is, timely adjust the actual light emitting brightness of the laser, avoid COD failure of the laser for a long time, and at the same time improve the accuracy of laser light emission control.
[0077] It should be noted that the reference Figure 3 and Figure 4 , if the laser light source 20 includes a blue laser, a red laser and a green laser, the blue laser 201 can be set at the L1 position, the red laser 202 can be set at the L2 position, and the green laser 203 can be set at the L3 position.
[0078] refer to Figure 3 and Figure 4 , the laser light at position L1 is transmitted once through the fourth dichroic plate 604, and then reflected once through the fifth dichroic plate 605 before entering the first lens 901. The light efficiency at position L1 is P1=Pt×Pf. Wherein, Pt represents the transmittance of the dichroic plate, and Pf represents the reflectance of the dichroic plate or the fifth reflectance.
[0079] In some embodiments, among the three positions L1, L2 and L3, the optical efficiency of the laser at the L3 position is the highest, and the optical efficiency of the laser at the L1 position is the lowest. Since the maximum optical power Pb output by the blue laser 201 is 4.5 watts (W), the maximum optical power Pr output by the red laser 202 is 2.5W, and the maximum optical power Pg output by the green laser 203 is 1.5W. That is, the maximum optical power output by the blue laser 201 is the largest, the maximum optical power output by the red laser 202 is the second largest, and the maximum optical power output by the green laser 203 is the smallest. Therefore, the green laser 203 is set at the L3 position, the red laser 202 is set at the L2 position, and the blue laser 201 is set at the L1 position. That is, the green laser 203 is set in the optical path with the highest optical efficiency, thereby ensuring that the projection device can obtain the highest optical efficiency.
[0080] In some embodiments, the controller includes at least one of a central processing unit (CPU), a video processor, an audio processor, a graphics processing unit (GPU), a RAM Random Access Memory (RAM), a ROM (Read-Only Memory, ROM), a first interface to an nth interface for input / output, a communication bus (Bus), etc.
[0081] 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.
[0082] The embodiments of the present application can be applied to various types of projection devices. The following will take a projector as an example to describe the projection device and the display control method for automatically correcting the projection image.
[0083] 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.
[0084] In some embodiments, the camera configured for the projector can 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 can 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 laser component built into the projector.
[0085] When the projector moves, its projection angle and distance to the projection surface change, causing the projected image to deform, and the projected image will appear as a trapezoidal image or other deformed image; the projector controller can achieve automatic trapezoidal correction based on a deep learning neural network by coupling the angle between the optical and mechanical projection surfaces and the correct display of the projected image; however, this correction method has a slow correction speed and requires a large amount of scene data for model training to achieve a certain accuracy, so it is not suitable for instant and rapid correction scenarios of user devices.
[0086] In some embodiments, for projection image correction, an association relationship between the distance, the horizontal angle, and the offset angle may be pre-created;
[0087] Then the projector controller obtains the current distance between the optical machine and the projection surface, and determines the angle between the optical machine and the projection surface at that moment in combination with the associated relationship, so as to realize the projection image correction;
[0088] The angle is specifically implemented as the angle between the optical machine center axis and the projection surface; however, in some complex environments, it may happen that the association relationship created in advance cannot adapt to all complex environments, resulting in failure of projection image correction.
[0089] In some embodiments, the projector provided by the present application can maximize the advantages of the two dimming methods and weaken the impact of their disadvantages by combining its working mode and working scene with dynamic switching dimming. The projector can monitor the movement of the device in real time through its configuration components, and immediately feed back the monitoring results to the projector controller, so that after the projector moves, the controller immediately starts the image correction function to automatically correct the projected image at the first time.
[0090] For example, through a gyroscope or a TOF (Time of Flight) sensor configured in the projector, the controller receives monitoring data from the gyroscope or the TOF sensor to determine whether the projector moves;
[0091] After determining that the projector has moved, the controller will start the projection image automatic correction process and / or the barrier process, thereby realizing functions such as trapezoidal projection area correction and projection obstacle avoidance.
[0092] Among them, the time-of-flight sensor realizes distance measurement and position movement monitoring by adjusting the frequency change of the transmitted pulse. Its measurement accuracy will not decrease with the increase of the measurement distance, and it has strong anti-interference ability.
[0093] In some embodiments, the laser emitted by the projector is reflected by the nano-scale lens of the DMD (Digital Micromirror Device) chip, where the optical lens is also a precision component. When the image plane and the object plane are not parallel, the image projected onto the screen will be geometrically distorted.
[0094] Fig. 6A 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.
[0095] 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.
[0096] It can be understood that the projector can achieve flexible position movement in the telephoto micro-projection scenario through a display control method based on geometric correction; during each movement of the device, the controller can control the projector to implement automatic display correction function to automatically restore normal display in response to possible problems such as projection image distortion, foreign objects blocking the projection surface, and abnormal projection image from the screen.
[0097] In some embodiments, a display control system based on geometric correction includes an application program service layer (APKService: Android application package Service), a service layer, and an underlying algorithm library.
[0098] 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.
[0099] The service layer may include correction services, camera services, time-of-flight (TOF) services, etc. The services correspond to the application service layer (APK Service) upward, realizing the corresponding specific functions of different configuration services of the projector; the service layer connects to algorithm libraries, cameras, time-of-flight sensors and other data acquisition services downward to realize the encapsulation of the underlying complex logic.
[0100] The underlying algorithm library provides correction services and control algorithms for the projector to implement various functions. The algorithm library can perform various mathematical operations based on OpenCV (open source based on a license) to provide basic computing power for the correction service; OpenCV is a cross-platform computer vision and machine learning software library released based on the BSD license and can run in a variety of existing operating system environments.
[0101] In some embodiments, the projector 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.
[0102] 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;
[0103] After the above-mentioned flight time service acquires the data, it will send the collected data to the application service layer through the process communication framework. The data will be used for interactive use such as controller data call, user interface, program application, etc.
[0104] In some embodiments, the projector is configured with a camera for capturing images, and the camera may be implemented as a binocular camera, a depth camera, a 3D camera, etc.;
[0105] The camera acquisition data will be sent to the camera service, and then the camera service will send the acquired image data to the process communication framework and / or the projector correction service; the projector correction service can receive the camera acquisition 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.
[0106] In some embodiments, data is interacted with the application service through a 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 control signals, and sends the control signals to the optical-mechanical control driver to control the optical-mechanical working conditions and realize automatic correction of the displayed image.
[0107] Figure 6B A schematic diagram of the signaling interaction timing of a projection device implementing an anti-eye-shooting function according to another embodiment of the present application is shown.
[0108] In some embodiments, the projector can implement an anti-eye-damaging function to prevent the user from accidentally entering the laser trajectory range of the projector and causing the risk of vision damage. When the user enters a preset specific non-safe area where the projector 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.
[0109] In some embodiments, when the projector is configured in a children's viewing mode, the controller will automatically turn on the anti-shooting eye switch. In some embodiments, after receiving position movement data sent by a gyroscope sensor or receiving foreign body intrusion data collected by other sensors, the controller will control the projector to turn on the anti-shooting eye switch.
[0110] In some embodiments, when the data collected by the time-of-flight (TOF) sensor or camera 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.
[0111] In some embodiments, the projector controller may control the calibration service to send a signal to the time-of-flight sensor to query the current state of the projector, and the controller will receive data feedback from the time-of-flight sensor.
[0112] The correction service sends a notification algorithm service to the process communication framework to start the anti-eye-shooting process signaling. The process communication framework will call the service capability from the algorithm library to call the corresponding algorithm service; for example, the algorithm may include: photo detection algorithm, screenshot algorithm, and foreign object detection algorithm, etc.
[0113] Based on the above algorithm service, the process communication framework can return the foreign object detection results to the correction 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 as follows: Figure 6B shown.
[0114] In some embodiments, when the anti-shooting eye is turned on and the user enters a preset specific area, the projector will automatically reduce the laser intensity emitted by the optical machine, reduce the display brightness of the user interface, and display a safety prompt message; the control of the anti-shooting eye function by the projector can be achieved by the following methods:
[0115] Based on the projection image acquired by the camera, the projection area of the projector is identified by using an edge detection algorithm; 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 by a preset algorithm;
[0116] 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 projector automatically starts the anti-shooting eye.
[0117] When realizing foreign object detection in a certain area outside the projection range, the camera content of the current frame can be subtracted from the camera content of the previous frame to determine whether there is a foreign object entering the area outside the projection range; if it is determined that a foreign object has entered, the anti-shooting eye function will be triggered.
[0118] At the same time, the projector 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 projector will automatically trigger the anti-glare function.
[0119] In some embodiments, the projector determines whether the anti-eye-glare function needs to be enabled based on the collected flight time data, screenshot data, and camera data analysis.
[0120] For example, the controller performs depth difference analysis based on the collected flight time data; if the depth difference is greater than a preset threshold value X, and the preset threshold value X is implemented as 0, it can be determined that a foreign object is already in a specific area of the projector;
[0121] If the user is in a specific area where their eyesight is at risk of being damaged by laser, the projector will automatically activate the anti-eye function to reduce the intensity of the laser emitted by the optical machine, lower the brightness of the user interface, and display a safety warning message.
[0122] For another example, the projector performs a difference analysis of the additive color mode (RGB) based on the collected screenshot data. When the difference is greater than a preset threshold value Y, it can be determined that there is a foreign object in a specific area of the projector. If there is a user in the specific area, his or her vision is at risk of being damaged by the laser, and the projector will automatically activate the anti-laser function.
[0123] For another example, the projector obtains projection coordinates based on the collected camera data; then determines the projection area of the projector based on the projection coordinates, and further performs difference analysis of the additive color mode (RGB) within the projection area; when the difference is greater than a preset threshold value Y, it can be determined that a foreign object is in a specific area of the projector; the projector will automatically activate the anti-eye function.
[0124] If the acquired projection coordinates are in the extended area, the controller can still perform a difference analysis of the additive color mode (RGB) in the extended area; if the difference is greater than the preset threshold value Y, it can be determined that a foreign object is in a specific area of the projector, and the projector will automatically start the anti-eye function, such as Figure 6G shown.
[0125] Figure 6C 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 is shown.
[0126] In some embodiments, the projector monitors the movement of the device through a gyroscope or a gyroscope sensor. The calibration service sends a signal to the gyroscope for querying the device status, and receives a signal fed back by the gyroscope for determining whether the device has moved.
[0127] In some embodiments, the display correction strategy can be configured as follows: when the gyroscope and time-of-flight sensor change at the same time, the projector triggers trapezoidal correction first; when trapezoidal correction is in progress, the controller does not respond to instructions issued by the remote control buttons to cooperate with the implementation of trapezoidal correction, and the projector will display a pure white picture card.
[0128] 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, and calculate the homography relationship between the projection image and the playback card in combination with the optomechanical internal parameters. The homography relationship is also called a mapping relationship, and the homography relationship is used to realize arbitrary shape transformation between the projection image and the playback card.
[0129] In some embodiments, the correction service sends a signaling to the process communication framework 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;
[0130] 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 through 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 feedback information such as successful photo taking and successful obstacle avoidance.
[0131] In some embodiments, if an error occurs when the projector executes the above algorithm or transmits data, the correction service will control the user interface to display an error return prompt, and control the user interface to perform keystone correction and autofocus the card again.
[0132] Through the automatic obstacle avoidance algorithm, the projector can identify the screen; and use the projection change to correct the projected image to display inside the screen, so as to achieve the effect of aligning with the edge of the screen. Through the autofocus algorithm, the projector can use the time-of-flight (ToF) sensor to obtain the distance between the optical machine and the projection surface, find the optimal image distance in the preset mapping table based on the distance, and use the image algorithm to evaluate the clarity of the projected image, based on which to fine-tune the image distance.
[0133] In some embodiments, the automatic trapezoidal correction signaling sent by the correction service to the process communication framework may include other functional configuration instructions, such as control instructions such as whether to implement synchronous obstacle avoidance and whether to enter the screen.
[0134] 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 function, the algorithm service can also obtain and execute the automatic screen entry algorithm, and the process may include a trapezoidal correction algorithm.
[0135] The projector performs automatic screen entry, and the algorithm service sets the 8-position coordinates between the projector and the screen. Then, the autofocus algorithm is used again to adjust the viewing distance between the projector 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. Figure 6C shown.
[0136] 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.
[0137] 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.
[0138] For example, after the projector is started, the user moves the device; the projector 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 projector obtains the detection distance of the time of flight (TOF) sensor through the middleware for calculation;
[0139] The controller queries a preset mapping table according to the acquired distance to obtain the focal length of the projector; then the middleware sets the acquired focal length to the optical machine of the projector;
[0140] After the optical machine emits laser at the above focal length, the camera will execute the photo command; the controller determines whether the projector focus is completed based on the acquired captured image and evaluation function; if the judgment result meets the preset completion condition, the control autofocus process ends; if the judgment result does not meet the preset completion condition, the middleware will fine-tune the focal length parameters of the projector optical machine, for example, the focal length can be gradually fine-tuned with 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 autofocus, such as Fig.6D shown.
[0141] In some embodiments, the projector can project a 75-100 inch screen. After purchasing the laser projector, the user installs and debugs the projector so that the projector at position A can obtain a suitable A projection area, which is rectangular, such as Figure 6H As shown on the left;
[0142] After the projector position is moved from A to B, a deformed projection area is often generated, such as Figure 6H The trapezoidal projection area shown on the right; it is understandable that the projector has drawbacks in placement. For cleaning and similar reasons, the placement of the projector will change; and when the screen is fixed, the match between the projector image and the screen depends entirely on the position of the projector. Changes in the projector position will cause changes in the projection position, resulting in problems with the image not matching the screen.
[0143] Therefore, when the position of the projector changes, the user needs to adjust the projector to the best position to readjust the relative relationship between the edge of the picture and the screen to ensure that the picture matches the screen. However, for ordinary users who are not familiar with projectors, the laser picture after self-adjustment usually does not present a perfect rectangle. The automatic correction projection image display control method provided in this application can realize the projection image correction by software, such as Fig.6I As shown; the correction of the deformed projection area by the projector will be described below. In some embodiments, the projector provided by the present application can realize the display correction function through the trapezoidal correction algorithm. After the controller detects that the position of the projector has changed, the controller will control the optical machine to project the first image card and the second image card onto the projection surface; in the process of projecting the image cards, the controller will control the binocular camera to obtain the first image corresponding to the projected first image card and the second image corresponding to the projected second image card;
[0144] For example, the controller first controls the optical machine to project a white picture card onto the projection surface, and then controls the binocular camera to take a picture of the projection surface to obtain a picture corresponding to the white picture card, wherein the white picture card is the first picture card mentioned above, and the first picture card may also be implemented as other color pictures;
[0145] After the projector stores the image corresponding to the white card, the controller controls the optical machine to project the feature card onto the projection surface again. The feature card is the second card. The second card can be implemented as a checkerboard card or other cards with graphic or color features, such as Figure 6H shown.
[0146] In some embodiments, the controller can determine the homography relationship between the projection card and the projection surface in the world coordinate system by comparing corresponding features of the first image and the second image, thereby obtaining the correlation between the projection card and the projection surface display to correct the projection image.
[0147] The controller obtains the coordinates of the corresponding feature points of the binocular camera in the image coordinate system according to the image recognition algorithm, and then calculates the coordinates of the projection surface in any of the binocular cameras, such as the left camera coordinate system, according to the coordinates of the feature points of the binocular camera in the image coordinate system, so as to obtain the coordinates of the feature points of the projection surface in the world coordinate system.
[0148] For example, according to the obtained three-dimensional coordinates of the discrete points in the left camera coordinate system, the hyperstatic equation is solved and the plane equation of the projection surface in the left camera coordinate system can be calculated and expressed as:
[0149] z=a*x+b*y+c;
[0150] Then, based on the above plane equation, the controller calculates and obtains the unit normal vector of the projection surface in the left camera coordinate system; the world coordinate system 1 is further defined to take the origin of the left camera coordinate system as the origin, and to establish a direct coordinate system of the space with the XOY plane parallel to the projection surface, so the equation of the projection surface in the world coordinate system 1 is expressed as:
[0151] z = c′;
[0152] Where c′ is a constant, and the above unit normal vector is expressed as:
[0153] m=(0,0,1) T ;
[0154] According to the above representation of the unit normal vector of the projection surface in different coordinate systems, the rotation matrix between the two coordinate systems can be obtained, which is expressed as:
[0155] m = R1*n;
[0156] According to the above rotation matrix R1 and the coordinates of the projection plane point P (x′, y′, z′) in the optical-mechanical coordinate system, the coordinates of the projection plane point P in the world coordinate system 1 are obtained; the projection of the origin of the world coordinate system 1 on the projection plane is taken as the origin, and the projection plane is the XOY plane, and the world coordinate system 2 is established. The coordinates of the projection point P in the world coordinate system 2 are expressed as (x″, y″, 0), and the controller can obtain the coordinates of all the projection feature points in the world coordinate system 2;
[0157] According to the coordinates of the projection feature points obtained above and the obtained feature points of the optical projection chart (known), the homography matrix is calculated to obtain the homography relationship between the projection feature chart and the feature points of the projection surface, that is, the homography relationship between the projection chart and the projection surface in the world coordinate system, which can also be called a mapping relationship, such as Figure 6J shown.
[0158] In some embodiments, when the projector projects the playback content onto the projection surface, if the controller detects that there is an obstacle blocking the projection beam between the optical machine and the projection surface, the controller will start the obstacle avoidance process.
[0159] When the projector is equipped with an obstacle function switch, the controller determines whether the obstacle avoidance function of the projector is turned on. If it is not turned on, obstacle detection is not performed. If the projector turns on the obstacle avoidance function, the controller calculates and obtains the homography matrix, that is, the homography relationship, between any camera in the binocular camera, such as the left camera and the optical machine.
[0160] The projector stores the feature points of the projection card. After identifying the feature points of the image corresponding to the feature card taken by the left camera, it is compared with the stored feature points of the projection card to calculate the homography matrix of the left camera and the optical machine.
[0161] For example, the controller performs grayscale processing on the captured image acquired by the binocular camera, and then performs clustering processing based on the clustering algorithm.
[0162] During the clustering process, the controller clusters the grayscale processed captured images into projection beam areas and obstacle areas according to the clustering algorithm and grayscale values. For example, according to the grayscale size, the grayscale images in the projection area are clustered into two categories, among which the projection beam grayscale value must be the largest one, and the one with a small grayscale value is judged as the obstacle area.
[0163] It can be understood that the controller binarizes the projection beam area and the obstacle area, so that it is convenient to extract a first closed contour larger than a preset obstacle avoidance area threshold, and the first closed contour corresponds to an obstacle, such as a household object between the projector and the screen;
[0164] In the above process, the controller may also extract a second closed contour that is smaller than a preset obstacle avoidance area threshold, where the second closed contour corresponds to a non-obstacle, such as a small stain on a wall or a curtain, etc. After the controller identifies the second closed contour, in order to improve the recognition efficiency of the subsequent algorithm, the second closed contour may be filled as the projection beam area;
[0165] The first closed contour can be used by the controller to control the optical machine projection process to avoid the closed contour, so that the final rectangular area generated by the projection surface can accurately avoid the projection obstacle avoidance, thereby realizing the projection obstacle avoidance function; at the same time, the recognition and filling of the second closed contour in the subsequent algorithm recognition process will not affect the final rectangular area position generated by the projection surface, such as Figure 6K shown.
[0166] For example, the controller further performs binarization processing on the above two types of grayscale values, the large grayscale value can be configured as 255, and the small grayscale value can be configured as 0; then all closed contours contained in the binarized image are extracted; in this step, in order to improve the user experience and avoid the projector from identifying some very small objects, such as stains on the wall, as obstacles to avoid when performing the obstacle avoidance function, a preset obstacle avoidance area threshold can be defined;
[0167] Contours that are larger than 1% of the area of the contour area are identified as obstacles, and contours that are smaller than 1% of the area of the contour area are not identified as obstacles and are not avoided. At the same time, the controller fills the grayscale value of the area where the contours that are smaller than 1% of the area of the contour area are located with the maximum value of 255, so that the projector will not avoid such extremely small contours during subsequent obstacle avoidance.
[0168] It should be noted that in some embodiments, the projector directly uses binarization processing to detect obstacle contours; then an empirical threshold is used to identify obstacles; the recognition efficiency of this method will decrease when dealing with complex environments. For example, when the projection beam is projected onto a black screen area, if the empirical threshold is selected too large, the projection that does not contain obstacles will also be mistakenly identified as an obstacle, affecting the obstacle avoidance effect.
[0169] In some embodiments, the projector controller may convert the captured image acquired by any camera in the binocular cameras into the world coordinate system based on the homography relationship, ie, the mapping relationship, obtained in the foregoing text to obtain a final rectangular area.
[0170] After the left camera of the binocular camera takes a picture, the controller performs grayscale binarization on the captured image; then the controller converts the binarized image into an optical-mechanical coordinate system according to the homography matrix between the left camera of the binocular camera and the optical-mechanical system of the projector;
[0171] It can be understood that after the binary image is converted to the homography matrix, it is equivalent to retaining only the image within the projection area, and other irrelevant areas will be eliminated. Therefore, the obstacle avoidance area retrieval in the subsequent steps only needs to consider the projection area;
[0172] Then, the controller converts the image acquired by the left camera after binary contour recognition to the world coordinate system 2 again through the homography matrix; according to the acquired image, the controller selects a rectangular area in the world coordinate system 2, and controls the optical machine to project the playback content to the rectangular area, and the rectangular area is used to replace the deformed projection area formed on the projection surface after the projection device moves, such as Figure 6H shown.
[0173] It can be understood that for common micro-projector type projectors, due to their complex usage environment, it is inevitable that the optical machine, projection wall or screen will not be vertical, resulting in a trapezoidal projection image; when there are obstacles in the projection area, the projection image will be blocked by the obstacles. The display control method for automatically correcting the projection image provided in this application can realize the functions of automatic trapezoidal correction and obstacle avoidance.
[0174] In some embodiments, the projector controller can determine the coordinates of the center point of the projected image corresponding to the captured image in the world coordinate system based on the homography relationship described above.
[0175] For example, the projection card of the projector optical machine is defined as a resolution of 3840*2160, and the controller can calculate and obtain the center point (1920, 1080) of the projection card; then, based on the obtained homography matrix, the coordinate system of the center point of the projection card in the world coordinate system 2 is calculated.
[0176] The controller expands the rectangle based on the aspect ratio of the projection card and the coordinates of the center point of the projection card until the grayscale value change boundary is reached, and obtains the four vertices of the rectangle at this moment as the vertices of the final rectangular area.
[0177] For example, if the projection size aspect ratio of the projection chart is configured as 16:9, the selected rectangle is based on the coordinates of the center point of the chart in the world coordinate system 2 and increases in sequence according to the ratio of 16:9; the grayscale value of the projection area is set to 255, and the grayscale value of the corresponding obstacle area is set to 0;
[0178] Therefore, when the points on the four sides of the rectangle touch the area with a grayscale value of 0, the controller will control the rectangle to stop expanding, and at this moment the four vertices of the final rectangular area can be obtained; it can be converted to the optical machine coordinate system to obtain the area to be projected by the projector optical machine.
[0179] In some embodiments, the controller may obtain the final rectangular area by obtaining the maximum inscribed rectangle with a grayscale value of 255 in the captured image, and then correcting the width and height of the maximum inscribed rectangle according to the aspect ratio of the projection image card.
[0180] For example, the controller obtains the maximum inscribed rectangle in the area with 255 pixels in the captured image, and calculates the aspect ratio of the maximum inscribed rectangle; if the aspect ratio of the maximum inscribed rectangle is:
[0181] width / height>16∶9;
[0182] The height of the final selected rectangle remains unchanged, and the controller corrects its width to:
[0183] width1=height / 9*16;
[0184] If the aspect ratio of the maximum inscribed rectangle is:
[0185] width / height<16∶9;
[0186] The width of the final selected rectangle remains unchanged, and the controller corrects its height to:
[0187] height1=width / 16*9;
[0188] Based on the final corrected width and height values, the controller can determine any vertex of the maximum inscribed rectangle to locate the rectangular area corresponding to the projection area; that is, based on the acquired width and height and any one vertex of the calculated maximum inscribed rectangle, the projector can obtain the final selected rectangle; the controller converts the four vertices of the rectangle into the optical machine coordinate system to obtain the area to be projected by the optical machine.
[0189] In some embodiments, the controller first obtains two sets of external parameters, namely, rotation and translation matrices, between the two cameras and between the camera and the optical machine based on a calibration algorithm; then plays a specific checkerboard image card through the optical machine of the projector, and calculates the depth value of the projected checkerboard corner point, for example, by solving the xyz coordinate value through the translation relationship between the binocular cameras and the principle of similar triangles; then, fits the projection surface based on the xyz, and obtains its rotation and translation relationship with the camera coordinate system, which may specifically include the pitch relationship (Pitch) and the yaw relationship (Yaw).
[0190] The roll parameter value can be obtained through the gyroscope configured on the projector to combine the complete rotation matrix, and finally the external parameters from the projection surface in the world coordinate system to the optomechanical coordinate system are calculated.
[0191] 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.
[0192] 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.
[0193] For example, the projector controller obtains the depth value of the corresponding point of the photo pixel, or the coordinates of the projection point in the camera coordinate system; through the depth value, the middleware obtains the relationship between the optical-mechanical coordinate system and the camera coordinate system;
[0194] The controller then calculates the coordinate value of the projection point in the optomechanical coordinate system, and obtains the angle between the projection plane and the optomechanical system based on the coordinate value fitting plane, and obtains the corresponding coordinates of the projection point in the world coordinate system of the projection plane according to the angle relationship; the homography matrix can be calculated based on the coordinates of the chart in the optomechanical coordinate system and the coordinates of the corresponding points on the projection plane.
[0195] The controller determines whether there is an obstacle based on the above-mentioned acquired data; when an obstacle exists, it randomly selects rectangular coordinates on the projection plane in the world coordinate system, and calculates the area to be projected by the optical machine according to the homography relationship; when the obstacle does not exist, the controller can, for example, obtain the feature points of the QR code, and then obtain the coordinates of the QR code on the pre-made drawing card, and then obtain the homography relationship between the camera photo and the drawing card, and convert the obtained obstacle coordinates into the card to obtain the coordinates of the obstacle blocking the card.
[0196] According to the coordinates of the occluded area of the obstacle map in the optical machine coordinate system, the coordinates of the occluded area of the projection surface are obtained through the homography matrix conversion. The rectangular coordinates are randomly selected on the projection surface in the world coordinate system, while avoiding obstacles. The area to be projected by the optical machine is obtained according to the homography relationship. The logical flow is as follows: Fig. 6E shown.
[0197] 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.
[0198] In some embodiments, the middleware obtains the QR code card captured by the camera, identifies the feature points of the QR code, and obtains the coordinates in the camera coordinate system; the controller further obtains the coordinates of the preset card in the optical machine coordinate system to solve the homography relationship between the camera plane and the optical machine plane; based on the above homography relationship, the controller identifies the coordinates of the four vertices of the screen captured by the camera, and obtains the range of the card to be projected onto the screen optical machine according to the homography matrix, such as Fig. 6F shown.
[0199] It can be understood that in some embodiments, the screen entry algorithm can identify and extract the largest black closed rectangular outline based on the algorithm library 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.
[0200] 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 projector provided in this application can automatically complete the correction for the above problems, including automatic keystone correction, automatic screen entry, automatic obstacle avoidance, automatic focus, anti-eye shooting and other functions.
[0201] Based on the above description of the display control scheme for realizing automatic correction of the projection image by the projection device and the introduction of the related drawings, the present application also provides a display control method for automatically correcting the projection image. The method has been described in detail in the display control scheme for realizing automatic correction of the projection image by the projection device and will not be repeated here.
[0202] The beneficial effect of the embodiments of the present application is that by projecting the first and second image cards, the corresponding first and second images can be obtained; further, by comparing the feature points of the first and second images, the homography relationship between the projection image card and the projection surface can be determined, so that the captured image can be converted to the world coordinate system based on the homography relationship, and the corrected projection rectangular area can be determined, so that the deformed projection area generated after the projector moves and changes in position can be automatically corrected.
[0203] In addition, it will be appreciated by those skilled in the art that various aspects of the present application may be illustrated and described by a number of patentable categories or situations, including any new and useful process, machine, product or combination of substances, or any new and useful improvements thereto. Accordingly, various aspects of the present application may be performed entirely by hardware, entirely by software (including firmware, resident software, microcode, etc.), or by a combination of hardware and software. The above hardware or software may all be referred to as "data blocks", "controllers", "engines", "units", "components" or "systems". In addition, various aspects of the present application may be represented as computer products located in one or more computer-readable media, which include computer-readable program codes.
[0204] A computer storage medium may include a propagated data signal embodying a computer program code, such as in baseband or as part of a carrier wave. The propagated signal may be in a variety of forms, including electromagnetic, optical, etc., or a suitable combination. A computer storage medium may be any computer-readable medium other than a computer-readable storage medium, which can be connected to an instruction execution system, device or apparatus to communicate, propagate or transmit the program for use. The program code on the computer storage medium may be transmitted via any suitable medium, including radio, cable, fiber optic cable, RF, or similar media, or any combination of the above media.
[0205] The computer program code required for the operation of each part of the present application can be written in any one or more programming languages, including object-oriented programming languages such as Java, Scala, Smalltalk, Eiffel, JADE, Emerald, C++, C#, VB.NET, Python, etc., conventional procedural programming languages such as C language, Visual Basic, Fortran 2003, Per|, COBOL 2002, PHP, ABAP, dynamic programming languages such as Python, Ruby and Groovy, or other programming languages, etc. The program code can be run completely on the user's computer, or run on the user's computer as an independent software package, or run partly on the user's computer and partly on the remote computer, or run completely on the remote computer or server. In the latter case, the remote computer can be connected to the user's computer through any network form, such as a local area network (LAN) or a wide area network (WAN), or connected to an external computer (e.g., via the Internet), or in a cloud computing environment, or used as a service such as software as a service (SaaS).
[0206] In addition, unless explicitly stated in the claims, the order of the processing elements and sequences described in this application, the use of alphanumeric characters, or the use of other names are not intended to limit the order of the processes and methods of this application. Although the above disclosure discusses some invention embodiments that are currently considered useful through various examples, it should be understood that such details are only for illustrative purposes, and the attached claims are not limited to the disclosed embodiments. On the contrary, the claims are intended to cover all modifications and equivalent combinations that are consistent with the essence and scope of the embodiments of this application. For example, although the system components described above can be implemented by hardware devices, they can also be implemented only by software solutions, such as installing the described system on an existing server or mobile device.
[0207] Similarly, it should be noted that in order to simplify the description of the disclosure of this application and thus help understand one or more embodiments of the invention, in the above description of the embodiments of this application, multiple features are sometimes combined into one embodiment, figure or description thereof. However, this disclosure method does not mean that the features required by the object of this application are more than the features mentioned in the claims. In fact, the features of the embodiments are less than all the features of the single embodiment disclosed above.
[0208] Each patent, patent application, patent application disclosure, and other materials, such as articles, books, instructions, publications, documents, etc., cited in this application are hereby incorporated by reference in their entirety. Except for application history documents that are inconsistent with or conflicting with the content of this application, documents that limit the broadest scope of the claims of this application (currently or later attached to this application) are also excluded. It should be noted that if the descriptions, definitions, and / or use of terms in the attached materials of this application are inconsistent or conflicting with the content described in this application, the descriptions, definitions, and / or use of terms in this application shall prevail.
Claims
1. A projection device, It is characterized in that include: An optical machine, used for projecting the playback content onto a projection surface; A camera, used to obtain a display image of the projection surface; The controller is configured as: After detecting the movement of the projection device, controlling the camera to successively acquire a first image and a second image projected by the optical machine onto the projection surface, wherein the first image corresponds to a first image card projected by the optical machine, and the second image corresponds to a second image card projected by the optical machine; Comparing corresponding features of the first image and the second image to determine a mapping relationship between the projection chart and the projection surface in a world coordinate system; Based on the mapping relationship, determining the coordinates of the center point of the captured image in the world coordinate system; Expand the rectangle based on the center point coordinates according to the aspect ratio of the projection card until the gray value change boundary is reached, and obtain the rectangular area constructed by the four vertices of the rectangle at this moment, and the rectangular area is used to replace the deformed projection area formed on the projection surface after the projection device moves; Obtaining a homography matrix between the camera and the optical machine; According to the homography matrix, the rectangular area is transformed into an optomechanical coordinate system; Controlling the optical machine to project the playback content to a rectangular area under the optical machine coordinate system; Before the controller controls the optical machine to project the playback content onto the rectangular area, the controller is further configured to: Obtaining the captured image corresponding to the projection card; grayscale the captured image; Clustering the grayscale processed captured image into a projection beam area and an obstacle area based on a clustering algorithm and grayscale values; Binarizing the projection beam area and the obstacle area to extract a second closed contour smaller than a preset obstacle avoidance area threshold and a first closed contour larger than the preset obstacle avoidance area threshold, wherein the first closed contour corresponds to an obstacle, the second closed contour corresponds to a non-obstacle, and a grayscale value of the projection beam area is different from a grayscale value of the obstacle area; The second closed contour is filled as the projection beam area.
2. The projection device according to claim 1, It is characterized in that The controller obtains the rectangular area of the camera image converted to the world coordinate system based on the mapping relationship, which specifically includes the controller: Get the maximum inscribed rectangle with a grayscale value of 255 in the captured image; Correcting the width and height of the maximum inscribed rectangle according to the aspect ratio of the projection image card; Based on the width and height values, any vertex of the maximum inscribed rectangle is obtained to locate the rectangular area.
3. A display control method for automatically correcting a projected image, It is characterized in that The method comprises: After detecting the movement, a first image and a second image projected onto the projection surface are acquired successively, wherein the first image corresponds to the projection of the first picture card, and the second image corresponds to the projection of the second picture card; Comparing corresponding features of the first image and the second image to determine a mapping relationship between the projection chart and the projection surface in a world coordinate system; Based on the mapping relationship, determining the coordinates of the center point of the captured image in the world coordinate system; Expand the rectangle based on the center point coordinates according to the aspect ratio of the projection card until the gray value change boundary is reached, and obtain the rectangular area constructed by the four vertices of the rectangle at this moment, and the rectangular area is used to replace the deformed projection area formed on the projection surface after the movement; Get the homography matrix between the camera and the opto-mechanical system; According to the homography matrix, the rectangular area is transformed into an optomechanical coordinate system; Controlling the optical machine to project the playback content to a rectangular area under the optical machine coordinate system; Before projecting the playback content onto the rectangular area, the method further includes: Obtaining the captured image corresponding to the projection card; grayscale the captured image; Clustering the grayscale processed captured image into a projection beam area and an obstacle area based on a clustering algorithm and grayscale values; Binarizing the projection beam area and the obstacle area to extract a second closed contour smaller than a preset obstacle avoidance area threshold and a first closed contour larger than the preset obstacle avoidance area threshold, wherein the first closed contour corresponds to an obstacle, the second closed contour corresponds to a non-obstacle, and a grayscale value of the projection beam area is different from a grayscale value of the obstacle area; The second closed contour is filled as the projection beam area.
4. The display control method for automatically correcting a projection image according to claim 3, It is characterized in that Acquiring the rectangular area of the camera image converted into the world coordinate system based on the mapping relationship specifically includes: Obtain the maximum inscribed rectangle with a grayscale value of 255 in the captured image; Correcting the width and height of the maximum inscribed rectangle according to the aspect ratio of the projection image card; Based on the width and height values, any vertex of the maximum inscribed rectangle is obtained to locate the rectangular area.
