WO2022179109A1 - Projection correction method and apparatus, storage medium and electronic device - Google Patents

Projection correction method and apparatus, storage medium and electronic device Download PDF

Info

Publication number
WO2022179109A1
WO2022179109A1 PCT/CN2021/122447 CN2021122447W WO2022179109A1 WO 2022179109 A1 WO2022179109 A1 WO 2022179109A1 CN 2021122447 W CN2021122447 W CN 2021122447W WO 2022179109 A1 WO2022179109 A1 WO 2022179109A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
position information
projection
correction
square
Prior art date
Application number
PCT/CN2021/122447
Other languages
French (fr)
Chinese (zh)
Inventor
胡震宇
付啸天
张聪
Original Assignee
深圳市火乐科技发展有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市火乐科技发展有限公司 filed Critical 深圳市火乐科技发展有限公司
Publication of WO2022179109A1 publication Critical patent/WO2022179109A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/12Picture reproducers
    • H04N9/31Projection devices for colour picture display, e.g. using electronic spatial light modulators [ESLM]
    • H04N9/3179Video signal processing therefor
    • H04N9/3185Geometric adjustment, e.g. keystone or convergence

Definitions

  • the present disclosure relates to the field of projection technology, and in particular, to a projection correction method, device, storage medium and electronic device.
  • the projection device may project onto an imaging medium to display a corresponding projected image on the imaging medium, where the imaging medium may be, for example, a projection screen or a wall.
  • the imaging medium may be, for example, a projection screen or a wall.
  • the projected image projected by the projection device on the imaging medium may be distorted. This distortion is random and Unpredictable, this will affect the projection effect of the projection equipment.
  • the present disclosure provides a projection correction method, apparatus, storage medium and electronic device.
  • a projection correction method applied to a projection device comprising:
  • the corrected image includes a plurality of first mark patterns
  • the captured image includes and each a second marking pattern corresponding to the first marking pattern
  • the captured image is determined according to an image obtained by photographing the projection correction image by an image capturing device
  • the second projection area including a third mark pattern corresponding to each of the first mark patterns
  • the second position information determine the third position information of each of the third marking patterns and the offset parameter corresponding to the third marking pattern
  • the offset parameter does not meet the preset condition, according to the first position information and the third position information, determine a target correction matrix corresponding to each of the first marking patterns;
  • the to-be-projected image is corrected according to the target correction matrix, and the corrected to-be-projected image is projected onto the imaging medium.
  • a projection correction apparatus which is applied to a projection device, the apparatus comprising:
  • an acquisition module configured to project a preset corrected image onto an imaging medium to obtain a projected corrected image displayed on the imaging medium, and acquire a captured image;
  • the corrected image includes a plurality of first mark patterns, and the captured image
  • the image includes a second marking pattern corresponding to each of the first marking patterns, and the acquired image is determined according to an image obtained by photographing the projection correction image by an image acquisition device;
  • a processing module configured to determine the first position information of each of the second marking patterns in the captured image
  • the processing module is further configured to determine, according to the first position information of each of the second marking patterns and the second position information of each of the first marking patterns, whether the projection correction image corresponds to the captured image.
  • the processing module is further configured to determine a second projection area corresponding to the first projection area on the imaging medium, where the second projection area includes a third mark pattern corresponding to each of the first mark patterns ;
  • the processing module is further configured to determine, according to the second position information, third position information of each of the third marking patterns and an offset parameter corresponding to the third marking pattern;
  • the processing module is further configured to determine a target corresponding to each of the first marking patterns according to the first position information and the third position information when the offset parameter does not meet a preset condition correction matrix;
  • the correction module is used for correcting the to-be-projected image according to the target correction matrix, and projecting the corrected to-be-projected image onto the imaging medium.
  • a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, implements the steps of the method in any one of the above first aspects.
  • an electronic device comprising:
  • a processor for executing the computer program in the memory to implement the steps of any one of the methods in the first aspect.
  • the present disclosure first obtains the projected corrected image displayed on the imaging medium by projecting the preset corrected image onto the imaging medium, acquires the captured image, and then determines the size of each second mark pattern in the captured image.
  • the first position information, and according to the first position information of each second mark pattern and the second position information of each first mark pattern determine the first projection area corresponding to the projection correction image in the captured image, and then determine the first
  • the projection area corresponds to the second projection area on the imaging medium, and according to the second position information and the second projection area, the third position information of each third mark pattern and the offset parameter corresponding to the third mark pattern are determined, and then
  • the target correction matrix corresponding to each first mark pattern is determined according to the first position information and the third position information, and finally the projected image is corrected according to the target correction matrix, and the The corrected image to be projected is projected onto the imaging medium.
  • the present disclosure corrects the to-be-projected image through the determined target correction matrix corresponding to each first mark pattern, and projects the corrected to-be-projected image onto the imaging medium, so as to ensure that the to-be-projected image is not projected onto the imaging medium when projected onto the imaging medium. Distortion will occur, the efficiency of correcting the projection is high, and the projection effect of the projection device is improved.
  • FIG. 1 is a flowchart of a projection correction method according to an exemplary embodiment
  • FIG. 2 is a schematic diagram of a corrected image according to an exemplary embodiment
  • Fig. 3 is a flow chart of step 101 shown in the embodiment shown in Fig. 1;
  • Fig. 4 is a flow chart of step 103 shown in the embodiment shown in Fig. 1;
  • Fig. 5 is a flow chart of step 104 shown in the embodiment shown in Fig. 1;
  • Fig. 6 is a flow chart of step 105 shown in the embodiment shown in Fig. 1;
  • FIG. 7 is a block diagram of a projection correction apparatus according to an exemplary embodiment
  • Fig. 8 is a block diagram of an electronic device according to an exemplary embodiment.
  • the application scenarios involved in various embodiments of the present disclosure are first introduced, and the application scenarios may include projection devices, image acquisition devices, and imaging media.
  • the projection device can project the image or video played by itself onto the imaging medium to display the corresponding projected image on the imaging medium.
  • the projection device may include, but is not limited to, a projector, a projection television, and the like.
  • the projection device may be a short-throw or ultra-short-throw projector, or a telephoto projector.
  • the image acquisition device is used to capture the projection image displayed on the imaging medium.
  • the image acquisition device can be a camera module (such as a camera, an image sensor, etc.) mounted on the projection device itself, or it can be connected to the projection device through a wired or wireless connection.
  • the separated and movable camera module can also be a terminal with a shooting function (ie, third-party hardware), for example, the terminal can be a smart phone, a tablet computer, a smart watch, a smart bracelet, a PDA (English: Personal Digital Assistant, Chinese: personal digital assistant) and other terminals.
  • the imaging medium may be a projection screen, a wall, a hard screen, or any other device capable of displaying the projection of the projection device, which is not specifically limited in the present disclosure.
  • the projected image can be corrected in the manner shown in the following embodiment:
  • Fig. 1 is a flowchart of a projection correction method according to an exemplary embodiment. As shown in Figure 1, applied to a projection device, the method may include the following steps:
  • Step 101 Project a preset corrected image onto an imaging medium to obtain a projected corrected image displayed on the imaging medium, and acquire a captured image.
  • the corrected image includes a plurality of first marking patterns, the collected image includes a second marking pattern corresponding to each of the first marking patterns, and the collected image is determined according to an image obtained by photographing the projected corrected image by an image collecting device.
  • a projection device projects an image onto an imaging medium
  • the user finds that the projection image corresponding to the image is distorted (for example, distortion, translation, and deformation appear in the projection image)
  • the user can send the message to the projection device.
  • Correction commands to correct the projected image For example, a corresponding correction button may be provided on the projection device, and the user may send a correction instruction to the projection device by pressing the correction button.
  • the projection device can send corresponding prompt information to the user to prompt the user to adjust the position of the image capture device to a suitable position, so that the image capture device can accurately capture the projected image of the projection device on the imaging medium, so as to more accurately capture the image. Correct the projected image.
  • the projection device can first project a prompt image on the imaging medium to prompt the user to move to the designated location Mobile camera module.
  • the camera module can shoot the prompt image, and send the image obtained by shooting the prompt image to the projection device, and the projection device determines whether the image obtained by the camera module shooting the prompt image and the prompt image meet the preset adjustment conditions. If the preset adjustment conditions are met, the projection device may determine that the user has adjusted the camera module to an appropriate position. Otherwise, the projection device may determine that the user has not adjusted the camera module to a proper position, and the projection device needs to project a new prompt image again to prompt the user to continue adjusting the camera module.
  • the preset adjustment condition may be, for example, that the image obtained by the camera module shooting the prompt image includes the prompt image, and the proportion of the prompt image to the image obtained by the camera module shooting the prompt image is greater than or equal to a threshold (eg 50%).
  • a threshold eg 50%
  • the projection device can project the corrected image including a plurality of first marking patterns onto the imaging medium to obtain the projected corrected image displayed on the imaging medium, and then the projected corrected image is displayed by the camera module. Shooting is performed, and the image obtained by shooting the projection-corrected image is sent to the projection device.
  • the image obtained by shooting the projection correction image is preprocessed by the projection device (for example, the preprocessing may be: image format conversion, segmentation processing, and image size conversion, etc.) to obtain the captured image.
  • the captured image includes a second marking pattern corresponding to each first marking pattern.
  • the projection device can first project a prompt image on the imaging medium to prompt the user to use the mobile phone to pair the mobile phone with the projection device. After successful pairing, the projection device can project the corrected image onto the imaging medium to obtain the projected corrected image, and then prompts the user to align the camera interface of the mobile phone with the projected corrected image, and prompts the user to use the mobile phone to shoot the projected corrected image. Afterwards, the projection device may acquire the image obtained by the image acquisition device shooting the projection correction image, and preprocess the image obtained by shooting the projection correction image to obtain the acquisition image. Further, in order to reduce the amount of data that the projection device needs to process, the mobile phone can also preprocess the image obtained by shooting the projection correction image to obtain the captured image, and send the obtained captured image to the projection device.
  • the corrected image may be any image including a plurality of first marking patterns, and the position of each first marking pattern may be used as a reference for correcting the projected image.
  • the first marking pattern can be any square in the checkerboard
  • the projection device projects the corrected image onto the imaging medium, actually projecting the checkerboard onto the imaging medium superior.
  • the image obtained by the image acquisition device shooting the projection-corrected image also includes a checkerboard
  • the captured image obtained by preprocessing the image obtained by shooting the projection-corrected image also includes a checkerboard (that is, the captured image is also a checkerboard image)
  • the second mark pattern can be any square in the checkerboard.
  • Step 102 Determine the first position information of each second mark pattern in the captured image.
  • the projection device may detect each second marker pattern in the captured image, and determine the first position information of each detected second marker pattern.
  • the projection device can detect the checkerboard in the captured image, and determine each square included in the checkerboard in the captured image For example, the coordinates of the four corners of each square can be used as the location information of the square.
  • the projection device may use the position information of each square included in the checkerboard in the captured image as the first position information.
  • Step 103 according to the first position information of each second mark pattern and the second position information of each first mark pattern, determine a first projection area corresponding to the projection correction image in the captured image.
  • prior information of the corrected image may be pre-stored in the projection device, and the prior information may include position information of the boundary of the corrected image and second position information of each first marker pattern in the corrected image.
  • the corrected image is a checkerboard image
  • the coordinates of the four corners of each square (ie, the first marking pattern) included in the checkerboard in the corrected image may be used as the second position information of the square.
  • the projection device may determine the positional relationship between each first marking pattern and the boundary of the corrected image according to the second position information of each first marking pattern. Since the collected image is determined according to the image obtained by shooting the projected corrected image by the image collecting device, and the projected corrected image is obtained by projecting the corrected image.
  • the projection device can determine the boundary formed by the projection correction image in the captured image according to the positional relationship between each first marking pattern and the boundary of the correction image, and use the area enclosed by the boundary as the first projection area.
  • Step 104 Determine a second projection area corresponding to the first projection area on the imaging medium, where the second projection area includes a third mark pattern corresponding to each first mark pattern.
  • the projection apparatus may first calculate a homography matrix between the imaging plane of the image capturing device and the projection plane where the imaging medium is located. For example, when the main optical axis of the projector of the projection device is parallel to the normal vector of the imaging medium, the projection plane and the projection plane of the projector can be regarded as the same plane. Therefore, the homography matrix between the imaging plane and the projection plane can be calculated using the first position information of each second marker pattern and the second position information of each first marker pattern.
  • first position information and the second position information reference may be made to the method described in the related art, and details are not repeated here.
  • the projection device can map the first projection area on the projection plane through the homography matrix to obtain the second projection area.
  • the second projection area includes a third mark pattern corresponding to each of the first mark patterns.
  • the second projection area can be understood as: the area corresponding to the projection correction image simulated by the projection device according to the acquired image on the projection plane
  • the third mark pattern can be understood as: the first mark pattern simulated by the projection device according to the acquired image on the projection plane
  • the corresponding pattern above, that is, the third marking pattern corresponding to each first marking pattern is: when the first marking pattern is projected onto the projection plane, the pattern formed by the first marking pattern on the projection plane.
  • Step 105 Determine the third position information of each third mark pattern and the offset parameter corresponding to the third mark pattern according to the second position information.
  • the second projection area is obtained by mapping the first projection area on the imaging plane on the projection plane, the second projection area Has the same pixel size as the acquired image.
  • the pixel size of the captured image is 2K
  • the pixel size of the second projection area is also 2K.
  • the pixel size of the projected corrected image may be different from that of the second projection area (the projected corrected image has the same pixel size as the corrected image).
  • the pixel size is converted into the same pixel size as the second projection area, and the converted corrected image is compared with the second projection area to determine the third position information of each third mark pattern in the second projection area, and each The offset parameter corresponding to the third mark pattern.
  • the projection device may determine the proportional relationship between the corrected image and the captured image according to the pixel size of the corrected image and the pixel size of the captured image, and according to the proportional relationship, in combination with the second position information of each first marking pattern, determine The ideal position of the third mark pattern corresponding to the first mark pattern in the second projection area when the projected corrected image is not distorted. Then, according to the ideal position of the third marking pattern corresponding to the first marking pattern, the third position information of each third marking pattern and the offset parameter corresponding to each third marking pattern are determined. Wherein, the offset parameter corresponding to each third mark pattern is used to represent the deviation between the third position information of the third mark pattern and the ideal position.
  • Step 106 in the case that the offset parameter does not meet the preset condition, according to the first position information and the third position information, determine a target correction matrix corresponding to each first mark pattern.
  • the projection device may first determine whether the offset parameter satisfies the preset condition.
  • the preset condition may be: the average value of the pixel distances (ie the offset parameter) corresponding to all the third marking patterns is less than the average threshold (the average threshold may be, for example, 3 pixels), and The largest pixel distance among the pixel distances corresponding to all the third marking patterns is smaller than the distance threshold (for example, the distance threshold may be 5 pixels).
  • the projection device may, for each first marking pattern, use the first position information of the first marking pattern and the third marking pattern of the third marking pattern corresponding to the first marking pattern.
  • the position information is used to determine the initial correction matrix corresponding to the first marking pattern.
  • the initial calibration matrix can be a homography matrix, for example, when the first marking pattern and the third marking pattern are any squares included in a checkerboard, the second position information of each first marking pattern is the first marking pattern ( In the case where the coordinates of the four corner points of the third marking pattern (that is, the square), and the third position information of each third marking pattern is the coordinates of the four corners of the third marking pattern (that is, the square), it can be determined according to each The coordinates of the four corners of the first marking pattern and the four corners of the third marking pattern corresponding to the first marking pattern are used to calculate the initial correction matrix of the first marking pattern.
  • the projection device can correct the corrected image according to the initial correction matrix, that is, adjust the first marking pattern according to the initial correction matrix corresponding to each first marking pattern, so as to reduce the amount of noise when the first marking pattern is projected onto the imaging medium. Distortion of the first marking pattern. Then, the projection device may repeatedly perform the steps of projecting the preset corrected image onto the imaging medium according to the corrected corrected image, so as to obtain the projected corrected image displayed on the imaging medium, to the step of correcting the corrected image according to the initial correction matrix, until The offset parameter satisfies the preset condition. Finally, the initial correction matrix is used as the target correction matrix.
  • Step 107 Correct the to-be-projected image according to the target correction matrix, and project the corrected to-be-projected image onto the imaging medium.
  • the projection device may determine the first target area corresponding to each first marker pattern in the corrected image, and use the area in the image to be projected that is the same as the first target area corresponding to the first marker pattern as the The first marking pattern corresponds to the second target area in the to-be-projected image. Then, the projection device can correct the second target area corresponding to the first mark pattern in the to-be-projected image according to the target correction matrix corresponding to each first mark pattern, so as to offset the projection of the second target area corresponding to the first mark pattern to the target area. On the imaging medium, the second target area corresponding to the first marking pattern is distorted, so that when the projection device projects the to-be-projected image on the imaging medium, the projected image corresponding to the to-be-projected image is no longer distorted.
  • FIG. 3 is a flowchart of step 101 shown in the embodiment shown in FIG. 1 .
  • step 101 may include the following steps:
  • Step 1011 Convert the image obtained by the image acquisition device to shoot the projection corrected image into a specified format to obtain a first image.
  • Step 1012 perform segmentation processing on the first image to remove the area of the first image except the projection corrected image to obtain a second image.
  • Step 1013 Convert the second image to a specified image size to obtain a captured image.
  • the projection device after receiving the image obtained by shooting the projection correction image sent by the image acquisition device, the projection device needs to preprocess the image obtained by shooting the projection correction image, so as to obtain a standardized acquisition image, so that the projection image can be subsequently processed.
  • Make corrections Specifically, the image obtained by shooting the projection correction image may be converted into a specified format to obtain the first image, and the specified format may be, for example, a BMP (English: Bitmap, Chinese: Bitmap File) graphic file format.
  • the image obtained by shooting the projection-corrected image may also include other regions than the projection-corrected image. If the first image is directly used to correct the projection image, noise and data volume in subsequent processing will be increased.
  • the projection device may perform segmentation processing on the first image (for example, a coarse-grained segmentation method may be used) to remove the area of the first image except the projection corrected image, and obtain the first image. Second image. Then, the projection device may convert the second image into a specified image size (for example: 720P), and use the converted second image as a captured image. Further, the projection device can also perform histogram equalization processing on the acquired image, and adjust the white balance and exposure time of the acquired image, so as to improve the quality of the acquired image.
  • a specified image size for example: 720P
  • the second image obtained after the first image is segmented may still contain other regions than the projection corrected image. That is to say, preprocessing the image obtained by shooting the projection correction image is actually a coarse-grained processing method, and the acquired captured image does not only contain the projection correction image.
  • FIG. 4 is a flowchart of step 103 shown in the embodiment shown in FIG. 1 . As shown in FIG. 4, step 103 may include the following steps:
  • Step 1031 Determine the positional relationship between each first marking pattern and the first boundary of the corrected image according to each second positional information, where the positional relationship is used to represent the distance between the first marking pattern and the first boundary.
  • Step 1032 according to the positional relationship and each first positional information, determine the first region corresponding to the projection correction image in the captured image.
  • the projection device may calculate the distance between each first marking pattern and the first boundary according to the position information of the first boundary of the corrected image and the second position information of each first marking pattern in the prior information of the corrected image, to obtain the positional relationship between the first marking pattern and the first boundary. Then, according to the positional relationship between each first marking pattern and the first boundary, the projection device can use the proportional relationship between the pixel size of the corrected image and the pixel size of the captured image to determine the second marking pattern corresponding to the first marking pattern and the The positional relationship of the pending boundaries. Afterwards, the projection device can use the positional relationship between each second marking pattern and the pending boundary to determine the pending boundary corresponding to the projection correction image in the captured image.
  • the undetermined boundary is expanded outward by a specified pixel distance (for example: 20 pixels), and the area enclosed by the outwardly expanded undetermined boundary is used as the first area.
  • the undetermined boundary can be understood as the boundary formed by the pre-assumed projection correction image in the acquired image
  • the first area can be understood as the approximate range of the projection correction image in the acquired image.
  • Step 1033 Determine the second area from the first area according to the color feature of the first area.
  • Step 1034 Perform edge recognition on the second area to obtain a second boundary, and use the area enclosed by the second boundary as the first projection area.
  • the projection device can extract the color feature of the first area, and according to the color feature of the first area, in combination with the color feature difference between the first boundary and the surrounding area in the prior information of the corrected image, search for the sum from the first area.
  • the area with the same color feature difference is used as the second area.
  • the projection device may perform edge recognition on the second area to identify the boundary corresponding to the second area, and then use the boundary as the second boundary, and use the area enclosed by the second boundary as the first projection area.
  • edge recognition on the second region to obtain the second boundary by performing edge recognition on the second region, reference may be made to the manner described in the related art, which will not be repeated here. It should be noted that the process of obtaining the first projection area is actually a fine-grained processing manner to further remove other areas in the captured image except the projection corrected image.
  • FIG. 5 is a flowchart of step 104 shown in the embodiment shown in FIG. 1 . As shown in FIG. 5, step 104 may include the following steps:
  • Step 1041 Determine a transformation matrix according to each first position information and each second position information.
  • Step 1042 Determine the second projection area according to the transformation matrix.
  • the projection device may first calculate the transformation between the imaging plane and the projection plane according to the first position information of each second marker pattern and the second position information of each first marker pattern. matrix.
  • the transformation matrix is used to convert the imaging plane into the projection plane, and the transformation matrix may be, for example, a homography matrix.
  • the projection device may map the first projection area on the projection plane according to the transformation matrix to obtain the second projection area.
  • FIG. 6 is a flowchart of step 105 shown in the embodiment shown in FIG. 1 .
  • the first mark pattern is any first square included in the first checkerboard
  • the third mark pattern is any second square included in the second checkerboard
  • the second position information includes the first square The coordinates of each first corner of the grid.
  • Step 105 may include the following steps:
  • Step 1051 Determine the proportional relationship between the corrected image and the collected image according to the pixel size of the corrected image and the pixel size of the collected image.
  • the corrected image is a checkerboard image
  • the captured image and the second projection area obtained by the projection device are actually checkerboard images
  • the checkerboard in the corrected image can be set as the first checkerboard
  • the first mark pattern is any first square included in the first checkerboard
  • the first square includes 4 first corner points
  • the second position information of the first mark pattern may include every first square of the first square.
  • the third mark pattern is any second square included in the second checkerboard
  • the second square includes four second corners.
  • the projection device may determine the proportional relationship between the corrected image and the captured image according to the pixel size of the corrected image and the pixel size of the captured image. For example, when the pixel size of the corrected image is 1080P, and the pixel size of the captured image is 2K, the scale relationship is 2.
  • Step 1052 for each first square, according to the coordinates of each first corner point of the first square and using the proportional relationship, determine that each first corner point of the first square is in the second projection area The coordinates of the ideal corner point of .
  • Step 1053 according to the coordinates of the ideal corner point, determine whether the ideal corner point is the second corner point of the target second square, which is the second square corresponding to the first square in the second projection area.
  • Step 1054 if the ideal corner point is the second corner point of the target second square, use the coordinates of the ideal corner point as the third position information of the target second square.
  • Step 1055 if the ideal corner point is not the second corner point of the target second square, the coordinates of the adjacent corner point closest to the ideal corner point are taken as the third position information of the target second square, and the adjacent corner point is used as the third position information.
  • the pixel distance from the ideal corner as the offset parameter for the second square of the target.
  • the projection device may determine, according to the coordinates of each first corner of the first square, and by using a proportional relationship, that each first corner of the first square is in the second square. Coordinates of ideal corner points in the projected area.
  • the ideal corner point of each first corner point is the coordinate corresponding to the first corner point in the second projection area under ideal conditions (ie, when the projection correction image is not distorted). For example, when the coordinates of the first corner point are (1, 1) and the proportional relationship is 2, the coordinates of the ideal corner point may be (2, 2).
  • the projection device can determine whether the ideal corner point of the first corner point is the second corner point of the target second square according to the coordinates of the ideal corner point of each first corner point of the first square, wherein , the target second square is the second square corresponding to the first square in the second projection area.
  • the projection device may use the coordinates of the ideal corner point of the first corner point as the third position information of the target second square. If the ideal corner point of the first corner point is not the second corner point of the target second square, it means that the first corner point is distorted when projected onto the imaging medium, and the projection device can project the closest corner point to the ideal corner point.
  • the adjacent corner point of is used as the second corner point of the second target square, and the coordinates of the adjacent corner point are used as the third position information of the target second square.
  • the projection device can use the pixel distance between the adjacent corner point and the ideal corner point as the offset parameter of the second square of the target.
  • the third position information of each second square includes the coordinates of the four second corners, and the coordinates of the four second corners may only include the coordinates of the ideal corners (that is, the four second corners). There is no distortion at all points), or it can only include the coordinates of the adjacent corner points (that is, the four second corner points are all distorted), or it can include both the coordinates of the ideal corner point and the coordinates of the adjacent corner points (that is, 4 Some of the second corners may be distorted).
  • the present disclosure first obtains the projected corrected image displayed on the imaging medium by projecting the preset corrected image onto the imaging medium, acquires the captured image, and then determines the size of each second mark pattern in the captured image.
  • the first position information, and according to the first position information of each second mark pattern and the second position information of each first mark pattern determine the first projection area corresponding to the projection correction image in the captured image, and then determine the first
  • the projection area corresponds to the second projection area on the imaging medium, and according to the second position information and the second projection area, the third position information of each third mark pattern and the offset parameter corresponding to the third mark pattern are determined, and then
  • the target correction matrix corresponding to each first mark pattern is determined according to the first position information and the third position information, and finally the projected image is corrected according to the target correction matrix, and the The corrected image to be projected is projected onto the imaging medium.
  • the present disclosure corrects the to-be-projected image through the determined target correction matrix corresponding to each first mark pattern, and projects the corrected to-be-projected image onto the imaging medium, so as to ensure that the to-be-projected image is not projected onto the imaging medium when projected onto the imaging medium. Distortion will occur, the efficiency of correcting the projection is high, and the projection effect of the projection device is improved.
  • Fig. 7 is a block diagram of a projection correction apparatus according to an exemplary embodiment. As shown in FIG. 7, applied to projection equipment, the apparatus 200 includes:
  • the acquiring module 201 is configured to project a preset corrected image onto an imaging medium to obtain a projected corrected image displayed on the imaging medium, and acquire a captured image.
  • the corrected image includes a plurality of first marking patterns
  • the collected image includes a second marking pattern corresponding to each of the first marking patterns
  • the collected image is determined according to an image obtained by photographing the projected corrected image by an image collecting device.
  • the processing module 202 is configured to determine the first position information of each second mark pattern in the captured image.
  • the processing module 202 is further configured to determine, according to the first position information of each second mark pattern and the second position information of each first mark pattern, a first projection area corresponding to the projection correction image in the captured image.
  • the processing module 202 is further configured to determine a second projection area corresponding to the first projection area on the imaging medium, where the second projection area includes a third mark pattern corresponding to each first mark pattern.
  • the processing module 202 is further configured to determine, according to the second position information, third position information of each third mark pattern and an offset parameter corresponding to the third mark pattern.
  • the processing module 202 is further configured to determine a target correction matrix corresponding to each first mark pattern according to the first position information and the third position information when the offset parameter does not meet the preset condition.
  • the correction module 203 is configured to correct the to-be-projected image according to the target correction matrix, and project the corrected to-be-projected image onto the imaging medium.
  • the obtaining module 201 includes:
  • the first conversion sub-module is used to convert the image obtained by the image acquisition device shooting the projection corrected image into a specified format to obtain the first image.
  • the segmentation sub-module is used to perform segmentation processing on the first image, so as to remove the area in the first image except the projection corrected image to obtain the second image.
  • the second conversion submodule is used to convert the second image into a specified image size to obtain the captured image.
  • the processing module 202 includes:
  • the detection submodule is used to detect the checkerboard in the collected image, and determine the position information of each square included in the checkerboard in the collected image.
  • the first determination submodule is used for taking the position information of each square included in the checkerboard in the collected image as the first position information.
  • the processing module 202 includes:
  • the second determination sub-module is configured to determine the positional relationship between each first marking pattern and the first boundary of the corrected image according to each second positional information, where the positional relationship is used to characterize the distance between the first marking pattern and the first boundary .
  • the second determination submodule is configured to determine, according to the positional relationship and each first positional information, the first region corresponding to the projection correction image in the captured image.
  • the second determination submodule is configured to determine the second area from the first area according to the color feature of the first area.
  • the identification sub-module is used for performing edge identification on the second area to obtain the second boundary, and the area enclosed by the second boundary is used as the first projection area.
  • the processing module 202 includes:
  • the calculation submodule is configured to determine the transformation matrix according to each of the first position information and each of the second position information.
  • the third determination sub-module is configured to determine the second projection area according to the transformation matrix.
  • the first mark pattern is any first square included in the first checkerboard
  • the third mark pattern is any second square included in the second checkerboard
  • the second position information includes the first square
  • the proportional relationship between the corrected image and the acquired image is determined.
  • the ideal corner point is the second corner point of the second target square, which is the second square corresponding to the first square in the second projection area.
  • the coordinates of the ideal corner point are used as the third position information of the target second square.
  • the coordinates of the adjacent corner closest to the ideal corner are taken as the third position information of the second grid of the target, and the adjacent corner and the ideal corner are compared with each other.
  • processing module 202 is used to:
  • an initial correction matrix corresponding to the first marking pattern is determined according to the first position information of the first marking pattern and the third position information of the third marking pattern corresponding to the first marking pattern.
  • the corrected image is corrected according to the initial correction matrix, and the preset corrected image is projected onto the imaging medium repeatedly according to the corrected corrected image to obtain the projected corrected image displayed on the imaging medium, until the corrected image is corrected according to the initial correction matrix.
  • the steps of correction are performed until the offset parameters meet the preset conditions.
  • the present disclosure first obtains the projected corrected image displayed on the imaging medium by projecting the preset corrected image onto the imaging medium, acquires the captured image, and then determines the size of each second mark pattern in the captured image.
  • first position information and according to the first position information of each second mark pattern and the second position information of each first mark pattern, determine the first projection area corresponding to the projection correction image in the captured image, and then determine the first
  • the projection area corresponds to the second projection area on the imaging medium, and according to the second position information and the second projection area, the third position information of each third mark pattern and the offset parameter corresponding to the third mark pattern are determined, and then
  • the target correction matrix corresponding to each first mark pattern is determined according to the first position information and the third position information, and finally the projected image is corrected according to the target correction matrix, and the The corrected image to be projected is projected onto the imaging medium.
  • the present disclosure corrects the to-be-projected image through the determined target correction matrix corresponding to each first mark pattern, and projects the corrected to-be-projected image onto the imaging medium, so as to ensure that the to-be-projected image is not projected onto the imaging medium when projected onto the imaging medium. Distortion will occur, the efficiency of correcting the projection is high, and the projection effect of the projection device is improved.
  • FIG. 8 is a block diagram of an electronic device 300 according to an exemplary embodiment.
  • the electronic device 300 may include: a processor 301 and a memory 302 .
  • the electronic device 300 may also include one or more of a multimedia component 303 , an input/output (I/O) interface 304 , and a communication component 305 .
  • I/O input/output
  • the processor 301 is used to control the overall operation of the electronic device 300 to complete all or part of the steps in the above-mentioned projection correction method.
  • the memory 302 is used to store various types of data to support operations on the electronic device 300, such data may include, for example, instructions for any application or method operating on the electronic device 300, and application-related data, Such as contact data, messages sent and received, pictures, audio, video, and so on.
  • the memory 302 can be implemented by any type of volatile or nonvolatile storage device or a combination thereof, such as static random access memory (Static Random Access Memory, SRAM for short), electrically erasable programmable read-only memory ( Electrically Erasable Programmable Read-Only Memory (EEPROM for short), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (Read-Only Memory, ROM for short), magnetic memory, flash memory, magnetic disk or optical disk.
  • Multimedia components 303 may include screen and audio components. Wherein the screen can be, for example, a touch screen, and the audio component is used for outputting and/or inputting audio signals.
  • the audio component may include a microphone for receiving external audio signals.
  • the received audio signal may be further stored in memory 302 or transmitted through communication component 305 .
  • the audio assembly also includes at least one speaker for outputting audio signals.
  • the I/O interface 304 provides an interface between the processor 301 and other interface modules, and the above-mentioned other interface modules can be a keyboard, a mouse, a button, and the like. These buttons can be virtual buttons or physical buttons.
  • the communication component 305 is used for wired or wireless communication between the electronic device 300 and other devices.
  • Wireless communication such as Wi-Fi, Bluetooth, Near Field Communication (NFC), 2G, 3G, 4G, NB-IOT, eMTC, or other 5G, etc., or one or more of them
  • the corresponding communication component 305 may include: Wi-Fi module, Bluetooth module, NFC module and so on.
  • the electronic device 300 may be implemented by one or more application-specific integrated circuits (Application Specific Integrated Circuit, ASIC for short), digital signal processors (Digital Signal Processor, DSP for short), digital signal processing devices (Digital Signal Processing Device (DSPD), Programmable Logic Device (PLD), Field Programmable Gate Array (FPGA), controller, microcontroller, microprocessor or other electronic components Implementation is used to perform the above-mentioned projection correction method.
  • ASIC Application Specific Integrated Circuit
  • DSP Digital Signal Processor
  • DSP Digital Signal Processor
  • DSP Digital Signal Processing Device
  • PLD Programmable Logic Device
  • FPGA Field Programmable Gate Array
  • controller microcontroller, microprocessor or other electronic components Implementation is used to perform the above-mentioned projection correction method.
  • a computer-readable storage medium comprising program instructions, the program instructions implement the steps of the above-mentioned projection correction method when executed by a processor.
  • the computer-readable storage medium can be the above-mentioned memory 302 including program instructions, and the above-mentioned program instructions can be executed by the processor 301 of the electronic device 300 to complete the above-mentioned projection correction method.
  • a computer program product comprising a computer program executable by a programmable apparatus, the computer program having, when executed by the programmable apparatus, for performing the above The code section of the projection correction method.

Abstract

The present disclosure relates to a projection correction method and apparatus, a storage medium and an electronic device. The method comprises: projecting a correction image onto an imaging medium to obtain a projection correction image, and acquiring a collection image; determining first position information of each second mark pattern in the collection image; determining a first projection area corresponding to the projection correction image according to the first position information of each second mark pattern and second position information of each first mark pattern; determining a second projection area corresponding to the first projection area; determining third position information of each third mark pattern and an offset parameter corresponding to the third mark pattern according to the second position information; determining a target correction matrix corresponding to each first mark pattern according to the first position information and the third position information under the condition that the offset parameter does not meet a preset condition; and correcting an image to be projected according to the target correction matrix, and projecting said corrected image onto the imaging medium.

Description

投影校正方法、装置、存储介质和电子设备Projection correction method, device, storage medium and electronic device
相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS
本公开要求在2021年02月24日提交中国专利局、申请号为202110206396.5、名称为“投影校正方法、装置、存储介质和电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本公开中。This disclosure claims the priority of a Chinese patent application with application number 202110206396.5 and entitled "Projection Correction Method, Apparatus, Storage Medium and Electronic Device" filed with the China Patent Office on February 24, 2021, the entire contents of which are incorporated by reference in in this disclosure.
技术领域technical field
本公开涉及投影技术领域,具体地,涉及一种投影校正方法、装置、存储介质和电子设备。The present disclosure relates to the field of projection technology, and in particular, to a projection correction method, device, storage medium and electronic device.
背景技术Background technique
为了满足人们对大尺寸屏幕的观看需求,投影设备被广泛应用于家庭、办公室、学校和娱乐场所中。投影设备可以向成像媒介进行投影,以在成像媒介上显示对应的投影图像,其中,成像媒介例如可以是投影幕布或墙面。然而,当成像媒介的表面不平整时(例如投影幕布产生了弯曲或墙面上存在凹陷凸起),可能会致使投影设备在成像媒介上投影出的投影图像发生畸变,这种畸变是随机且不可预测的,这会影响投影设备的投影效果。In order to meet people's viewing needs for large-size screens, projection equipment is widely used in homes, offices, schools and entertainment venues. The projection device may project onto an imaging medium to display a corresponding projected image on the imaging medium, where the imaging medium may be, for example, a projection screen or a wall. However, when the surface of the imaging medium is not flat (for example, the projection screen is curved or the wall has depressions and protrusions), the projected image projected by the projection device on the imaging medium may be distorted. This distortion is random and Unpredictable, this will affect the projection effect of the projection equipment.
发明内容SUMMARY OF THE INVENTION
为了解决相关技术中存在的问题,本公开提供了一种投影校正方法、装置、存储介质和电子设备。In order to solve the problems existing in the related art, the present disclosure provides a projection correction method, apparatus, storage medium and electronic device.
根据本公开实施例的第一方面,提供一种投影校正方法,应用于投影设备,所述方法包括:According to a first aspect of the embodiments of the present disclosure, there is provided a projection correction method applied to a projection device, the method comprising:
将预设的校正图像投影至成像媒介上,以得到所述成像媒介上展示的投影校正图像,并获取采集图像;所述校正图像包括多个第一标记图案,所述采集图像包括与每个所述第一标记图案对应的第二标记图案,所述采集图像为根据图像采集装置拍摄所述投影校正图像所得到的图像确定的;Projecting a preset correction image onto an imaging medium to obtain a projected correction image displayed on the imaging medium, and acquiring a captured image; the corrected image includes a plurality of first mark patterns, and the captured image includes and each a second marking pattern corresponding to the first marking pattern, and the captured image is determined according to an image obtained by photographing the projection correction image by an image capturing device;
确定所述采集图像中的每个所述第二标记图案的第一位置信息;determining first position information of each of the second marking patterns in the captured image;
根据每个所述第二标记图案的第一位置信息和每个所述第一标记图案的第二位置信息,确定所述投影校正图像在所述采集图像中对应的第一投影区域;determining, according to the first position information of each of the second marking patterns and the second position information of each of the first marking patterns, a first projection area corresponding to the projection correction image in the captured image;
确定所述第一投影区域在所述成像媒介上对应的第二投影区域,所述第二投影区域包括与每个所述第一标记图案对应的第三标记图案;determining a second projection area corresponding to the first projection area on the imaging medium, the second projection area including a third mark pattern corresponding to each of the first mark patterns;
根据所述第二位置信息,确定每个所述第三标记图案的第三位置信息和该第三标记图案对应的偏移参数;According to the second position information, determine the third position information of each of the third marking patterns and the offset parameter corresponding to the third marking pattern;
在所述偏移参数不满足预设条件的情况下,根据所述第一位置信息和所述第三位置信息,确定每个所述第一标记图案对应的目标校正矩阵;In the case that the offset parameter does not meet the preset condition, according to the first position information and the third position information, determine a target correction matrix corresponding to each of the first marking patterns;
根据所述目标校正矩阵对待投影图像进行校正,并将校正后的所述待投影图像投影至所述成像媒介上。The to-be-projected image is corrected according to the target correction matrix, and the corrected to-be-projected image is projected onto the imaging medium.
根据本公开实施例的第二方面,提供一种投影校正装置,应用于投影设备,所述装置包括:According to a second aspect of the embodiments of the present disclosure, there is provided a projection correction apparatus, which is applied to a projection device, the apparatus comprising:
获取模块,用于将预设的校正图像投影至成像媒介上,以得到所述成像媒介上展示的投影校正图像,并获取采集图像;所述校正图像包括多个第一标记图案,所述采集图像包括与每个所述第一标记图案对应的第二标记图案,所述采集图像为根据图像采集装置拍摄所述投影校正图像所得到的图像确定的;an acquisition module, configured to project a preset corrected image onto an imaging medium to obtain a projected corrected image displayed on the imaging medium, and acquire a captured image; the corrected image includes a plurality of first mark patterns, and the captured image The image includes a second marking pattern corresponding to each of the first marking patterns, and the acquired image is determined according to an image obtained by photographing the projection correction image by an image acquisition device;
处理模块,用于确定所述采集图像中的每个所述第二标记图案的第一位置信息;a processing module, configured to determine the first position information of each of the second marking patterns in the captured image;
所述处理模块,还用于根据每个所述第二标记图案的第一位置信息和每个所述第一标记图案的第二位置信息,确定所述投影校正图像在所述采集图像中对应的第一投影区域;The processing module is further configured to determine, according to the first position information of each of the second marking patterns and the second position information of each of the first marking patterns, whether the projection correction image corresponds to the captured image. The first projection area of ;
所述处理模块,还用于确定所述第一投影区域在所述成像媒介上对应的第二投影区域,所述第二投影区域包括与每个所述第一标记图案对应的第三标记图案;The processing module is further configured to determine a second projection area corresponding to the first projection area on the imaging medium, where the second projection area includes a third mark pattern corresponding to each of the first mark patterns ;
所述处理模块,还用于根据所述第二位置信息,确定每个所述第三标记图案的第三位置信息和该第三标记图案对应的偏移参数;The processing module is further configured to determine, according to the second position information, third position information of each of the third marking patterns and an offset parameter corresponding to the third marking pattern;
所述处理模块,还用于在所述偏移参数不满足预设条件的情况下,根据所述第一位置信息和所述第三位置信息,确定每个所述第一标记图案对应的目标校正矩阵;The processing module is further configured to determine a target corresponding to each of the first marking patterns according to the first position information and the third position information when the offset parameter does not meet a preset condition correction matrix;
校正模块,用于根据所述目标校正矩阵对待投影图像进行校正,并将校正后的所述待投影图像投影至所述成像媒介上。The correction module is used for correcting the to-be-projected image according to the target correction matrix, and projecting the corrected to-be-projected image onto the imaging medium.
根据本公开实施例的第三方面,提供一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现以上第一方面中任一项所述方法的步骤。According to a third aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, implements the steps of the method in any one of the above first aspects.
根据本公开实施例的第四方面,提供一种电子设备,包括:According to a fourth aspect of the embodiments of the present disclosure, there is provided an electronic device, comprising:
存储器,其上存储有计算机程序;a memory on which a computer program is stored;
处理器,用于执行所述存储器中的所述计算机程序,以实现第一方面中任一项所述方法的步骤。A processor for executing the computer program in the memory to implement the steps of any one of the methods in the first aspect.
通过上述技术方案,本公开首先通过将预设的校正图像投影至成像媒介上,以得到成像媒介上展示的投影校正图像,并获取采集图像,再确定采集图像中的每个第二标记图案的第一位置信息,并根据每个第二标记图案的第一位置信息和每个第一标记图案的第二位置信息,确定投影校正图像在采集 图像中对应的第一投影区域,之后确定第一投影区域在成像媒介上对应的第二投影区域,并根据第二位置信息和第二投影区域,确定每个第三标记图案的第三位置信息和该第三标记图案对应的偏移参数,然后在偏移参数不满足预设条件的情况下,根据第一位置信息和第三位置信息,确定每个第一标记图案对应的目标校正矩阵,最后根据目标校正矩阵对待投影图像进行校正,并将校正后的待投影图像投影至成像媒介上。本公开通过确定的每个第一标记图案对应的目标校正矩阵,对待投影图像进行校正,并将校正后的待投影图像投影至成像媒介上,可以确保将待投影图像投影至成像媒介上时不会发生畸变,对投影进行校正的效率高,提高了投影设备的投影效果。Through the above technical solutions, the present disclosure first obtains the projected corrected image displayed on the imaging medium by projecting the preset corrected image onto the imaging medium, acquires the captured image, and then determines the size of each second mark pattern in the captured image. the first position information, and according to the first position information of each second mark pattern and the second position information of each first mark pattern, determine the first projection area corresponding to the projection correction image in the captured image, and then determine the first The projection area corresponds to the second projection area on the imaging medium, and according to the second position information and the second projection area, the third position information of each third mark pattern and the offset parameter corresponding to the third mark pattern are determined, and then In the case that the offset parameter does not meet the preset condition, the target correction matrix corresponding to each first mark pattern is determined according to the first position information and the third position information, and finally the projected image is corrected according to the target correction matrix, and the The corrected image to be projected is projected onto the imaging medium. The present disclosure corrects the to-be-projected image through the determined target correction matrix corresponding to each first mark pattern, and projects the corrected to-be-projected image onto the imaging medium, so as to ensure that the to-be-projected image is not projected onto the imaging medium when projected onto the imaging medium. Distortion will occur, the efficiency of correcting the projection is high, and the projection effect of the projection device is improved.
本公开的其他特征和优点将在随后的具体实施方式部分予以详细说明。Other features and advantages of the present disclosure will be described in detail in the detailed description that follows.
附图说明Description of drawings
附图是用来提供对本公开的进一步理解,并且构成说明书的一部分,与下面的具体实施方式一起用于解释本公开,但并不构成对本公开的限制。在附图中:The accompanying drawings are used to provide a further understanding of the present disclosure, and constitute a part of the specification, and together with the following detailed description, are used to explain the present disclosure, but not to limit the present disclosure. In the attached image:
图1是根据一示例性实施例示出的一种投影校正方法的流程图;1 is a flowchart of a projection correction method according to an exemplary embodiment;
图2是根据一示例性实施例示出的一种校正图像的示意图;FIG. 2 is a schematic diagram of a corrected image according to an exemplary embodiment;
图3是图1所示实施例示出的一种步骤101的流程图;Fig. 3 is a flow chart of step 101 shown in the embodiment shown in Fig. 1;
图4是图1所示实施例示出的一种步骤103的流程图;Fig. 4 is a flow chart of step 103 shown in the embodiment shown in Fig. 1;
图5是图1所示实施例示出的一种步骤104的流程图;Fig. 5 is a flow chart of step 104 shown in the embodiment shown in Fig. 1;
图6是图1所示实施例示出的一种步骤105的流程图;Fig. 6 is a flow chart of step 105 shown in the embodiment shown in Fig. 1;
图7是根据一示例性实施例示出的一种投影校正装置的框图;7 is a block diagram of a projection correction apparatus according to an exemplary embodiment;
图8是根据一示例性实施例示出的一种电子设备的框图。Fig. 8 is a block diagram of an electronic device according to an exemplary embodiment.
具体实施方式Detailed ways
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. Where the following description refers to the drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the illustrative examples below are not intended to represent all implementations consistent with this disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as recited in the appended claims.
在介绍本公开提供的投影校正方法、装置、存储介质和电子设备之前,首先对本公开各个实施例所涉及应用场景进行介绍,该应用场景可以包括投影设备、图像采集装置和成像媒介。投影设备可以将自身播放的图像或视频投影至成像媒介上,以在成像媒介上显示对应的投影图像。其中,投影设备可以包括但不限于投影仪、投影电视等,例如,投影设备可以是短焦或超短焦的投影仪,也可以是长焦投影仪。图像采集装置用于拍摄在成像媒介上显示的投影图像,图像采集装置可以是投影设备自身搭载的摄像头模块(例如:摄像头、图像传感器等),也可以是通过有线连接或无线连接与投影设备相 分离的、可移动的摄像头模块,还可以是具备拍摄功能的终端(即第三方硬件),该终端例如可以是智能手机、平板电脑、智能手表、智能手环、PDA(英文:Personal Digital Assistant,中文:个人数字助理)等终端。成像媒介可以是投影幕布、墙面、硬屏以及其他任意能够显示投影设备的投影的器件,本公开对此不作具体限定。Before introducing the projection correction method, device, storage medium, and electronic device provided by the present disclosure, the application scenarios involved in various embodiments of the present disclosure are first introduced, and the application scenarios may include projection devices, image acquisition devices, and imaging media. The projection device can project the image or video played by itself onto the imaging medium to display the corresponding projected image on the imaging medium. The projection device may include, but is not limited to, a projector, a projection television, and the like. For example, the projection device may be a short-throw or ultra-short-throw projector, or a telephoto projector. The image acquisition device is used to capture the projection image displayed on the imaging medium. The image acquisition device can be a camera module (such as a camera, an image sensor, etc.) mounted on the projection device itself, or it can be connected to the projection device through a wired or wireless connection. The separated and movable camera module can also be a terminal with a shooting function (ie, third-party hardware), for example, the terminal can be a smart phone, a tablet computer, a smart watch, a smart bracelet, a PDA (English: Personal Digital Assistant, Chinese: personal digital assistant) and other terminals. The imaging medium may be a projection screen, a wall, a hard screen, or any other device capable of displaying the projection of the projection device, which is not specifically limited in the present disclosure.
在一种场景中,当由于成像媒介的表面不平整,导致投影设备在成像媒介上投影出的投影图像的内部发生畸变时,可以采用以下实施例所示的方式对投影图像进行校正:In a scenario, when the interior of the projected image projected by the projection device on the imaging medium is distorted due to the uneven surface of the imaging medium, the projected image can be corrected in the manner shown in the following embodiment:
图1是根据一示例性实施例示出的一种投影校正方法的流程图。如图1所示,应用于投影设备,该方法可以包括以下步骤:Fig. 1 is a flowchart of a projection correction method according to an exemplary embodiment. As shown in Figure 1, applied to a projection device, the method may include the following steps:
步骤101,将预设的校正图像投影至成像媒介上,以得到成像媒介上展示的投影校正图像,并获取采集图像。Step 101: Project a preset corrected image onto an imaging medium to obtain a projected corrected image displayed on the imaging medium, and acquire a captured image.
其中,校正图像包括多个第一标记图案,采集图像包括与每个第一标记图案对应的第二标记图案,采集图像为根据图像采集装置拍摄投影校正图像所得到的图像确定的。The corrected image includes a plurality of first marking patterns, the collected image includes a second marking pattern corresponding to each of the first marking patterns, and the collected image is determined according to an image obtained by photographing the projected corrected image by an image collecting device.
示例地,在投影设备将某一图像投影至成像媒介上时,若用户发现该图像对应的投影图像发生了畸变(例如:投影图像内部出现了扭曲、平移和变形等),可以向投影设备发送校正指令,以对投影图像进行校正。例如,可以在投影设备上设置有相应的校正按钮,用户可以通过按下该校正按钮来向投影设备发送校正指令。之后投影设备可以向用户发送相应的提示信息,来提示用户将图像采集装置的位置调整到合适的位置,以使图像采集装置可以准确地拍摄投影设备在成像媒介上的投影图像,从而更准确地对投影图像进行校正。For example, when a projection device projects an image onto an imaging medium, if the user finds that the projection image corresponding to the image is distorted (for example, distortion, translation, and deformation appear in the projection image), the user can send the message to the projection device. Correction commands to correct the projected image. For example, a corresponding correction button may be provided on the projection device, and the user may send a correction instruction to the projection device by pressing the correction button. Afterwards, the projection device can send corresponding prompt information to the user to prompt the user to adjust the position of the image capture device to a suitable position, so that the image capture device can accurately capture the projected image of the projection device on the imaging medium, so as to more accurately capture the image. Correct the projected image.
具体的,当图像采集装置为与投影设备相分离的、可移动的摄像头模块时,投影设备在接收到校正指令后,可以先在成像媒介上投影出一张提示图像,以提示用户向指定位置移动摄像头模块。例如,摄像头模块可以对提示图像进行拍摄,并将拍摄提示图像所得到的图像发送至投影设备,由投影设备判断摄像头模块拍摄提示图像所得到的图像和提示图像是否满足预设调整条件。若满足预设调整条件,投影设备可以确定用户已经将摄像头模块调整到了合适的位置。否则,投影设备可以确定用户未将摄像头模块调整到合适的位置,投影设备需要再次投影出一张新的提示图像,以提示用户继续调整摄像头模块。其中,预设调整条件例如可以是摄像头模块拍摄提示图像所得到的图像包含提示图像,且提示图像占摄像头模块拍摄提示图像所得到的图像的比例大于或等于阈值(例如:50%)。在将摄像头模块调整到了合适的位置后,投影设备可以将包括多个第一标记图案的校正图像投影至成像媒介上,以得到成像媒介上展示的投影校正图像,再通过摄像头模块对投影校正图像进行拍摄,并将拍摄投影校正图像所得到的图像发送至投影设备。由 投影设备对拍摄投影校正图像所得到的图像进行预处理(预处理例如可以是:图像格式转换、分割处理和图像尺寸转换等),来得到采集图像。其中,采集图像包括与每个第一标记图案对应的第二标记图案。Specifically, when the image acquisition device is a movable camera module separated from the projection device, after receiving the correction instruction, the projection device can first project a prompt image on the imaging medium to prompt the user to move to the designated location Mobile camera module. For example, the camera module can shoot the prompt image, and send the image obtained by shooting the prompt image to the projection device, and the projection device determines whether the image obtained by the camera module shooting the prompt image and the prompt image meet the preset adjustment conditions. If the preset adjustment conditions are met, the projection device may determine that the user has adjusted the camera module to an appropriate position. Otherwise, the projection device may determine that the user has not adjusted the camera module to a proper position, and the projection device needs to project a new prompt image again to prompt the user to continue adjusting the camera module. The preset adjustment condition may be, for example, that the image obtained by the camera module shooting the prompt image includes the prompt image, and the proportion of the prompt image to the image obtained by the camera module shooting the prompt image is greater than or equal to a threshold (eg 50%). After the camera module is adjusted to an appropriate position, the projection device can project the corrected image including a plurality of first marking patterns onto the imaging medium to obtain the projected corrected image displayed on the imaging medium, and then the projected corrected image is displayed by the camera module. Shooting is performed, and the image obtained by shooting the projection-corrected image is sent to the projection device. The image obtained by shooting the projection correction image is preprocessed by the projection device (for example, the preprocessing may be: image format conversion, segmentation processing, and image size conversion, etc.) to obtain the captured image. Wherein, the captured image includes a second marking pattern corresponding to each first marking pattern.
当图像采集装置为具备拍摄功能的手机时,投影设备在接收到校正指令后,可以先在成像媒介上投影出一张提示图像,以提示用户使用手机,来将手机与投影设备配对。在配对成功后,投影设备可以将校正图像投影至成像媒介上,以得到投影校正图像,再提示用户将手机的拍照界面与投影校正图像对齐,并提示用户使用手机拍摄投影校正图像。之后投影设备可以获取图像采集装置拍摄投影校正图像所得到的图像,并对拍摄投影校正图像所得到的图像进行预处理,以得到采集图像。进一步的,为了降低投影设备所需处理的数据量,还可以由手机来对拍摄投影校正图像所得到的图像进行预处理,以得到采集图像,并将得到的采集图像发送给投影设备。When the image acquisition device is a mobile phone with a shooting function, after receiving the correction instruction, the projection device can first project a prompt image on the imaging medium to prompt the user to use the mobile phone to pair the mobile phone with the projection device. After successful pairing, the projection device can project the corrected image onto the imaging medium to obtain the projected corrected image, and then prompts the user to align the camera interface of the mobile phone with the projected corrected image, and prompts the user to use the mobile phone to shoot the projected corrected image. Afterwards, the projection device may acquire the image obtained by the image acquisition device shooting the projection correction image, and preprocess the image obtained by shooting the projection correction image to obtain the acquisition image. Further, in order to reduce the amount of data that the projection device needs to process, the mobile phone can also preprocess the image obtained by shooting the projection correction image to obtain the captured image, and send the obtained captured image to the projection device.
其中,校正图像可以是任一种包括多个第一标记图案的图像,每个第一标记图案的位置可以作为对投影图像进行校正的基准。如图2所示,当校正图像为棋盘格图像时,第一标记图案可以为棋盘格中的任一方格,投影设备将校正图像投影至成像媒介上,实际上是将棋盘格投影至成像媒介上。此时图像采集装置拍摄投影校正图像所得到的图像也包括棋盘格,那么对拍摄投影校正图像所得到的图像进行预处理后得到的采集图像同样包括棋盘格(即采集图像也为棋盘格图像),则第二标记图案可以为棋盘格中的任一方格。The corrected image may be any image including a plurality of first marking patterns, and the position of each first marking pattern may be used as a reference for correcting the projected image. As shown in FIG. 2 , when the corrected image is a checkerboard image, the first marking pattern can be any square in the checkerboard, and the projection device projects the corrected image onto the imaging medium, actually projecting the checkerboard onto the imaging medium superior. At this time, the image obtained by the image acquisition device shooting the projection-corrected image also includes a checkerboard, then the captured image obtained by preprocessing the image obtained by shooting the projection-corrected image also includes a checkerboard (that is, the captured image is also a checkerboard image) , the second mark pattern can be any square in the checkerboard.
步骤102,确定采集图像中的每个第二标记图案的第一位置信息。Step 102: Determine the first position information of each second mark pattern in the captured image.
在本步骤中,投影设备可以对采集图像中的每个第二标记图案进行检测,并确定检测出的每个第二标记图案的第一位置信息。以校正图像为棋盘格图像,第一标记图案为棋盘格中的任一方格为例,投影设备可以对采集图像中的棋盘格进行检测,并确定采集图像中的棋盘格包括的每个方格的位置信息,例如,可以将每个方格的四个角点的坐标作为该方格的位置信息。之后投影设备可以将采集图像中的棋盘格包括的每个方格的位置信息,作为第一位置信息。In this step, the projection device may detect each second marker pattern in the captured image, and determine the first position information of each detected second marker pattern. Taking the corrected image as a checkerboard image and the first marking pattern as any square in the checkerboard as an example, the projection device can detect the checkerboard in the captured image, and determine each square included in the checkerboard in the captured image For example, the coordinates of the four corners of each square can be used as the location information of the square. Afterwards, the projection device may use the position information of each square included in the checkerboard in the captured image as the first position information.
步骤103,根据每个第二标记图案的第一位置信息和每个第一标记图案的第二位置信息,确定投影校正图像在采集图像中对应的第一投影区域。 Step 103 , according to the first position information of each second mark pattern and the second position information of each first mark pattern, determine a first projection area corresponding to the projection correction image in the captured image.
举例来说,投影设备中可以预先存储有校正图像的先验信息,该先验信息可以包括校正图像的边界的位置信息和校正图像中每个第一标记图案的第二位置信息。例如,当校正图像为棋盘格图像时,可以将校正图像中的棋盘格包括的每个方格(即第一标记图案)的四个角点的坐标作为该方格的第二位置信息。之后投影设备可以根据每个第一标记图案的第二位置信息,确定每个第一标记图案与校正图像的边界的位置关系。由于采集图像为根据图像采集装置拍摄投影校正图像所得到的图像确定的,而投影校正图像又是由校正图像投影得到的。因此,每个第二标记图案与投影校正图像在采集图像 中形成的边界的位置关系,和每个第一标记图案与校正图像的边界的位置关系相同。那么投影设备可以根据每个第一标记图案与校正图像的边界的位置关系,确定投影校正图像在采集图像中形成的边界,并将该边界围成的区域作为第一投影区域。For example, prior information of the corrected image may be pre-stored in the projection device, and the prior information may include position information of the boundary of the corrected image and second position information of each first marker pattern in the corrected image. For example, when the corrected image is a checkerboard image, the coordinates of the four corners of each square (ie, the first marking pattern) included in the checkerboard in the corrected image may be used as the second position information of the square. Then, the projection device may determine the positional relationship between each first marking pattern and the boundary of the corrected image according to the second position information of each first marking pattern. Since the collected image is determined according to the image obtained by shooting the projected corrected image by the image collecting device, and the projected corrected image is obtained by projecting the corrected image. Therefore, the positional relationship between each second marker pattern and the boundary formed by the projected corrected image in the captured image is the same as the positional relationship between each first marker pattern and the boundary of the corrected image. Then, the projection device can determine the boundary formed by the projection correction image in the captured image according to the positional relationship between each first marking pattern and the boundary of the correction image, and use the area enclosed by the boundary as the first projection area.
步骤104,确定第一投影区域在成像媒介上对应的第二投影区域,第二投影区域包括与每个第一标记图案对应的第三标记图案。Step 104: Determine a second projection area corresponding to the first projection area on the imaging medium, where the second projection area includes a third mark pattern corresponding to each first mark pattern.
举例来说,投影设备在确定第一投影区域后,首先可以计算图像采集装置的成像平面与成像媒介所处的投影平面之间的单应性矩阵。例如,当投影设备的投影光机的主光轴与成像媒介的法向量相平行时,可以将投影平面与投影光机的投射平面当做同一个平面。因此,可以利用每个第二标记图案的第一位置信息和每个第一标记图案的第二位置信息,来计算成像平面与投影平面之间的单应性矩阵。其中,通过第一位置信息和第二位置信息计算成像平面与投影平面之间的单应性矩阵可以参考相关技术中描述的方式,此处不再赘述。之后投影设备可以通过该单应性矩阵,将第一投影区域映射在投影平面上,以得到第二投影区域。其中,第二投影区域包括与每个第一标记图案对应的第三标记图案。第二投影区域可以理解为:投影设备根据采集图像模拟出的投影校正图像在投影平面上对应的区域,第三标记图案可以理解为:投影设备根据采集图像模拟出的第一标记图案在投影平面上对应的图案,即每个第一标记图案对应的第三标记图案为:将该第一标记图案投影至投影平面上时,该第一标记图案在投影平面上所形成的图案。For example, after determining the first projection area, the projection apparatus may first calculate a homography matrix between the imaging plane of the image capturing device and the projection plane where the imaging medium is located. For example, when the main optical axis of the projector of the projection device is parallel to the normal vector of the imaging medium, the projection plane and the projection plane of the projector can be regarded as the same plane. Therefore, the homography matrix between the imaging plane and the projection plane can be calculated using the first position information of each second marker pattern and the second position information of each first marker pattern. Wherein, for calculating the homography matrix between the imaging plane and the projection plane by using the first position information and the second position information, reference may be made to the method described in the related art, and details are not repeated here. Then, the projection device can map the first projection area on the projection plane through the homography matrix to obtain the second projection area. Wherein, the second projection area includes a third mark pattern corresponding to each of the first mark patterns. The second projection area can be understood as: the area corresponding to the projection correction image simulated by the projection device according to the acquired image on the projection plane, and the third mark pattern can be understood as: the first mark pattern simulated by the projection device according to the acquired image on the projection plane The corresponding pattern above, that is, the third marking pattern corresponding to each first marking pattern is: when the first marking pattern is projected onto the projection plane, the pattern formed by the first marking pattern on the projection plane.
步骤105,根据第二位置信息,确定每个第三标记图案的第三位置信息和该第三标记图案对应的偏移参数。Step 105: Determine the third position information of each third mark pattern and the offset parameter corresponding to the third mark pattern according to the second position information.
进一步的,在投影平面与投影光机的投射平面为同一个平面的情况下,由于第二投影区域是由成像平面上的第一投影区域映射在投影平面上得到的,因此,第二投影区域与采集图像具有相同的像素尺寸。例如,当采集图像的像素尺寸为2K时,第二投影区域的像素尺寸也为2K。然而,在实际情况中,投影校正图像的像素尺寸可能与第二投影区域不同(投影校正图像的像素尺寸与校正图像的像素尺寸相同),为了准确地对投影图像进行校正,需要将校正图像的像素尺寸转换为与第二投影区域相同的像素尺寸,并利用转换后的校正图像与第二投影区域进行比较,以确定第二投影区域中每个第三标记图案的第三位置信息,以及每个第三标记图案对应的偏移参数。Further, when the projection plane and the projection plane of the light projector are the same plane, since the second projection area is obtained by mapping the first projection area on the imaging plane on the projection plane, the second projection area Has the same pixel size as the acquired image. For example, when the pixel size of the captured image is 2K, the pixel size of the second projection area is also 2K. However, in practical situations, the pixel size of the projected corrected image may be different from that of the second projection area (the projected corrected image has the same pixel size as the corrected image). The pixel size is converted into the same pixel size as the second projection area, and the converted corrected image is compared with the second projection area to determine the third position information of each third mark pattern in the second projection area, and each The offset parameter corresponding to the third mark pattern.
例如,投影设备可以根据校正图像的像素尺寸和采集图像的像素尺寸,确定校正图像和采集图像之间的比例关系,并根据该比例关系,结合每个第一标记图案的第二位置信息,确定在投影校正图像没有发生畸变时第二投影区域中,该第一标记图案对应的第三标记图案的理想位置。再根据该第一标记图案对应的第三标记图案的理想位置,确定每个第三标记图案的第三位置信息和每个第三标记图案对应的偏移参数。其中,每个第三标记图案对应的 偏移参数,用于表征该第三标记图案的第三位置信息与理想位置之间的偏差。For example, the projection device may determine the proportional relationship between the corrected image and the captured image according to the pixel size of the corrected image and the pixel size of the captured image, and according to the proportional relationship, in combination with the second position information of each first marking pattern, determine The ideal position of the third mark pattern corresponding to the first mark pattern in the second projection area when the projected corrected image is not distorted. Then, according to the ideal position of the third marking pattern corresponding to the first marking pattern, the third position information of each third marking pattern and the offset parameter corresponding to each third marking pattern are determined. Wherein, the offset parameter corresponding to each third mark pattern is used to represent the deviation between the third position information of the third mark pattern and the ideal position.
步骤106,在偏移参数不满足预设条件的情况下,根据第一位置信息和第三位置信息,确定每个第一标记图案对应的目标校正矩阵。 Step 106 , in the case that the offset parameter does not meet the preset condition, according to the first position information and the third position information, determine a target correction matrix corresponding to each first mark pattern.
示例地,在确定每个第三标记图案对应的偏移参数之后,首先投影设备可以判断偏移参数是否满足预设条件。例如,当偏移参数为像素距离时,预设条件可以是:全部第三标记图案对应的像素距离(即偏移参数)的平均值小于平均阈值(平均阈值例如可以是3个像素),且全部第三标记图案对应的像素距离中最大的像素距离小于距离阈值(距离阈值例如可以是5个像素)。For example, after determining the offset parameter corresponding to each third marking pattern, the projection device may first determine whether the offset parameter satisfies the preset condition. For example, when the offset parameter is the pixel distance, the preset condition may be: the average value of the pixel distances (ie the offset parameter) corresponding to all the third marking patterns is less than the average threshold (the average threshold may be, for example, 3 pixels), and The largest pixel distance among the pixel distances corresponding to all the third marking patterns is smaller than the distance threshold (for example, the distance threshold may be 5 pixels).
投影设备在偏移参数不满足预设条件的情况下,可以针对每个第一标记图案,根据该第一标记图案的第一位置信息以及该第一标记图案对应的第三标记图案的第三位置信息,确定该第一标记图案对应的初始校正矩阵。初始校正矩阵可以是单应性矩阵,例如,在第一标记图案和第三标记图案均为棋盘格包括的任一方格,每个第一标记图案的第二位置信息为该第一标记图案(即方格)的四个角点的坐标,且每个第三标记图案的第三位置信息为该第三标记图案(即方格)的四个角点的坐标的情况下,可以根据每个第一标记图案的四个角点的坐标,与该第一标记图案对应的第三标记图案的四个角点,计算该第一标记图案的初始校正矩阵。之后投影设备可以根据初始校正矩阵对校正图像进行校正,即根据每个第一标记图案对应的初始校正矩阵对该第一标记图案进行调整,以降低该第一标记图案投影至成像媒介上时该第一标记图案发生的畸变。然后,投影设备可以根据校正后的校正图像重复执行将预设的校正图像投影至成像媒介上,以得到成像媒介上展示的投影校正图像,至根据初始校正矩阵对校正图像进行校正的步骤,直至偏移参数满足预设条件。最后将初始校正矩阵作为目标校正矩阵。In the case where the offset parameter does not meet the preset condition, the projection device may, for each first marking pattern, use the first position information of the first marking pattern and the third marking pattern of the third marking pattern corresponding to the first marking pattern. The position information is used to determine the initial correction matrix corresponding to the first marking pattern. The initial calibration matrix can be a homography matrix, for example, when the first marking pattern and the third marking pattern are any squares included in a checkerboard, the second position information of each first marking pattern is the first marking pattern ( In the case where the coordinates of the four corner points of the third marking pattern (that is, the square), and the third position information of each third marking pattern is the coordinates of the four corners of the third marking pattern (that is, the square), it can be determined according to each The coordinates of the four corners of the first marking pattern and the four corners of the third marking pattern corresponding to the first marking pattern are used to calculate the initial correction matrix of the first marking pattern. Afterwards, the projection device can correct the corrected image according to the initial correction matrix, that is, adjust the first marking pattern according to the initial correction matrix corresponding to each first marking pattern, so as to reduce the amount of noise when the first marking pattern is projected onto the imaging medium. Distortion of the first marking pattern. Then, the projection device may repeatedly perform the steps of projecting the preset corrected image onto the imaging medium according to the corrected corrected image, so as to obtain the projected corrected image displayed on the imaging medium, to the step of correcting the corrected image according to the initial correction matrix, until The offset parameter satisfies the preset condition. Finally, the initial correction matrix is used as the target correction matrix.
步骤107,根据目标校正矩阵对待投影图像进行校正,并将校正后的待投影图像投影至成像媒介上。Step 107: Correct the to-be-projected image according to the target correction matrix, and project the corrected to-be-projected image onto the imaging medium.
在本步骤中,投影设备可以确定每个第一标记图案在校正图像中对应的第一目标区域,并将待投影图像中位置与该第一标记图案对应的第一目标区域相同的区域,作为该第一标记图案在待投影图像中对应的第二目标区域。之后投影设备可以根据每个第一标记图案对应的目标校正矩阵,对待投影图像中该第一标记图案对应的第二目标区域进行校正,以抵消该第一标记图案对应的第二目标区域投影至成像媒介上时,该第一标记图案对应的第二目标区域发生的畸变,从而使投影设备在将待投影图像投影至成像媒介上时,待投影图像对应的投影图像不再发生畸变。In this step, the projection device may determine the first target area corresponding to each first marker pattern in the corrected image, and use the area in the image to be projected that is the same as the first target area corresponding to the first marker pattern as the The first marking pattern corresponds to the second target area in the to-be-projected image. Then, the projection device can correct the second target area corresponding to the first mark pattern in the to-be-projected image according to the target correction matrix corresponding to each first mark pattern, so as to offset the projection of the second target area corresponding to the first mark pattern to the target area. On the imaging medium, the second target area corresponding to the first marking pattern is distorted, so that when the projection device projects the to-be-projected image on the imaging medium, the projected image corresponding to the to-be-projected image is no longer distorted.
图3是图1所示实施例示出的一种步骤101的流程图。如图3所示,步骤101可以包括以下步骤:FIG. 3 is a flowchart of step 101 shown in the embodiment shown in FIG. 1 . As shown in FIG. 3, step 101 may include the following steps:
步骤1011,将图像采集装置拍摄投影校正图像所得到的图像转换为指定格式,以得到第一图像。Step 1011: Convert the image obtained by the image acquisition device to shoot the projection corrected image into a specified format to obtain a first image.
步骤1012,对第一图像进行分割处理,以去除第一图像中除投影校正图像外的区域,得到第二图像。 Step 1012 , perform segmentation processing on the first image to remove the area of the first image except the projection corrected image to obtain a second image.
步骤1013,将第二图像转换为指定图像尺寸,以得到采集图像。Step 1013: Convert the second image to a specified image size to obtain a captured image.
举例来说,投影设备在接收到图像采集装置发送的拍摄投影校正图像所得到的图像后,需要对拍摄投影校正图像所得到的图像进行预处理,以得到规范的采集图像,以便后续对投影图像进行校正。具体的,首先可以将拍摄投影校正图像所得到的图像转换为指定格式,以得到第一图像,指定格式例如可以是BMP(英文:Bitmap,中文:位图文件)图形文件格式。在拍摄投影校正图像所得到的图像中,可能还会包括除投影校正图像外的其他区域,如果直接采用第一图像来对投影图像进行校正,会增大后续处理过程中的噪声和数据量。为了降低后续处理过程中的噪声和数据量,投影设备可以对第一图像进行分割处理(例如:可以采用粗粒度分割的方式),以去除第一图像中除投影校正图像外的区域,得到第二图像。然后,投影设备可以将第二图像转换为指定图像尺寸(例如:720P),并将经过转换后的第二图像作为采集图像。进一步的,投影设备还可以对得到的采集图像进行直方图均衡处理,并调整采集图像的白平衡和曝光时长,以提高采集图像的质量。For example, after receiving the image obtained by shooting the projection correction image sent by the image acquisition device, the projection device needs to preprocess the image obtained by shooting the projection correction image, so as to obtain a standardized acquisition image, so that the projection image can be subsequently processed. Make corrections. Specifically, the image obtained by shooting the projection correction image may be converted into a specified format to obtain the first image, and the specified format may be, for example, a BMP (English: Bitmap, Chinese: Bitmap File) graphic file format. The image obtained by shooting the projection-corrected image may also include other regions than the projection-corrected image. If the first image is directly used to correct the projection image, noise and data volume in subsequent processing will be increased. In order to reduce the noise and data volume in the subsequent processing, the projection device may perform segmentation processing on the first image (for example, a coarse-grained segmentation method may be used) to remove the area of the first image except the projection corrected image, and obtain the first image. Second image. Then, the projection device may convert the second image into a specified image size (for example: 720P), and use the converted second image as a captured image. Further, the projection device can also perform histogram equalization processing on the acquired image, and adjust the white balance and exposure time of the acquired image, so as to improve the quality of the acquired image.
需要说明的是,对第一图像进行分割处理后得到的第二图像中,仍然可能包含除投影校正图像外的其他区域。也就是说,对拍摄投影校正图像所得到的图像进行预处理实际上是一种粗粒度的处理方式,所得到的采集图像中并不只包含投影校正图像。It should be noted that, the second image obtained after the first image is segmented may still contain other regions than the projection corrected image. That is to say, preprocessing the image obtained by shooting the projection correction image is actually a coarse-grained processing method, and the acquired captured image does not only contain the projection correction image.
图4是图1所示实施例示出的一种步骤103的流程图。如图4所示,步骤103可以包括以下步骤:FIG. 4 is a flowchart of step 103 shown in the embodiment shown in FIG. 1 . As shown in FIG. 4, step 103 may include the following steps:
步骤1031,根据每个第二位置信息,确定每个第一标记图案与校正图像的第一边界的位置关系,位置关系用于表征该第一标记图案与第一边界的距离。Step 1031: Determine the positional relationship between each first marking pattern and the first boundary of the corrected image according to each second positional information, where the positional relationship is used to represent the distance between the first marking pattern and the first boundary.
步骤1032,根据位置关系和每个第一位置信息,确定投影校正图像在采集图像中对应的第一区域。 Step 1032 , according to the positional relationship and each first positional information, determine the first region corresponding to the projection correction image in the captured image.
示例地,投影设备可以根据校正图像的先验信息中校正图像的第一边界的位置信息和每个第一标记图案的第二位置信息,计算每个第一标记图案与第一边界的距离,以得到该第一标记图案与第一边界之间的位置关系。然后投影设备可以根据每个第一标记图案与第一边界的位置关系,利用校正图像的像素尺寸与采集图像的像素尺寸之间的比例关系,确定该第一标记图案对应的第二标记图案与待定边界的位置关系。之后投影设备可以利用每个第二标记图案与待定边界的位置关系,确定投影校正图像在采集图像中对应的待定边界。再将待定边界向外扩大指定像素距离(例如:20个像素),并将向外扩大后的待定边界围成的区域作为第一区域。其中,待定边界可以理解为预先假定的投影校正图像在采集图像中形成的边界,第一区域可以理解为投 影校正图像在采集图像中的大致范围。Illustratively, the projection device may calculate the distance between each first marking pattern and the first boundary according to the position information of the first boundary of the corrected image and the second position information of each first marking pattern in the prior information of the corrected image, to obtain the positional relationship between the first marking pattern and the first boundary. Then, according to the positional relationship between each first marking pattern and the first boundary, the projection device can use the proportional relationship between the pixel size of the corrected image and the pixel size of the captured image to determine the second marking pattern corresponding to the first marking pattern and the The positional relationship of the pending boundaries. Afterwards, the projection device can use the positional relationship between each second marking pattern and the pending boundary to determine the pending boundary corresponding to the projection correction image in the captured image. Then, the undetermined boundary is expanded outward by a specified pixel distance (for example: 20 pixels), and the area enclosed by the outwardly expanded undetermined boundary is used as the first area. Wherein, the undetermined boundary can be understood as the boundary formed by the pre-assumed projection correction image in the acquired image, and the first area can be understood as the approximate range of the projection correction image in the acquired image.
步骤1033,根据第一区域的颜色特征,从第一区域中确定第二区域。Step 1033: Determine the second area from the first area according to the color feature of the first area.
步骤1034,对第二区域进行边缘识别,以得到第二边界,并将第二边界围成的区域作为第一投影区域。Step 1034: Perform edge recognition on the second area to obtain a second boundary, and use the area enclosed by the second boundary as the first projection area.
进一步的,投影设备可以提取第一区域的颜色特征,并根据第一区域的颜色特征,结合校正图像的先验信息中第一边界与周围区域的颜色特征差异,从第一区域中搜索出和该颜色特征差异相同的区域,作为第二区域。然后,投影设备可以对第二区域进行边缘识别,以识别出第二区域所对应的边界,再将该边界作为第二边界,并将第二边界围成的区域作为第一投影区域。其中,对第二区域进行边缘识别来得到第二边界可以参考相关技术中描述的方式,此处不再赘述。需要说明的是,得到第一投影区域的过程实际上是一种细粒度的处理方式,以进一步去除采集图像中除投影校正图像外的其他区域。Further, the projection device can extract the color feature of the first area, and according to the color feature of the first area, in combination with the color feature difference between the first boundary and the surrounding area in the prior information of the corrected image, search for the sum from the first area. The area with the same color feature difference is used as the second area. Then, the projection device may perform edge recognition on the second area to identify the boundary corresponding to the second area, and then use the boundary as the second boundary, and use the area enclosed by the second boundary as the first projection area. Wherein, to obtain the second boundary by performing edge recognition on the second region, reference may be made to the manner described in the related art, which will not be repeated here. It should be noted that the process of obtaining the first projection area is actually a fine-grained processing manner to further remove other areas in the captured image except the projection corrected image.
图5是图1所示实施例示出的一种步骤104的流程图。如图5所示,步骤104可以包括以下步骤:FIG. 5 is a flowchart of step 104 shown in the embodiment shown in FIG. 1 . As shown in FIG. 5, step 104 may include the following steps:
步骤1041,根据每个第一位置信息和每个第二位置信息,确定变换矩阵。Step 1041: Determine a transformation matrix according to each first position information and each second position information.
步骤1042,根据变换矩阵,确定第二投影区域。Step 1042: Determine the second projection area according to the transformation matrix.
示例地,投影设备在确定第一投影区域后,首先可以根据每个第二标记图案的第一位置信息和每个第一标记图案的第二位置信息,计算成像平面与投影平面之间的变换矩阵。其中,变换矩阵用于将成像平面转换为投影平面,变换矩阵例如可以是单应性矩阵。之后投影设备可以根据变换矩阵,将第一投影区域映射在投影平面上,以得到第二投影区域。For example, after determining the first projection area, the projection device may first calculate the transformation between the imaging plane and the projection plane according to the first position information of each second marker pattern and the second position information of each first marker pattern. matrix. The transformation matrix is used to convert the imaging plane into the projection plane, and the transformation matrix may be, for example, a homography matrix. Afterwards, the projection device may map the first projection area on the projection plane according to the transformation matrix to obtain the second projection area.
图6是图1所示实施例示出的一种步骤105的流程图。如图6所示,第一标记图案为第一棋盘格包括的任一第一方格,第三标记图案为第二棋盘格包括的任一第二方格,第二位置信息包括第一方格的每个第一角点的坐标。步骤105可以包括以下步骤:FIG. 6 is a flowchart of step 105 shown in the embodiment shown in FIG. 1 . As shown in FIG. 6 , the first mark pattern is any first square included in the first checkerboard, the third mark pattern is any second square included in the second checkerboard, and the second position information includes the first square The coordinates of each first corner of the grid. Step 105 may include the following steps:
步骤1051,根据校正图像的像素尺寸和采集图像的像素尺寸,确定校正图像和采集图像之间的比例关系。Step 1051: Determine the proportional relationship between the corrected image and the collected image according to the pixel size of the corrected image and the pixel size of the collected image.
举例来说,在校正图像为棋盘格图像的情况下,投影设备所得到的采集图像和第二投影区域实际上也为棋盘格图像,可以将校正图像中的棋盘格设置为第一棋盘格,将第二投影区域中的棋盘格设置为第二棋盘格。此时第一标记图案为第一棋盘格包括的任一第一方格,第一方格包括4个第一角点,那么第一标记图案的第二位置信息可以包括第一方格的每个第一角点的坐标,第三标记图案为第二棋盘格包括的任一第二方格,第二方格包括4个第二角点。投影设备在确定第二位置信息后,可以根据校正图像的像素尺寸和采集图像的像素尺寸,确定校正图像和采集图像之间的比例关系。例如,当校正图像的像素尺寸为1080P,且采集图像的像素尺寸为2K时,比例关系为2。For example, when the corrected image is a checkerboard image, the captured image and the second projection area obtained by the projection device are actually checkerboard images, and the checkerboard in the corrected image can be set as the first checkerboard, Sets the checkerboard in the second projected area as the second checkerboard. In this case, the first mark pattern is any first square included in the first checkerboard, and the first square includes 4 first corner points, so the second position information of the first mark pattern may include every first square of the first square. The coordinates of the first corner points, the third mark pattern is any second square included in the second checkerboard, and the second square includes four second corners. After determining the second position information, the projection device may determine the proportional relationship between the corrected image and the captured image according to the pixel size of the corrected image and the pixel size of the captured image. For example, when the pixel size of the corrected image is 1080P, and the pixel size of the captured image is 2K, the scale relationship is 2.
步骤1052,针对每个第一方格,根据该第一方格的每个第一角点的坐标,利用比例关系,确定该第一方格的每个第一角点在第二投影区域中的理想角点的坐标。 Step 1052, for each first square, according to the coordinates of each first corner point of the first square and using the proportional relationship, determine that each first corner point of the first square is in the second projection area The coordinates of the ideal corner point of .
步骤1053,根据理想角点的坐标,确定理想角点是否为目标第二方格的第二角点,目标第二方格为第二投影区域中该第一方格对应的第二方格。 Step 1053 , according to the coordinates of the ideal corner point, determine whether the ideal corner point is the second corner point of the target second square, which is the second square corresponding to the first square in the second projection area.
步骤1054,若理想角点为目标第二方格的第二角点,将理想角点的坐标,作为目标第二方格的第三位置信息。 Step 1054, if the ideal corner point is the second corner point of the target second square, use the coordinates of the ideal corner point as the third position information of the target second square.
步骤1055,若理想角点不为目标第二方格的第二角点,将距离理想角点最近的临近角点的坐标,作为目标第二方格的第三位置信息,并将临近角点与理想角点之间的像素距离,作为目标第二方格的偏移参数。 Step 1055, if the ideal corner point is not the second corner point of the target second square, the coordinates of the adjacent corner point closest to the ideal corner point are taken as the third position information of the target second square, and the adjacent corner point is used as the third position information. The pixel distance from the ideal corner as the offset parameter for the second square of the target.
具体的,针对每个第一方格,投影设备可以根据该第一方格的每个第一角点的坐标,利用比例关系,确定该第一方格的每个第一角点在第二投影区域中的理想角点的坐标。其中,每个第一角点的理想角点为在理想情况下(即投影校正图像没有发生畸变时),该第一角点在第二投影区域中所对应的坐标。例如,当第一角点的坐标为(1,1),且比例关系为2时,理想角点的坐标可以是(2,2)。然后,投影设备可以根据该第一方格的每个第一角点的理想角点的坐标,判断该第一角点的理想角点,是否为目标第二方格的第二角点,其中,目标第二方格为第二投影区域中该第一方格对应的第二方格。Specifically, for each first square, the projection device may determine, according to the coordinates of each first corner of the first square, and by using a proportional relationship, that each first corner of the first square is in the second square. Coordinates of ideal corner points in the projected area. The ideal corner point of each first corner point is the coordinate corresponding to the first corner point in the second projection area under ideal conditions (ie, when the projection correction image is not distorted). For example, when the coordinates of the first corner point are (1, 1) and the proportional relationship is 2, the coordinates of the ideal corner point may be (2, 2). Then, the projection device can determine whether the ideal corner point of the first corner point is the second corner point of the target second square according to the coordinates of the ideal corner point of each first corner point of the first square, wherein , the target second square is the second square corresponding to the first square in the second projection area.
若该第一角点的理想角点为目标第二方格的第二角点,则说明该第一角点投影至成像媒介上时没有发生畸变,该第一角点的理想角点即为目标第二方格的第二角点,那么投影设备可以将该第一角点的理想角点的坐标作为目标第二方格的第三位置信息。若该第一角点的理想角点不为目标第二方格的第二角点,则说明该第一角点投影至成像媒介上时发生了畸变,那么投影设备可以将距离理想角点最近的临近角点,作为目标第二方格的第二角点,并将临近角点的坐标,作为目标第二方格的第三位置信息。同时投影设备可以将临近角点与理想角点之间的像素距离,作为目标第二方格的偏移参数。需要说明的是,每个第二方格的第三位置信息包括4个第二角点的坐标,4个第二角点的坐标中可以只包括理想角点的坐标(即4个第二角点均没有发生畸变),也可以只包括临近角点的坐标(即4个第二角点均发生了畸变),还可以既包括理想角点的坐标,又包括临近角点的坐标(即4个第二角点中可能有部分发生了畸变)。If the ideal corner of the first corner is the second corner of the target second square, it means that the first corner is not distorted when projected onto the imaging medium, and the ideal corner of the first corner is the second corner point of the target second square, the projection device may use the coordinates of the ideal corner point of the first corner point as the third position information of the target second square. If the ideal corner point of the first corner point is not the second corner point of the target second square, it means that the first corner point is distorted when projected onto the imaging medium, and the projection device can project the closest corner point to the ideal corner point. The adjacent corner point of , is used as the second corner point of the second target square, and the coordinates of the adjacent corner point are used as the third position information of the target second square. At the same time, the projection device can use the pixel distance between the adjacent corner point and the ideal corner point as the offset parameter of the second square of the target. It should be noted that the third position information of each second square includes the coordinates of the four second corners, and the coordinates of the four second corners may only include the coordinates of the ideal corners (that is, the four second corners). There is no distortion at all points), or it can only include the coordinates of the adjacent corner points (that is, the four second corner points are all distorted), or it can include both the coordinates of the ideal corner point and the coordinates of the adjacent corner points (that is, 4 Some of the second corners may be distorted).
综上所述,本公开首先通过将预设的校正图像投影至成像媒介上,以得到成像媒介上展示的投影校正图像,并获取采集图像,再确定采集图像中的每个第二标记图案的第一位置信息,并根据每个第二标记图案的第一位置信息和每个第一标记图案的第二位置信息,确定投影校正图像在采集图像中对应的第一投影区域,之后确定第一投影区域在成像媒介上对应的第二投影区域,并根据第二位置信息和第二投影区域,确定每个第三标记图案的第三位 置信息和该第三标记图案对应的偏移参数,然后在偏移参数不满足预设条件的情况下,根据第一位置信息和第三位置信息,确定每个第一标记图案对应的目标校正矩阵,最后根据目标校正矩阵对待投影图像进行校正,并将校正后的待投影图像投影至成像媒介上。本公开通过确定的每个第一标记图案对应的目标校正矩阵,对待投影图像进行校正,并将校正后的待投影图像投影至成像媒介上,可以确保将待投影图像投影至成像媒介上时不会发生畸变,对投影进行校正的效率高,提高了投影设备的投影效果。To sum up, the present disclosure first obtains the projected corrected image displayed on the imaging medium by projecting the preset corrected image onto the imaging medium, acquires the captured image, and then determines the size of each second mark pattern in the captured image. the first position information, and according to the first position information of each second mark pattern and the second position information of each first mark pattern, determine the first projection area corresponding to the projection correction image in the captured image, and then determine the first The projection area corresponds to the second projection area on the imaging medium, and according to the second position information and the second projection area, the third position information of each third mark pattern and the offset parameter corresponding to the third mark pattern are determined, and then In the case that the offset parameter does not meet the preset condition, the target correction matrix corresponding to each first mark pattern is determined according to the first position information and the third position information, and finally the projected image is corrected according to the target correction matrix, and the The corrected image to be projected is projected onto the imaging medium. The present disclosure corrects the to-be-projected image through the determined target correction matrix corresponding to each first mark pattern, and projects the corrected to-be-projected image onto the imaging medium, so as to ensure that the to-be-projected image is not projected onto the imaging medium when projected onto the imaging medium. Distortion will occur, the efficiency of correcting the projection is high, and the projection effect of the projection device is improved.
图7是根据一示例性实施例示出的一种投影校正装置的框图。如图7所示,应用于投影设备,该装置200包括:Fig. 7 is a block diagram of a projection correction apparatus according to an exemplary embodiment. As shown in FIG. 7, applied to projection equipment, the apparatus 200 includes:
获取模块201,用于将预设的校正图像投影至成像媒介上,以得到成像媒介上展示的投影校正图像,并获取采集图像。其中,校正图像包括多个第一标记图案,采集图像包括与每个第一标记图案对应的第二标记图案,采集图像为根据图像采集装置拍摄投影校正图像所得到的图像确定的。The acquiring module 201 is configured to project a preset corrected image onto an imaging medium to obtain a projected corrected image displayed on the imaging medium, and acquire a captured image. The corrected image includes a plurality of first marking patterns, the collected image includes a second marking pattern corresponding to each of the first marking patterns, and the collected image is determined according to an image obtained by photographing the projected corrected image by an image collecting device.
处理模块202,用于确定采集图像中的每个第二标记图案的第一位置信息。The processing module 202 is configured to determine the first position information of each second mark pattern in the captured image.
处理模块202,还用于根据每个第二标记图案的第一位置信息和每个第一标记图案的第二位置信息,确定投影校正图像在采集图像中对应的第一投影区域。The processing module 202 is further configured to determine, according to the first position information of each second mark pattern and the second position information of each first mark pattern, a first projection area corresponding to the projection correction image in the captured image.
处理模块202,还用于确定第一投影区域在成像媒介上对应的第二投影区域,第二投影区域包括与每个第一标记图案对应的第三标记图案。The processing module 202 is further configured to determine a second projection area corresponding to the first projection area on the imaging medium, where the second projection area includes a third mark pattern corresponding to each first mark pattern.
处理模块202,还用于根据第二位置信息,确定每个第三标记图案的第三位置信息和该第三标记图案对应的偏移参数。The processing module 202 is further configured to determine, according to the second position information, third position information of each third mark pattern and an offset parameter corresponding to the third mark pattern.
处理模块202,还用于在偏移参数不满足预设条件的情况下,根据第一位置信息和第三位置信息,确定每个第一标记图案对应的目标校正矩阵。The processing module 202 is further configured to determine a target correction matrix corresponding to each first mark pattern according to the first position information and the third position information when the offset parameter does not meet the preset condition.
校正模块203,用于根据目标校正矩阵对待投影图像进行校正,并将校正后的待投影图像投影至成像媒介上。The correction module 203 is configured to correct the to-be-projected image according to the target correction matrix, and project the corrected to-be-projected image onto the imaging medium.
可选地,获取模块201包括:Optionally, the obtaining module 201 includes:
第一转换子模块,用于将图像采集装置拍摄投影校正图像所得到的图像转换为指定格式,以得到第一图像。The first conversion sub-module is used to convert the image obtained by the image acquisition device shooting the projection corrected image into a specified format to obtain the first image.
分割子模块,用于对第一图像进行分割处理,以去除第一图像中除投影校正图像外的区域,得到第二图像。The segmentation sub-module is used to perform segmentation processing on the first image, so as to remove the area in the first image except the projection corrected image to obtain the second image.
第二转换子模块,用于将第二图像转换为指定图像尺寸,以得到采集图像。The second conversion submodule is used to convert the second image into a specified image size to obtain the captured image.
可选地。处理模块202包括:Optionally. The processing module 202 includes:
检测子模块,用于对采集图像中的棋盘格进行检测,并确定采集图像中的棋盘格包括的每个方格的位置信息。The detection submodule is used to detect the checkerboard in the collected image, and determine the position information of each square included in the checkerboard in the collected image.
第一确定子模块,用于将采集图像中的棋盘格包括的每个方格的位置信 息,作为第一位置信息。The first determination submodule is used for taking the position information of each square included in the checkerboard in the collected image as the first position information.
可选地,处理模块202包括:Optionally, the processing module 202 includes:
第二确定子模块,用于根据每个第二位置信息,确定每个第一标记图案与校正图像的第一边界的位置关系,位置关系用于表征该第一标记图案与第一边界的距离。The second determination sub-module is configured to determine the positional relationship between each first marking pattern and the first boundary of the corrected image according to each second positional information, where the positional relationship is used to characterize the distance between the first marking pattern and the first boundary .
第二确定子模块,用于根据位置关系和每个第一位置信息,确定投影校正图像在采集图像中对应的第一区域。The second determination submodule is configured to determine, according to the positional relationship and each first positional information, the first region corresponding to the projection correction image in the captured image.
第二确定子模块,用于根据第一区域的颜色特征,从第一区域中确定第二区域。The second determination submodule is configured to determine the second area from the first area according to the color feature of the first area.
识别子模块,用于对第二区域进行边缘识别,以得到第二边界,并将第二边界围成的区域作为第一投影区域。The identification sub-module is used for performing edge identification on the second area to obtain the second boundary, and the area enclosed by the second boundary is used as the first projection area.
可选地,处理模块202包括:Optionally, the processing module 202 includes:
计算子模块,用于根据每个第一位置信息和每个第二位置信息,确定变换矩阵。The calculation submodule is configured to determine the transformation matrix according to each of the first position information and each of the second position information.
第三确定子模块,用于根据变换矩阵,确定第二投影区域。The third determination sub-module is configured to determine the second projection area according to the transformation matrix.
可选地,第一标记图案为第一棋盘格包括的任一第一方格,第三标记图案为第二棋盘格包括的任一第二方格,第二位置信息包括第一方格的每个第一角点的坐标,处理模块202用于:Optionally, the first mark pattern is any first square included in the first checkerboard, the third mark pattern is any second square included in the second checkerboard, and the second position information includes the first square. For the coordinates of each first corner point, the processing module 202 is used to:
根据校正图像的像素尺寸和采集图像的像素尺寸,确定校正图像和采集图像之间的比例关系。According to the pixel size of the corrected image and the pixel size of the acquired image, the proportional relationship between the corrected image and the acquired image is determined.
针对每个第一方格,根据该第一方格的每个第一角点的坐标,利用比例关系,确定该第一方格的每个第一角点在第二投影区域中的理想角点的坐标。For each first square, according to the coordinates of each first corner point of the first square, and using proportional relationship, determine the ideal angle of each first corner point of the first square in the second projection area the coordinates of the point.
根据理想角点的坐标,确定理想角点是否为目标第二方格的第二角点,目标第二方格为第二投影区域中该第一方格对应的第二方格。According to the coordinates of the ideal corner point, it is determined whether the ideal corner point is the second corner point of the second target square, which is the second square corresponding to the first square in the second projection area.
若理想角点为目标第二方格的第二角点,将理想角点的坐标,作为目标第二方格的第三位置信息。If the ideal corner point is the second corner point of the target second square, the coordinates of the ideal corner point are used as the third position information of the target second square.
若理想角点不为目标第二方格的第二角点,将距离理想角点最近的临近角点的坐标,作为目标第二方格的第三位置信息,并将临近角点与理想角点之间的像素距离,作为目标第二方格的偏移参数。If the ideal corner is not the second corner of the second grid of the target, the coordinates of the adjacent corner closest to the ideal corner are taken as the third position information of the second grid of the target, and the adjacent corner and the ideal corner are compared with each other. The pixel distance between the points, as the offset parameter of the second square of the target.
可选地,处理模块202用于:Optionally, the processing module 202 is used to:
针对每个第一标记图案,根据该第一标记图案的第一位置信息以及该第一标记图案对应的第三标记图案的第三位置信息,确定该第一标记图案对应的初始校正矩阵。For each first marking pattern, an initial correction matrix corresponding to the first marking pattern is determined according to the first position information of the first marking pattern and the third position information of the third marking pattern corresponding to the first marking pattern.
根据初始校正矩阵对校正图像进行校正,并根据校正后的校正图像重复执行将预设的校正图像投影至成像媒介上,以得到成像媒介上展示的投影校正图像,至根据初始校正矩阵对校正图像进行校正的步骤,直至偏移参数满足预设条件。The corrected image is corrected according to the initial correction matrix, and the preset corrected image is projected onto the imaging medium repeatedly according to the corrected corrected image to obtain the projected corrected image displayed on the imaging medium, until the corrected image is corrected according to the initial correction matrix. The steps of correction are performed until the offset parameters meet the preset conditions.
将初始校正矩阵作为目标校正矩阵。Take the initial correction matrix as the target correction matrix.
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the above-mentioned embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be described in detail here.
综上所述,本公开首先通过将预设的校正图像投影至成像媒介上,以得到成像媒介上展示的投影校正图像,并获取采集图像,再确定采集图像中的每个第二标记图案的第一位置信息,并根据每个第二标记图案的第一位置信息和每个第一标记图案的第二位置信息,确定投影校正图像在采集图像中对应的第一投影区域,之后确定第一投影区域在成像媒介上对应的第二投影区域,并根据第二位置信息和第二投影区域,确定每个第三标记图案的第三位置信息和该第三标记图案对应的偏移参数,然后在偏移参数不满足预设条件的情况下,根据第一位置信息和第三位置信息,确定每个第一标记图案对应的目标校正矩阵,最后根据目标校正矩阵对待投影图像进行校正,并将校正后的待投影图像投影至成像媒介上。本公开通过确定的每个第一标记图案对应的目标校正矩阵,对待投影图像进行校正,并将校正后的待投影图像投影至成像媒介上,可以确保将待投影图像投影至成像媒介上时不会发生畸变,对投影进行校正的效率高,提高了投影设备的投影效果。To sum up, the present disclosure first obtains the projected corrected image displayed on the imaging medium by projecting the preset corrected image onto the imaging medium, acquires the captured image, and then determines the size of each second mark pattern in the captured image. first position information, and according to the first position information of each second mark pattern and the second position information of each first mark pattern, determine the first projection area corresponding to the projection correction image in the captured image, and then determine the first The projection area corresponds to the second projection area on the imaging medium, and according to the second position information and the second projection area, the third position information of each third mark pattern and the offset parameter corresponding to the third mark pattern are determined, and then In the case that the offset parameter does not meet the preset condition, the target correction matrix corresponding to each first mark pattern is determined according to the first position information and the third position information, and finally the projected image is corrected according to the target correction matrix, and the The corrected image to be projected is projected onto the imaging medium. The present disclosure corrects the to-be-projected image through the determined target correction matrix corresponding to each first mark pattern, and projects the corrected to-be-projected image onto the imaging medium, so as to ensure that the to-be-projected image is not projected onto the imaging medium when projected onto the imaging medium. Distortion will occur, the efficiency of correcting the projection is high, and the projection effect of the projection device is improved.
图8是根据一示例性实施例示出的一种电子设备300的框图。如图8所示,该电子设备300可以包括:处理器301,存储器302。该电子设备300还可以包括多媒体组件303,输入/输出(I/O)接口304,以及通信组件305中的一者或多者。FIG. 8 is a block diagram of an electronic device 300 according to an exemplary embodiment. As shown in FIG. 8 , the electronic device 300 may include: a processor 301 and a memory 302 . The electronic device 300 may also include one or more of a multimedia component 303 , an input/output (I/O) interface 304 , and a communication component 305 .
其中,处理器301用于控制该电子设备300的整体操作,以完成上述的投影校正方法中的全部或部分步骤。存储器302用于存储各种类型的数据以支持在该电子设备300的操作,这些数据例如可以包括用于在该电子设备300上操作的任何应用程序或方法的指令,以及应用程序相关的数据,例如联系人数据、收发的消息、图片、音频、视频等等。该存储器302可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,例如静态随机存取存储器(Static Random Access Memory,简称SRAM),电可擦除可编程只读存储器(Electrically Erasable Programmable Read-Only Memory,简称EEPROM),可擦除可编程只读存储器(Erasable Programmable Read-Only Memory,简称EPROM),可编程只读存储器(Programmable Read-Only Memory,简称PROM),只读存储器(Read-Only Memory,简称ROM),磁存储器,快闪存储器,磁盘或光盘。多媒体组件303可以包括屏幕和音频组件。其中屏幕例如可以是触摸屏,音频组件用于输出和/或输入音频信号。例如,音频组件可以包括一个麦克风,麦克风用于接收外部音频信号。所接收的音频信号可以被进一步存储在存储器302或通过通信组件305发送。音频组件还包括至少一个扬声器,用于输出音频信号。I/O接口304为处理器301和其他接口模块之间提供接口,上述其他接口模块可以是键盘,鼠标,按钮 等。这些按钮可以是虚拟按钮或者实体按钮。通信组件305用于该电子设备300与其他设备之间进行有线或无线通信。无线通信,例如Wi-Fi,蓝牙,近场通信(Near Field Communication,简称NFC),2G、3G、4G、NB-IOT、eMTC、或其他5G等等,或它们中的一种或几种的组合,在此不做限定。因此相应的该通信组件305可以包括:Wi-Fi模块,蓝牙模块,NFC模块等等。Wherein, the processor 301 is used to control the overall operation of the electronic device 300 to complete all or part of the steps in the above-mentioned projection correction method. The memory 302 is used to store various types of data to support operations on the electronic device 300, such data may include, for example, instructions for any application or method operating on the electronic device 300, and application-related data, Such as contact data, messages sent and received, pictures, audio, video, and so on. The memory 302 can be implemented by any type of volatile or nonvolatile storage device or a combination thereof, such as static random access memory (Static Random Access Memory, SRAM for short), electrically erasable programmable read-only memory ( Electrically Erasable Programmable Read-Only Memory (EEPROM for short), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (Read-Only Memory, ROM for short), magnetic memory, flash memory, magnetic disk or optical disk. Multimedia components 303 may include screen and audio components. Wherein the screen can be, for example, a touch screen, and the audio component is used for outputting and/or inputting audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signal may be further stored in memory 302 or transmitted through communication component 305 . The audio assembly also includes at least one speaker for outputting audio signals. The I/O interface 304 provides an interface between the processor 301 and other interface modules, and the above-mentioned other interface modules can be a keyboard, a mouse, a button, and the like. These buttons can be virtual buttons or physical buttons. The communication component 305 is used for wired or wireless communication between the electronic device 300 and other devices. Wireless communication, such as Wi-Fi, Bluetooth, Near Field Communication (NFC), 2G, 3G, 4G, NB-IOT, eMTC, or other 5G, etc., or one or more of them The combination is not limited here. Therefore, the corresponding communication component 305 may include: Wi-Fi module, Bluetooth module, NFC module and so on.
在一示例性实施例中,电子设备300可以被一个或多个应用专用集成电路(Application Specific Integrated Circuit,简称ASIC)、数字信号处理器(Digital Signal Processor,简称DSP)、数字信号处理设备(Digital Signal Processing Device,简称DSPD)、可编程逻辑器件(Programmable Logic Device,简称PLD)、现场可编程门阵列(Field Programmable Gate Array,简称FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述的投影校正方法。In an exemplary embodiment, the electronic device 300 may be implemented by one or more application-specific integrated circuits (Application Specific Integrated Circuit, ASIC for short), digital signal processors (Digital Signal Processor, DSP for short), digital signal processing devices (Digital Signal Processing Device (DSPD), Programmable Logic Device (PLD), Field Programmable Gate Array (FPGA), controller, microcontroller, microprocessor or other electronic components Implementation is used to perform the above-mentioned projection correction method.
在另一示例性实施例中,还提供了一种包括程序指令的计算机可读存储介质,该程序指令被处理器执行时实现上述的投影校正方法的步骤。例如,该计算机可读存储介质可以为上述包括程序指令的存储器302,上述程序指令可由电子设备300的处理器301执行以完成上述的投影校正方法。In another exemplary embodiment, there is also provided a computer-readable storage medium comprising program instructions, the program instructions implement the steps of the above-mentioned projection correction method when executed by a processor. For example, the computer-readable storage medium can be the above-mentioned memory 302 including program instructions, and the above-mentioned program instructions can be executed by the processor 301 of the electronic device 300 to complete the above-mentioned projection correction method.
在另一示例性实施例中,还提供一种计算机程序产品,该计算机程序产品包含能够由可编程的装置执行的计算机程序,该计算机程序具有当由该可编程的装置执行时用于执行上述的投影校正方法的代码部分。In another exemplary embodiment, there is also provided a computer program product comprising a computer program executable by a programmable apparatus, the computer program having, when executed by the programmable apparatus, for performing the above The code section of the projection correction method.
以上结合附图详细描述了本公开的优选实施方式,但是,本公开并不限于上述实施方式中的具体细节,在本公开的技术构思范围内,可以对本公开的技术方案进行多种简单变型,这些简单变型均属于本公开的保护范围。The preferred embodiments of the present disclosure have been described above in detail with reference to the accompanying drawings. However, the present disclosure is not limited to the specific details of the above-mentioned embodiments. Various simple modifications can be made to the technical solutions of the present disclosure within the scope of the technical concept of the present disclosure. These simple modifications all fall within the protection scope of the present disclosure.
另外需要说明的是,在上述具体实施方式中所描述的各个具体技术特征,在不矛盾的情况下,可以通过任何合适的方式进行组合,为了避免不必要的重复,本公开对各种可能的组合方式不再另行说明。In addition, it should be noted that the various specific technical features described in the above-mentioned specific embodiments can be combined in any suitable manner unless they are inconsistent. In order to avoid unnecessary repetition, the present disclosure provides The combination method will not be specified otherwise.
此外,本公开的各种不同的实施方式之间也可以进行任意组合,只要其不违背本公开的思想,其同样应当视为本公开所公开的内容。In addition, the various embodiments of the present disclosure can also be arbitrarily combined, as long as they do not violate the spirit of the present disclosure, they should also be regarded as the contents disclosed in the present disclosure.

Claims (10)

  1. 一种投影校正方法,其特征在于,应用于投影设备,所述方法包括:A projection correction method, characterized in that, applied to projection equipment, the method comprising:
    将预设的校正图像投影至成像媒介上,以得到所述成像媒介上展示的投影校正图像,并获取采集图像;所述校正图像包括多个第一标记图案,所述采集图像包括与每个所述第一标记图案对应的第二标记图案,所述采集图像为根据图像采集装置拍摄所述投影校正图像所得到的图像确定的;Projecting a preset correction image onto an imaging medium to obtain a projected correction image displayed on the imaging medium, and acquiring a captured image; the corrected image includes a plurality of first mark patterns, and the captured image includes and each a second marking pattern corresponding to the first marking pattern, and the captured image is determined according to an image obtained by photographing the projection correction image by an image capturing device;
    确定所述采集图像中的每个所述第二标记图案的第一位置信息;determining first position information of each of the second marking patterns in the captured image;
    根据每个所述第二标记图案的第一位置信息和每个所述第一标记图案的第二位置信息,确定所述投影校正图像在所述采集图像中对应的第一投影区域;determining, according to the first position information of each of the second marking patterns and the second position information of each of the first marking patterns, a first projection area corresponding to the projection correction image in the captured image;
    确定所述第一投影区域在所述成像媒介上对应的第二投影区域,所述第二投影区域包括与每个所述第一标记图案对应的第三标记图案;determining a second projection area corresponding to the first projection area on the imaging medium, the second projection area including a third mark pattern corresponding to each of the first mark patterns;
    根据所述第二位置信息,确定每个所述第三标记图案的第三位置信息和该第三标记图案对应的偏移参数;According to the second position information, determine the third position information of each of the third marking patterns and the offset parameter corresponding to the third marking pattern;
    在所述偏移参数不满足预设条件的情况下,根据所述第一位置信息和所述第三位置信息,确定每个所述第一标记图案对应的目标校正矩阵;In the case that the offset parameter does not meet the preset condition, according to the first position information and the third position information, determine a target correction matrix corresponding to each of the first marking patterns;
    根据所述目标校正矩阵对待投影图像进行校正,并将校正后的所述待投影图像投影至所述成像媒介上。The to-be-projected image is corrected according to the target correction matrix, and the corrected to-be-projected image is projected onto the imaging medium.
  2. 根据权利要求1所述的方法,其特征在于,所述获取采集图像,包括:The method according to claim 1, wherein the acquiring the captured image comprises:
    将所述图像采集装置拍摄所述投影校正图像所得到的图像转换为指定格式,以得到第一图像;Converting the image obtained by the image acquisition device shooting the projection correction image into a specified format to obtain a first image;
    对所述第一图像进行分割处理,以去除所述第一图像中除所述投影校正图像外的区域,得到第二图像;Performing segmentation processing on the first image to remove the area of the first image except the projection correction image to obtain a second image;
    将所述第二图像转换为指定图像尺寸,以得到所述采集图像。Converting the second image to a specified image size to obtain the acquired image.
  3. 根据权利要求1所述的方法,其特征在于,所述校正图像为棋盘格图像,所述第一标记图案为棋盘格中的任一方格;所述确定所述采集图像中的每个所述第二标记图案的第一位置信息,包括:The method according to claim 1, wherein the corrected image is a checkerboard image, and the first mark pattern is any square in the checkerboard; the determining of each of the collected images The first position information of the second marking pattern includes:
    对所述采集图像中的棋盘格进行检测,并确定所述采集图像中的棋盘格包括的每个方格的位置信息;Detecting the checkerboard in the collected image, and determining the position information of each square included in the checkerboard in the collected image;
    将所述采集图像中的棋盘格包括的每个方格的位置信息,作为所述第一位置信息。The position information of each square included in the checkerboard in the acquired image is used as the first position information.
  4. 根据权利要求1所述的方法,其特征在于,所述根据每个所述第二标记图案的第一位置信息和每个所述第一标记图案的第二位置信息,确定所述投影校正图像在所述采集图像中对应的第一投影区域,包括:The method according to claim 1, wherein the projection correction image is determined according to the first position information of each of the second marking patterns and the second position information of each of the first marking patterns The corresponding first projection area in the captured image includes:
    根据每个所述第二位置信息,确定每个所述第一标记图案与所述校正图像的第一边界的位置关系,所述位置关系用于表征该第一标记图案与所述第一边界的距离;According to each of the second position information, the positional relationship between each of the first marking patterns and the first boundary of the corrected image is determined, and the positional relationship is used to characterize the first marking pattern and the first boundary the distance;
    根据所述位置关系和每个所述第一位置信息,确定所述投影校正图像在所述采集图像中对应的第一区域;determining, according to the positional relationship and each of the first positional information, a first region corresponding to the projection correction image in the captured image;
    根据所述第一区域的颜色特征,从所述第一区域中确定第二区域;determining a second area from the first area according to the color feature of the first area;
    对所述第二区域进行边缘识别,以得到第二边界,并将所述第二边界围成的区域作为所述第一投影区域。Perform edge recognition on the second area to obtain a second boundary, and use the area enclosed by the second boundary as the first projection area.
  5. 根据权利要求1所述的方法,其特征在于,所述确定所述第一投影区域在所述成像媒介上对应的第二投影区域,包括:The method according to claim 1, wherein the determining the second projection area corresponding to the first projection area on the imaging medium comprises:
    根据每个所述第一位置信息和每个所述第二位置信息,确定变换矩阵;determining a transformation matrix according to each of the first position information and each of the second position information;
    根据所述变换矩阵,确定所述第二投影区域。According to the transformation matrix, the second projection area is determined.
  6. 根据权利要求1所述的方法,其特征在于,所述第一标记图案为第一棋盘格包括的任一第一方格,所述第三标记图案为第二棋盘格包括的任一第二方格,所述第二位置信息包括所述第一方格的每个第一角点的坐标;所述根据所述第二位置信息,确定每个所述第三标记图案的第三位置信息和该第三标记图案对应的偏移参数,包括:The method according to claim 1, wherein the first mark pattern is any first square included in the first checkerboard, and the third mark pattern is any second checkerboard included in the second checkerboard. a square, the second position information includes the coordinates of each first corner of the first square; the third position information of each of the third mark patterns is determined according to the second position information The offset parameters corresponding to the third marking pattern include:
    根据所述校正图像的像素尺寸和所述采集图像的像素尺寸,确定所述校正图像和所述采集图像之间的比例关系;determining a proportional relationship between the corrected image and the acquired image according to the pixel size of the corrected image and the pixel size of the acquired image;
    针对每个所述第一方格,根据该第一方格的每个第一角点的坐标,利用所述比例关系,确定该第一方格的每个第一角点在所述第二投影区域中的理想角点的坐标;For each of the first squares, according to the coordinates of each of the first corners of the first square, and using the proportional relationship, it is determined that each of the first corners of the first square is in the second the coordinates of the ideal corners in the projected area;
    根据所述理想角点的坐标,确定所述理想角点是否为目标第二方格的第二角点,所述目标第二方格为所述第二投影区域中该第一方格对应的第二方格;According to the coordinates of the ideal corner point, it is determined whether the ideal corner point is the second corner point of the target second square, and the target second square is the corresponding first square in the second projection area. second square;
    若所述理想角点为所述目标第二方格的第二角点,将所述理想角点的坐标,作为所述目标第二方格的第三位置信息;If the ideal corner point is the second corner point of the target second square, use the coordinates of the ideal corner point as the third position information of the target second square;
    若所述理想角点不为所述目标第二方格的第二角点,将距离所述理想角点最近的临近角点的坐标,作为所述目标第二方格的第三位置信息,并将所述临近角点与所述理想角点之间的像素距离,作为所述目标第二方格的偏移参数。If the ideal corner point is not the second corner point of the target second square, the coordinates of the adjacent corner point closest to the ideal corner point are used as the third position information of the target second square, And the pixel distance between the adjacent corner point and the ideal corner point is used as the offset parameter of the second target square.
  7. 根据权利要求1所述的方法,其特征在于,所述根据所述第一位置信息和所述第三位置信息,确定每个所述第一标记图案对应的目标校正矩阵,包括:The method according to claim 1, wherein the determining a target correction matrix corresponding to each of the first marking patterns according to the first position information and the third position information comprises:
    针对每个所述第一标记图案,根据该第一标记图案的第一位置信息以及该第一标记图案对应的第三标记图案的第三位置信息,确定该第一标记图案对应的初始校正矩阵;For each of the first marking patterns, an initial calibration matrix corresponding to the first marking pattern is determined according to the first position information of the first marking pattern and the third position information of the third marking pattern corresponding to the first marking pattern ;
    根据所述初始校正矩阵对所述校正图像进行校正,并根据校正后的所述校正图像重复执行所述将预设的校正图像投影至成像媒介上,以得到所述成像媒介上展示的投影校正图像,至所述根据所述初始校正矩阵对所述校正图像进行校正的步骤,直至所述偏移参数满足所述预设条件;Correct the correction image according to the initial correction matrix, and repeat the projecting the preset correction image onto the imaging medium according to the corrected correction image, so as to obtain the projection correction displayed on the imaging medium image, to the step of correcting the corrected image according to the initial correction matrix, until the offset parameter satisfies the preset condition;
    将所述初始校正矩阵作为所述目标校正矩阵。The initial correction matrix is used as the target correction matrix.
  8. 一种投影校正装置,其特征在于,应用于投影设备,所述装置包括:A projection correction device, characterized in that, when applied to projection equipment, the device comprises:
    获取模块,用于将预设的校正图像投影至成像媒介上,以得到所述成像媒介上展示的投影校正图像,并获取采集图像;所述校正图像包括多个第一标记图案,所述采集图像包括与每个所述第一标记图案对应的第二标记图案,所述采集图像为根据图像采集装置拍摄所述投影校正图像所得到的图像确定的;an acquisition module, configured to project a preset corrected image onto an imaging medium to obtain a projected corrected image displayed on the imaging medium, and acquire a captured image; the corrected image includes a plurality of first mark patterns, and the captured image The image includes a second marking pattern corresponding to each of the first marking patterns, and the acquired image is determined according to an image obtained by photographing the projection correction image by an image acquisition device;
    处理模块,用于确定所述采集图像中的每个所述第二标记图案的第一位置信息;a processing module, configured to determine the first position information of each of the second marking patterns in the captured image;
    所述处理模块,还用于根据每个所述第二标记图案的第一位置信息和每个所述第一标记图案的第二位置信息,确定所述投影校正图像在所述采集图像中对应的第一投影区域;The processing module is further configured to determine, according to the first position information of each of the second marking patterns and the second position information of each of the first marking patterns, whether the projection correction image corresponds to the captured image. The first projection area of ;
    所述处理模块,还用于确定所述第一投影区域在所述成像媒介上对应的第二投影区域,所述第二投影区域包括与每个所述第一标记图案对应的第三标记图案;The processing module is further configured to determine a second projection area corresponding to the first projection area on the imaging medium, where the second projection area includes a third mark pattern corresponding to each of the first mark patterns ;
    所述处理模块,还用于根据所述第二位置信息,确定每个所述第三标记图案的第三位置信息和该第三标记图案对应的偏移参数;The processing module is further configured to determine, according to the second position information, third position information of each of the third marking patterns and an offset parameter corresponding to the third marking pattern;
    所述处理模块,还用于在所述偏移参数不满足预设条件的情况下,根据所述第一位置信息和所述第三位置信息,确定每个所述第一标记图案对应的目标校正矩阵;The processing module is further configured to determine a target corresponding to each of the first marking patterns according to the first position information and the third position information when the offset parameter does not meet a preset condition correction matrix;
    校正模块,用于根据所述目标校正矩阵对待投影图像进行校正,并将校正后的所述待投影图像投影至所述成像媒介上。The correction module is used for correcting the to-be-projected image according to the target correction matrix, and projecting the corrected to-be-projected image onto the imaging medium.
  9. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现权利要求1-7中任一项所述方法的步骤。A computer-readable storage medium on which a computer program is stored, characterized in that, when the program is executed by a processor, the steps of the method according to any one of claims 1-7 are implemented.
  10. 一种电子设备,其特征在于,包括:An electronic device, comprising:
    存储器,其上存储有计算机程序;a memory on which a computer program is stored;
    处理器,用于执行所述存储器中的所述计算机程序,以实现权利要求1-7中任一项所述方法的步骤。A processor for executing the computer program in the memory to implement the steps of the method of any one of claims 1-7.
PCT/CN2021/122447 2021-02-24 2021-09-30 Projection correction method and apparatus, storage medium and electronic device WO2022179109A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110206396.5 2021-02-24
CN202110206396.5A CN112584116B (en) 2021-02-24 2021-02-24 Projection correction method, projection correction device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
WO2022179109A1 true WO2022179109A1 (en) 2022-09-01

Family

ID=75113955

Family Applications (2)

Application Number Title Priority Date Filing Date
PCT/CN2021/122446 WO2022179108A1 (en) 2021-02-24 2021-09-30 Projection correction method and apparatus, storage medium, and electronic device
PCT/CN2021/122447 WO2022179109A1 (en) 2021-02-24 2021-09-30 Projection correction method and apparatus, storage medium and electronic device

Family Applications Before (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/122446 WO2022179108A1 (en) 2021-02-24 2021-09-30 Projection correction method and apparatus, storage medium, and electronic device

Country Status (2)

Country Link
CN (3) CN112584116B (en)
WO (2) WO2022179108A1 (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112584116B (en) * 2021-02-24 2021-06-29 深圳市火乐科技发展有限公司 Projection correction method, projection correction device, storage medium and electronic equipment
CN113055663B (en) * 2021-03-31 2022-07-05 青岛海信激光显示股份有限公司 Projection image correction method and laser projection device
CN113271447B (en) * 2021-05-25 2022-10-25 青岛海信激光显示股份有限公司 Laser projection apparatus and image correction system
CN113034574B (en) * 2021-05-25 2021-09-14 广州市玄武无线科技股份有限公司 Commodity ground heap area calculation method and system based on target detection
CN113848541B (en) * 2021-09-22 2022-08-26 深圳市镭神智能系统有限公司 Calibration method and device, unmanned aerial vehicle and computer readable storage medium
CN115883801A (en) * 2021-09-28 2023-03-31 精工爱普生株式会社 Image projection method and projector
CN114157848A (en) * 2021-12-01 2022-03-08 深圳市火乐科技发展有限公司 Projection equipment correction method and device, storage medium and projection equipment
CN114339179A (en) * 2021-12-23 2022-04-12 深圳市火乐科技发展有限公司 Projection correction method, projection correction device, storage medium and projection equipment
CN114422763B (en) * 2022-01-14 2024-02-09 深圳市火乐科技发展有限公司 Screen function verification method and device, computer equipment and storage medium
CN114760451B (en) * 2022-04-25 2024-02-09 深圳市火乐科技发展有限公司 Projection image correction prompting method, projection image correction prompting device, projection equipment and storage medium
CN115086625B (en) * 2022-05-12 2024-03-15 峰米(重庆)创新科技有限公司 Correction method, device and system for projection picture, correction equipment and projection equipment
CN116433476B (en) * 2023-06-09 2023-09-08 有方(合肥)医疗科技有限公司 CT image processing method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180007329A1 (en) * 2015-03-19 2018-01-04 Megachips Corporation Projection system, projector apparatus, image capturing apparatus, and projection method
CN109451290A (en) * 2018-12-25 2019-03-08 广州励丰文化科技股份有限公司 Auto-correction method and system based on special-shaped projected picture
CN109873997A (en) * 2019-04-03 2019-06-11 贵安新区新特电动汽车工业有限公司 Projected picture correcting method and device
CN110996081A (en) * 2019-12-06 2020-04-10 北京一数科技有限公司 Projection picture correction method and device, electronic equipment and readable storage medium
CN112584116A (en) * 2021-02-24 2021-03-30 深圳市火乐科技发展有限公司 Projection correction method, projection correction device, storage medium and electronic equipment

Family Cites Families (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3882929B2 (en) * 2004-03-29 2007-02-21 セイコーエプソン株式会社 Image processing system, projector, and image processing method
JP5187480B2 (en) * 2007-02-23 2013-04-24 セイコーエプソン株式会社 Projector, program, information storage medium, and image generation method
WO2010096030A1 (en) * 2009-02-18 2010-08-26 Thomson Licensing Method and apparatus for preparing subtitles for display
CN103019643B (en) * 2012-12-30 2015-12-23 中国海洋大学 A kind of large screen projection automatic calibration of plug and play and splicing display method
JP6299124B2 (en) * 2013-09-13 2018-03-28 株式会社リコー Projection system, image processing apparatus, projection method, and program
CN106162124B (en) * 2016-08-02 2018-06-08 上海唱风信息科技有限公司 Projector exports the calibration method of image
KR101847996B1 (en) * 2016-12-16 2018-04-12 씨제이씨지브이 주식회사 Image projection method for a curved projection area and projection system therefor
CN109104596B (en) * 2017-06-21 2021-02-26 中强光电股份有限公司 Projection system and correction method of display image
JP6642610B2 (en) * 2018-03-22 2020-02-05 カシオ計算機株式会社 Projection control device, projection device, projection control method, and program
JP7148855B2 (en) * 2018-03-26 2022-10-06 カシオ計算機株式会社 PROJECTION CONTROL DEVICE, PROJECTION DEVICE, PROJECTION METHOD AND PROGRAM
CN111935465B (en) * 2019-05-13 2022-06-17 中强光电股份有限公司 Projection system, projection device and correction method of display image thereof
CN110809141A (en) * 2019-09-29 2020-02-18 深圳市火乐科技发展有限公司 Trapezoidal correction method and device, projector and storage medium
CN110738273B (en) * 2019-10-23 2023-07-21 成都极米科技股份有限公司 Image feature point matching method, device, equipment and storage medium
CN110996083A (en) * 2019-12-19 2020-04-10 成都极米科技股份有限公司 Trapezoidal correction method and device, electronic equipment and readable storage medium
CN111093067B (en) * 2019-12-31 2023-03-24 歌尔光学科技有限公司 Projection apparatus, lens distortion correction method, distortion correction device, and storage medium
CN111405258B (en) * 2020-04-30 2023-06-20 平安科技(深圳)有限公司 Projection method, apparatus, device and computer readable storage medium
CN112261396B (en) * 2020-10-26 2022-02-25 成都极米科技股份有限公司 Projection method, projection device, projection equipment and computer readable storage medium
CN112272292B (en) * 2020-11-06 2021-06-29 深圳市火乐科技发展有限公司 Projection correction method, apparatus and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180007329A1 (en) * 2015-03-19 2018-01-04 Megachips Corporation Projection system, projector apparatus, image capturing apparatus, and projection method
CN109451290A (en) * 2018-12-25 2019-03-08 广州励丰文化科技股份有限公司 Auto-correction method and system based on special-shaped projected picture
CN109873997A (en) * 2019-04-03 2019-06-11 贵安新区新特电动汽车工业有限公司 Projected picture correcting method and device
CN110996081A (en) * 2019-12-06 2020-04-10 北京一数科技有限公司 Projection picture correction method and device, electronic equipment and readable storage medium
CN112584116A (en) * 2021-02-24 2021-03-30 深圳市火乐科技发展有限公司 Projection correction method, projection correction device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN113365040B (en) 2023-03-14
CN113365041A (en) 2021-09-07
CN112584116A (en) 2021-03-30
CN112584116B (en) 2021-06-29
CN113365041B (en) 2022-03-22
CN113365040A (en) 2021-09-07
WO2022179108A1 (en) 2022-09-01

Similar Documents

Publication Publication Date Title
WO2022179109A1 (en) Projection correction method and apparatus, storage medium and electronic device
CN111935465B (en) Projection system, projection device and correction method of display image thereof
CN109104596B (en) Projection system and correction method of display image
US10554880B2 (en) Image processing system, imaging apparatus, image processing method, and computer-readable storage medium
CN112272292B (en) Projection correction method, apparatus and storage medium
US20130222776A1 (en) Image projector, method of image projection, and computer-readable storage medium storing program for causing computer to execute image projection
US9654750B2 (en) Image processing system, image processing apparatus, and image processing method to respectively display images obtained by dividing one image on first and the second display media
US8491128B2 (en) System and method for projection correction by capturing projection image
WO2022247418A1 (en) Image correction method and photographing device
JP2008152622A (en) Pointing device
JP6115214B2 (en) Pattern processing apparatus, pattern processing method, and pattern processing program
KR101428064B1 (en) Image distortion compensation apparatus and method
KR101941801B1 (en) Image processing method and device for led display screen
CN114302121A (en) Image correction inspection method, device, electronic equipment and storage medium
WO2018099128A1 (en) Method and device used in projection apparatus
CN114339179A (en) Projection correction method, projection correction device, storage medium and projection equipment
WO2024080234A1 (en) Projection device, correction device, projection system, correction method, and computer program
TW201513042A (en) Method and system for image enhancement
TW202013954A (en) Projection method and projection system
US20230040505A1 (en) Projector and control method therefor
CN117710261A (en) Image processing method and device
KR100762179B1 (en) Method for identifying point of broadcast receiving device with zoom-in function
CN115965675A (en) Image processing method and device, electronic device and storage medium
CN115278184A (en) Projection picture correction method and device
CN113379843A (en) Parameter calibration method, device and equipment for imaging system of camera module

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21927534

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE