Projection device and projection area correction method
By obtaining the mapping relationship between the projection device and the projection surface, the projection area is automatically corrected, which solves the problem of inaccurate projection of the projection device and improves the user experience and the efficiency of the projection device.
Patent Information
- Application Number
- CN202210389054.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2021-11-16
- Filing Date
- 2022-04-13
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2042-04-13
AI Technical Summary
When existing projection equipment redefines the projection area, users need to manually adjust the position and projection angle. The process is cumbersome and inaccurate, resulting in poor user experience.
Provide a projection equipment and a projection area correction method, by obtaining the mapping relationship between the light machine and the projection surface, correcting the outline of the initial projection area, determining the position information of the target projection area, and automatically adjusting the light machine to ensure that the image is completely projected to the user-set area.
It achieves accurate correction of the projection area, improves user experience, reduces the complexity and error rate of manual adjustment, and enables the image to be completely projected to the designated area.
Smart Images

Figure CN114827563B_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 projection equipment, and in particular to a projection equipment and a projection area correction method. Background Art
[0003] A projection device is a display device that can project images or videos onto a screen. The projection device can project laser light of a specific color onto a projection surface to form a specific image through the refraction of an optical lens assembly.
[0004] In order to meet the needs of users, the projection device can project the image onto the projection surface, in the projection area set by the user, for example, it can be a screen placed in advance by the user. When using the projection device, if the position of the projection device is offset, the projection device will not be able to fully project the image into the projection area, giving the user a poor experience. To this end, it is necessary to redefine the projection area so that the image can be projected into the projection area again.
[0005] When existing projection devices redefine the projection area, users can adjust the position and projection angle of the projection device so that the image can be fully projected into the projection area. However, this method requires users to manually select the adjustment direction, which is a cumbersome process and cannot accurately determine the projection area, giving users a poor experience. Summary of the invention
[0006] The present application provides a projection device and a projection area correction method to solve the problem in the related art that the projection area cannot be accurately determined, resulting in a poor user experience.
[0007] In one aspect, the present application provides a projection device, including an optical machine and a controller. The optical machine is configured to project a picture card onto a projection surface; and the controller is configured to perform the following steps:
[0008] In response to the projection area correction instruction, obtaining a mapping relationship between the image card projected by the optical machine and the projection surface;
[0009] According to the mapping relationship, the optical machine projects the image card to an initial projection area in the projection surface;
[0010] Performing contour correction on the initial projection area to obtain a target projection area;
[0011] Determine the target position information of the target projection area according to the mapping relationship;
[0012] According to the target position information, the optical machine is controlled to project the target image card onto the target projection area.
[0013] On the other hand, the present application provides a projection area correction method, applied to a projection device, comprising:
[0014] In response to the projection area correction instruction, obtaining a mapping relationship between the image card projected by the optical machine and the projection surface;
[0015] According to the mapping relationship, the optical machine projects the image card to an initial projection area in the projection surface;
[0016] Performing contour correction on the initial projection area to obtain a target projection area;
[0017] Determine the target position information of the target projection area according to the mapping relationship;
[0018] According to the target position information, the optical machine is controlled to project the target image card onto the target projection area.
[0019] It can be seen from the above technical solutions that the present application provides a projection device and a projection area correction method. When the projection area correction instruction is obtained, the projection device can obtain the mapping relationship between the image card projected by the optical machine and the projection surface. According to the mapping relationship, it can be obtained that the initial projection area in which the optical machine projects the image card onto the projection surface is the projection area before correction. The projection device can perform contour correction on the initial projection area to obtain the target projection area, thereby determining the target area set by the user, which can be a screen. The target position information of the target projection area is determined according to the mapping relationship, and the optical machine can be instructed to project the target image card to the target projection area, thereby correcting the projection area to ensure that the projection device projects the image completely onto the screen, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] 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.
[0021] Figure 1 Schematic diagrams of projection screens in some embodiments are shown;
[0022] Figure 2 Shows a schematic diagram of the placement of projection equipment in some embodiments;
[0023] Figure 3A schematic diagram of the optical path of a projection device in some embodiments is shown;
[0024] Figure 4 A schematic diagram of the circuit architecture of a projection device in some embodiments is shown;
[0025] Figure 5 A schematic diagram of the structure of a projection device in some embodiments is shown;
[0026] Figure 6 A schematic diagram of the circuit structure of a projection device in some embodiments is shown;
[0027] Figure 7 A schematic diagram of a system framework for realizing display control of a projection device in some embodiments is shown;
[0028] Figure 8 A schematic diagram showing a change in the position of a projection device in some embodiments is shown;
[0029] Fig. 9 A flowchart of the interaction of various components of a projection device in some embodiments is shown;
[0030] Fig.10 A schematic diagram of a first image card in some embodiments is shown;
[0031] Fig.11 A schematic diagram of a first image card in some embodiments is shown;
[0032] Fig.12 A schematic diagram of a process for obtaining a mapping relationship in some embodiments is shown;
[0033] Fig.13 A schematic diagram showing a target projection area in some embodiments;
[0034] Fig.14 A schematic diagram showing a target projection area in some embodiments;
[0035] Fig.15 A schematic diagram showing a target projection area in some embodiments;
[0036] Fig.16 Schematic diagrams showing some embodiments of the projection area before and after correction;
[0037] Fig.17 A schematic flow chart of an embodiment of a projection area correction method is shown. DETAILED DESCRIPTION
[0038] In order to make the purpose, implementation mode and advantages of the present application clearer, the exemplary implementation mode 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.
[0039] Based on the exemplary embodiments described in this application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the claims attached to this application. In addition, although the disclosure in this application is introduced according to one or several exemplary examples, it should be understood that each aspect of these disclosures can also constitute a complete implementation method separately. It should be noted that the brief description of the terms in this application is only for the convenience of understanding the implementation methods described below, and is not intended to limit the implementation methods of this application. Unless otherwise specified, these terms should be understood according to their common and usual meanings.
[0040] 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.
[0041] 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.
[0042] 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.
[0043] 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 explain the projection device.
[0044] 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.
[0045] The projection device may be provided with an optical machine, which may project an image, such as a picture card selected by a user, onto a projection surface, specifically onto a projection area specified by a user on the projection surface. The projection surface may be a wall, and the projection area may be a specific area on the wall, or a projection screen located in front of the wall.
[0046] In some embodiments, the projection screen is used in movies, offices, home theaters, large conferences, etc., and is a tool for displaying images and video files. It can be set to different specifications and sizes according to actual needs. In order to make the display effect more in line with the user's viewing habits, the aspect ratio of the projector screen is usually set to 16:9 to adapt to the image size projected by the projection device. Figure 1 The schematic diagram of the projection screen in some embodiments is shown. The edge of the projection screen can be a dark edge band to highlight the boundary of the screen, and the central area of the projection screen can be a white screen, which can be used as a projection area to display the image projected by the projection device.
[0047] In order to achieve the best projection effect, the installation positions of the projection screen and the projection device can be operated by professional after-sales technicians. By setting the projection screen and the projection device at the placement position that achieves the best projection effect during operation, the image projected by the projection device can be completely on the projection screen, thereby improving the user experience. During use, the user can also set the positions of the two by himself, which is not limited in the embodiments of the present application.
[0048] Figure 2 A schematic diagram of the placement of projection devices in some embodiments is shown. In some embodiments, the projection screen provided by the present application can be fixed at a first position, and the projection device is placed at a second position, so that the image projected by the projection device matches the projection screen.
[0049] Figure 3 A schematic diagram of the optical path of a projection device in some embodiments is shown.
[0050] 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.
[0051] In some embodiments, the laser light source 100 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 in which the laser assembly is installed can be sealed with a lower level of dustproofness to reduce the sealing cost.
[0052] 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.
[0053] 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.
[0054] 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.
[0055] 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.
[0056] 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.
[0057] Figure 4 A schematic diagram of the circuit architecture of a projection device in some embodiments is shown. 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, and 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 multiple refers to two or more.
[0058] 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.
[0059] The display control circuit 10 can obtain the second brightness value corresponding to the driving current of each laser, and when it is determined that the difference between the second brightness value of the laser and the first brightness value of the laser is greater than the difference threshold, it is determined that a COD 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 improve the image display effect of the projection device.
[0060] In some embodiments, the laser light source 20 includes three lasers corresponding to the laser driving assembly 30, and 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 assembly 30 may be implemented as including a plurality of sub-laser driving assemblies, each corresponding to a laser of a different color.
[0061] 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. 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.
[0062] 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 and the enable signal sent by the display control circuit 10. The blue laser 201 is used to emit light under the driving of the driving current.
[0063] 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 2As 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 .
[0064] 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.
[0065] 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.
[0066] 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.
[0067] Figure 5 A schematic diagram of the structure of a projection device in some embodiments is shown.
[0068] 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 modular lightweight (Mirai Console Loader, MCL) packaged lasers, which are small in size and conducive to the compact arrangement of the optical path.
[0069] 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.
[0070] 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, a depth 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 picture card presented by the projection surface, and the image or picture card is projected by the built-in optical machine of the projector.
[0071] When the projector moves, its projection angle and distance to the projection surface change, causing the projected image to deform. The projected image will appear as a trapezoidal image or other deformed image. The projector controller can achieve automatic trapezoidal correction based on the image taken by the camera by coupling the angle between the optical and mechanical projection surfaces and the correct display of the projected image.
[0072] Figure 6A schematic diagram of the circuit structure of a projection device in some embodiments is shown. In some embodiments, the laser driving component 30 may include a driving circuit 301, a switching circuit 302 and an amplifier circuit 303. The driving circuit 301 may be a driving chip. The switching circuit 302 may be a metal-oxide-semiconductor (MOS) tube. The driving circuit 301 is respectively connected to the switching 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.
[0073] 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 a valid potential. The amplifier circuit 303 is connected to the detection node E in the current path of the laser light source 20 and the display control circuit 10, respectively, 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. The display control circuit 10 is also used to determine the amplified driving voltage as the driving current of the laser, and obtain a second brightness value corresponding to the driving current.
[0074] 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 .
[0075] 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 regulation 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 luminous brightness of the laser, avoid COD failure of the laser for a long time, and improve the accuracy of the laser light control. It should be noted that 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.
[0076] The laser light at the 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 P1 at the position L1 is Pt×Pf, where Pt represents the transmittance of the dichroic plate, and Pf represents the reflectance of the dichroic plate or the fifth reflectance.
[0077] 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.
[0078] 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, and a communication bus (Bus), etc. 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, wherein the signal source can be a preset video on demand program, or at least one of an HDMI interface and a live TV interface, etc. After the user selects different signal sources, the projector can display the content obtained from different signal sources.
[0079] Figure 7 A schematic diagram of a system framework for implementing display control of a projection device in some embodiments is shown.
[0080] In some embodiments, the projector provided by the present application has the characteristics of a telephoto micro-projector, and the projector includes a controller, which can control the display of the optical machine picture through a preset algorithm to realize functions such as automatic trapezoidal correction of the display picture, automatic screen entry, automatic obstacle avoidance, automatic focus, and anti-eye shooting. It can be understood that the projector can realize flexible position movement in the telephoto micro-projection scene through a display control method based on geometric correction; during each movement of the device, the controller can control the projector to realize the automatic display correction function for possible problems such as distortion of the projection picture, obstruction of the projection surface by foreign objects, and abnormal projection of the screen, so that it can automatically restore normal display.
[0081] 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.
[0082] 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.
[0083] 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.
[0084] 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.
[0085] 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.
[0086] 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;
[0087] 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.
[0088] In some embodiments, 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.
[0089] In some embodiments, data is interacted with the application service through the process communication framework, and then the calculation results are fed back to the correction service through the process communication framework; the correction service sends the obtained calculation results to the projector operating system to generate control signals, and sends the control signals to the optical machine control driver to control the optical machine working conditions and realize automatic correction of the projection area.
[0090] When the user turns on the projection device, the projection device can project the image onto the projection surface, specifically into the projection area pre-set by the user, which can be an area on the wall or a screen placed in advance by the user. The projection image can be displayed in the projection area for the user to watch. However, when the user places the projection device in an inappropriate position, the projection device cannot completely project the image into the projection area. Or during use, the user touches the projection device, causing the position of the projection device to change, causing the projected image to shift and thus unable to be completely in the projection area. For the above situation, the projection device needs to re-determine the projection area so that the image can be completely projected into the projection area for the user to watch. Figure 8 A schematic diagram of the change of the position of the projection device in some embodiments is shown. The projection device is initially at position A and can be completely projected into the projection area, which is rectangular. When the projection device moves from position A to position B, the projected image will be offset and cannot be completely in the projection area.
[0091] In the related art, the user can manually adjust the position and projection angle of the projection device so that the projected image is completely in the projection area. However, this manual adjustment method is cumbersome and has poor accuracy. The projection device can also shoot the projection surface to obtain an image of the projection surface. The acquired image is then subjected to binary image processing so that the outline of the object in the image can be displayed more clearly. For the binary image, all closed contours contained therein can be extracted, and the closed contour with the largest area and consistent internal color can be identified as the projection area for projection. However, when there is a large area of solid-color wall around the projection area and the edge of the wall constitutes a closed contour, the projection device will identify the wall as the projection area, causing the image to be projected onto the wall instead of the area specified by the user.
[0092] To this end, the projection device provided in the embodiment of the present application can accurately determine the projection area to solve the above problem.
[0093] In order to enable the projection device to project the image completely into the projection area set by the user, the projection device has a projection area correction function. When the image projected by the projection device is not completely within the projection area set by the user, the projection device can redefine the projection area so that the image can be completely projected into the projection area, thereby realizing the projection area correction and achieving the effect of the projected image automatically entering the screen.
[0094] In some embodiments, when receiving a projection area correction instruction, the projection device may enable a projection area correction function to correct the current projection area of the projection device. The projection area correction instruction refers to a control instruction for triggering the projection device to automatically correct the projection area.
[0095] In some embodiments, the projection area correction instruction may be an instruction actively input by the user. For example, after the projection device is powered on, the projection device may project an image on the projection surface. At this time, the user may press a projection area correction switch pre-set in the projection device, or a projection area correction button on a remote control of the projection device, so that the projection device turns on the projection area correction function, redefines the projection area, and corrects the projection area.
[0096] In some embodiments, the projection area correction instruction may also be automatically generated according to a control program built into the projection device.
[0097] The projection device may actively generate a projection area correction instruction after being powered on. For example, when the projection device detects the first video signal input after being powered on, a projection area correction instruction may be generated, thereby triggering the projection area correction function.
[0098] Alternatively, the projection device may generate a projection area correction instruction by itself during operation. Considering that the user may actively move the projection device or accidentally touch the projection device during the use of the projection device, causing the placement or setting position of the projection device to change, the projected image will shift, causing the projection area to change and cannot be fully projected into the projection area set by the user. At this time, in order to ensure the user's viewing experience, the projection device can automatically correct the projection area.
[0099] Specifically, the projection device can detect its own situation in real time. When the projection device detects that its placement posture or setting position has changed, it can generate a projection area correction instruction, thereby triggering the projection area correction function.
[0100] In some embodiments, the projection device can monitor the movement of the device in real time through its configuration components, and immediately feed back the monitoring results to the projection device controller, so that after the projection device moves, the controller promptly starts the projection area correction function and automatically corrects the projection area at the first time. For example, through the gyroscope or TOF (Time of Flight) sensor configured in the projection device, the controller receives monitoring data from the gyroscope or TOF sensor to determine whether the projection device moves.
[0101] After determining that the projection device has moved, the controller may generate a projection area correction instruction and activate the projection area correction function.
[0102] 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.
[0103] In some embodiments, when a projection area correction instruction is detected, the projection device can redefine the projection area, thereby completely projecting the image into the projection area, achieving automatic correction of the projection area, and achieving the effect of automatic image entry into the screen.
[0104] Fig. 9 A flowchart of the interactions among the components of the projection device in some embodiments is shown.
[0105] In some embodiments, when a projection area correction instruction is obtained, the projection device can automatically correct the projection area. Specifically, the projection area correction function can be implemented on the projection image through a preset projection area correction algorithm.
[0106] In order to be able to correct the projection area, the projection device can first determine the projection relationship between the projection surface and the projection device. In the embodiment of the present application, the projection relationship refers to the projection relationship of the projection device projecting the image onto the projection surface, specifically the mapping relationship between the image card projected by the optical machine of the projection device and the projection surface. After determining the projection relationship between the projection surface and the projection device, the projection device can determine the position information of the projection area in the projection surface, thereby performing projection and realizing the correction of the projection area.
[0107] The projection device can project a first image card on the projection surface, and determine the position information of the projection surface according to the first image card. According to the position information of the projection surface, the projection relationship between the projection surface and the projection device can be further determined.
[0108] It should be noted that the embodiment of the present application can construct a transformation matrix between the projection surface in the world coordinate system and the optical machine coordinate system based on the binocular camera. The transformation matrix is the homography relationship between the projection image in the projection surface and the playback card played by the optical machine. The homography relationship is also called the projection relationship. The homography relationship can be used to realize any projection transformation between the projection image and the playback card.
[0109] In some embodiments, when the projection area correction instruction is obtained, the projection device may first project the first image card. Specifically, the controller may control the optical machine to project the first image card onto the projection surface.
[0110] After projecting the first image card, the controller may also control the camera to shoot the first image card displayed on the projection surface to obtain a first image.
[0111] The first image card may contain several feature points, so the first image captured by the camera will also contain all the feature points in the first image card. The position information of the projection surface can be determined through the feature points. It should be noted that for a plane, when the positions of three points in the plane are determined, the position information of the plane can be determined. Therefore, in order to determine the position information of the projection surface, it is necessary to determine the positions of at least three points in the projection surface, that is, the first image card needs to include at least three feature points. The position information of the projection surface can be determined based on these at least three feature points.
[0112] In some embodiments, the first image card may include a pattern or color feature preset by a user. The first image card may be a checkerboard image card, which is set to a black and white checkerboard. Fig.10 As shown, the characteristic points included in the chessboard card are the corner points of the rectangle. The pattern in the first card can also be set as a donut card, including a donut pattern, such as Fig.11As shown, the characteristic points included in the circular chart are corresponding solid points on each circular ring. In some embodiments, the first chart can also be set as a combination of the above two types of patterns, or set as other patterns with identifiable characteristic points.
[0113] Fig.12 A schematic diagram of a process for obtaining a mapping relationship in some embodiments is shown.
[0114] In some embodiments, after the optical machine projects the first image card onto the projection surface, the controller can control the camera to shoot the first image card to obtain a first image to obtain the position of the feature point.
[0115] Specifically, the camera may be a binocular camera, with one camera disposed on each side of the optical machine. The first image card is photographed by the binocular camera, with the left camera photographing to obtain one image and the right camera photographing to obtain another image.
[0116] The controller can perform image recognition processing on the two images to obtain the first coordinates of the feature point in either image. In the embodiment of the present application, the first coordinates refer to: the coordinate information of the feature point in the image coordinate system corresponding to the first image.
[0117] The image coordinate system refers to a coordinate system with the center of the image as the coordinate origin and the X and Y axes parallel to the sides of the image. The image coordinate system in the embodiment of the present application can be set as follows: for the projection area preset by the user, the center point of the projection area can be set as the origin, the horizontal direction is the X axis, and the vertical direction is the Y axis. The image coordinate system can be set in advance according to the preset projection area.
[0118] The coordinate information of the feature points in the first image may be determined according to the image coordinate system.
[0119] For the same feature point, its position in the image captured by the left camera and its position in the image captured by the right camera may be different. The coordinates of the feature point in the camera coordinate system of either the left or right camera can be determined by the two positions of the same feature point in the two images. In the embodiment of the present application, the second coordinate is used to represent: the coordinate information of the feature point in the camera coordinate system.
[0120] In the embodiment of the present application, the camera coordinate system is specifically: a direct coordinate system of the space is established with the light point of the camera as the center, the optical axis as the Z axis, and the XOY plane parallel to the projection plane.
[0121] For binocular cameras, it is sufficient to determine the second coordinate of the feature point in the camera coordinate system corresponding to any one of the cameras. In the embodiment of the present application, the left camera is taken as an example.
[0122] Specifically, the second coordinate information of the feature point in the camera coordinate system of the left camera can be determined according to the position information of the same feature point in the two images taken by the left and right cameras, and is set as P(x, y, z).
[0123] In some embodiments, after obtaining the second coordinate of the feature point in the camera coordinate system of the left camera, the controller can convert the second coordinate into a third coordinate. In the embodiment of the present application, the third coordinate refers to: the coordinate information of the feature point in the optical-mechanical coordinate system.
[0124] In the embodiment of the present application, the optomechanical coordinate system is specifically: a direct coordinate system in space is established with the light spot of the optical machine as the center, the optical axis as the Z axis, and the XOY plane parallel to the projection plane. It should be noted that the optomechanical coordinate system and the camera coordinate system can be converted to each other, so the coordinates of the feature points in the camera coordinate system can be converted to coordinates in the optomechanical coordinate system. Specifically, the feature points can be converted between the two coordinate systems based on the external parameters between the optomechanical camera. The external parameters between the optomechanical camera are the equipment parameters that have been marked on the device housing or the manual of the projection device when it is manufactured. They are usually set based on the function, assembly, manufacturing, and parts of the projection device. They are applicable to all projection devices of the same model and can include the rotation matrix and translation matrix between the optomechanical camera.
[0125] According to the external parameters between the optomechanical system and the camera, the conversion relationship between the optomechanical coordinate system and the camera coordinate system can be determined, and the coordinates of the feature points in the optomechanical coordinate system can be further obtained.
[0126] The conversion formula is as follows:
[0127] P′(x′,y′,z′)=RRR*P+TTT (1)
[0128] in:
[0129] P′(x′, y′, z′) is the coordinate of the feature point in the optomechanical coordinate system.
[0130] RRR is the rotation matrix between the optomechanical cameras, and TTT is the translation matrix between the optomechanical cameras.
[0131] In some embodiments, after the coordinates of the feature points in the optomechanical coordinate system are acquired, the projection surface equation of the projection surface in the optomechanical coordinate system may be determined.
[0132] It should be noted that since the coordinate information of at least three points is required to determine the position information of a plane, the controller can obtain the first positions of at least three feature points in at least the first image, and determine the coordinate information in the camera coordinate system according to the first positions of these feature points. The coordinate information in the camera coordinate system can be further converted into the coordinate information in the optical-mechanical coordinate system.
[0133] After determining the coordinate information of at least three feature points in the optical-mechanical coordinate system, the controller can fit the coordinates of these feature points to obtain the projection surface equation of the projection surface in the optical-mechanical coordinate system. The projection surface equation can be expressed as:
[0134] z=ax+by+c (2);
[0135] Or the following formula:
[0136]
[0137] In some embodiments, after determining the projection surface equation of the projection surface in the optomechanical coordinate system, the controller may obtain a transformation matrix between the optomechanical coordinate system and the world coordinate system according to the projection surface equation, and the transformation matrix is used to characterize the projection relationship.
[0138] In the embodiment of the present application, the world coordinate system is set as follows: the image coordinate system is the XOY plane, that is, the projection plane is the XOY plane, where the origin is the center point of the projection area preset by the user. The Z axis is set in a direction perpendicular to the projection plane to establish a spatial coordinate system.
[0139] When acquiring the conversion matrix of the optomechanical coordinate system and the world coordinate system, the controller can respectively determine the representation of the projection surface in the world coordinate system and the representation of the projection surface in the optomechanical coordinate system.
[0140] Specifically, the controller may first determine the unit normal vector of the projection surface in the world coordinate system.
[0141] Since the projection surface itself is the XOY plane of the world coordinate system, the unit normal vector of the projection surface in the world coordinate system can be expressed as:
[0142] m=(0,0,1)*T (4)
[0143] The controller can also obtain the unit normal vector of the projection surface in the optomechanical coordinate system according to the projection surface equation of the projection surface in the optomechanical coordinate system. The unit normal vector of the projection surface in the optomechanical coordinate system can be expressed as a formula:
[0144]
[0145] According to the unit normal vector of the projection surface in the two coordinate systems, the transformation matrix between the optical-mechanical coordinate system and the world coordinate system can be obtained, and the relationship between them is expressed as the following formula:
[0146] m=R1*n (6)
[0147] Where: R1 represents the transformation matrix between the optomechanical coordinate system and the world coordinate system.
[0148] The transformation matrix can represent the mapping relationship between the image card projected by the optical machine and the projection surface.
[0149] After the mapping relationship is determined, the controller can realize the conversion of the coordinates of a certain point between the world coordinate system and the optomechanical coordinate system.
[0150] For a target area that has been determined in the projection surface, its coordinate representation in the world coordinate system can be determined based on the position information of the target area in the projection surface. The controller can convert the coordinate representation in the world coordinate system into the coordinate representation in the optical mechanical coordinate system based on the transformation matrix, thereby determining the position information of the target area for the projection device, and then the image card can be directly projected into the target area.
[0151] For the projection device, when the projection process is not in progress, there is no projection area on the projection surface, and the specific projection area cannot be directly determined. However, the projection device can determine the state of the image card to be projected and the projection angle, etc., so as to determine the coordinate representation of the projection area to be projected in the optical coordinate system. The controller can convert the coordinate representation in the optical coordinate system into the coordinate representation in the world coordinate system according to the transformation matrix, so as to determine the position information of the projection area to be projected in the projection surface.
[0152] That is, according to the transformation matrix, the coordinate representation of the projection area between the world coordinate system and the optomechanical coordinate system can be arbitrarily transformed.
[0153] In some embodiments, the projection area can be re-determined based on the conversion matrix, that is, the mapping relationship between the image card projected by the optical machine and the projection surface, so as to realize the correction of the projection area.
[0154] According to the mapping relationship, the initial projection area of the image card projected by the optical machine onto the projection surface can be obtained first. Specifically, the initial projection area is the projection area to be corrected, that is, the display area of the image projected by the projection device on the projection surface before the projection area is corrected.
[0155] It should be noted that the projection device may be in the process of projection, and the projection image is being displayed in the initial projection area on the projection surface. For example, the user has turned on the projection device, and the projection device has been in the process of projection, forming a projection image on the projection surface, and the area where the image is currently displayed on the projection surface is the initial projection area. However, the current initial projection area and the target projection area set by the user may not be the same projection area, resulting in the projection image being offset from the position set by the user, and the projection device needs to correct the initial projection area.
[0156] The projection device may not be performing the projection process. At this time, the projection image is not displayed on the projection surface, so the initial projection area will not be directly displayed. At this time, the area that the projection device is about to project onto is the initial projection area. However, for the projection device, it is possible to determine the location information of the area that it is about to project onto, that is, the location information of the initial projection area. However, since the projection process is not actually carried out, the user cannot determine the specific initial projection area, and cannot confirm whether the initial projection area and the set target projection area are the same initial projection area. At this time, in order to ensure that the projection device can completely project the image into the target projection area, the user can control the projection device to directly correct the projection area, or the projection device can actively correct the projection area, such as when it is turned on.
[0157] In some embodiments, the controller may obtain the initial projection area according to the mapping relationship.
[0158] Specifically, the controller may first determine the initial position information when the optical machine projects the image card onto the projection surface. In the embodiment of the present application, the initial position information is the position information of the initial projection area in the optical machine coordinate system, and may specifically be the vertex coordinates of the initial projection area.
[0159] The user can control the projection device to project a card, thereby forming a projection image on the projection surface. The card can be an image selected by the user, including pictures or videos, and its shape is generally rectangular. Therefore, the image projected on the projection surface by the card can also be rectangular for the user to watch. That is, the projection area corresponding to the projected image is a rectangular area. When the coordinate information of the four vertices of the rectangular area is determined, the position of the rectangular area is also determined.
[0160] It should be noted that, for the projection device, regardless of whether it has already performed the projection process, the projection device can determine the situation that it is about to project or has already projected. The projection device can determine the state of the image card that it is about to project and the projection angle, etc., so as to determine the position where the optical machine projects, that is, the initial position information where the optical machine projects the image card. Therefore, the controller can obtain the coordinate representation of the initial projection area in the optical machine coordinate system.
[0161] According to the mapping relationship, the controller can convert the initial position information, that is, the vertex coordinates of the initial projection area, into position information in the world coordinate system. Specifically, it can be the vertex coordinates of the initial projection area in the world coordinate system. When the position information of the initial projection area in the world coordinate system is determined, the specific initial projection area is determined.
[0162] In some embodiments, if the projection device is in the process of projection, the area of the image displayed on the projection surface is the initial projection area. The initial projection area can also be obtained by the following method:
[0163] The controller can control the camera to shoot the projection surface. At this time, the obtained projection surface image can include the picture card being projected by the projection device, and the area where the picture card is located is the initial projection area. The controller can identify the projection surface image, determine the coordinate information of the four vertices of the picture card, and thus determine the position of the initial projection area.
[0164] Considering that the image card projected by the projection device may not be fully recognizable, for example, the edge areas of the image card are all white, and the projection surface is also white, it is impossible to distinguish the edge of the image card and the projection surface. For the projection surface image captured by the camera, the four vertices of the image card cannot be recognized, and thus the initial projection area cannot be determined. Therefore, the controller can control the optical machine to project a preset image card onto the projection surface. The preset image card is used to distinguish it from the projection surface and can be a green image card. At this time, the controller controls the camera to capture the projection surface, and can identify the complete image card outline, thereby determining the location information of the initial projection area.
[0165] In some embodiments, after obtaining the initial projection area, the controller can correct the contour of the initial projection area to obtain the target projection area. The target projection area is the projection area set by the user. Therefore, after correcting the contour of the initial projection area, the projection area set by the user can be re-determined, thereby realizing the correction processing of the projection area.
[0166] Specifically, the controller can first control the camera to shoot the projection surface to obtain a projection surface image. The projection surface image will contain various environmental objects, such as screens, TV cabinets, walls, ceilings, coffee tables, etc. The position information of the object can be determined by determining the outline of the object. For example, by determining the coordinates of the four vertices of the screen, the position information of the screen in the projection surface is also determined.
[0167] In the projection surface image, an initial projection area image corresponding to the initial projection area can be generated. Specifically, since the vertex coordinates of the initial projection area in the world coordinate system have been obtained, the four vertices of the initial projection area can be marked in the projection surface image, and then the four vertices are further connected to form the initial projection area. At this time, the initial projection area is also displayed in the projection surface image.
[0168] When correcting the contour of the initial projection area, the four vertices of the initial projection area can be corrected respectively, so as to obtain four corrected target vertices. The area formed by the four target vertices can be considered as the target projection area.
[0169] In some embodiments, the target vertex can be obtained according to the vertex of the initial projection area image. For the four vertices of the initial projection area image, each vertex corresponds to a modified target vertex.
[0170] Specifically, the controller may perform corner point detection processing on the initial projection area image. The initial projection area image is processed by a corner point detection algorithm, which may be a Shi Tomasi algorithm, to obtain all corner points contained in the initial projection area image. The corner points may be extreme points of grayscale value or brightness value change in the initial projection area image, such as vertices of an object contour. Therefore, the vertices of the object contour contained in the image, such as the vertices of a curtain, may be determined by the corner points.
[0171] It should be noted that there is no geometric relationship between the corner points, so simple corner point recognition cannot determine the specific outline of the curtain. At this time, each vertex of the initial projection area image can be determined to correspond to a corner point after correction. These four corner points can be considered as the four vertices of the curtain, thereby determining the specific outline of the curtain.
[0172] For each vertex of the initial projection area image, a preset first size can be determined with the vertex as the center. Specifically, initial projection area images of different sizes can correspond to different first sizes. For example, for an initial projection area image of 1280*720, the first size can be set to 20 pixels. Therefore, for each vertex, the vertex can be set as the center of a circle, with 20 pixels as the radius, to determine the first correction area corresponding to the vertex.
[0173] In the first correction area, the controller can obtain the nearest corner point from the center of the circle, that is, the vertex of the initial projection area image, which is called the first corner point in the embodiment of the present application. The first corner point can be considered as the target vertex corresponding to the vertex of the initial projection area image.
[0174] According to the above method, the four vertices of the initial projection area image and the corresponding target vertices can be determined. The four target vertices form the target projection area.
[0175] It should be noted that the error between the target projection area obtained by the above method and the actual outline of the screen is extremely small. Therefore, the target projection area can be considered to be the screen area, and pixel-level screen recognition effect can be achieved, thereby accurately controlling the image entering the screen, greatly improving the user's viewing experience.
[0176] In some embodiments, considering that the outline of the screen is relatively dark in a darker scene, if the projection device is in the process of projection, the projection image will be displayed on the projection surface, causing the projection image to appear in the projection surface image. Since the projection image is brighter and the outline of the screen is relatively dark, the edge of the projection image may be identified as a corner point, so that the first corner point actually belongs to the projection image, and the projection image is mistakenly determined to be a screen. Therefore, after obtaining the first corner point, the first corner point can be further detected.
[0177] Specifically, the controller can first determine the position information of the first corner point, that is, the coordinates of the first corner point in the projection surface image. The controller can directly convert the coordinates in the image coordinate system into the coordinates in the world coordinate system. According to the mapping relationship, the coordinates of the first corner point in the world coordinate system can be converted into coordinates in the optomechanical coordinate system, which are referred to as corner point coordinates in the embodiment of the present application. In the optomechanical coordinate system, the controller already knows the vertex coordinates of the initial projection area. Therefore, the vertex coordinates and the corner point coordinates can be compared and confirmed. The controller can determine whether the vertex coordinates and the corner point coordinates meet the preset second size condition.
[0178] In the embodiment of the present application, the preset second size condition is set as: the vertex coordinates and the corner point coordinates are greater than the preset second size. The second size can be a size pre-set by relevant technical personnel, and can be set to be the same as the first size or different, and the embodiment of the present application is not limited.
[0179] If it is detected that the vertex coordinates and the corner point coordinates meet the preset second size condition, it means that the vertex of the initial projection area is far away from the first corner point, and the first corner point does not belong to the edge of the initial projection area. At this time, the first corner point can be determined as the target vertex, thereby obtaining the target projection area, and the target projection area is the curtain area.
[0180] If the vertex coordinates and corner point coordinates detected do not meet the preset second size condition, it means that the vertex and the first corner point of the initial projection area are close to each other, and the first corner point belongs to the edge of the initial projection area. At this time, the real screen area is not identified, so the first corner point cannot be used as the target vertex, and the screen entry operation will not be performed at this time, that is, the projection device will not perform the normal projection process.
[0181] In some embodiments, when the vertex coordinates and the corner point coordinates do not meet the preset second size condition, that is, the first corner point cannot be used as the target vertex, the first corner point can be deleted. At the same time, a new first corner point can be continuously searched among the remaining corner points in the initial projection area image, and the new first corner point can be continuously detected until a first corner point that meets the condition is obtained, and the first corner point can be used as the target vertex. If there is no first corner point that meets the condition, the screen entry operation will not be performed, and the projection device will not project.
[0182] In some embodiments, if the target vertex cannot be obtained, the projection device will not perform projection. At the same time, the projection device can prompt the user, for example, by projecting a message that the projection device fails to enter the screen, to prompt the user that the projection device is not placed in the screen normally. At this time, the user can adjust the position of the projection device, and the projection device can correct the projection area again until the target projection area, i.e., the screen area, is identified.
[0183] In some embodiments, when the target projection area is determined, the position information of the target projection area in the projection surface is obtained. It should be noted that since the target projection area has four vertices and the image card projected by the projection device also has four vertices, in order to accurately project, a one-to-one correspondence between the four vertices of the target projection area and the four vertices of the image card can be obtained. The upper left vertex of the image card can be projected to the upper left vertex of the target projection area, thereby ensuring that the image card can be normally displayed in the target projection area.
[0184] For a normally placed screen, its four vertices of upper left, upper right, lower left and lower right can be determined, so as to obtain the correspondence between the target projection area and the image card. However, considering that the screen area may not be placed normally and may be tilted, the projection device needs to further determine which of the four target vertices of the target projection area is, so as to determine the correspondence of the image card projection.
[0185] Specifically, the controller can first determine the state of the target projection area. In the embodiment of the present application, it is set that the target projection area has a front projection state and a tilted state. Among them, the front projection state refers to: a relatively horizontal state compared to the reference area, without tilt. The controller can obtain the coordinate information of the four target vertices in the image coordinate system or the world coordinate system. Either of the two coordinate systems can be used.
[0186] For the four target vertices, their X coordinates can be counted. The controller can further determine whether the difference between the X coordinates of two target vertices satisfies the preset coordinate condition. The preset coordinate condition can be set as: the difference between the X coordinates of the two target vertices is less than a preset size. When the preset coordinate condition is met, it can be considered that the straight line where the two target vertices are located is in a vertical state, so the entire target projection area can be considered to be in a normal projection state. If the preset coordinate condition is not met, it is considered that the target projection area is in a tilted state.
[0187] The corresponding relationship between the four target vertices can be further determined according to the state of the target projection area.
[0188] In some embodiments, if the target projection area is in a front projection state, the controller may first classify the four target vertices to determine two target vertices with smaller X coordinates and two target vertices with larger X coordinates. Fig.13 Schematic diagrams of target projection areas in some embodiments are shown. The coordinates of the four target vertices in the target projection area are: A (x1, y2), B (x1, y1), C (x2, y2) and D (x2, y1). Vertices A and B are two target vertices with smaller X coordinates, and C and D are two target vertices with larger X coordinates.
[0189] The controller may determine, among the two target vertices with smaller X coordinates, the target vertex with a larger Y coordinate as the first target vertex, and the target vertex with a smaller Y coordinate as the second target vertex. That is, vertex A is determined as the first target vertex, and vertex B is determined as the second target vertex. The controller may determine, among the two target vertices with larger X coordinates, the target vertex with a larger Y coordinate as the third target vertex, and the target vertex with a smaller Y coordinate as the fourth target vertex. That is, vertex C is determined as the third target vertex, and vertex D is determined as the fourth target vertex.
[0190] In the embodiment of the present application, the first target vertex can be set as the upper left vertex, the second target vertex as the lower left vertex, the third target vertex as the upper right vertex, and the fourth target vertex as the lower right vertex. There is a one-to-one correspondence between the four target vertices and the four vertices of the target chart, thereby determining the specific projection relationship between the target projection area and the chart.
[0191] In some embodiments, if the target projection area is in a tilted state, the controller may first determine two target vertices with smaller X coordinates and two target vertices with larger X coordinates.
[0192] It should be noted that the target projection area may be tilted to the left, or may be tilted to the right, so the controller may first determine the tilt direction of the target projection area.
[0193] The controller can obtain the slope of the straight line where the two target vertices with smaller X coordinates are located. Fig.14 Schematic diagrams of target projection areas in some embodiments are shown. The coordinates of the four target vertices of the target projection area are: A (x1, y1), B (x2, y2), C (x3, y3) and D (x4, y4). Vertices A and B are two target vertices with smaller X coordinates, and the slope K of the straight line AB is determined.
[0194] K = (x2-x1) / (y2-y1)
[0195] The inclination direction of the target projection area can be determined by the slope K. Specifically, if the slope is less than 0, it is determined that the target projection area is in the first inclination state, that is, inclined to the left. If the slope is greater than 0, it is determined that the target projection area is in the second inclination state, that is, inclined to the right. Fig.15 The slope K of the straight line AB in Fig.15 is significantly less than 0, so it is inclined to the left at this time.
[0196] After determining the inclination direction of the target projection area, it is possible to further determine which vertex among the four target vertices is which specific vertex.
[0197] In the embodiment of the present application, the case where the screen size is 16:9 is taken as an example for introduction.
[0198] If the target projection area is in the first inclination state, that is, inclined to the left. The controller can sort the X coordinates of the four target vertices from small to large. And in the order from small to large, the four target vertices are sequentially determined as the first target vertex, the second target vertex, the third target vertex, and the fourth target vertex. As Fig.15 shown, since x1 < x2 < x3 < x4, vertex A is the first target vertex, that is, the upper left vertex. Vertex B is the second target vertex, that is, the lower left vertex. Vertex C is the third target vertex, that is, the upper right vertex. Vertex D is the fourth target vertex, that is, the lower right vertex.
[0199] If the target projection area is in the second inclination state, that is, inclined to the right, the controller can sequentially determine the four target vertices as the second target vertex, the first target vertex, the fourth target vertex, and the third target vertex in the order of the X coordinates from small to large. As Fig.15 shown, since x2 < x1 < x4 < x3, vertex A is the first target vertex, that is, the upper left vertex. Vertex B is the second target vertex, that is, the lower left vertex. Vertex C is the third target vertex, that is, the upper right vertex. Vertex D is the fourth target vertex, that is, the lower right vertex.
[0200] It should be noted that in the embodiment of the present application, the screen size 16:9 is used for introduction. At this time, the length of the screen is greater than the width, so the X coordinate is used for calculation. If the length of the screen is less than the width, the Y coordinate can be used for calculation. The specific method is similar to the above and will not be elaborated here.
[0201] In some embodiments, a rotation component can also be provided behind the screen. The controller can calculate the rotation angle that can restore it to the front projection state according to the slope of the target projection area, and send the rotation angle to the rotation component to control the rotation component to rotate according to the rotation angle, so that the target projection area is restored to the front projection state to improve the user's viewing experience.
[0202] In some embodiments, after determining the target projection area, the position information of the target projection area in the world coordinate system can be obtained. According to the projection relationship, the controller can convert the position information in the world coordinate system into the position information in the optical-mechanical coordinate system to obtain the target position information.
[0203] According to the target position information, the controller can control the optical machine to project the target image card into the target projection area, thereby realizing the correction of the projection area. Fig.16 Schematic diagrams of some embodiments before and after correction of the projection area are shown. After the projection device moves from position A to position B, the projected image will be offset and cannot be completely within the projection area. The projection device can perform projection area correction processing so that the projection device can also be completely projected into the projection area when it is at position B.
[0204] The present application also provides a projection area correction method, which is applied to a projection device, such as Fig.17 As shown, the method includes:
[0205] Step 1701: In response to the projection area correction instruction, obtain the mapping relationship between the image card projected by the optical machine and the projection surface.
[0206] Step 1702: Based on the mapping relationship, the optical machine projects the image card to the initial projection area in the projection surface.
[0207] Step 1703: Perform contour correction on the initial projection area to obtain the target projection area.
[0208] Step 1704: Determine the target position information of the target projection area according to the mapping relationship.
[0209] Step 1705: According to the target position information, control the optical machine to project the target image card to the target projection area.
[0210] The same and similar parts between the various embodiments in this specification can be referenced to each other and will not be described again here.
[0211] Those skilled in the art can clearly understand that the technology in the embodiments of the present invention can be implemented by means of software plus a necessary general hardware platform. Based on this understanding, the technical solution in the embodiments of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a disk, an optical disk, etc., and includes a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods of various embodiments of the present invention or certain parts of the embodiments.
[0212] 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.
[0213] For ease 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 intended 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 the image card onto a projection surface; A camera configured to capture the image displayed on the projection surface; The controller is configured as: In response to the projection area correction instruction, obtaining a mapping relationship between the image card projected by the optical machine and the projection surface; According to the mapping relationship, the optical machine projects the image card to an initial projection area in the projection surface; Controlling the camera to shoot the projection surface to obtain an image of the projection surface; In the projection surface image, generating an initial projection area image corresponding to the initial projection area; Performing corner point detection processing on the initial projection area image to obtain all corner points contained in the initial projection area image; the corner points are extreme value points of grayscale value or brightness value change in the initial projection area image; Taking the vertex of the initial projection area image as the center, obtaining a first corner point closest to the vertex of the initial projection area image in a preset first size; Determine the nearest first corner point as a target vertex; Determine the area formed by the target vertices as the target projection area; Determine the target position information of the target projection area according to the mapping relationship; According to the target position information, the optical machine is controlled to project the target image card onto the target projection area.
2. The projection device according to claim 1, characterized in that: The controller is configured to: In the step of acquiring the mapping relationship between the image card projected by the optical machine and the projection surface, Controlling the optical machine to project a first image card onto the projection surface, and controlling the camera to shoot the first image card to obtain a first image, wherein the first image card includes feature points; Acquire a first coordinate of the feature point in an image coordinate system corresponding to the first image; Acquire a second coordinate of the feature point in a camera coordinate system according to the first coordinate; Convert the second coordinate into a third coordinate of the feature point in an optical-mechanical coordinate system; Acquire a projection surface equation of the projection surface in an optical-mechanical coordinate system according to the third coordinate; A transformation matrix between the optical-mechanical coordinate system and the world coordinate system is obtained according to the projection surface equation, and the transformation matrix is used to characterize the mapping relationship.
3. The projection device according to claim 2, characterized in that: The controller is configured to: In the step of acquiring the first coordinates of the feature points in the image coordinate system corresponding to the first image, Determine at least three feature points in the first image, and respectively obtain first coordinates of the at least three feature points; In the step of acquiring the projection surface equation of the projection surface in the optical-mechanical coordinate system according to the third coordinate, The third coordinates corresponding to the at least three characteristic points are fitted to obtain a projection surface equation of the projection surface in an optical-mechanical coordinate system.
4. The projection device according to claim 2, characterized in that: The controller is configured to: In the step of acquiring according to the mapping relationship, the optical machine projects the image card onto the initial projection area in the projection surface, Determine initial position information of the optical machine projecting the image card onto the projection surface, wherein the initial position information is the vertex coordinates of the initial projection area in the optical machine coordinate system; According to the mapping relationship, converting the vertex coordinates into position information in the world coordinate system; An initial projection area is determined according to the position information in the world coordinate system.
5. The projection device according to claim 4, characterized in that: The controller is also configured to: Before executing the step of determining the nearest first corner point as the target vertex, Determine the coordinates of the first corner point in the world coordinate system, and convert them into the corner point coordinates in the optical-mechanical coordinate system according to the mapping relationship; Determine whether the vertex coordinates and the corner point coordinates meet a preset second size condition; If yes, the step of determining the nearest first corner point as the target vertex is executed.
6. The projection device according to claim 2, characterized in that: The controller is configured to: After executing the step of determining the nearest first corner point as the target vertex, Obtaining coordinate information of the target vertex in the image coordinate system or the world coordinate system, the number of the target vertices being four; Determine whether the difference between the X coordinates of two target vertices satisfies the preset coordinate condition; If yes, it is determined that the target projection area is in a front projection state; if no, it is determined that the target projection area is in a tilted state; If the target projection area is in a front projection state, determine two target vertices with smaller X coordinates and two target vertices with larger X coordinates; The target vertex with the larger Y coordinate of the two target vertices with the smaller X coordinate is determined as the first target vertex, and the target vertex with the smaller Y coordinate is determined as the second target vertex; the target vertex with the larger Y coordinate of the two target vertices with the larger X coordinate is determined as the third target vertex, and the target vertex with the smaller Y coordinate is determined as the fourth target vertex; wherein there is a one-to-one correspondence between the four target vertices and the four vertices of the target chart.
7. The projection device according to claim 6, characterized in that: The controller is configured to: If the target projection area is in a tilted state, determine two target vertices with smaller X coordinates and two target vertices with larger X coordinates; Obtaining the slope of the straight line where the two target vertices with smaller X coordinates are located; if the slope is less than 0, determining that the target projection area is in a first tilt state; if the slope is greater than 0, determining that the target projection area is in a second tilt state; If the target projection area is in the first tilt state, the four target vertices are sequentially determined as a first target vertex, a second target vertex, a third target vertex and a fourth target vertex in the order of the X coordinates from small to large; If the target projection area is in the second tilt state, the four target vertices are sequentially determined as the second target vertex, the first target vertex, the fourth target vertex and the third target vertex in the order of the X coordinates from small to large.
8. A projection area correction method, applied to a projection device, characterized in that: The method comprises: In response to the projection area correction instruction, a mapping relationship between the image card projected by the optical machine and the projection surface is obtained; According to the mapping relationship, the optical machine projects the image card to an initial projection area in the projection surface; Controlling the camera to shoot the projection surface to obtain a projection surface image; generating an initial projection area image corresponding to the initial projection area in the projection surface image; Performing corner point detection processing on the initial projection area image to obtain all corner points contained in the initial projection area image; the corner points are extreme value points of grayscale value or brightness value change in the initial projection area image; Taking the vertex of the initial projection area image as the center, obtaining the first corner point closest to the vertex of the initial projection area image in a preset first size; determining the closest first corner point as the target vertex; Determine the area formed by the target vertices as the target projection area; Determine the target position information of the target projection area according to the mapping relationship; According to the target position information, the optical machine is controlled to project the target image card onto the target projection area.
