Method, device, electronic device, projector and system for correcting a projector picture
Patent Information
- Application Number
- CN202510146223.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-08
- Publication Date
- 2026-08-18
AI Technical Summary
[0004]本申请提供了一种投影仪画面的校正方法、装置、电子设备、投影仪及系统,以解决现有技术中在对投影仪投射的画面进行四角校正时,操作繁琐且耗时,效率低下,影响用户体验的技术问题
[0088] The technical solution provided in this application acquires an image of a preset screen currently projected by a projector, determines the corresponding bounding box of the preset screen based on the image, outputs the bounding box through a visual interface, and receives correction operations for the bounding box. The bounding box is the acquired bounding box corresponding to the preset screen currently projected by the projector. Based on the correction operations, the bounding box is corrected to obtain a target bounding box. The coordinate information of the target bounding box is obtained and sent to the projector, enabling the projector to correct the currently projected preset screen based on the coordinate information. This technical solution acquires an image of a preset screen currently projected by a projector via a mobile terminal, determines the corresponding bounding box, and obtains the user's correction operations for the bounding box through the mobile terminal's visual interface. Then, the coordinate information of the corrected target bounding box is sent to the projector, allowing the projector to synchronously correct the projected preset screen based on the coordinate information. This method of correcting the projected preset screen via a mobile terminal ensures the correction effect while simplifying user operation, improving the efficiency of projector image correction, saving time, and enhancing the user experience.
Smart Images

Figure CN122601831A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of projector technology, and in particular to a method, apparatus, electronic device, projector, and system for correcting projector images. Background Technology
[0002] Currently, when projecting images through a projector, it is generally necessary to calibrate the projected image to ensure it is rectangular and to guarantee a good viewing experience for the user. This calibration typically includes keystone correction and corner correction. Keystone correction is a projector function used to correct trapezoidal images caused by the projector not being perpendicular to the screen. Corner correction is a fine-tuning of keystone correction, involving adjustments to four rectangular coordinate points. Moving each point causes deformation along two adjacent sides of the rectangle.
[0003] In existing technologies, the four-corner calibration of a projector generally requires the user to select a corner of the projected image using the remote control, make fine adjustments using the directional keys, and then select the next point to continue fine-tuning until all four corners are adjusted. This operation is cumbersome, time-consuming, inefficient, and affects the user experience. Summary of the Invention
[0004] This application provides a method, apparatus, electronic device, projector, and system for correcting projector images, in order to solve the technical problems in the prior art where the four-corner correction of the projected image is cumbersome, time-consuming, inefficient, and affects the user experience.
[0005] Firstly, this application provides a method for correcting projector images, applied to a mobile terminal, the method comprising:
[0006] The system acquires the image of the preset screen currently projected by the projector and determines the screen bounding box corresponding to the preset screen based on the image.
[0007] The image boundary box is output through a visual interface, and correction operations for the image boundary box are received.
[0008] According to the correction operation, the image bounding box is corrected to obtain the target bounding box;
[0009] The coordinate information of the target bounding box is obtained and sent to the projector so that the projector can correct the currently projected preset image based on the coordinate information.
[0010] As an optional implementation, determining the frame bounding box corresponding to the preset frame based on the frame image includes:
[0011] Determine the initial outline corresponding to the image;
[0012] Determine the polygon corresponding to the initial contour;
[0013] Extract a preset number and preset orientation of multiple corner points from the vertices of the polygon;
[0014] The bounding box formed by the extracted corner points is determined as the bounding box of the preset image.
[0015] As an optional implementation, determining the initial contour corresponding to the image includes:
[0016] The image is preprocessed to obtain the edge information corresponding to the image.
[0017] Contour detection is performed on the edge information to obtain an initial contour.
[0018] As an optional implementation, the correction operation includes dragging any top corner of the image bounding box;
[0019] The step of correcting the image bounding box according to the correction operation to obtain the target bounding box includes:
[0020] Obtain the angular coordinates corresponding to the end of the drag operation;
[0021] At the start of the drag operation, the top corner of the screen bounding box is dragged to the position corresponding to the corner coordinates to correct the screen bounding box and obtain the target bounding box.
[0022] As an optional implementation, before receiving the correction operation for the image bounding box, the method further includes:
[0023] Obtain the initial coordinate information of each vertex of the bounding box of the image;
[0024] The initial coordinate information of each vertex is sent to the projector, so that after the projector obtains the screen coordinate information of each vertex in the currently projected preset screen within the projector, it determines the correspondence between the initial coordinate information of the vertex in the screen boundary frame and the screen coordinate information within the projector for each vertex in the preset screen, and saves the initial coordinate information of each vertex, the screen coordinate information, and the correspondence between the initial coordinate information and the screen coordinate information corresponding to each vertex.
[0025] As an optional implementation, obtaining the coordinate information of the target bounding box and sending the coordinate information to the projector so that the projector can correct the currently projected preset image according to the coordinate information includes:
[0026] Obtain the target coordinate information of each vertex of the target bounding box;
[0027] The target coordinate information of each vertex is sent to the projector so that the projector can correct the currently projected preset image based on the target coordinate information of each vertex, the initial coordinate information, the image coordinate information, and the correspondence.
[0028] As an optional implementation, the projector corrects the currently projected preset image based on the target coordinate information of each vertex, the initial coordinate information, the image coordinate information, and the correspondence, including:
[0029] The projector corrects the currently projected preset image in the following way:
[0030] For each vertex, determine the bounding box offset between the target coordinate information and the initial coordinate information of that vertex.
[0031] Based on the correspondence and the bounding box offset, determine the image offset corresponding to the top corner;
[0032] Based on the image offset, the image coordinate information is corrected to obtain the target image coordinate information;
[0033] The preset image currently projected is corrected based on the target image coordinate information.
[0034] As an optional implementation, after sending the coordinate information to the projector, the method further includes:
[0035] Upon receiving a prompt from the projector indicating that the calibration range has been exceeded, feedback is provided according to a preset prompting method, which may be one or more of the following: controlling the brightness of the visualization interface to be greater than a preset value, or controlling the vibration of the terminal device.
[0036] Upon receiving the coordinate information, the projector determines whether the position corresponding to the coordinate information exceeds a preset correction range. If the projector determines that the position corresponding to the coordinate information exceeds the correction range, it sends a prompt indicating that the position exceeds the correction range to the mobile terminal.
[0037] Secondly, this application provides a method for correcting a projector image, applied to a projector, the method comprising:
[0038] The system receives coordinate information sent by a mobile terminal; wherein the mobile terminal acquires an image of a preset screen currently projected by the projector, and determines the screen bounding box corresponding to the preset screen based on the image; outputs the screen bounding box through a visual interface, and receives a correction operation for the screen bounding box; corrects the screen bounding box according to the correction operation to obtain a target bounding box; acquires the coordinate information of the target bounding box, and sends the coordinate information to the projector.
[0039] The preset image currently projected is corrected based on the coordinate information.
[0040] As an optional implementation, before receiving the coordinate information sent by the mobile terminal, the following steps are also included:
[0041] Upon receiving a screen projection command from the mobile terminal, a preset screen is projected; wherein, the mobile terminal generates the screen projection command in response to a trigger operation on a preset button, and sends the screen projection command to the projector;
[0042] When the mobile terminal acquires an image of the preset screen currently projected by the projector, it determines the screen bounding box corresponding to the preset screen based on the image; it outputs the screen bounding box through a visual interface, and receives correction operations for the screen bounding box through the visual interface.
[0043] As an optional implementation, before receiving the coordinate information sent by the mobile terminal, the following steps are also included:
[0044] Obtain the screen coordinate information of each vertices in the preset screen within the display chip;
[0045] Upon receiving the initial coordinate information of each corner of the screen bounding box sent by the mobile terminal, for each corner in the preset screen, the initial coordinate information corresponding to the corner in the screen bounding box is determined, and the correspondence between the initial coordinate information of the corner and the screen coordinate information of the projector is determined; wherein, after the mobile terminal acquires the screen bounding box, it obtains the initial coordinate information of each corner in the screen bounding box and sends the initial coordinate information of each corner to the projector;
[0046] The initial coordinate information of each vertex, the screen coordinate information, and the correspondence between the initial coordinate information and the screen coordinate information corresponding to each vertex are saved.
[0047] As an optional implementation, the coordinate information includes the target coordinate information of each vertex of the target bounding box;
[0048] The step of correcting the currently projected preset image based on the coordinate information includes:
[0049] For each vertex, determine the bounding box offset between the target coordinate information and the initial coordinate information of that vertex.
[0050] Based on the correspondence and the bounding box offset, determine the image offset corresponding to the top corner;
[0051] Based on the image offset, the image coordinate information is corrected to obtain the target image coordinate information;
[0052] The preset image currently projected is corrected based on the target image coordinate information.
[0053] As an optional implementation, after receiving the coordinate information sent by the mobile terminal, the method further includes:
[0054] Determine whether the position corresponding to the coordinate information exceeds the preset correction range;
[0055] If the coordinate information is determined to be outside the correction range, an "out of correction range" prompt is sent to the mobile terminal so that the mobile terminal can provide feedback in a preset manner upon receiving the "out of correction range" prompt. The prompt manner may be one or more of the following: controlling the brightness of the visualization interface to be greater than a preset value, or controlling the vibration of the terminal device.
[0056] As an optional implementation, determining whether the position corresponding to the coordinate information exceeds a preset correction range includes:
[0057] Based on the correspondence, the bounding box coordinate correction range corresponding to the preset screen coordinate correction range is determined; wherein, the screen coordinate correction range refers to the range to which the preset screen coordinates belong within the display chip;
[0058] Determine whether the coordinate information exceeds the bounding box coordinate correction range;
[0059] If it is determined that the coordinate information exceeds the bounding box coordinate correction range, then the position corresponding to the coordinate information is determined to be outside the correction range.
[0060] Thirdly, this application provides a method for correcting a projector image, applied to a projector image correction system, wherein the projector image correction system includes a mobile terminal and a projector, and the method includes:
[0061] The mobile terminal acquires the image of the preset screen currently projected by the projector, and determines the screen bounding box corresponding to the preset screen based on the image.
[0062] The mobile terminal outputs the screen bounding box through a visual interface and receives correction operations for the screen bounding box.
[0063] The mobile terminal corrects the image bounding box according to the correction operation to obtain the target bounding box;
[0064] The mobile terminal acquires the coordinate information of the target bounding box and sends the coordinate information to the projector;
[0065] The projector receives coordinate information sent by the mobile terminal;
[0066] The projector corrects the currently projected preset image based on the coordinate information.
[0067] Fourthly, this application provides a projector image correction device for use in a mobile terminal, the device comprising:
[0068] The acquisition module is used to acquire the image of the preset screen currently projected by the projector, and determine the screen bounding box corresponding to the preset screen based on the image.
[0069] The receiving module is used to output the image bounding box through a visual interface and to receive correction operations for the image bounding box.
[0070] The correction module is used to correct the image bounding box according to the correction operation to obtain the target bounding box;
[0071] The sending module is used to acquire the coordinate information of the target bounding box and send the coordinate information to the projector.
[0072] Fifthly, this application provides a projector image correction device, applied to a projector, the device comprising:
[0073] A receiving module is used to receive coordinate information sent by a mobile terminal; wherein the mobile terminal acquires an image of a preset screen currently projected by the projector, and determines the screen bounding box corresponding to the preset screen based on the image; outputs the screen bounding box through a visual interface; receives a correction operation for the screen bounding box through the visual interface; corrects the screen bounding box according to the correction operation to obtain a target bounding box; acquires the coordinate information of the target bounding box, and sends the coordinate information to the projector;
[0074] The correction module is used to correct the currently projected preset image based on the coordinate information.
[0075] Sixthly, this application provides a projector image correction device, applied to a projector image correction system, the projector image correction system including a mobile terminal and a projector, the method including:
[0076] The acquisition module is used by the mobile terminal to acquire the image of the preset screen currently projected by the projector, and to determine the screen bounding box corresponding to the preset screen based on the image.
[0077] The first receiving module is used by the mobile terminal to output the screen boundary box through a visual interface and to receive correction operations for the screen boundary box.
[0078] The first correction module is used by the mobile terminal to correct the image bounding box according to the correction operation to obtain the target bounding box;
[0079] The sending module is used for the mobile terminal to obtain the coordinate information of the target bounding box and send the coordinate information to the projector;
[0080] The second receiving module is used for the projector to receive coordinate information sent by the mobile terminal;
[0081] The second correction module is used by the projector to correct the currently projected preset image based on the coordinate information.
[0082] In a seventh aspect, this application provides an electronic device, including: a processor and a memory, wherein the processor is configured to execute a correction program for a projector image stored in the memory to implement the projector image correction method described in any one of the first aspects.
[0083] Eighthly, this application provides a projector, including a processor and a memory, wherein the processor is configured to execute a projector image correction program stored in the memory to implement the projector image correction method described in any one of the second aspects.
[0084] Ninthly, this application provides a projector image correction system, including: electronic equipment and a projector;
[0085] The electronic device is used to perform the projector image correction method described in any one of the first aspects;
[0086] The projector is used to perform the projector image correction method described in any one of the second aspects;
[0087] The projector image correction system is used to perform the projector image correction method described in the third aspect.
[0088] The technical solution provided in this application acquires an image of a preset screen currently projected by a projector, determines the corresponding bounding box of the preset screen based on the image, outputs the bounding box through a visual interface, and receives correction operations for the bounding box. The bounding box is the acquired bounding box corresponding to the preset screen currently projected by the projector. Based on the correction operations, the bounding box is corrected to obtain a target bounding box. The coordinate information of the target bounding box is obtained and sent to the projector, enabling the projector to correct the currently projected preset screen based on the coordinate information. This technical solution acquires an image of a preset screen currently projected by a projector via a mobile terminal, determines the corresponding bounding box, and obtains the user's correction operations for the bounding box through the mobile terminal's visual interface. Then, the coordinate information of the corrected target bounding box is sent to the projector, allowing the projector to synchronously correct the projected preset screen based on the coordinate information. This method of correcting the projected preset screen via a mobile terminal ensures the correction effect while simplifying user operation, improving the efficiency of projector image correction, saving time, and enhancing the user experience. Attached Figure Description
[0089] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0090] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the embodiments or the prior art will be briefly introduced below. Obviously, those skilled in the art can obtain other drawings based on these drawings without creative effort.
[0091] One or more embodiments are illustrated by way of example with reference numerals in the accompanying drawings. These illustrations do not constitute a limitation on the embodiments. Elements with the same reference numerals in the drawings are denoted as similar elements. Unless otherwise stated, the figures in the drawings are not to be limited by scale.
[0092] Figure 1 A schematic diagram of the structure of a projector image correction system provided in an embodiment of this application;
[0093] Figure 2 A flowchart illustrating an embodiment of a projector image correction method provided in this application;
[0094] Figure 3 A flowchart illustrating an embodiment of another projector image correction method provided in this application;
[0095] Figure 4 A flowchart illustrating an embodiment of another projector image correction method provided in this application;
[0096] Figure 5 A flowchart illustrating an embodiment of another projector image correction method provided in this application;
[0097] Figure 6 A block diagram illustrating an embodiment of a projector image correction device provided in this application;
[0098] Figure 7 A block diagram illustrating another embodiment of a projector image correction device provided in this application;
[0099] Figure 8 A block diagram illustrating another embodiment of a projector image correction device provided in this application;
[0100] Figure 9 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application;
[0101] Figure 10 This is a schematic diagram of the structure of a projector provided in an embodiment of this application. Detailed Implementation
[0102] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the embodiments described below are only some, not all, of the embodiments of this application. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0103] The following disclosure provides numerous different embodiments or examples for implementing various structures of the invention. To simplify the disclosure, specific examples of components and arrangements are described below. These are merely examples and are not intended to limit the scope of the invention. Furthermore, reference numerals and / or letters may be repeated in different examples. Such repetition is for simplification and clarity and does not in itself indicate a relationship between the various embodiments and / or arrangements discussed.
[0104] To address the technical problems of cumbersome, time-consuming, and inefficient four-corner correction of projected images in existing technologies, which negatively impacts user experience, this application provides a method, apparatus, electronic device, projector, and system for projector image correction. This system can acquire the image of the preset image currently projected by the projector via a mobile terminal, determine the corresponding image bounding box, and obtain the user's correction operation on the bounding box through the mobile terminal's visual interface. Then, it sends the coordinate information of the corrected target bounding box to the projector, enabling the projector to synchronously correct the projected preset image based on this coordinate information. This method of correcting the preset image projected by the projector via a mobile terminal ensures the correction effect while simplifying user operation, thereby improving the efficiency of projector image correction, saving time, and enhancing the user experience.
[0105] To facilitate understanding of the projector image correction method provided in this application, the following will first provide an example of the projector image correction system involved in this method.
[0106] See Figure 1 This is a schematic diagram of the structure of a projector image correction system provided in an embodiment of this application. Figure 1 As shown, the projector image correction system 10 may include a mobile terminal 11 and a projector 12.
[0107] The aforementioned mobile terminal 11 can be either hardware or software that supports network connectivity to provide various network services. When the mobile terminal 11 is hardware, it can be any electronic device with a display screen, including but not limited to smartphones, tablets, and laptops. Figure 1 This example uses a smartphone. When the mobile terminal 11 is software, it can be installed on the electronic devices listed above. In this embodiment, the mobile terminal 11 can calibrate the projected image of the projector 12 by installing a corresponding application.
[0108] The projector 12 mentioned above, also known as a projector, is a device that can project images or videos onto a screen. This application embodiment does not limit the type of projector 12.
[0109] In this embodiment, the mobile terminal 11 and the projector 12 can be connected via a network (e.g., wired network connection, Wi-Fi connection, etc.) or via Bluetooth (e.g., BLE (Bluetooth Low Energy)). This embodiment does not limit the connection.
[0110] Based on this, user 13 can control mobile terminal 11 to correct the image 14 projected by projector 12.
[0111] When the projector 12 projects image 14 onto the screen, a trapezoidal image may be produced due to the projector not being perpendicular to the screen. Therefore, to improve the user's viewing experience, trapezoidal correction can be performed on the image 14. After completing the trapezoidal correction, the corrected image 14 needs to be further fine-tuned, which can be done through four-corner correction.
[0112] In existing technologies, the four-corner correction method for projectors generally requires the user to select a corner of the projected image using a remote control, make fine adjustments using the directional keys, and then select the next point to continue fine-tuning until all four corners are adjusted. This operation is cumbersome and time-consuming.
[0113] In response, this application provides a method for correcting the projector image. The mobile terminal 11 can use this method to correct the image 14 projected by the projector 12, thereby improving the correction efficiency of the projector image, saving time, and enhancing the user experience.
[0114] The method for correcting the projector image provided in this application will be further explained below with reference to the accompanying drawings and specific embodiments. These embodiments do not constitute a limitation on the embodiments of this invention.
[0115] For ease of understanding, the projector image calibration method provided in this application will be explained in detail below from the perspectives of mobile terminals, projectors, and the interaction between the two:
[0116] First, the method for correcting the projector image provided in this application will be explained from the perspective of a mobile terminal:
[0117] See Figure 2 This is a flowchart illustrating an embodiment of a projector image correction method provided in this application. As one embodiment, Figure 2 The process shown can be applied to mobile terminals, such as... Figure 1 The mobile terminal 11 shown is an example. Figure 2 As shown, the process may include the following steps:
[0118] Step 201: Acquire the image of the preset screen currently projected by the projector, and determine the screen bounding box corresponding to the preset screen based on the image.
[0119] Step 202: Output the above-mentioned screen boundary box through the visual interface, and receive the correction operation for the above-mentioned screen boundary box.
[0120] Step 203: According to the above correction operation, correct the above image bounding box to obtain the target bounding box.
[0121] The following provides a unified explanation of steps 201 to 203:
[0122] The aforementioned preset screen refers to the screen pre-stored by the projector. In this embodiment, in order to facilitate the correction of the screen projected by the projector, the aforementioned preset screen may be a black background with a green frame, a black background with a white frame, or a white background with a green frame, etc. This embodiment does not limit this.
[0123] The aforementioned image bounding box refers to the wireframe formed by the boundaries of the preset image captured by the mobile terminal when the projector projects the preset image. It can be a rectangle, a trapezoid, or an irregular polygon, such as an irregular quadrilateral.
[0124] The aforementioned correction operation refers to the user's adjustment of the aforementioned screen boundary frame, which may include, but is not limited to, dragging operations or triggering operations at any top corner of the screen boundary frame. This application embodiment does not limit this.
[0125] The aforementioned images refer to the images captured from the preset images projected by the projector.
[0126] In this embodiment, the mobile terminal can capture an image of the preset screen currently projected by the projector and determine the corresponding frame bounding box based on the image. Then, the frame bounding box can be output through a visual interface. Based on this, the user can perform a correction operation on the frame bounding box to correct its border shape to a preset shape. Since the frame bounding box corresponds to the frame bounding box of the preset screen currently projected by the projector, correcting the frame bounding box can achieve correction of the preset screen projected by the projector.
[0127] Based on the user's correction operation for the screen bounding box, the mobile terminal can receive the above-mentioned correction operation for the screen bounding box, and correct the above-mentioned screen bounding box according to the correction operation to obtain the target bounding box.
[0128] As an optional implementation, the above correction operation may include dragging any corner of the screen bounding box. For example, the user clicks any corner of the screen bounding box to drag that corner from its current position to another position.
[0129] Based on this, the mobile terminal can obtain the angular coordinates corresponding to the end of the drag operation, and move the top corner of the screen bounding box at the start of the drag operation to the position corresponding to the aforementioned angular coordinates, thereby correcting the screen bounding box and obtaining the target bounding box. The aforementioned angular coordinates refer to the coordinates of the corresponding point on the mobile terminal's display interface at the end of the drag operation.
[0130] As another optional implementation, the above correction operation may include inputting new coordinates of any vertex in the screen bounding box. For example, the user clicks on the vertex to be corrected in the screen bounding box and inputs the coordinates corresponding to the target position of the vertex to be corrected.
[0131] Based on this, the mobile terminal can obtain the new coordinates corresponding to the input operation and move the vertex corresponding to the input operation to the position corresponding to the new coordinates, so as to correct the bounding box of the screen and obtain the target bounding box.
[0132] As an optional implementation, the mobile terminal may have a preset button for calibrating the projector image. Based on this, the user can click the preset button to begin calibrating the projector image. The aforementioned preset button refers to the button used to indicate the start of projector image calibration; it can be a physical button on the mobile terminal or a virtual button displayed on the screen.
[0133] After detecting a trigger operation on the preset button, the mobile terminal can generate a screen projection command in response to the trigger operation and send the screen projection command to the projector. The aforementioned screen projection command refers to the command used to instruct the projector to project an image.
[0134] Based on this, after receiving the image projection command, the projector can project a preset image onto the projection surface. The projection surface refers to the area used to display the projected image from the projector, which can be a screen or a wall; this embodiment of the application does not impose any limitations on this.
[0135] In addition, the mobile terminal may also have an "End" button indicating the end of projector image calibration. Therefore, if the user wants to end the projector image calibration, they can click this "End" button. After detecting the triggering of this "End" button, the mobile terminal can confirm the exit from calibrating the projected image and simultaneously generate an "End" command, which is then sent to the projector. Upon receiving the "End" command, the projector can cancel the projection of the preset image.
[0136] In one embodiment, once it is determined that the projector has projected a preset image, the mobile terminal can capture the image of the preset image currently projected by the projector.
[0137] As an optional implementation, after the mobile terminal determines to begin correcting the projected image from the projector (e.g., after sending an image projection command to the projector), it can invoke the terminal device's camera function and activate the image capture function (e.g., camera function). At this time, the user can hold the terminal device corresponding to the mobile terminal and take a picture of the preset image projected by the projector to obtain an image of the preset image currently projected by the projector.
[0138] As an example implementation, a user can stand directly in front of the projection surface of the projector and take a picture of the preset image being projected.
[0139] As another exemplary implementation, the user can stand diagonally in front of the projection surface of the projector to take a picture of the preset image being projected.
[0140] As an alternative implementation, after the mobile terminal determines to start correcting the projected image of the projector (e.g., after sending an image projection command to the projector), it can call an image acquisition device (e.g., a camera) pre-installed in front of the projector to capture an image of the preset image currently projected by the projector and obtain that image.
[0141] In this embodiment, after the mobile terminal acquires the image corresponding to the preset image projected by the projector, it can determine the image bounding box corresponding to the preset image based on the image. Then, the image bounding box can be output through a visual interface, and the user's correction operations on the image bounding box can be received through the same interface.
[0142] As an optional implementation, when determining the frame bounding box corresponding to a preset frame based on the image, the mobile terminal can determine the frame bounding box corresponding to the preset frame through the following steps:
[0143] First, the image can be preprocessed to obtain the edge information corresponding to the image.
[0144] As an example implementation, the preprocessing described above may include grayscale conversion, Gaussian blurring, and edge detection. Based on this, the image can first be converted to grayscale to simplify subsequent processing steps. Then, Gaussian blurring can be applied to the grayscale image to obtain a blurred image, reducing noise and details and enhancing the effectiveness of subsequent edge detection. Finally, edge detection processing can be performed on the blurred image to extract edge information. This edge detection processing may include the Canny edge detection algorithm.
[0145] Then, contour detection can be performed on the above edge information to obtain the initial contour.
[0146] As an exemplary implementation, the contour detection described above may include contour extraction and contour filtering. Based on this, the mobile terminal can first extract all contours involved in the edge information from the aforementioned edge information. Then, an initial contour can be filtered from all contours based on features such as the area and shape of each contour. The target contour is then the edge contour of the preset image.
[0147] Then, the polygon corresponding to the initial contour can be determined.
[0148] As an exemplary implementation, a preset polygon approximation algorithm (such as the approxPolyDP function in OpenCV, or the Douglas-Peucker algorithm) can be used to approximate the contour as a polygon.
[0149] Finally, multiple corner points with a preset number and preset orientation can be extracted from the vertices of the above polygon, and the bounding box composed of the extracted corner points can be determined as the bounding box of the preset image.
[0150] As an exemplary implementation, four corner points can be identified from the vertices of the polygon, ensuring that their order is top left, top right, bottom right, and bottom left, and the bounding box formed by these four corner points is determined as the bounding box of the preset screen.
[0151] Step 204: Obtain the coordinate information of the target bounding box and send the coordinate information to the projector so that the projector can correct the currently projected preset image according to the coordinate information.
[0152] The aforementioned coordinate information refers to the coordinate information of the target bounding box in the display interface of the mobile terminal. This coordinate information can be the coordinate information of each vertex of the target bounding box, or it can be the coordinate information of the vertex corresponding to the correction operation (that is, the uncorrected vertex will no longer obtain its corresponding coordinate information). This application embodiment does not limit this.
[0153] In this embodiment of the application, after the mobile terminal determines the target bounding box after the image bounding box has been corrected, it can obtain the coordinate information of the target bounding box and send the coordinate information to the projector so that the projector can correct the currently projected preset image according to the coordinate information.
[0154] As an optional implementation, the mobile terminal can be an electronic device or an application (APP) installed on an electronic device. When the mobile terminal starts running, it can connect to the projector via Wi-Fi or BLE. Based on this, the mobile terminal can interact with the projector through this connection, and therefore, the mobile terminal can send the aforementioned coordinate information to the projector via this connection.
[0155] As for how the projector specifically corrects the preset image being projected, this will be explained below. Figure 3 The process shown will be explained in detail here.
[0156] In one embodiment, the mobile terminal can acquire the coordinate information of the target bounding box in real time and send the coordinate information to the projector.
[0157] In another embodiment, the mobile terminal may periodically (e.g., every 5 seconds) acquire the coordinate information of the target bounding box and send the coordinate information to the projector.
[0158] In one embodiment, after receiving the coordinate information of the target bounding box, the projector can determine whether the position corresponding to the coordinate information exceeds a preset correction range. Then, if it is determined that the position corresponding to the coordinate information exceeds the aforementioned correction range, a prompt indicating that the correction range has been exceeded can be sent to the mobile terminal. The aforementioned correction range refers to the correctable range of the preset image, which can be the total range of the DMD surface in the projector. When the coordinate information exceeds this correction range, the projector cannot correct the preset image.
[0159] Therefore, when the mobile terminal receives a prompt from the projector indicating that the calibration is out of range, it can provide feedback according to a preset prompt method, so that the user can be promptly informed that the current calibration operation has exceeded the calibrable range of the preset image. The aforementioned prompt method may include, but is not limited to, controlling the brightness of the visual interface to exceed a preset value, or controlling the vibration of the terminal device.
[0160] The technical solution provided in this application acquires an image of a preset screen currently projected by a projector, determines the corresponding bounding box of the preset screen based on the image, outputs the bounding box through a visual interface, and receives correction operations for the bounding box. The bounding box is the acquired bounding box corresponding to the preset screen currently projected by the projector. Based on the correction operations, the bounding box is corrected to obtain a target bounding box. The coordinate information of the target bounding box is obtained and sent to the projector, enabling the projector to correct the currently projected preset screen based on the coordinate information. This technical solution acquires an image of a preset screen currently projected by a projector via a mobile terminal, determines the corresponding bounding box, and obtains the user's correction operations for the bounding box through the mobile terminal's visual interface. Then, the coordinate information of the corrected target bounding box is sent to the projector, allowing the projector to synchronously correct the projected preset screen based on the coordinate information. This method of correcting the projected preset screen via a mobile terminal ensures the correction effect while simplifying user operation, improving the efficiency of projector image correction, saving time, and enhancing the user experience.
[0161] See Figure 3 This is a flowchart illustrating an embodiment of another projector image correction method provided in this application. Figure 3 The process shown is in Figure 2 Based on the illustrated process, this section describes how the projector specifically corrects the currently projected preset image based on coordinate information. For example... Figure 3 As shown, the process may include the following steps:
[0162] Step 301: Obtain the initial coordinate information of each corner of the bounding box of the screen.
[0163] Step 302: Send the initial coordinate information of each vertex to the projector, so that after the projector obtains the screen coordinate information of each vertex in the currently projected preset screen, it determines the correspondence between the initial coordinate information of the vertex in the screen bounding box and the screen coordinate information in the projector for each vertex in the preset screen, and saves the initial coordinate information and screen coordinate information of each vertex, as well as the above correspondence between the initial coordinate information and screen coordinate information of each vertex.
[0164] The following provides a unified explanation of steps 301 and 302:
[0165] The aforementioned initial coordinate information refers to the coordinates of each vertex of the frame corresponding to the preset image initially captured by the mobile terminal in the display interface of the mobile terminal. In other words, it refers to the coordinates of each vertex in the current display interface of the mobile terminal before the frame is corrected.
[0166] The aforementioned screen coordinate information refers to the coordinates of each vertex of the preset screen in the display screen of the projector. The aforementioned display screen can be the screen corresponding to the DMD (Digital Micromirror Device) in the projector.
[0167] A DMD chip is a digital micromirror device, a core component of digital light processing (DLP) technology. A DMD chip consists of millions of tiny, flip-out mirrors, each corresponding to a pixel. It controls the flip angle of each mirror via input digital signals, thereby controlling the direction of light reflection and ultimately forming an image.
[0168] In this embodiment, after the mobile terminal acquires the bounding box corresponding to the preset image projected by the projector, it can obtain the initial coordinate information of each corner of the bounding box and send the initial coordinate information of each corner to the projector. Upon receiving the initial coordinate information, the projector can obtain the image coordinate information of each corner of the currently projected preset image within the projector, and for each corner in the preset image, determine the correspondence between the initial coordinate information of that corner within the bounding box and the image coordinate information within the projector, and save the initial coordinate information and image coordinate information of each corner, as well as the correspondence between the initial coordinate information and image coordinate information of each corner.
[0169] Step 303: Receive the correction operation for the image boundary box, wherein the image boundary box is the boundary box corresponding to the preset image currently projected by the projector.
[0170] Step 304: According to the above correction operation, correct the above image bounding box to obtain the target bounding box.
[0171] For a detailed description of steps 303 and 304, please refer to the descriptions in steps 201 and 202, which will not be repeated here.
[0172] Step 305: Obtain the target coordinate information of each vertex in the target bounding box.
[0173] Step 306: Send the target coordinate information of each vertex to the projector so that the projector can correct the currently projected preset image based on the target coordinate information, initial coordinate information, screen coordinate information, and the above correspondence.
[0174] The following provides a unified explanation of steps 305 and 306:
[0175] The aforementioned target coordinate information refers to the coordinates of each vertex of the target bounding box after the correction operation is performed, as currently displayed on the mobile terminal's screen.
[0176] In this embodiment, the target coordinate information of each vertex of the target bounding box can be determined as the coordinate information of the target bounding box. Based on this, the mobile terminal can obtain the target coordinate information of each vertex of the target bounding box and send the target coordinate information to the projector.
[0177] Based on this, after receiving the target coordinate information of each corner of the target bounding box, the projector can correct the currently projected preset image according to the target coordinate information, initial coordinate information, screen coordinate information corresponding to each corner, and the above correspondence.
[0178] As an optional implementation, there is a one-to-one correspondence between each corner of the preset screen and each corner of the target bounding box. That is, the top left corner of the preset screen corresponds to the top left corner of the target bounding box, the top right corner of the preset screen corresponds to the top right corner of the target bounding box, the bottom left corner of the preset screen corresponds to the bottom left corner of the target bounding box, and the bottom right corner of the preset screen corresponds to the bottom right corner of the target bounding box.
[0179] Based on this, each vertex in the target bounding box can correspond to a target coordinate, an initial coordinate, and an image coordinate. Therefore, the projector can correct the currently projected preset image based on the target coordinate, initial coordinate, and image coordinate information corresponding to each vertex, as well as the correspondence between the initial coordinate and image coordinate information.
[0180] As an exemplary implementation, the bounding box offset between the target coordinate information and the initial coordinate information of each vertex can be determined for the target coordinate information. For example, if the initial coordinate information is (1, 1) and the target coordinate information is (2, 2), then the bounding box offset can be (1, 1).
[0181] Then, based on the above correspondence and bounding box offset, the image offset corresponding to the top corner can be determined.
[0182] As an optional implementation, the above correspondence includes a one-to-one correspondence between initial coordinate information and screen coordinate information, as well as a conversion relationship between the two, which can be a conversion ratio. For example, if the initial coordinate information is (1,2), (4,2), (1,4), and (4,4), and the screen coordinate information is (1,2), (7,2), (1,6), and (7,6), then according to the initial coordinate information, the target bounding box is a rectangle with a length of 3 and a height of 2, and the screen coordinate information corresponds to a preset screen rectangle with a length of 6 and a width of 4. Therefore, the one-to-one correspondence between the initial coordinate information and the screen coordinate information can be determined as (1,2) corresponds to (1,2), (4,2) corresponds to (7,2), (1,4) corresponds to (1,6), and (4,4) corresponds to (7,6), with a conversion relationship of 1:2.
[0183] Based on this, after determining the bounding box offset, the image offset can be determined according to the transformation relationship. For example, when the transformation relationship is 1:2, the bounding box offset of a certain corner is (1, 2), then the image offset corresponding to that corner is (2, 4).
[0184] Finally, the image coordinate information can be corrected based on the above image offset to obtain the target image coordinate information, and the currently projected preset image can be corrected based on the above target image coordinate information.
[0185] As an exemplary implementation, after determining the screen offset corresponding to each vertices, the screen coordinate information corresponding to the vertices can be corrected based on the screen offsets to obtain the target screen coordinate information. For example, if the screen coordinate information of the vertices is (1, 2) and the screen offset is (2, 4), then the target screen coordinate information after correcting the screen coordinate information is (3, 6).
[0186] Afterwards, the projector can directly project the preset image corresponding to the above target image coordinate information, thereby correcting the currently projected preset image.
[0187] The technical solution provided in this application embodiment obtains the initial coordinate information of each corner of the screen bounding box and sends the initial coordinate information of each corner to the projector. This allows the projector to obtain the screen coordinate information of each corner in the currently projected preset screen within the projector, determine the correspondence between the initial coordinate information of each corner in the screen bounding box and the screen coordinate information within the projector, and save the initial coordinate information, screen coordinate information, and the aforementioned correspondence between the initial coordinate information and screen coordinate information of each corner. The projector then receives a correction operation for the screen bounding box, where the screen bounding box is the bounding box corresponding to the currently projected preset screen. Based on the correction operation, the screen bounding box is corrected to obtain a target bounding box. The target coordinate information of each corner in the target bounding box is obtained and sent to the projector, allowing the projector to correct the currently projected preset screen based on the target coordinate information, initial coordinate information, screen coordinate information, and the aforementioned correspondence. This technical solution stores the correspondence between the coordinate information of each corner of the image bounding box in the projector and the coordinate information of each corner of the preset image in the projector. When the image bounding box is corrected, the projector can correct the preset image according to the target coordinate information of each corner of the corrected target bounding box, thus realizing the synchronous correction of the preset image currently projected by the projector according to the correction operation of the mobile terminal.
[0188] Secondly, the method for correcting the projector image provided in this application will be explained from the perspective of the projector:
[0189] See Figure 4 This is a flowchart illustrating another embodiment of a projector image correction method provided in this application. As one embodiment, Figure 4 The process shown can be applied to projectors, for example... Figure 1 Projector 12 is shown. (As shown) Figure 4 As shown, the process may include the following steps:
[0190] Step 401: Receive coordinate information sent by the mobile terminal, wherein the mobile terminal acquires the image of the preset screen currently projected by the projector, determines the screen bounding box corresponding to the preset screen based on the image, outputs the screen bounding box through a visual interface, and receives the correction operation for the screen bounding box; corrects the screen bounding box according to the correction operation to obtain the target bounding box; obtains the coordinate information of the target bounding box, and sends the coordinate information to the projector.
[0191] The aforementioned coordinate information refers to the coordinate information of the target bounding box after the screen bounding box has been corrected, which is sent by the mobile terminal. It may include the coordinates of each vertex of the target bounding box, or the coordinates of each vertex of the target bounding box and the coordinates of any point on the border. This application embodiment does not limit this.
[0192] The aforementioned image bounding box refers to the wireframe formed by the boundaries of the preset image captured by the mobile terminal when the projector projects the preset image. It can be a rectangle, a trapezoid, or an irregular polygon, such as an irregular quadrilateral.
[0193] The aforementioned correction operation refers to the user's adjustment of the aforementioned screen boundary frame, which may include, but is not limited to, dragging operations or triggering operations at any top corner of the screen boundary frame. This application embodiment does not limit this.
[0194] The aforementioned preset screen refers to the screen pre-stored by the projector. In this embodiment, in order to facilitate the correction of the screen projected by the projector, the aforementioned preset screen may be a black background with a green frame, a black background with a white frame, or a white background with a green frame, etc. This embodiment does not limit this.
[0195] In this embodiment of the application, the mobile terminal can be accessed via... Figure 2 The process shown corrects the bounding box corresponding to the preset image projected by the projector, obtains the target bounding box, acquires the coordinate information of the target bounding box, and sends the coordinate information to the projector.
[0196] Based on this, the projector can receive coordinate information sent by the mobile terminal. The projector can have a built-in service program that starts automatically upon power-on, used to establish a connection with the mobile terminal and receive the coordinate information sent by it.
[0197] Furthermore, the projector can choose not to project a preset image before receiving coordinate information from the mobile terminal, and will project the preset image upon receiving a projection command from the mobile terminal. Specifically, the mobile terminal can generate a projection command in response to a trigger operation on a preset button and send the command to the projector.
[0198] Based on this, the mobile terminal can capture the image of the preset screen currently projected by the projector, determine the corresponding screen bounding box based on the image, output the screen bounding box through a visual interface, and receive correction operations for the screen bounding box through the visual interface.
[0199] For details on how mobile terminals generate screen projection commands and determine screen bounding boxes based on the screen image, please refer to [link / reference needed]. Figure 2 The process shown is not repeated here.
[0200] Step 402: Correct the currently projected preset image based on the coordinate information mentioned above.
[0201] In this embodiment of the application, after receiving the coordinate information sent by the mobile terminal, the projector can correct the currently projected preset image based on the coordinate information.
[0202] As an optional implementation, after projecting the preset image, and before receiving the coordinate information sent by the mobile terminal, the projector can obtain the image coordinate information of each vertex of the preset image in the display chip. The aforementioned display chip is the projector's DMD chip.
[0203] Subsequently, upon receiving the initial coordinate information of each corner of the screen bounding box sent by the mobile terminal, the system can determine the correspondence between the initial coordinate information of each corner in the preset screen bounding box and its coordinate information on the projector screen. Specifically, after acquiring the screen bounding box, the mobile terminal can obtain the initial coordinate information of each corner within the bounding box and send this information to the projector. The aforementioned correspondence can include a one-to-one correspondence between the initial coordinate information and the screen coordinate information, as well as a conversion relationship. The acquisition of the initial coordinate information can be found in [reference needed]. Figure 3 The process shown is not repeated here.
[0204] Afterwards, the initial coordinate information and screen coordinate information of each vertex can be saved, as well as the correspondence between the initial coordinate information and screen coordinate information of each vertex.
[0205] Therefore, when correcting the currently projected preset image based on coordinate information, the aforementioned coordinate information may include the target coordinate information of each vertex of the target bounding box. This target coordinate information refers to the coordinates of each vertex of the target bounding box on the display interface of the mobile terminal.
[0206] Based on this, after receiving the target coordinate information of each corner of the target bounding box, the projector can correct the currently projected preset image according to the target coordinate information, initial coordinate information, screen coordinate information corresponding to each corner, and the above correspondence.
[0207] As an optional implementation, there is a one-to-one correspondence between each corner of the preset screen and each corner of the target bounding box. That is, the top left corner of the preset screen corresponds to the top left corner of the target bounding box, the top right corner of the preset screen corresponds to the top right corner of the target bounding box, the bottom left corner of the preset screen corresponds to the bottom left corner of the target bounding box, and the bottom right corner of the preset screen corresponds to the bottom right corner of the target bounding box.
[0208] Based on this, each vertex in the target bounding box can correspond to a target coordinate, an initial coordinate, and an image coordinate. Therefore, the projector can correct the currently projected preset image based on the target coordinate, initial coordinate, and image coordinate information corresponding to each vertex, as well as the correspondence between the initial coordinate and image coordinate information.
[0209] As an exemplary implementation, the bounding box offset between the target coordinate information and the initial coordinate information of each vertex can be determined for the target coordinate information. For example, if the initial coordinate information is (1, 1) and the target coordinate information is (2, 2), then the bounding box offset can be (1, 1).
[0210] Then, based on the above correspondence and bounding box offset, the image offset corresponding to the top corner can be determined.
[0211] As an optional implementation, the above correspondence includes a one-to-one correspondence between initial coordinate information and screen coordinate information, as well as a conversion relationship between the two, which can be a conversion ratio. For example, if the initial coordinate information is (1,2), (4,2), (1,4), and (4,4), and the screen coordinate information is (1,2), (7,2), (1,6), and (7,6), then according to the initial coordinate information, the target bounding box is a rectangle with a length of 3 and a height of 2, and the screen coordinate information corresponds to a preset screen rectangle with a length of 6 and a width of 4. Therefore, the one-to-one correspondence between the initial coordinate information and the screen coordinate information can be determined as (1,2) corresponds to (1,2), (4,2) corresponds to (7,2), (1,4) corresponds to (1,6), and (4,4) corresponds to (7,6), with a conversion relationship of 1:2.
[0212] Based on this, after determining the bounding box offset, the image offset can be determined according to the transformation relationship. For example, when the transformation relationship is 1:2, the bounding box offset of a certain corner is (1, 2), then the image offset corresponding to that corner is (2, 4).
[0213] Finally, the image coordinate information can be corrected based on the above image offset to obtain the target image coordinate information, and the currently projected preset image can be corrected based on the above target image coordinate information.
[0214] As an exemplary implementation, after determining the screen offset corresponding to each vertices, the screen coordinate information corresponding to the vertices can be corrected based on the screen offsets to obtain the target screen coordinate information. For example, if the screen coordinate information of the vertices is (1, 2) and the screen offset is (2, 4), then the target screen coordinate information after correcting the screen coordinate information is (3, 6).
[0215] Afterwards, the projector can directly project the preset image corresponding to the above target image coordinate information, thereby correcting the currently projected preset image.
[0216] In one embodiment, after receiving the coordinate information of the target bounding box, the projector can determine whether the position corresponding to the coordinate information exceeds a preset correction range. Then, if it is determined that the position corresponding to the coordinate information exceeds the aforementioned correction range, a prompt indicating that the correction range has been exceeded can be sent to the mobile terminal. The aforementioned correction range refers to the correctable range of the preset image, which can be the total range of the DMD surface in the projector. When the coordinate information exceeds this correction range, the projector may be unable to correct the preset image.
[0217] As an optional implementation, the bounding box coordinate correction range corresponding to the preset screen coordinate correction range can be determined based on the aforementioned correspondence between the initial coordinate information and the target coordinate information. Here, the aforementioned screen coordinate correction range refers to the range of screen coordinates within the display chip that the preset screen belongs to.
[0218] As an exemplary implementation, the above correspondence may include the transformation relationship between initial coordinate information and target coordinate information. Based on this, the bounding box coordinate correction range can be corrected according to the above transformation relationship and the bounding box coordinate correction range corresponding to the screen coordinate correction range.
[0219] For example, assuming the transformation relationship is 1:2 and the screen coordinate correction range is {(0, 0), (110, 110)}, then according to this transformation relationship, the bounding box correction range can be obtained as {(0, 0), (55, 55)}.
[0220] Then, it can be determined whether the coordinate information exceeds the above-mentioned bounding box coordinate correction range.
[0221] Optionally, if it is determined that the above coordinate information exceeds the above boundary coordinate correction range, the corresponding position of the coordinate information is determined to be outside the correction range.
[0222] Therefore, when the mobile terminal receives a prompt from the projector indicating that the calibration is out of range, it can provide feedback according to a preset prompt method, so that the user can be promptly informed that the current calibration operation has exceeded the calibrable range of the preset image. The aforementioned prompt method may include, but is not limited to, controlling the brightness of the visual interface to exceed a preset value, or controlling the vibration of the terminal device.
[0223] The technical solution provided in this application embodiment receives coordinate information sent by a mobile terminal. The mobile terminal acquires an image of the preset screen currently projected by the projector, determines the corresponding bounding box of the preset screen based on the image, outputs the bounding box through a visual interface, and receives correction operations for the bounding box. Based on the correction operations, the bounding box is corrected to obtain a target bounding box. The coordinate information of the target bounding box is obtained and sent to the projector. Based on the coordinate information, the currently projected preset screen is corrected. This technical solution obtains the bounding box corresponding to the preset screen projected by the projector via a mobile terminal, and also obtains the user's correction operations for the bounding box via the mobile terminal. Then, it sends the coordinate information of the corrected target bounding box to the projector, enabling the projector to synchronously correct the projected preset screen based on the coordinate information. This method of correcting the projected preset screen via a mobile terminal ensures the correction effect while simplifying user operation, improving the efficiency of projector screen correction, saving time, and enhancing the user experience.
[0224] Finally, the method for correcting the projector image provided in this application will be explained from the perspective of interaction between the mobile terminal and the projector:
[0225] See Figure 5 This is a flowchart illustrating another embodiment of a projector image correction method provided in this application. Figure 5 As shown, the process may include the following steps:
[0226] Step 501: The mobile terminal acquires the image of the preset screen currently projected by the projector, and determines the screen bounding box corresponding to the preset screen based on the image.
[0227] Step 502: The mobile terminal outputs the screen bounding box through the visual interface and receives the correction operation for the screen bounding box.
[0228] Step 503: The mobile terminal corrects the above-mentioned frame bounding box according to the above correction operation to obtain the target bounding box.
[0229] Step 504: The mobile terminal obtains the coordinate information of the target bounding box and sends the coordinate information to the projector.
[0230] For a detailed description of steps 501 to 604, please refer to the description of steps 204 to 203, which will not be repeated here.
[0231] Step 505: The projector receives the coordinate information sent by the mobile terminal.
[0232] Step 506: The projector corrects the preset image being projected based on the coordinate information mentioned above.
[0233] For a detailed description of steps 505 and 506, please refer to the description of steps 401 and 402, which will not be repeated here.
[0234] The technical solution provided in this application embodiment acquires the image of the preset screen currently projected by the projector through a mobile terminal, determines the corresponding frame bounding box of the preset screen based on the image, outputs the frame bounding box through a visual interface, receives correction operations for the frame bounding box, corrects the frame bounding box according to the correction operations to obtain a target frame bounding box, obtains the coordinate information of the target frame bounding box, and sends the coordinate information to the projector. The projector receives the coordinate information sent by the mobile terminal and corrects the currently projected preset screen according to the coordinate information. This technical solution acquires the frame bounding box corresponding to the preset screen projected by the projector through the mobile terminal, obtains the user's correction operations for the frame bounding box through the mobile terminal, and then sends the coordinate information of the corrected target frame bounding box to the projector. This allows the projector to synchronously correct the projected preset screen according to the coordinate information. Correcting the preset screen projected by the projector through the mobile terminal ensures the correction effect while simplifying user operation, improving the correction efficiency of projector screen correction, saving time, and enhancing the user experience.
[0235] See Figure 6 This is a block diagram illustrating an embodiment of a projector image correction device provided in this application. Figure 6 The device shown can be applied to mobile terminals, such as... Figure 1 The mobile terminal 11 shown is an example. Figure 6 As shown, the device may include:
[0236] The acquisition module 61 is used to acquire the image of the preset screen currently projected by the projector, and determine the screen boundary box corresponding to the preset screen based on the image.
[0237] The receiving module 62 is used to output the image bounding box through a visual interface and receive correction operations for the image bounding box;
[0238] The correction module 63 is used to correct the image bounding box according to the correction operation to obtain the target bounding box;
[0239] The sending module 64 is used to acquire the coordinate information of the target bounding box and send the coordinate information to the projector.
[0240] See Figure 7 This is a block diagram of another embodiment of a projector image correction device provided in this application. Figure 7 The device shown can be applied to projectors, for example... Figure 1 Projector 12 is shown. (As shown) Figure 7 As shown, the device may include:
[0241] The receiving module 71 is used to receive coordinate information sent by the mobile terminal; wherein the mobile terminal acquires an image of a preset screen currently projected by the projector, and determines the screen bounding box corresponding to the preset screen based on the image; outputs the screen bounding box through a visual interface; receives a correction operation for the screen bounding box through the visual interface; corrects the screen bounding box according to the correction operation to obtain a target bounding box; acquires the coordinate information of the target bounding box, and sends the coordinate information to the projector;
[0242] The correction module 72 is used to correct the currently projected preset image based on the coordinate information.
[0243] See Figure 8 This is a block diagram illustrating another embodiment of a projector image correction device provided in this application. Figure 8 The device shown can be applied to a projector image correction system, for example... Figure 1 The projector image correction system 10 is shown. (For example...) Figure 8 As shown, the device may include:
[0244] The acquisition module 81 is used by the mobile terminal to acquire the image of the preset screen currently projected by the projector, and to determine the screen boundary box corresponding to the preset screen based on the image.
[0245] The first receiving module 82 is used by the mobile terminal to output the screen boundary box through a visual interface and to receive correction operations for the screen boundary box.
[0246] The first correction module 83 is used by the mobile terminal to correct the image bounding box according to the correction operation to obtain the target bounding box;
[0247] The sending module 84 is used for the mobile terminal to obtain the coordinate information of the target bounding box and send the coordinate information to the projector;
[0248] The second receiving module 85 is used for the projector to receive coordinate information sent by the mobile terminal;
[0249] The second correction module 86 is used by the projector to correct the currently projected preset image based on the coordinate information.
[0250] like Figure 9 The diagram shown is a structural schematic of an electronic device according to an embodiment of this application, including a processor 91, a communication interface 92, a memory 93, and a communication bus 94. The processor 91, communication interface 92, and memory 93 communicate with each other via the communication bus 94.
[0251] Memory 93 is used to store computer programs;
[0252] In one embodiment of this application, when the processor 91 executes the program stored in the memory 93, it implements the projector image correction method provided in any of the foregoing method embodiments, including:
[0253] The system acquires the image of the preset screen currently projected by the projector and determines the screen bounding box corresponding to the preset screen based on the image.
[0254] The image boundary box is output through a visual interface, and correction operations for the image boundary box are received.
[0255] According to the correction operation, the image bounding box is corrected to obtain the target bounding box;
[0256] The coordinate information of the target bounding box is obtained and sent to the projector so that the projector can correct the currently projected preset image based on the coordinate information.
[0257] like Figure 10 The diagram shown is a schematic representation of a projector according to an embodiment of this application. It includes a processor 1001, a communication interface 1002, a memory 1003, and a communication bus 1004. The processor 1001, communication interface 1002, and memory 1003 communicate with each other via the communication bus 1004.
[0258] Memory 1003 is used to store computer programs;
[0259] In one embodiment of this application, the processor 1001, when executing a program stored in the memory 1003, implements the projector image correction method provided in any of the foregoing method embodiments, including:
[0260] The system receives coordinate information sent by a mobile terminal; wherein the mobile terminal acquires an image of a preset screen currently projected by the projector, and determines the screen bounding box corresponding to the preset screen based on the image; outputs the screen bounding box through a visual interface, and receives a correction operation for the screen bounding box; corrects the screen bounding box according to the correction operation to obtain a target bounding box; acquires the coordinate information of the target bounding box, and sends the coordinate information to the projector.
[0261] The preset image currently projected is corrected based on the coordinate information.
[0262] This application also provides a projector image correction system, which may include a mobile terminal and a projector, for example... Figure 9 The electronic devices shown and Figure 10 The projector shown is a system that can be used to perform the above-mentioned tasks. Figure 5 The projector image correction method provided in the illustrated embodiment includes:
[0263] The mobile terminal acquires the image of the preset screen currently projected by the projector, and determines the screen bounding box corresponding to the preset screen based on the image.
[0264] The mobile terminal outputs the screen bounding box through a visual interface and receives correction operations for the screen bounding box.
[0265] The mobile terminal corrects the image bounding box according to the correction operation to obtain the target bounding box;
[0266] The mobile terminal acquires the coordinate information of the target bounding box and sends the coordinate information to the projector;
[0267] The projector receives coordinate information sent by the mobile terminal;
[0268] The projector corrects the currently projected preset image based on the coordinate information.
[0269] This application embodiment also provides a storage medium storing a computer program thereon, which, when executed by a processor, implements the steps of the projector image correction method provided in any of the foregoing method embodiments.
[0270] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple grid units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.
[0271] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented using software and a general-purpose hardware platform, or of course, using hardware. Based on this understanding, the above technical solutions, in essence or the parts that contribute to the related technology, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or grid device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.
[0272] It should be understood that the terminology used herein is for the purpose of illustrating specific embodiments of the text only and is not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms “a,” “an,” and “described” as used herein may also include the plural forms. The terms “comprising,” “including,” “containing,” and “having” are inclusive and therefore indicate the presence of the stated features, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, elements, components, and / or combinations thereof. The method steps, processes, and operations described herein are not construed as requiring them to be performed in the specific order described or illustrated unless the order is explicitly indicated. It should also be understood that additional or alternative steps may be used.
[0273] The above description is merely a specific embodiment of the present invention, enabling those skilled in the art to understand or implement the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the present invention is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features claimed herein.
Claims
1. A method for calibrating a projector image, characterized in that, Applied to a mobile terminal, the method includes: The system acquires the image of the preset screen currently projected by the projector and determines the screen bounding box corresponding to the preset screen based on the image. The image boundary box is output through a visual interface, and correction operations for the image boundary box are received. According to the correction operation, the image bounding box is corrected to obtain the target bounding box; The coordinate information of the target bounding box is obtained and sent to the projector so that the projector can correct the currently projected preset image based on the coordinate information.
2. The method according to claim 1, characterized in that, Determining the frame bounding box corresponding to the preset frame based on the frame image includes: Determine the initial outline corresponding to the image; Determine the polygon corresponding to the initial contour; Extract a preset number and preset orientation of multiple corner points from the vertices of the polygon; The bounding box formed by the extracted corner points is determined as the bounding box of the preset image.
3. The method according to claim 2, characterized in that, Determining the initial contour corresponding to the image includes: The image is preprocessed to obtain the edge information corresponding to the image. Contour detection is performed on the edge information to obtain an initial contour.
4. The method according to claim 1, characterized in that, The correction operation includes dragging any top corner of the image bounding box; The step of correcting the image bounding box according to the correction operation to obtain the target bounding box includes: Obtain the angular coordinates corresponding to the end of the drag operation; At the start of the drag operation, the top corner of the screen bounding box is dragged to the position corresponding to the corner coordinates to correct the screen bounding box and obtain the target bounding box.
5. The method according to claim 1, characterized in that, Before receiving the correction operation for the image bounding box, the method further includes: Obtain the initial coordinate information of each vertex of the bounding box of the image; The initial coordinate information of each vertex is sent to the projector, so that after the projector obtains the screen coordinate information of each vertex in the currently projected preset screen within the projector, it determines the correspondence between the initial coordinate information of the vertex in the screen boundary frame and the screen coordinate information within the projector for each vertex in the preset screen, and saves the initial coordinate information of each vertex, the screen coordinate information, and the correspondence between the initial coordinate information and the screen coordinate information corresponding to each vertex.
6. The method according to claim 5, characterized in that, The step of obtaining the coordinate information of the target bounding box and sending the coordinate information to the projector so that the projector can correct the currently projected preset image according to the coordinate information includes: Obtain the target coordinate information of each vertex of the target bounding box; The target coordinate information of each vertex is sent to the projector so that the projector can correct the currently projected preset image based on the target coordinate information of each vertex, the initial coordinate information, the image coordinate information, and the correspondence.
7. The method according to claim 6, characterized in that, The projector corrects the currently projected preset image based on the target coordinate information of each vertex, the initial coordinate information, the image coordinate information, and the correspondence, including: The projector corrects the currently projected preset image in the following way: For each vertex, determine the bounding box offset between the target coordinate information and the initial coordinate information of that vertex. Based on the correspondence and the bounding box offset, determine the image offset corresponding to the top corner; Based on the image offset, the image coordinate information is corrected to obtain the target image coordinate information; The preset image currently projected is corrected based on the target image coordinate information.
8. The method according to claim 1, characterized in that, After sending the coordinate information to the projector, the method further includes: Upon receiving a prompt from the projector indicating that the calibration range has been exceeded, feedback is provided according to a preset prompting method, which may be one or more of the following: controlling the brightness of the visualization interface to be greater than a preset value, or controlling the vibration of the terminal device. Upon receiving the coordinate information, the projector determines whether the position corresponding to the coordinate information exceeds a preset correction range. If the projector determines that the position corresponding to the coordinate information exceeds the correction range, it sends a prompt indicating that the position exceeds the correction range to the mobile terminal.
9. A method for calibrating a projector image, characterized in that, Applied to a projector, the method includes: The system receives coordinate information sent by a mobile terminal; wherein the mobile terminal acquires an image of a preset screen currently projected by the projector, and determines the screen bounding box corresponding to the preset screen based on the image; outputs the screen bounding box through a visual interface, and receives a correction operation for the screen bounding box; corrects the screen bounding box according to the correction operation to obtain a target bounding box; acquires the coordinate information of the target bounding box, and sends the coordinate information to the projector. The preset image currently projected is corrected based on the coordinate information.
10. The method according to claim 9, characterized in that, Before receiving the coordinate information sent by the mobile terminal, the method further includes: Upon receiving a screen projection command from the mobile terminal, a preset screen is projected; wherein, the mobile terminal generates the screen projection command in response to a trigger operation on a preset button, and sends the screen projection command to the projector; When the mobile terminal acquires an image of the preset screen currently projected by the projector, it determines the screen bounding box corresponding to the preset screen based on the image; it outputs the screen bounding box through a visual interface, and receives correction operations for the screen bounding box through the visual interface.
11. The method according to claim 9, characterized in that, Before receiving the coordinate information sent by the mobile terminal, the method further includes: Obtain the screen coordinate information of each vertices in the preset screen within the display chip; Upon receiving the initial coordinate information of each corner of the screen bounding box sent by the mobile terminal, for each corner in the preset screen, the initial coordinate information corresponding to the corner in the screen bounding box is determined, and the correspondence between the initial coordinate information of the corner and the screen coordinate information of the projector is determined; wherein, after the mobile terminal acquires the screen bounding box, it obtains the initial coordinate information of each corner in the screen bounding box and sends the initial coordinate information of each corner to the projector; The initial coordinate information of each vertex, the screen coordinate information, and the correspondence between the initial coordinate information and the screen coordinate information corresponding to each vertex are saved.
12. The method according to claim 11, characterized in that, The coordinate information includes the target coordinate information of each vertex corner of the target bounding box; The step of correcting the currently projected preset image based on the coordinate information includes: For each vertex, determine the bounding box offset between the target coordinate information and the initial coordinate information of that vertex. Based on the correspondence and the bounding box offset, determine the image offset corresponding to the top corner; Based on the image offset, the image coordinate information is corrected to obtain the target image coordinate information; The preset image currently projected is corrected based on the target image coordinate information.
13. The method according to claim 11, characterized in that, After receiving the coordinate information sent by the mobile terminal, the method further includes: Determine whether the position corresponding to the coordinate information exceeds the preset correction range; If the coordinate information is determined to be outside the correction range, an "out of correction range" prompt is sent to the mobile terminal so that the mobile terminal can provide feedback in a preset manner upon receiving the "out of correction range" prompt. The prompt manner may be one or more of the following: controlling the brightness of the visualization interface to be greater than a preset value, or controlling the vibration of the terminal device.
14. The method according to claim 13, characterized in that, Determining whether the position corresponding to the coordinate information exceeds a preset correction range includes: Based on the correspondence, the bounding box coordinate correction range corresponding to the preset screen coordinate correction range is determined; wherein, the screen coordinate correction range refers to the range to which the preset screen coordinates belong within the display chip; Determine whether the coordinate information exceeds the bounding box coordinate correction range; If it is determined that the coordinate information exceeds the bounding box coordinate correction range, then the position corresponding to the coordinate information is determined to be outside the correction range.
15. A method for calibrating a projector image, characterized in that, A calibration system for projector images, the projector image calibration system comprising a mobile terminal and a projector, the method comprising: The mobile terminal acquires the image of the preset screen currently projected by the projector, and determines the screen bounding box corresponding to the preset screen based on the image. The mobile terminal outputs the screen bounding box through a visual interface and receives correction operations for the screen bounding box. The mobile terminal corrects the image bounding box according to the correction operation to obtain the target bounding box; The mobile terminal acquires the coordinate information of the target bounding box and sends the coordinate information to the projector; The projector receives coordinate information sent by the mobile terminal; The projector corrects the currently projected preset image based on the coordinate information.
16. A device for correcting projector images, characterized in that, The device, applied to a mobile terminal, includes: The acquisition module is used to acquire the image of the preset screen currently projected by the projector, and determine the screen bounding box corresponding to the preset screen based on the image. The receiving module is used to output the image bounding box through a visual interface and to receive correction operations for the image bounding box. The correction module is used to correct the image bounding box according to the correction operation to obtain the target bounding box; The sending module is used to acquire the coordinate information of the target bounding box and send the coordinate information to the projector.
17. A device for correcting projector images, characterized in that, Applied to a projector, the device includes: A receiving module is used to receive coordinate information sent by a mobile terminal; wherein the mobile terminal acquires an image of a preset screen currently projected by the projector, and determines the screen bounding box corresponding to the preset screen based on the image; outputs the screen bounding box through a visual interface; receives a correction operation for the screen bounding box through the visual interface; corrects the screen bounding box according to the correction operation to obtain a target bounding box; acquires the coordinate information of the target bounding box, and sends the coordinate information to the projector; The correction module is used to correct the currently projected preset image based on the coordinate information.
18. A device for correcting projector images, characterized in that, A calibration system for projector images, the system comprising a mobile terminal and a projector, the device comprising: The acquisition module is used by the mobile terminal to acquire the image of the preset screen currently projected by the projector, and to determine the screen bounding box corresponding to the preset screen based on the image. The first receiving module is used by the mobile terminal to output the screen boundary box through a visual interface and to receive correction operations for the screen boundary box. The first correction module is used by the mobile terminal to correct the image bounding box according to the correction operation to obtain the target bounding box; The sending module is used for the mobile terminal to obtain the coordinate information of the target bounding box and send the coordinate information to the projector; The second receiving module is used for the projector to receive coordinate information sent by the mobile terminal; The second correction module is used by the projector to correct the currently projected preset image based on the coordinate information.
19. An electronic device, characterized in that, include: A processor and a memory, the processor being configured to execute a correction program for a projector image stored in the memory to implement the projector image correction method according to any one of claims 1 to 8.
20. A projector, characterized in that, include: A processor and a memory, the processor being configured to execute a correction program for a projector image stored in the memory to implement the projector image correction method according to any one of claims 9 to 14.
21. A system for correcting projector images, characterized in that, include: Electronic devices and projectors; The electronic device is used to perform the projector image correction method according to any one of claims 1 to 8; The projector is used to perform the projector image correction method according to any one of claims 9 to 14; The projector image correction system is used to perform the projector image correction method according to claim 15.