Control method and device of projection equipment, projection equipment and storage medium
By obtaining the corresponding relationship between the projection area and the zoom motor, the target projection area and step size are determined, and the picture is corrected, which solves the problem of resolution and brightness loss when the projector automatically aligns the screen, and improves the performance of the projected picture on the screen.
Patent Information
- Application Number
- CN202310258850.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-09
- Publication Date
- 2024-09-10
AI Technical Summary
Existing projectors suffer from loss of resolution and brightness during automatic screen alignment, making it difficult to effectively correct the projected image onto the screen.
By obtaining the correspondence between the projection area and the motor step size of the zoom motor, determine the target projection area and the target step size of the zoom motor, determine the screen correction parameters based on the boundaries of the curtain area and the target projection area, and perform screen correction to reduce Loss of pixels and brightness.
It achieves correcting the projected image to the screen while reducing the loss of pixels and brightness, and improving the user experience.
Smart Images

Figure CN118631974A
Abstract
Description
Technical Field
[0001] The present application relates to the field of projection technology, and more specifically, to a control method and device for a projection device, a projection device, and a storage medium. Background Art
[0002] Smart projector is one of the many intelligent electronic products in recent years. It is a projection product that integrates human-computer interaction, multimedia interconnection and network search. It has very wide applications in smart home and smart office scenarios. For example, smart projector displays video content from computers, VCDs, DVDs, game consoles and other devices on a large screen.
[0003] In the related technology, the automatic screen alignment scheme of projectors currently on the market is performed when the projected image is larger than the screen image. Specifically, the screen position in the camera image is identified by image processing, and then the projected image is corrected to the screen based on the correspondence between the camera image and the projector image. However, this scheme has problems such as loss of resolution and brightness. Summary of the invention
[0004] In view of the above problems, the present application proposes a control method and device of a projection device, a projection device and a storage medium to solve the above technical problems.
[0005] In a first aspect, the present application provides a method for controlling a projection device, the method comprising: obtaining a correspondence between a projection area and a motor step length of a zoom motor of the projection device; obtaining a screen area, and determining a target projection area according to the screen area; based on the target projection area, determining a target step length of the zoom motor according to the correspondence; determining a picture correction parameter based on a boundary of the screen area and a boundary of the target projection area; based on the picture correction parameter, correcting a picture to be projected to obtain a target projection picture; and controlling the projection device to project the target projection picture.
[0006] In a second aspect, the present application provides a control device for a projection device, the device comprising: a corresponding relationship acquisition module, used to acquire the corresponding relationship between the projection area and the motor step length of the zoom motor of the projection device; a projection area determination module, used to acquire the screen area and determine the target projection area according to the screen area; a target step length determination module, used to determine the target step length of the zoom motor based on the target projection area according to the corresponding relationship; a correction parameter determination module, used to determine the picture correction parameters based on the boundary of the screen area and the boundary of the target projection area; a projection picture determination module, used to correct the picture to be projected based on the picture correction parameters to obtain the target projection picture; and a control module, used to control the projection device to project the target projection picture.
[0007] In a third aspect, the present application provides a projection device, comprising one or more processors and a memory; one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the above method.
[0008] In a fourth aspect, the present application provides a computer-readable storage medium storing a program code executable by a processor, wherein the computer-readable storage medium includes the stored program code, wherein the above method is executed when the program code is run.
[0009] The present application provides a control method, device, projection device and storage medium for a projection device. In the method, a controller obtains the correspondence between the projection area and the motor step length of the zoom motor, determines the target projection area according to the screen area, and determines the target step length of the zoom motor based on the above correspondence. The controller determines the image correction parameters according to the boundary of the screen area and the boundary of the target projection area, and corrects the image to be projected to obtain the target projection image, and finally the controller controls the projection device to project the target projection image. The above method adjusts the image projected by the projection device through the zoom motor, which can correct the projected image to the screen while reducing the loss of pixels and brightness, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0011] Figure 1 A schematic diagram of an application environment of a ventilation control method proposed in the present application is shown.
[0012] Figure 2 A flow chart of a ventilation control method provided in the first embodiment of the present application is shown.
[0013] Figure 3 and Figure 4 A flow chart of a ventilation control method proposed in the second embodiment of the present application is shown.
[0014] Figure 5 A schematic diagram showing the use of background difference method to obtain the projection area.
[0015] Figure 6 A schematic diagram showing the use of the frame difference method to obtain the projection area.
[0016] Figure 7 A reference image including the target image and the curtain area is shown.
[0017] Figure 8 The image of the target picture in the display chip of the projection device is shown.
[0018] Fig. 9 and Fig.10 A flow chart of a ventilation control method proposed in the third embodiment of the present application is shown.
[0019] Fig.11 A structural block diagram of a control device for a projection device provided in the present application is shown.
[0020] Fig.12 The structure block diagram of the projection device proposed in the embodiment of the present application is shown.
[0021] Fig.13 A structural block diagram of a computer-readable storage medium proposed in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0022] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0023] Smart projector is one of the many intelligent electronic products in recent years. It is a projection product that integrates human-computer interaction, multimedia interconnection and network search. It has very wide applications in smart home and smart office scenarios. For example, smart projector displays video content from computers, VCDs, DVDs, game consoles and other devices on a large screen.
[0024] In the related technology, the automatic screen alignment scheme of projectors currently on the market is performed when the projected image is larger than the screen image. Specifically, the screen position in the camera image is identified by image processing, and then the projected image is corrected to the screen based on the correspondence between the camera image and the projector image. However, this scheme has problems such as loss of resolution and brightness.
[0025] In response to the above problems, the present application provides a control method, device, projection device and storage medium for a projection device. In this method, the controller obtains the correspondence between the projection area and the motor step length of the zoom motor, determines the target projection area according to the screen area, and determines the target step length of the zoom motor based on the above correspondence. The controller determines the picture correction parameters according to the boundary of the screen area and the boundary of the target projection area, and corrects the picture to be projected to obtain the target projection picture. Finally, the controller controls the projection device to project the target projection picture. The above method adjusts the picture projected by the projection device through the zoom motor, which can correct the projected picture to the screen while reducing the loss of pixels and brightness, thereby improving the user experience.
[0026] In order to facilitate the detailed description of the present application, the application environment of the embodiments of the present application is first introduced below with reference to the accompanying drawings.
[0027] See also Figure 1 , Figure 1 Schematic diagram of the application environment of a control method for a projection device proposed in this application. Figure 1 As shown, the application environment may include a controller 110 , a projection device 130 , and a screen 150 .
[0028] The controller 110 can be a server, a microcomputer control chip, etc., but is not limited thereto. The server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers. It can also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms. It can also be a dedicated or platform server that provides Internet of Vehicles services, road network collaboration, vehicle-road collaboration, intelligent transportation, automatic driving, industrial Internet services, data communications (such as 4G, 5G, etc.). The microcomputer control chip can be a chip of an analog integrated circuit, a chip of a digital integrated circuit, or a chip of a mixed signal integrated circuit. The controller 110 is provided with a transceiver, and the controller 110 can receive the detection results sent by the projection device 130 through the transceiver and send control instructions to the projection device 130.
[0029] The projection device 130 is used to project a picture onto the screen 150. The projection device 130 may be a projector using cathode ray tube (CRT) technology, a projector using liquid crystal panel (LCD) technology, a projector using digital light processing (DLP) technology, etc. In some embodiments, the projection device 130 includes a processor, and the processor is provided with a transceiver. The processor can send the detection result of the projection device 130 through the transceiver and receive the control instruction sent by the controller 110.
[0030] The screen 150 is a region for displaying the projection image generated by the projector, and can be a projection screen, a wall (eg, a white wall), a glass of a vehicle (eg, a front window glass), and the like.
[0031] The embodiments of the present application will be described in detail below with reference to the accompanying drawings.
[0032] See also Figure 2 , Figure 2 A control method for a projection device provided by the first embodiment of the present application is schematically shown, in which a controller adjusts the image projected by the projection device through a zoom motor, and can correct the projected image to the screen while reducing the loss of pixels and brightness. The method may include the following steps S210 to S260.
[0033] Step S210, obtaining a correspondence between the projection area and the motor step length of the zoom motor of the projection device.
[0034] In this embodiment, the projection area refers to the area covered by the image projected by the projection device. In this embodiment, the projection device may be provided with an image acquisition device, wherein the image acquisition device may be a camera module. The projection device is provided with a zoom motor, and the zoom motor is used to adjust the focal length of the projection device by changing the step length of the motor. The controller may obtain the projection area by at least one of a background difference method and a frame difference method.
[0035] For example, the controller can obtain an initial image including at least the screen area and a comparison image including the screen area and a solid color image at different step lengths through an image acquisition device, and based on the initial image and the comparison image, subtract different comparison images from the initial image to obtain multiple projection areas.
[0036] In this embodiment, the controller may be provided with a projection area library, which contains different projection areas and their corresponding zoom motor step lengths. After the controller determines the projection area, it records the projection area and its corresponding zoom motor step length in the projection area library, thereby determining the corresponding relationship between the projection area and the motor step length. It is worth noting that this step may be preset and stored in a computer memory, or may be obtained by real-time calculation, and this step is not limited to before S220, but may be simultaneous with or after S220.
[0037] Step S220, obtaining a screen area, and determining a target projection area according to the screen area.
[0038] In this embodiment, the screen area refers to the area covered by the medium of the screen for displaying images.
[0039] In some embodiments, the controller collects images containing the curtain through an image acquisition device to obtain the curtain area. In other embodiments, if the curtain used this time is the same as the curtain used last time, the controller can directly extract the curtain area saved last time to obtain the curtain area.
[0040] Furthermore, the controller determines whether the screen area is within the projection area based on the projection area and the screen area. Since the gain of the screen is usually greater than the surrounding environment and has an obvious border, the controller can use a region-based or edge-based segmentation algorithm to identify the boundary of the screen area. For example, in some embodiments, the controller sends a recognition instruction to the image recognition device. After receiving the recognition instruction, the image recognition device uses a threshold filling method to obtain the screen area and then fits the screen boundary. Specifically, the image recognition device first fills the corresponding constant values on the top, bottom, left and right of the image containing the screen area, then performs full threshold processing on the image, and then uses a function to segment the image to obtain the boundary of the screen area. After the image recognition device identifies the boundary of the screen area and the boundary of the projection area, it sends the recognition result to the controller. After receiving the recognition result, the controller determines whether the screen area is within the projection area through the boundary of the screen area and the boundary of the projection area.
[0041] As a method, the controller can determine whether the screen area is within the projection area by the shape of the boundary of the screen area and the relationship between the boundary of the screen area and the boundary of the projection area. Specifically, after receiving the recognition result, the controller determines whether the boundary of the screen area is a convex quadrilateral and whether the boundary of the screen area is within the boundary of the projection area. If the controller determines that the boundary of the screen area is a convex quadrilateral and the boundary of the screen area is within the boundary of the projection area, the controller determines that the projection area completely covers the screen area, that is, the screen area is within the projection area; if the controller determines that the boundary of the screen area is not a convex quadrilateral, or the boundary of the screen area is not within the boundary of the projection area, the controller determines that the projection area does not completely cover the screen area, that is, the screen area is not within the projection area. If the screen area is within the projection area, the coordinate parameters of the screen area are recorded. Among them, the coordinate parameters of the screen area include the coordinates of the boundary points of the screen area. After the controller determines that the screen area is within the projection area, it processes the image containing the screen area to obtain the coordinate parameters of the screen area. Based on the coordinate parameters of the screen area, the controller calculates the ratio of the area of the screen area to the area of the projection area. For example, the coordinates of the boundary points of the screen area are (-2, 2), (2, 2), (2, -2), and (-2, -2). The controller can calculate that the area of the screen area is 16 based on the above coordinates.
[0042] In this embodiment, the target projection area is the projection area when the ratio is the highest. As a method, the projection device is provided with a zoom motor, and the zoom motor is used to adjust the focal length of the projection device by changing the step length of the motor. The controller can send a control instruction to the zoom motor, and the control instruction can carry a step length parameter. After receiving the control instruction, the zoom motor reads the step length parameter and adjusts to the corresponding step length. The controller can adjust the zoom motor to different step lengths, and obtain the ratio of the area of the screen area corresponding to different step lengths to the area of the projection area when the screen area is within the projection area. Further, the controller can be provided with a ratio library, and the ratio library contains different step lengths, their corresponding projection areas and their corresponding ratios. After the controller calculates the ratios corresponding to the different step lengths, the calculation results are stored in the ratio library. Finally, the controller compares the ratio numbers in the ratio library, determines the highest ratio, and determines the projection area corresponding to the highest ratio as the target projection area.
[0043] Step S230: Based on the target projection area, determine the target step length of the zoom motor according to the corresponding relationship.
[0044] In this embodiment, after determining the target projection area, the controller searches for a projection area identical to the target projection area in the projection area library, and determines the motor step length corresponding to the projection area as the target step length of the zoom motor.
[0045] Step S240: determining image correction parameters based on the boundary of the screen area and the boundary of the target projection area.
[0046] In this embodiment, the controller can project a target image to the target projection area, and the target image can include a pure color image or a feature image containing feature points. As a method, the controller can send a control instruction to the processor of the projection device, and the control instruction can carry the projection instruction of the target image. After receiving the control instruction, the processor reads the projection instruction of the target image, thereby controlling the projection device to project the target image to the target projection area.
[0047] Further, the controller obtains a reference image containing the target picture and the curtain area. For example, in this embodiment, the controller collects the reference image containing the target picture and the curtain area through an image acquisition device. After obtaining the reference image, the controller obtains the first position parameter of the target picture in the reference image and the second position parameter of the target picture in the display chip of the projection device. In some embodiments, the target picture includes a solid color picture, the first position parameter refers to the coordinate parameter of the boundary point (e.g., the four points at the four corners) of the target picture in the reference image, and the second position parameter refers to the coordinate parameter of the boundary point (e.g., the four points at the four corners) of the target picture in the display chip of the projection device. The controller obtains the boundary point coordinate parameter of the boundary of the target picture in the reference image, and records the boundary point coordinate parameter in the reference image as the first position parameter. Further, the controller obtains the boundary point coordinate parameter of the boundary of the target picture in the display chip, and records the boundary point coordinate parameter in the display chip as the second position parameter. In other embodiments, in order to improve the accuracy of the mapping relationship between the position parameters of the reference image and the position parameters of the display chip, the target picture includes a feature picture containing feature points, for example, the target picture can be a checkerboard picture, the first position parameter refers to the coordinate parameter of the feature point of the target picture in the reference image, and the second position parameter refers to the coordinate parameter of the feature point of the target picture in the display chip of the projection device. The controller obtains the feature coordinate parameter of the feature point of the target picture in the reference image, and records the feature coordinate parameter in the reference image as the first position parameter.
[0048] Further, the controller determines the mapping relationship between the position parameters of the reference image and the position parameters of the display chip based on the first position parameter and the second position parameter. For example, the first position parameter and the second position parameter can be used to obtain the homography matrix H for converting the reference image to the display chip. The controller obtains the third position parameter of the screen area in the reference image and determines the image correction parameters of the image to be projected in the display chip. For example, the controller can determine the image correction parameters of the image to be projected in the display chip based on the homography matrix H and the third position parameter of the screen area in the reference image, wherein the image correction parameters may include the position parameters of the screen area in the display chip.
[0049] Step S250: Correct the image to be projected based on the image correction parameters to obtain a target projection image.
[0050] In this embodiment, the image to be projected is an image that the projection device actually needs to calibrate. For example, the image to be projected can be a page image in a PPT, or a frame image in a video file. Since the size of the image to be projected and the above-mentioned test image are roughly the same, and both are images projected onto the screen area by the same projection device at the same position, the degree of deformation and distortion of the image to be projected and the above-mentioned test image are also the same. In an embodiment of the present application, after the projection device calibrates the above-mentioned test image, the correction parameters obtained can also be applied to calibrate the image to be projected. Therefore, the position coordinates of the image to be projected are corrected to the corresponding position coordinates (position parameters) in the picture correction parameters, for example, the boundary point coordinates in the image to be projected are corrected to the corresponding boundary point coordinates in the picture correction parameters, and the target projection picture can be obtained.
[0051] Step S260: Control the projection device to project the target projection picture.
[0052] In this embodiment, the controller adjusts the zoom motor to the target step length. As a method, the controller can send a control instruction to the zoom motor. The control instruction can carry a target step length parameter. After receiving the control instruction, the zoom motor reads the target step length parameter and adjusts to the corresponding target step length. Specifically, in some embodiments, the zoom motor can be designed to move in a fixed direction (for example, in the direction of the largest area) from the current step length, and then move in the opposite direction until it reaches the lowest end; in other embodiments, the zoom motor can also start from the current step length to move in the direction of the largest area, and then move in the opposite direction until the screen area is no longer in the projection area and then stop, and then move in the opposite direction for one step length, thereby reducing the number of movement times and movement time of the zoom motor, thereby improving the user experience; in some other embodiments, the zoom motor can also determine the motor movement direction based on whether the projection area covers the entire screen area from the current step length, so as to further reduce the number of motor movement times. If the projection area has covered the screen area under the current step length, the zoom motor moves in the direction of shrinking the area until it reaches the bottom or the projection area cannot cover the screen area. If the projection area cannot cover the screen under the current step length, the motor moves in the direction of enlarging the area until it reaches the top or the projection area can cover the screen area. It is worth noting that the step of the controller adjusting the zoom motor to the target step length is not limited to before S260, but can also be simultaneous with or after step S230.
[0053] In this embodiment, a storage device is provided in the processor of the projection device, and the storage device contains different pictures that the projection device needs to project. After the controller adjusts the zoom motor to the target step length, the target projection picture is stored in the storage device, and the target projection picture is named "mubiaotouyinghuamian.jpg". The controller can send a control instruction to the processor of the projection device, and the control instruction can carry a projection instruction of a pure color picture. After receiving the control instruction, the processor reads the projection instruction of the pure color picture, thereby controlling the projection device to project the pure color picture. The processor reads the name of the target projection picture from the control instruction as "mubiaotouyinghuamian.jpg", then the processor searches for the picture named "mubiaotouyinghuamian.jpg" from the storage device, and controls the projection device in the projection device to project the target projection picture to the target projection area.
[0054] The present application provides a control method for a projection device. In this method, a controller obtains the correspondence between a projection area and a motor step length of a zoom motor, then determines a target projection area according to a screen area, and determines a target step length of a zoom motor based on the above correspondence. Then, the controller determines a picture correction parameter according to a boundary of the screen area and a boundary of a target projection area, and corrects the picture to be projected to obtain a target projection picture, and finally, the controller controls the projection device to project the target projection picture. The above method adjusts the picture projected by the projection device through a zoom motor, and can correct the projected picture to the screen while reducing the loss of pixels and brightness.
[0055] See also Figure 3 and Figure 4 , Figure 3 and Figure 4 A control method for a projection device provided by the second embodiment of the present application is schematically shown, in which the controller determines the picture correction parameters by acquiring the conversion relationship between the position parameters of the image captured by the image acquisition device and the position parameters of the picture in the display chip of the projection device, so that the correction of the projection device is simpler and the user experience is improved. The method may include the following steps S310 to S3100.
[0056] Step S310, obtaining a corresponding relationship between the projection area and the motor step length of the zoom motor of the projection device.
[0057] In this embodiment, the projection area refers to the area covered by the picture projected by the projection device.
[0058] In this embodiment, the projection device may be provided with an image acquisition device, wherein the image acquisition device may be a camera module. The controller may obtain the projection area by at least one of a background difference method and a frame difference method.
[0059] See also Figure 5 As a method, the controller can obtain the projection area by the background difference method. Specifically, the controller sends an image acquisition instruction to the image acquisition device. After receiving the image acquisition instruction, the image acquisition device acquires the initial image, wherein the screen area refers to the area covered by the medium used by the screen to display the picture. In some embodiments, the initial image is an image that only contains the screen area. In other embodiments, the initial image is an image that contains the screen area and a pure black picture. Further, the controller can send a control instruction to the processor of the projection device. The control instruction can carry a projection instruction for a pure color picture. After receiving the control instruction, the processor reads the projection instruction for the pure color picture, thereby controlling the projection device to project the pure color picture in the direction where the screen area is located. For example, the projection instruction can be the name of the pure color picture. The processor is provided with a storage device. The storage device contains different pictures that the projection device needs to project. The processor reads the name of the pure color picture from the control instruction as "chunsehuamian.jpg". Then the processor searches for the picture named "chunsehuamian.jpg" from the storage device, and controls the projection device in the projection device to project the picture in the direction where the screen area is located (such as Figure 5 a).
[0060] Furthermore, in this embodiment, the projection device is provided with a zoom motor, and the zoom motor is used to adjust the focal length of the projection device by changing the step length of the motor. The controller can send a control instruction to the zoom motor, and the control instruction can carry a step length parameter. After receiving the control instruction, the zoom motor reads the step length parameter and adjusts to the corresponding step length. The controller can adjust the zoom motor to different step lengths, and in the process of the zoom motor changing the step length, send an image acquisition instruction to the image acquisition device. After receiving the image acquisition instruction, the image acquisition device sequentially acquires multiple comparison images (such as Figure 5 b), and sending the contrast image to the controller, wherein the contrast image includes the pure color image and the curtain area. In the above steps, there is no back and forth switching of the images, which will not cause discomfort to the user and can improve the user's experience.
[0061] Furthermore, the controller can determine the projection area based on the initial image and the comparison image. Specifically, the controller can obtain multiple projection areas (such as Figure 5 c). In this embodiment, the controller may be provided with a projection area library, which contains different projection areas and their corresponding zoom motor step lengths. After determining the projection area based on the initial image and the comparison image, the controller records the projection area and its corresponding zoom motor step length in the projection area library, thereby determining the corresponding relationship between the projection area and the motor step length.
[0062] See also Figure 6 As a method, the controller can obtain the projection area by using the frame difference method. The frame difference method can determine the projection area under the current zoom step according to the adjustment direction of the zoom motor and the difference between the images captured by the image acquisition device. Specifically, the controller sends an image acquisition instruction to the image acquisition device. After receiving the image acquisition instruction, the image acquisition device captures the first image (such as the first image of the screen projected by the projection device) under this step. Figure 6 a), further, the controller may send a control instruction to the zoom motor, the control instruction may carry a step length parameter, after receiving the control instruction, the zoom motor reads the step length parameter and adjusts to the corresponding step length. The controller sends an image acquisition instruction to the image acquisition device, after receiving the image acquisition instruction, the image acquisition device acquires a second image (such as a second image) containing the picture projected by the projection device after the step length is changed. Figure 6 b).
[0063] In this embodiment, the controller can determine the projection area based on the first image and the second image. Specifically, the controller can obtain the difference set of the first image and the second image to obtain a difference image (such as Figure 6 c), wherein the black portion of the difference image represents the same portion of the first image and the second image, and the white portion represents the different portion of the first image and the second image. Further, the controller may determine the edge of the projection area according to the area of the first image and the area of the second image.
[0064] As a method, the controller can calculate the areas of the first image and the second image based on the coordinate parameters of the first image and the second image. Specifically, the controller can be provided with an image containing a reference coordinate system, and the controller superimposes the first image on the image containing the reference coordinate system, and reads the coordinates corresponding to the four corners of the first image, thereby obtaining the coordinate parameters of the first image; the controller superimposes the second image on the image containing the reference coordinate system, and reads the coordinates corresponding to the four corners of the second image, thereby obtaining the coordinate parameters of the second image. Since the first image and the second image are regular quadrilaterals, the controller can calculate the areas of the first image and the second image based on the coordinate coefficients of the first image and the coordinate coefficients of the second image.
[0065] If the controller determines that the area of the second image is smaller than that of the first image, that is, the second image is reduced relative to the first image, the controller determines the inner edge of the white portion in the difference image as the edge of the projection area, and the area enclosed by the edge of the projection area is the projection area.
[0066] If the controller determines that the area of the second image is larger than that of the first image, that is, the second image is enlarged relative to the first image, the controller determines the outer edge of the white portion in the difference image as the edge of the projection area, and the area enclosed by the edge of the projection area is the projection area.
[0067] In this embodiment, the controller may be provided with a projection area library, which contains different projection areas and their corresponding zoom motor step lengths. After determining the projection area based on the first image and the second image, the controller records the projection area and its corresponding zoom motor step length in the projection area library, thereby determining the correspondence between the projection area and the motor step length.
[0068] Step S320, obtaining a screen area, and determining a target projection area according to the screen area.
[0069] In this embodiment, the screen area refers to the area covered by the medium of the screen for displaying images.
[0070] Step S330 : Based on the target projection area, determine the target step length of the zoom motor according to the corresponding relationship.
[0071] In this embodiment, the specific implementation of step S320 to step S330 can refer to the description of step S220 to step S230 provided in the above embodiment, and will not be repeated here.
[0072] Step S340: projecting the target image onto the target projection area.
[0073] In this embodiment, the target picture may include a pure color picture or a feature image containing feature points. As a method, the controller may send a control instruction to the processor of the projection device, and the control instruction may carry a projection instruction of the target picture. After receiving the control instruction, the processor reads the projection instruction of the target picture, thereby controlling the projection device to project the target picture to the target projection area. For example, the projection instruction may be the name of the target picture, and the processor is provided with a storage device, and the storage device contains different pictures that the projection device needs to project. The processor reads the name of the target picture from the control instruction as "mubiaohuamian.jpg", then the processor searches for a picture named "mubiaohuamian.jpg" from the storage device, and controls the projection device in the projection device to project the picture to the target projection area.
[0074] Step S350, obtaining a reference image including the target image and the curtain area.
[0075] In this embodiment, the controller collects a reference image containing the target picture and the curtain area through an image acquisition device. Specifically, the controller sends an image acquisition instruction to the image acquisition device, and after receiving the image acquisition instruction, the image acquisition device acquires the target picture and the curtain area to obtain a reference image containing the target picture and the curtain area, and sends the reference image to the controller.
[0076] Step S360 , obtaining a first position parameter of the target picture in the reference image and a second position parameter of the target picture in the display chip of the projection device.
[0077] In some embodiments, the target picture includes a solid color picture, the first position parameter refers to the coordinate parameter of the boundary point (e.g., four points at the four corners) of the target picture in the reference image, and the second position parameter refers to the coordinate parameter of the boundary point (e.g., four points at the four corners) of the target picture in the display chip of the projection device. The controller obtains the boundary point coordinate parameter of the boundary of the target picture in the reference image, and records the boundary point coordinate parameter in the reference image as the first position parameter. Further, the controller obtains the boundary point coordinate parameter of the boundary of the target picture in the display chip, and records the boundary point coordinate parameter in the display chip as the second position parameter.
[0078] In other embodiments, in order to improve the accuracy of the mapping relationship between the position parameters of the reference image and the position parameters of the display chip, the target picture includes a feature picture containing feature points, for example, the target picture can be a checkerboard picture, the first position parameter refers to the coordinate parameter of the feature point of the target picture in the reference image, and the second position parameter refers to the coordinate parameter of the feature point of the target picture in the display chip of the projection device. The controller obtains the feature coordinate parameter of the feature point of the target picture in the reference image, and records the feature coordinate parameter in the reference image as the first position parameter. Further, the controller obtains the feature coordinate parameter of the feature point of the target picture in the display chip, and records the feature coordinate parameter in the display chip as the second position parameter.
[0079] The following description is made by taking a target screen as a solid color screen as an example.
[0080] See also Figure 7 and Figure 8As a method, the controller superimposes the image containing the target screen on the image containing the reference coordinate system, and reads the coordinates corresponding to the four corners of the target screen, which are (cx1, cy1), (cx2, cy2), (cx3, cy3), and (cx4, cy4), thereby obtaining the first position parameter. Furthermore, the processor of the projection device can be provided with a standard coordinate system. After the processor obtains the target screen in the display chip of the projection device, it determines the coordinates corresponding to the four corners of the target screen based on the standard coordinate system, which are (0, 0), (0, w), (h, 0), and (h, w), thereby obtaining the second position parameter, and sending the second position parameter to the controller.
[0081] Step S370: determining a mapping relationship between the position parameters of the reference image and the position parameters of the display chip based on the first position parameters and the second position parameters.
[0082] In this embodiment, the controller obtains the mapping relationship between the position parameters of the reference image and the position parameters of the display chip according to the first position parameters (cx1, cy1), (cx2, cy2), (cx3, cy3), (cx4, cy4) and the second position parameters (0, 0), (0, w), (h, 0), (h, w), that is, the homography matrix H for converting the reference image to the display chip is calculated according to the coordinates of the four corner points. Specifically, a homography matrix H is a matrix of size 3*3, which satisfies a given point p = [x, y, w] T , H transforms point p into a new point p ′ =[x ′ ,y ′ ,w ′ ] T =Hp. Since they are homogeneous coordinates, the corresponding two points on the image are and Furthermore, if the controller gives a homography matrix H = {h ij}, multiplying its elements by the same number a, the resulting homography matrix aH has the same effect as H, because aH turns the homogeneous point p into ap, and ap and p ′ The points on the corresponding images are the same, so there are only 8 free elements in a homography matrix, so the controller sets the element h in the lower right corner 33 = 1 to normalize. Further, assuming that the points on the two images are [x, y] T and [x ′ ,y ′ ] T , their homogeneous coordinates are [x, y, 1] T and [x ′ ,y ′ ,1] T , so it can be deduced that:
[0083]
[0084]
[0085] The controller reorganizes the above two equations to obtain an equivalent matrix form:
[0086] Au=v
[0087] in,
[0088]
[0089] u=[h 11 h 12 h 13 h 21 h 22 h 23 h 31 h 32 ]
[0090] v=[x ′ y ′ ] T
[0091] The controller substitutes the four sets of coordinates of the first position parameter and the second position parameter into the above matrix form to obtain h 11 ,h 12 ,h 13 ,h 21 ,h 22 ,h 23 ,h 31 ,h 32 The value of , so we can get the homography matrix Therefore, the position parameters of the reference image and the position parameters of the display chip can be obtained by the homography matrix Calculated.
[0092] Step S380, determining the image correction parameters of the image to be projected in the display chip based on the mapping relationship and the third position parameter of the screen area in the reference image.
[0093] In some embodiments, the curtain area includes a solid color picture, and the third position parameter refers to the coordinate parameter of the boundary points of the curtain area (for example, the four points at the four corners) in the reference image. The controller obtains the coordinate parameters of the boundary points of the curtain area in the reference image, and records the coordinate parameters of the boundary points in the reference image as the third position parameter.
[0094] In other embodiments, the curtain area includes a feature picture containing feature points, for example, the curtain area may be a checkerboard picture, and the third position parameter refers to the coordinate parameter of the feature point of the curtain area in the reference image. The controller obtains the feature coordinate parameter of the feature point of the curtain area in the reference image, and records the feature coordinate parameter in the reference image as the third position parameter.
[0095] The following description is made by taking a target screen as a solid color screen as an example.
[0096] In this embodiment, the controller can determine the image correction parameters of the image to be projected in the display chip based on the homography matrix H and the third position parameters of the screen area in the reference image, wherein the image correction parameters refer to the position parameters of the screen area in the display chip.
[0097] In this embodiment, the controller superimposes the image containing the curtain area on the image containing the reference coordinate system, and reads the coordinates corresponding to the four corners of the curtain area, which are (x′1, y′1), (x′2, y′2), (x′3, y′3), and (x′4, y′4), respectively, to obtain the third position parameter.
[0098] Furthermore, as shown in the following formula 1, after multiplying the third position parameter of the curtain area in the reference image with the homography matrix H, the position parameters (x′1, y′1), (x′2, y′2), (x′3, y′3), (x′4, y′4) corresponding to the curtain area in the display chip can be obtained.
[0099]
[0100] Therefore, the coordinates of the boundary points of the screen area in the display chip are the picture correction parameters of the projection device, which are used by the subsequent controller to correct the picture to be projected.
[0101] Step S390: Based on the picture correction parameters, the picture to be projected is corrected to obtain a target projection picture.
[0102] Step S3100, controlling the projection device to perform projection according to the target step length and the target projection picture.
[0103] In this embodiment, the specific implementation of step S390 to step S3100 can refer to the description of step S250 to step S260 provided in the above embodiment, and will not be repeated here.
[0104] An embodiment of the present application provides a control method for a projection device, in which a controller obtains a corresponding relationship between a projection area and a motor step length of a zoom motor, and then determines a target projection area according to a screen area, and determines a target step length of a zoom motor based on the above corresponding relationship. Then, the controller determines a picture correction parameter according to the boundary of the screen area and the boundary of the target projection area, and corrects the picture to be projected to obtain a target projection picture, and finally, the controller controls the projection device to project the target projection picture. The above method adjusts the picture projected by the projection device through a zoom motor, and can correct the projected picture to the screen while reducing the loss of pixels and brightness. Furthermore, the controller determines the picture correction parameter by obtaining a conversion relationship between the position parameters of an image captured by an image acquisition device and the position parameters of a picture in a display chip of the projection device, so that the correction of the projection device is simpler and the user experience is improved.
[0105] See also Fig. 9 and Fig.10 , Fig. 9 and Fig.10 A control method for a projection device provided in the third embodiment of the present application is schematically shown, in which the controller determines whether the screen area is within the projection area by identifying the shape of the screen area or the relationship between the boundary of the screen area and the boundary of the projection area, so that the calibration of the projection device is simpler and the user experience is improved. The method may include the following steps S910 to S9100.
[0106] Step S910: Acquire the corresponding relationship between the projection area and the motor step length of the zoom motor of the projection device.
[0107] In this embodiment, the projection area refers to the area covered by the picture projected by the projection device.
[0108] In this embodiment, the specific implementation of step S910 may refer to the description of step S210 or step S310 provided in the above embodiments, and will not be described in detail here.
[0109] Step S920, obtaining the curtain area.
[0110] In this embodiment, the screen area refers to the area covered by the medium of the screen for displaying images.
[0111] As a method, the projection device can be provided with an image acquisition device, wherein the image acquisition device can be a camera module. The controller collects the image containing the screen through the image acquisition device to obtain the screen area. Specifically, the controller sends an image acquisition instruction to the image acquisition device, and after receiving the image acquisition instruction, the image acquisition device acquires the image of the screen to obtain the image containing the screen. Further, the projection device can also be provided with an image recognition device, and the image acquisition device sends the image containing the screen to the image recognition device, and the image recognition device can identify and extract the outline of the screen through the outline extraction algorithm, thereby obtaining the screen area, and sending the screen area to the controller. Furthermore, in most cases, the screen used by the user to watch the projection is fixed, so in some embodiments, the controller can save the screen area for subsequent use, reduce the steps and time when the projection device is used later, and improve the convenience of user use.
[0112] As a method, if the curtain used this time is the same as the curtain used last time, the controller can directly extract the curtain area saved last time to obtain the curtain area.
[0113] Step S930: Based on the projection area and the screen area, determine whether the screen area is within the projection area.
[0114] In this embodiment, after acquiring the projection area and the screen area, the controller determines the boundary of the screen area and the boundary of the projection area, thereby determining whether the screen area is within the projection area.
[0115] Since the gain of the curtain is usually greater than the surrounding environment and has a clear border, the controller can use a region-based or edge-based segmentation algorithm to identify the boundary of the curtain area. For example, in some embodiments, the controller sends a recognition instruction to the image recognition device. After receiving the recognition instruction, the image recognition device uses a threshold filling method to obtain the curtain area and then fits the curtain boundary. Specifically, the image recognition device first fills the corresponding constant values on the top, bottom, left and right of the image containing the curtain area, then performs full threshold processing on the image, and then uses a function to segment the image to obtain the boundary of the curtain area. For example, in other embodiments, the controller sends a recognition instruction to the image recognition device. After receiving the recognition instruction, the image recognition device uses gradient operators such as Sobel, Roberts, Prewitt, Laplace, and Canny to directly obtain the boundary of the curtain area. Specifically, the image recognition device first converts the image containing the curtain area into a grayscale image, and then calculates the gradient value of the image by the middle difference method, that is, calculates the difference of the pixels in the image in each direction, and then calculates the difference between the two pixels before and after. Since discontinuous grayscale values in the image will produce edges, the image recognition device identifies the discontinuous grayscale values in the image to obtain the boundary of the curtain area.
[0116] After the image recognition device recognizes the boundary of the screen area and the boundary of the projection area, it sends the recognition result to the controller. After receiving the recognition result, the controller determines whether the screen area is within the projection area through the boundary of the screen area and the boundary of the projection area.
[0117] As a method, the controller can determine whether the screen area is within the projection area by the shape of the boundary of the screen area. Specifically, after receiving the recognition result, the controller determines whether the boundary of the screen area is a convex quadrilateral. If the controller determines that the boundary of the screen area is a convex quadrilateral, the controller determines that the projection area completely covers the screen area, that is, the screen area is within the projection area; if the controller determines that the boundary of the screen area is not a convex quadrilateral, the controller determines that the projection area does not completely cover the screen area, that is, the screen area is not within the projection area.
[0118] As a method, the controller can determine whether the screen area is within the projection area based on the relationship between the boundary of the screen area and the boundary of the projection area. Specifically, after receiving the recognition result, the controller determines whether the boundary of the screen area is within the boundary of the projection area. If the controller determines that the boundary of the screen area is within the boundary of the projection area, the controller determines that the projection area completely covers the screen area, that is, the screen area is within the projection area; if the controller determines that the boundary of the screen area is not within the boundary of the projection area, the controller determines that the projection area does not completely cover the screen area, that is, the screen area is not within the projection area.
[0119] As a method, the controller can determine whether the screen area is within the projection area by the shape of the boundary of the screen area and the relationship between the boundary of the screen area and the boundary of the projection area. Specifically, after receiving the recognition result, the controller determines whether the boundary of the screen area is a convex quadrilateral and whether the boundary of the screen area is within the boundary of the projection area. If the controller determines that the boundary of the screen area is a convex quadrilateral and the boundary of the screen area is within the boundary of the projection area, the controller determines that the projection area completely covers the screen area, that is, the screen area is within the projection area; if the controller determines that the boundary of the screen area is not a convex quadrilateral, or the boundary of the screen area is not within the boundary of the projection area, the controller determines that the projection area does not completely cover the screen area, that is, the screen area is not within the projection area.
[0120] Step S940: If the screen area is within the projection area, the coordinate parameters of the screen area are recorded.
[0121] In this embodiment, the coordinate parameters of the screen area include the coordinates of the boundary points of the screen area. After the controller determines that the screen area is within the projection area, it processes the image containing the screen area to obtain the coordinate parameters of the screen area. As a method, the controller can be provided with an image containing a reference coordinate system, and the controller superimposes the image containing the screen area on the image containing the reference coordinate system, and reads the coordinates corresponding to the four corners of the screen area to obtain the coordinate parameters of the screen area.
[0122] Step S950, calculating the ratio of the area of the screen area to the area of the projection area based on the coordinate parameters of the screen area.
[0123] In this embodiment, since the screen is mostly a regular quadrilateral, the controller can calculate the area of the screen area according to the coordinate coefficients of the screen area. For example, the coordinates of the boundary points of the screen area are (-2, 2), (2, 2), (2, -2), (-2, -2), and the controller can calculate the area of the screen area as 16 according to the above coordinates.
[0124] Furthermore, the controller also needs to obtain the area of the projection area. As a method, the controller can calculate the area of the projection area based on the coordinate parameters of the projection area. The controller superimposes the image containing the projection area on the image containing the reference coordinate system, reads the coordinates corresponding to the four corners of the projection area, and obtains the coordinate parameters of the projection area. For example, the coordinates of the boundary points of the projection area are (-9, 3), (9, 3), (2, -3), and (-5, -3). The controller can calculate the area of the projection area as 99 based on the above coordinates.
[0125] Furthermore, the controller calculates the ratio of the area of the screen area to the area of the projection area based on the area of the screen area and the area of the projection area for subsequent judgment. For example, if the area of the screen area is 16 and the area of the projection area is 99, the controller determines that the ratio of the area of the screen area to the area of the projection area is 1 / 3.
[0126] Step S960: determining the target projection area based on the ratio.
[0127] In this embodiment, the target projection area is the projection area when the ratio is the highest.
[0128] In this embodiment, the projection device is provided with a zoom motor, and the zoom motor is used to adjust the focal length of the projection device by changing the step length of the motor. The controller can send a control instruction to the zoom motor, and the control instruction can carry a step length parameter. After receiving the control instruction, the zoom motor reads the step length parameter and adjusts to the corresponding step length. The controller can adjust the zoom motor to different step lengths, and obtain the ratio of the area of the screen area corresponding to different step lengths to the area of the projection area when the screen area is within the projection area. Further, the controller can be provided with a ratio library, and the ratio library contains different step lengths, their corresponding projection areas and their corresponding ratios. After the controller calculates the ratios corresponding to the different step lengths, the calculation results are stored in the ratio library. Finally, the controller compares the ratio numbers in the ratio library, determines the highest ratio, and determines the projection area corresponding to the highest ratio as the target projection area.
[0129] Step S970: Based on the target projection area, determine the target step length of the zoom motor according to the corresponding relationship.
[0130] Step S980: determining image correction parameters based on the boundary of the screen area and the boundary of the target projection area.
[0131] Step S990: Correct the image to be projected based on the image correction parameters to obtain a target projection image.
[0132] Step S9100, controlling the projection device to perform projection according to the target step length and the target projection picture.
[0133] In this embodiment, the specific implementation of steps S970 to S9100 may refer to the description of steps S230 to S260 or steps S330 to S3100 provided in the above embodiments, and will not be described in detail here.
[0134] An embodiment of the present application provides a control method for a projection device, in which a controller obtains a correspondence between a projection area and a motor step length of a zoom motor, and then determines a target projection area according to a screen area, and determines a target step length of a zoom motor based on the above correspondence. Then, the controller determines a picture correction parameter according to the boundary of the screen area and the boundary of the target projection area, and corrects the image to be projected to obtain a target projection image, and finally, the controller controls the projection device to project the target projection image. The above method adjusts the image projected by the projection device through a zoom motor, and can correct the projected image to the screen while reducing the loss of pixels and brightness. Furthermore, the controller determines whether the screen area is within the projection area by identifying the shape of the screen area or the relationship between the boundary of the screen area and the boundary of the projection area, so that the correction of the projection device is simpler and the user experience is improved.
[0135] See also Fig.11 , the present application provides a structural block diagram of a control device for a ventilation device, the device 1100 includes: a corresponding relationship acquisition module 1110, a projection area determination module 1120, a target step determination module 1130, a correction parameter determination module 1140, a projection image determination module 1150 and a control module 1160.
[0136] The corresponding relationship acquisition module 1110 is used to obtain the corresponding relationship between the projection area and the motor step length of the zoom motor of the projection device; the projection area determination module 1120 is used to obtain the screen area and determine the target projection area according to the screen area; the target step length determination module 1130 is used to determine the target step length of the zoom motor based on the target projection area according to the corresponding relationship; the correction parameter determination module 1140 is used to determine the picture correction parameters based on the boundary of the screen area and the boundary of the target projection area; the projection picture determination module 1150 is used to correct the picture to be projected based on the picture correction parameters to obtain the target projection picture; the control module 1160 is used to control the projection device to perform projection according to the target step length and the target projection picture.
[0137] The present application provides a control device for a projection device. In the device, a controller obtains the correspondence between the projection area and the motor step length of the zoom motor, then determines the target projection area according to the screen area, and determines the target step length of the zoom motor based on the above correspondence. Then the controller determines the picture correction parameters according to the boundary of the screen area and the boundary of the target projection area, and corrects the picture to be projected to obtain the target projection picture, and finally the controller controls the projection device to project the target projection picture. The above device adjusts the picture projected by the projection device through the zoom motor, and can correct the projected picture to the screen while reducing the loss of pixels and brightness, thereby improving the user experience.
[0138] In some embodiments, the correction parameter determination module 1140 is also used to project a target picture onto a target projection area; obtain a reference image including the target picture and a screen area; obtain a first position parameter of the target picture in the reference image and a second position parameter of the target picture in a display chip of the projection device; based on the first position parameter and the second position parameter, determine a mapping relationship between the position parameter of the reference image and the position parameter of the display chip; based on the mapping relationship and the third position parameter of the screen area in the reference image, determine the picture correction parameters of the picture to be projected in the display chip.
[0139] In some embodiments, the target picture includes a solid color picture, and the correction parameter determination module 1140 is also used to obtain the boundary point coordinate parameters of the boundary of the target picture in the reference image, and record the boundary point coordinate parameters in the reference image as the first position parameters; obtain the boundary point coordinate parameters of the boundary of the target picture in the display chip, and record the boundary point coordinate parameters in the display chip as the second position parameters.
[0140] In some embodiments, the target image includes a feature image containing feature points, and the correction parameter determination module 1140 is also used to obtain feature coordinate parameters of the feature points in the reference image, and record the feature coordinate parameters in the reference image as first position parameters; obtain feature coordinate parameters of the feature points in the display chip, and record the feature coordinate parameters in the display chip as first position parameters.
[0141] In some embodiments, the correspondence acquisition module 1110 is also used to acquire an initial image; wherein the initial image at least includes a screen area; project a pure color picture; control the zoom motor of the projection device to change the step size, and in the process of the zoom motor changing the step size, sequentially acquire multiple contrast images; wherein the contrast image includes a pure color picture and a screen area; based on the initial image and the contrast image, determine the projection area and record the motor step size corresponding to the contrast image; determine the correspondence between the projection area and the motor step size.
[0142] In some embodiments, the correspondence acquisition module 1110 is also used to acquire a first image including a picture projected by a projection device; adjust the step length of the motor and acquire a second image including a picture projected by the projection device; based on the first image and the second image, determine the projection area and record the motor step length corresponding to the second image; determine the correspondence between the projection area and the motor step length.
[0143] In some embodiments, the correspondence acquisition module 1110 is also used to obtain the difference set between the first image and the second image to obtain a difference image; if the area of the second image is smaller than the area of the first image, the inner edge of the difference image is determined to be the edge of the projection area; if the area of the second image is larger than the area of the first image, the outer edge of the difference image is determined to be the edge of the projection area; and the motor step length corresponding to the second image is recorded.
[0144] In some embodiments, the projection area determination module 1120 is also used to obtain the screen area; based on the projection area and the screen area, determine whether the screen area is within the projection area; if the screen area is within the projection area, record the coordinate parameters of the screen area; based on the coordinate parameters of the screen area, calculate the ratio of the area of the screen area to the area of the projection area; based on the ratio, determine the target projection area; wherein the target projection area is the projection area when the ratio is the highest.
[0145] In some embodiments, the projection area determination module 1120 is also used to determine whether the boundary of the screen area is a convex quadrilateral and the boundary of the screen area is within the projection area based on the projection area and the screen area; if the boundary of the screen area is a convex quadrilateral and the boundary of the screen area is within the projection area, then it is determined that the screen area is within the projection area; if the boundary of the screen area is not a convex quadrilateral or the boundary of the screen area is not within the projection area, then it is determined that the screen area is not within the projection area.
[0146] The present application provides a structural block diagram of a control device for a projection device. It should be noted that the device embodiment in the present application corresponds to the aforementioned method embodiment, and the specific implementation principles of each unit in the device embodiment are similar to the principles in the aforementioned method embodiment. The specific contents in the device embodiment can be found in the method embodiment, and will not be repeated in the device embodiment.
[0147] See also Fig.12 , a structural block diagram of a projection device provided in this application.
[0148] Based on the control method and device of the projection device described above, the embodiment of the present application also provides another projection device 1200 that can execute the control method of the projection device described above. The projection device 1200 can be a smart home such as a smart toilet that can run applications. The projection device 1200 includes one or more (only one is shown in the figure) processors 1210 and a memory 1220 coupled to each other. Among them, the memory 1220 stores a program that can execute the content of the above-mentioned embodiment, and the processor 1210 can execute the program stored in the memory 1220.
[0149] Among them, the processor 1210 may include one or more cores for processing data. The processor 1210 uses various interfaces and lines to connect various parts of the entire projection device 1200, and executes various functions and processes data of the projection device 1200 by running or executing instructions, programs, code sets or instruction sets stored in the memory 1220, and calling data stored in the memory 1220. Optionally, the processor 1210 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 1210 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communication. It can be understood that the above-mentioned modem may not be integrated into the processor 1210, but may be implemented separately through a communication chip.
[0150] The memory 1220 may include a random access memory (RAM) or a read-only memory (ROM). The memory 1220 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 1220 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc.
[0151] See also Fig.13 , a computer-readable storage medium provided by the present application. The computer-readable storage medium 1300 stores program codes, which can be called by a processor to execute the method described in the above method embodiment.
[0152] The computer readable storage medium 1300 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer readable storage medium 1300 includes a non-transitory computer-readable storage medium. The computer readable storage medium 1300 has storage space for program code 1310 that performs any method steps in the above method. These program codes can be read from or written to one or more computer program products. The program code 1310 can be compressed, for example, in an appropriate form.
[0153] In summary, the present application provides a control method, device and electronic device for a projection device. In this method, the controller obtains the correspondence between the projection area and the motor step length of the zoom motor, then determines the target projection area according to the screen area, and determines the target step length of the zoom motor based on the above correspondence. Then the controller determines the picture correction parameters according to the boundary of the screen area and the boundary of the target projection area, and corrects the picture to be projected to obtain the target projection picture, and finally the controller controls the projection device to project the target projection picture. The above method adjusts the picture projected by the projection device through the zoom motor, which can correct the projected picture to the screen while reducing the loss of pixels and brightness, thereby improving the user experience.
[0154] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0155] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0156] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0157] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, which can be specifically implemented in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or used in combination with these instruction execution systems, devices or apparatuses.
[0158] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0159] 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 recorded in the aforementioned embodiments, or make equivalent replacements for some of the technical feature diagrams therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for controlling a projection device, characterized in that: The method comprises: Obtaining a corresponding relationship between a projection area and a motor step length of a zoom motor of a projection device; Acquire a screen area, and determine a target projection area according to the screen area; Based on the target projection area, determining a target step length of the zoom motor according to the corresponding relationship; Determining picture correction parameters based on the boundary of the screen area and the boundary of the target projection area; Based on the picture correction parameters, correcting the picture to be projected to obtain a target projection picture; Control the projection device to project the target projection picture.
2. The method according to claim 1, characterized in that The determining of the picture correction parameters based on the boundary of the screen area and the boundary of the target projection area includes: Projecting a target image onto the target projection area; Acquire a reference image including the target image and the curtain area; Acquire a first position parameter of the target picture in the reference image and a second position parameter of the target picture in a display chip of the projection device; Determine a mapping relationship between the position parameter of the reference image and the position parameter of the display chip based on the first position parameter and the second position parameter; Based on the mapping relationship and the third position parameter of the screen area in the reference image, the image correction parameter of the image to be projected in the display chip is determined.
3. The method according to claim 2, characterized in that The target picture includes a pure color picture, and obtaining a first position parameter of the target picture in the reference image and a second position parameter of the target picture in a display chip of the projection device includes: Acquire coordinate parameters of boundary points of the boundary of the target image in the reference image, and record the coordinate parameters of the boundary points in the reference image as the first position parameters; The boundary point coordinate parameters of the boundary of the target image in the display chip are obtained, and the boundary point coordinate parameters in the display chip are recorded as the second position parameters.
4. The method according to claim 2, characterized in that The target picture includes a feature picture including feature points, and obtaining a first position parameter of the target picture in the reference image and a second position parameter of the target picture in a display chip of the projection device includes: Acquire feature coordinate parameters of the feature point in the reference image, and record the feature coordinate parameters in the reference image as the first position parameters; A characteristic coordinate parameter of the characteristic point in the display chip is acquired, and the characteristic coordinate parameter in the display chip is recorded as the first position parameter.
5. The method according to claim 1, characterized in that The obtaining of the corresponding relationship between the projection area and the motor step length of the zoom motor of the projection device comprises: Acquire an initial image; wherein the initial image at least includes the curtain area; Projecting a pure color image in the direction of the screen area; Controlling the zoom motor of the projection device to change the step length, and sequentially acquiring a plurality of contrast images during the process of the zoom motor changing the step length; wherein the contrast image includes the pure color picture and the screen area; Based on the initial image and the contrast image, determining the projection area and recording the motor step length corresponding to the contrast image; A corresponding relationship between the projection area and the motor step length is determined.
6. The method according to claim 1, characterized in that The obtaining of the corresponding relationship between the projection area and the motor step length of the zoom motor of the projection device comprises: Acquire a first image including a picture projected by the projection device; adjusting the step length of the motor and acquiring a second image including a picture projected by the projection device; Based on the first image and the second image, determining the projection area and recording the motor step length corresponding to the second image; A corresponding relationship between the projection area and the motor step length is determined.
7. The method according to claim 6, characterized in that The determining the projection area and recording the motor step length corresponding to the second image based on the first image and the second image includes: Obtaining a difference set between the first image and the second image to obtain a difference image; If the area of the second image is smaller than the area of the first image, determining the inner edge of the difference image as the edge of the projection area; If the area of the second image is larger than the area of the first image, determining the outer edge of the difference image as the edge of the projection area; The motor step length corresponding to the second image is recorded.
8. The method according to claim 1, characterized in that The acquiring of the screen area and determining the target projection area according to the screen area includes: Obtaining the curtain area; Based on the projection area and the curtain area, determining whether the curtain area is within the projection area; If the screen area is within the projection area, then the coordinate parameters of the screen area are recorded; Calculating the ratio of the area of the curtain area to the area of the projection area based on the coordinate parameters of the curtain area; Based on the ratio, a target projection area is determined; wherein the target projection area is the projection area when the ratio is the highest.
9. The method according to claim 8, characterized in that The determining, based on the projection area and the curtain area, whether the curtain area is within the projection area comprises: Based on the projection area and the curtain area, determining whether a boundary of the curtain area is a convex quadrilateral and the boundary of the curtain area is within the projection area; If the boundary of the curtain area is a convex quadrilateral and the boundary of the curtain area is within the projection area, then determining that the curtain area is within the projection area; If the boundary of the curtain area is not a convex quadrilateral or the boundary of the curtain area is not within the projection area, it is determined that the curtain area is not within the projection area.
10. A control device for a projection device, characterized in that: include: A corresponding relationship acquisition module is used to acquire a corresponding relationship between the projection area and the motor step length of the zoom motor of the projection device; A projection area determination module is used to obtain a screen area and determine a target projection area according to the screen area; A target step length determination module, configured to determine a target step length of the zoom motor based on the target projection area and the corresponding relationship; A correction parameter determination module, used to determine the picture correction parameters based on the boundary of the screen area and the boundary of the target projection area; A projection picture determination module is used to correct the to-be-projected picture based on the picture correction parameters to obtain a target projection picture; The control module is used to control the projection device to project the target projection picture.
11. A projection device, characterized in that: comprising one or more processors and memory; One or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the method according to any one of claims 1 to 9.
12. A computer-readable storage medium storing a program code executable by a processor, characterized in that: The computer-readable storage medium includes a stored program code, wherein when the program code is executed, the method of any one of claims 1 to 9 is executed.
