CN117319615A - Image projection method, device, projection system and storage medium - Google Patents

Image projection method, device, projection system and storage medium Download PDF

Info

Publication number
CN117319615A
CN117319615A CN202210728008.4A CN202210728008A CN117319615A CN 117319615 A CN117319615 A CN 117319615A CN 202210728008 A CN202210728008 A CN 202210728008A CN 117319615 A CN117319615 A CN 117319615A
Authority
CN
China
Prior art keywords
projection
projector
picture
correction
lattice
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202210728008.4A
Other languages
Chinese (zh)
Inventor
杨思琪
谷飞
李屹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Appotronics Corp Ltd
Original Assignee
Appotronics Corp Ltd
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 Appotronics Corp Ltd filed Critical Appotronics Corp Ltd
Priority to CN202210728008.4A priority Critical patent/CN117319615A/en
Publication of CN117319615A publication Critical patent/CN117319615A/en
Pending legal-status Critical Current

Links

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/3141Constructional details thereof
    • H04N9/3147Multi-projection systems
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Transforming Electric Information Into Light Information (AREA)
  • Projection Apparatus (AREA)

Abstract

The embodiment of the application discloses an image projection method, an image projection device, a projection system and a storage medium, wherein the method comprises the following steps: the method comprises the steps of obtaining a first projection picture obtained by projecting a projection line graph onto a projection surface by a first projector according to a preset correction lattice, and obtaining a second projection picture obtained by projecting the projection line graph onto the projection surface by a second projector according to the preset correction lattice; calculating the coincidence ratio of the first projection picture and the second projection picture as an initial coincidence ratio; adjusting the positions of correction points in a preset correction dot matrix, and executing the steps of acquiring a second projection picture obtained by projecting a projection line graph onto a projection surface by a second projector according to the preset correction dot matrix, and calculating the coincidence degree of the first projection picture and the second projection picture until the obtained coincidence degree is highest and is greater than or equal to the initial coincidence degree; and acquiring the target correction lattice corresponding to the highest contact ratio, so that the second projector projects according to the target correction lattice, and the accuracy of superposition projection is improved.

Description

Image projection method, device, projection system and storage medium
Technical Field
The present application relates to the field of projectors, and more particularly, to an image projection method, apparatus, projection system, and storage medium.
Background
In the projection field, in order to increase the brightness of a projection screen obtained by projecting an image by a projector, the same screen is generally superimposed and projected by a plurality of projectors. However, in the related art, there is a problem in that the accuracy of the superimposed projection display screen is not high in a projection system that uses a plurality of projectors to realize superimposed projection.
Disclosure of Invention
The application provides an image projection method, an image projection device, a projection system and a storage medium, so as to improve the problems.
In a first aspect, an embodiment of the present application provides an image projection method applied to a projection system including at least two projectors, the at least two projectors including a first projector and a second projector having the same projection plane, the method including: obtaining a projection line graph according to a preset correction lattice; acquiring a first projection picture obtained by the first projector projecting the projection line graph to the projection surface according to the preset correction lattice, and acquiring a second projection picture obtained by the second projector projecting the projection line graph to the projection surface according to the preset correction lattice; calculating the coincidence ratio of the first projection picture and the second projection picture as an initial coincidence ratio; the position of a correction point in the preset correction dot matrix is adjusted, the step of obtaining a second projection picture obtained by the second projector by projecting the projection line graph to the projection surface according to the preset correction dot matrix is carried out, and the overlap ratio of the first projection picture and the second projection picture is calculated until the obtained overlap ratio is highest and is larger than or equal to the initial overlap ratio; and acquiring a target correction lattice corresponding to the highest contact ratio, so that the second projector projects according to the target correction lattice.
In a second aspect, embodiments of the present application further provide an apparatus for optimizing a stacking effect, applied to a projection system including at least two projectors, the at least two projectors including a first projector and a second projector having the same projection plane, the apparatus including: the device comprises a projection image acquisition unit, a projection unit, an overlap ratio calculation unit, a correction point adjustment unit and a target correction lattice acquisition unit. The projection image acquisition unit is used for acquiring a projection line graph according to a preset correction lattice; the projection unit is used for obtaining a first projection picture obtained by the first projector by projecting the projection line graph to the projection surface according to the preset correction lattice and obtaining a second projection picture obtained by the second projector by projecting the projection line graph to the projection surface according to the preset correction lattice; a contact ratio calculating unit for calculating the contact ratio of the first projection picture and the second projection picture as an initial contact ratio; a correction point adjustment unit, configured to adjust a position of a correction point in the preset correction lattice, and return to the step of executing the second projection picture obtained by obtaining the second projector to project the projection line graph onto the projection surface according to the preset correction lattice, and calculate a degree of overlap between the first projection picture and the second projection picture until the obtained degree of overlap is highest and is greater than or equal to the initial degree of overlap; and the target correction lattice acquisition unit is used for acquiring a target correction lattice corresponding to the highest contact ratio so that the second projector projects according to the target correction lattice.
In one embodiment, the projection line graph includes a vertical line graph and/or a horizontal line graph, and the projection image acquisition unit is further configured to obtain the vertical line graph according to a preset alignment dot matrix of the correction dot matrix; or according to the line direction lattice of the preset correction lattice, obtaining a transverse line diagram.
In one embodiment, the correction point adjustment unit is further configured to adjust the position of the correction point in the preset correction lattice in a first direction if the projection line diagram is a vertical line diagram; and if the projection line diagram is a transverse line diagram, adjusting the positions of the correction points in the preset correction dot matrix to a second direction, wherein the first direction is perpendicular to the second direction.
In one embodiment, the contact ratio calculating unit is further configured to obtain an adjusted projection image obtained by simultaneously projecting the first projection image and the second projection image on the projection surface; preprocessing the adjustment projection picture to obtain a binary image corresponding to the adjustment projection picture; calculating the line width in the binary image; and obtaining the coincidence ratio of the first projection picture and the second projection picture according to the corresponding relation between the line width and the coincidence ratio of the first projection picture and the second projection picture.
In one embodiment, the contact ratio calculating unit is further configured to perform gray-scale processing, filtering processing, and binarization processing on the adjusted projection picture, to obtain a binary image corresponding to the adjusted projection picture.
In one embodiment, the contact ratio calculating unit is further configured to perform region segmentation on the binary image according to the correction points in the preset correction lattice corresponding to the second projector when the binary image is obtained, so as to obtain a plurality of projection regions corresponding to the binary image; performing traversal calculation on each projection area to obtain the line width of each projection area; and carrying out average value calculation on the line widths of the projection areas corresponding to the binary image to obtain the line widths in the binary image.
In a third aspect, embodiments of the present application further provide a projection system, including: a first projector, a second projector, one or more processors, memory, and one or more applications. Wherein the first projector and the second projector have the same projection surface; the processor is respectively connected with the first projector and the second projector; one or more application programs are stored in the memory and configured to be executed by the one or more processors, the one or more program configurations being executed to implement the method as described in the first aspect above.
In one embodiment, the projection system further includes a camera, where the camera is configured to collect a first projection picture obtained by the first projector projecting the projection line graph onto the projection surface according to a preset correction lattice, and collect a second projection picture obtained by the second projector projecting the projection line graph onto the projection surface according to the preset correction lattice; the processor is further used for obtaining a target transformation relation according to the projection line graph and the first projection picture; according to the target transformation relation, transforming a projection picture obtained by simultaneously projecting the first projection picture and the second projection picture on the projection surface to obtain an adjusted projection picture; and calculating the coincidence ratio of the first projection picture and the second projection picture according to the adjustment projection picture.
In a fourth aspect, embodiments of the present application also provide a computer readable storage medium having stored therein program code that is callable by a processor to perform a method as described in the first aspect above.
The technical scheme provided by the invention is applied to a projection system comprising at least two projectors, wherein the at least two projectors comprise a first projector and a second projector which have the same projection plane, and a projection line graph is obtained by correcting a dot matrix according to a preset; acquiring a first projection picture obtained by the first projector projecting the projection line graph to the projection surface according to the preset correction lattice, and acquiring a second projection picture obtained by the second projector projecting the projection line graph to the projection surface according to the preset correction lattice; calculating the coincidence ratio of the first projection picture and the second projection picture as an initial coincidence ratio; the position of a correction point in the preset correction dot matrix is adjusted, the step of obtaining a second projection picture obtained by the second projector by projecting the projection line graph to the projection surface according to the preset correction dot matrix is carried out, and the overlap ratio of the first projection picture and the second projection picture is calculated until the obtained overlap ratio is highest and is larger than or equal to the initial overlap ratio; and acquiring a target correction lattice corresponding to the highest contact ratio, so that the second projector projects according to the target correction lattice. Therefore, by adopting the method, based on the projection system overlapping projection image, the correction dot matrix with the highest overlapping degree of the projection picture of the projection system overlapping projection image is obtained by adjusting the position of the correction dot in the preset correction dot matrix of the projector in the projection system, so that the projector projects the image according to the correction dot matrix, the overlapping effect of the projection system is optimized, and the overlapping precision of the projection picture in overlapping projection is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly introduced below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 shows a schematic view of a projector arranged in a vertical direction of a projection system for performing an image projection method according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a projector arranged in a horizontal direction of a projection system for performing an image projection method according to an embodiment of the present application;
FIG. 3 is a schematic view showing a projector arranged in a vertical direction and a horizontal direction of a projection system for performing an image projection method according to an embodiment of the present application;
fig. 4 is a schematic flow chart of an image projection method according to an embodiment of the present application;
fig. 5 shows a schematic diagram of a preset correction lattice of m rows by n columns;
FIG. 6 shows a schematic diagram of a vertical line diagram of n columns of vertical lines;
FIG. 7 shows a schematic diagram of a transversal diagram of an m-row transversal line;
FIG. 8 is a schematic diagram of an image acquired by performing an image projection method according to an embodiment of the present application;
Fig. 9 is a schematic diagram showing a projection image acquired by performing an image projection method according to an embodiment of the present application after being transformed by a target transformation relationship;
fig. 10 is a schematic view of a projection screen obtained by performing an image projection method according to an embodiment of the present application after region segmentation;
fig. 11 is a schematic diagram showing a calculation of a regional line width of a projection screen obtained by executing an image projection method according to an embodiment of the present application;
FIG. 12 is a schematic view showing a part of the projection screen in FIG. 10 enlarged;
fig. 13 is a schematic diagram illustrating performing traversal calculation on line widths in a projection screen according to an image projection method according to an embodiment of the present application;
FIG. 14 is a block diagram showing an image projection apparatus according to an embodiment of the present application;
FIG. 15 illustrates a block diagram of a projection system according to an embodiment of the present application;
fig. 16 shows a block diagram of a computer storage medium according to an embodiment of the present application.
Detailed Description
In order to make the present application solution better understood by those skilled in the art, the following description will clearly and completely describe the technical solution in the embodiments of the present application with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
Currently, superposition projection is a technique commonly used in the projector field to control cost and increase brightness of a projected image. Specifically, the mode of superposition projection may be that projection pictures of a plurality of low-brightness projectors are cut or scaled, and finally, the projection pictures are superposed to form a high-brightness projection picture, the image sources of each projector are the same, and the total brightness of the superposed projection picture increases linearly with the number of superposed projectors.
At present, in the common automatic overlapping projection method of the projection system, different projectors in the projection system project different test patterns, and the transformation relation between the different projectors in the projection system is obtained, so that the coordinates of the projection image are obtained through calculation, and the projection image is cut or scaled, so that the projection image with higher overlapping precision is obtained. However, the method is required to be controlled manually and accurately, is greatly influenced by the picture shooting precision of the camera, and has high requirements on equipment and technology because the method is used for obtaining the superposition projection effect of the projection image with high precision.
Accordingly, in the related art, there is a problem that the projection screen overlapping accuracy for realizing the overlapping projection by a plurality of projectors is low.
In order to alleviate the above-mentioned problems, the inventor of the present application proposes an image projection method, apparatus, device and storage medium provided in an embodiment of the present application, which are applied to a projection system including at least two projectors, where the at least two projectors include a first projector and a second projector having the same projection plane. The method comprises the following steps: obtaining a projection line graph according to a preset correction lattice; the method comprises the steps of obtaining a first projection picture obtained by projecting a projection line graph onto a projection surface by a first projector according to a preset correction lattice, and obtaining a second projection picture obtained by projecting the projection line graph onto the projection surface by a second projector according to the preset correction lattice; calculating the coincidence ratio of the first projection picture and the second projection picture as an initial coincidence ratio; the position of a correction point in a preset correction dot matrix is adjusted, and the step of obtaining a second projection picture obtained by projecting a projection line graph onto a projection surface by a second projector according to the preset correction dot matrix is carried out in a return mode, and the overlapping ratio of the first projection picture and the second projection picture is calculated until the obtained overlapping ratio is the highest and is larger than or equal to the initial overlapping ratio; and acquiring a target correction lattice corresponding to the highest contact ratio so that the second projector projects according to the target correction lattice. Therefore, by adopting the method, the projection picture with high brightness is obtained by utilizing the superposition projection of the plurality of projectors, the cost of obtaining the projection picture with high brightness by the projection system is effectively reduced, meanwhile, the correction lattice with the highest overlapping ratio of the projection picture of the projector for realizing the superposition projection picture in the projection system is obtained by adjusting the preset correction lattice of the projector in the projection system based on the superposition projection picture of the projection system, so that the projector projects the image according to the correction lattice, the superposition effect of the projection system is optimized, and the overlapping ratio of the superposition projection is increased.
The image projection method is applied to a projection system comprising at least two projectors, wherein the at least two projectors comprise a first projector and a second projector which have the same projection plane.
The projection system is an optical system for imaging an object on a projection screen after illumination, and is suitable for any projector, a liquid crystal screen, an LED large screen, a plasma, a digital video wall, etc., specifically, the projector may be a laser projector, an LED projector, a CRT projector, an LCD projector, a DLP projector, an LCOS projector, a conventional light source projector, and other types of devices with projection functions, which are not limited herein.
For example, referring to fig. 1, 2 and 3, fig. 1 shows a schematic view of a projection system in which projectors are arranged in a vertically stacked manner; FIG. 2 shows a schematic diagram of a projection system with a projector arranged in a horizontal orientation; fig. 3 shows a schematic view of a projection system with a projector arranged in a horizontal and vertical superimposed manner.
It should be noted that, in addition to the projector overlapping and arranging in the horizontal direction and the vertical direction, the projection system for executing the image projection method provided in the embodiment of the present application may also overlap and arrange the projectors in a fan-shaped manner or other different manners, so that the projection images projected by the projectors in the projection system are in the same display area (i.e., the projectors have the same projection plane). The manner in which a particular projection system disposes the projector is not limited herein.
The same projection plane can be understood as a picture emitted by different projectors in the projection system, and more than 90% of the pictures are overlapped in a preset direction, that is, the overlapping range of the pictures emitted by different projectors in the projection system is more than 90% of the pictures in the preset range, that is, the pictures can be considered as the same projection plane. The distance between the different projectors and the projection surface in the projection system is not limited herein.
The first projector may be any one of at least two projectors included in the projection system. The projection system may include three parallel projectors, and the first projector may be a central projector of the three parallel projectors; the projection system includes nine projectors, such as 3 x 3 projectors, positioned such that the first projector may be a centrally located projector of the nine projectors.
Further, the second projector may be any one of at least two projectors included in the projection system other than the first projector.
The projection plane refers to a plane on which a projection screen of the projector is displayed. In some embodiments, the projection surface of the projection system may be a wall surface, a curtain, a floor, a ceiling, a particular landscape, or the like. Specifically, the projection plane of the projector in the projection system is not limited herein.
Embodiments of the present application will be described in detail below with reference to the accompanying drawings.
Referring to fig. 4, fig. 4 is a flow chart illustrating an image projection method according to an embodiment of the present application, where the method is applied to a projection system including at least two projectors, and the at least two projectors include a first projector and a second projector having the same projection plane. Referring to fig. 4, the method at least includes steps S110 to S150.
Step S110: and obtaining a projection line graph according to the preset correction lattice.
Each projector is provided with a correction dot matrix, the correction dot matrix of the projector is selected according to the required correction precision of the projector, the application scene of the projector and the like, and the larger the dimension of the correction dot matrix is, the higher the precision of a projection picture of the projector corrected by the correction dot matrix is.
In some embodiments, the projection condition of the projector is controlled by the software program, and the correction lattice dimension of the projection line graph is configured according to the first instruction of the software program, so that multi-scene adaptation is realized. The first instruction can be actively set in the software program by a user; the correction lattice dimension of the projection line graph can be configured by pre-storing and setting the correction lattice dimension in a software program, wherein the correction lattice dimension is obtained through third-party experimental data, so that multi-scene adaptation is realized, and the efficiency and the universality of image projection are improved.
In some embodiments, the predetermined correction lattice is a correction lattice of each projector in the projection system, i.e., the correction lattice of each projector in the projection system is the same and is the predetermined correction lattice. The preset correction dot matrix may be a four-dot correction dot matrix, a nine-dot correction dot matrix, a sixteen-dot correction dot matrix, and the like, which is not limited herein.
It should be understood that the preset correction lattice may be pre-stored in the projection system, or may be obtained by the projection system from an associated cloud or electronic device through a wireless communication technology (such as WiFi, bluetooth, zigbee, etc.), or may be obtained from an associated electronic device through a serial communication interface, which is not limited herein.
It should be noted that, for a picture, the positions of some feature points of the picture may be selected to represent the positions of the picture, for example, four corner points of the image may be selected as feature points, or nine corner points of the image may be selected as feature points, and specifically, the nine corner points may be points where four corner angles of the image are located, a center point of four sides of the image, and a center point of the image, and through these feature points, an offset transformation relationship or a deflection transformation relationship of the image may be obtained. Similarly, the correction lattice of the projector can select four or nine corner points of the image as correction points, and an offset conversion relationship or a deflection conversion relationship between the image and a projection picture obtained by projecting the image by the projector is obtained through the correction points.
In some embodiments, the projection line graph includes a vertical line graph and/or a horizontal line graph, and obtaining the projection line graph according to the preset correction lattice may be obtaining the vertical line graph according to an alignment lattice of the preset correction lattice; or according to the line direction lattice of the preset correction lattice, obtaining a transverse line diagram. If the preset correction dot matrix is nine-dot correction dot matrix, the straight line where the correction dot in the same row is located in the correction dot matrix forms a correction line, the correction dot matrix is formed by a plurality of correction lines, and the correction lines form a transverse line diagram; the straight line where the correction points of the same row in the correction dot matrix are located forms a correction line, the correction points of the plurality of rows in the correction dot matrix form a plurality of correction lines, and the correction lines form a vertical line diagram.
For example, please refer to fig. 5, 6 and 7. Wherein fig. 5 shows a schematic diagram of a preset correction lattice of m rows by n columns; FIG. 6 shows a vertical line graph of n columns of vertical lines obtained from the column-wise lattice of the preset correction lattice shown in FIG. 5; fig. 7 shows a transverse line diagram of m transverse lines obtained from the row direction lattice of the preset correction lattice shown in fig. 5.
It should be understood that the image projected by the projector may be represented by a line graph, and the line graph is designed according to the distribution of correction points of the projector, so that the projection screen obtained by projecting the line graph by the projector according to the correction points ensures that the correction points in each correction point are on the line in the projection screen, so as to obtain an offset conversion relationship or a deflection conversion relationship between the image and the projection screen obtained after projection according to the positions of the correction points in the projection screen, and the like.
Step S120: and acquiring a first projection picture obtained by the first projector by projecting the projection line graph to the projection surface according to the preset correction lattice, and acquiring a second projection picture obtained by the second projector by projecting the projection line graph to the projection surface according to the preset correction lattice.
In some embodiments, the projection system includes a camera or a vision sensor, and the camera or the vision sensor may be configured to collect a first projection picture obtained by projecting a projection line graph onto a projection surface by a first projector according to a preset correction lattice, and project a projection line graph onto the projection surface by a second projector according to the preset correction lattice to obtain a plurality of second projection pictures.
It should be noted that, the image collected by the camera may include a projected image obtained by all projectors when projecting the line image and a blank image of some non-projected images. The blank screen is a screen outside the projection area where the projection line diagram of the projector is displayed on the projection surface.
For example, referring to fig. 8, fig. 8 is an image captured by a camera, a dashed box in fig. 8 is a projection area, and a projection line pattern projected by a projector is a vertical line pattern.
In some embodiments, after the projection system acquires the image acquired by the camera, the projection system may obtain the target transformation relationship according to the image acquired by the camera and the projection line pattern projected by the projector. The object transformation relation can be obtained by taking one vertex of the image as an original point and two sides of the image with the vertex as an intersection point as an abscissa and an ordinate respectively according to the image acquired by the camera and a projection line graph projected by the projector, and a coordinate system is established to obtain the coordinates of the characteristic points of the image in the coordinate system; taking one vertex of the projection line graph as an origin, taking two sides of the projection line graph with the vertex as an intersection point as an abscissa and an ordinate respectively, and establishing a coordinate system to obtain coordinates of characteristic points of the projection line graph; and obtaining the target transformation relation between the image and the projection line graph according to the coordinates of the characteristic points of the image and the coordinates of the characteristic points of the projection line graph by using a coordinate transformation method.
The feature points may be, but not limited to, a center point, a highest luminance point, a maximum luminance change point, an edge point, and the like of the image. The feature points of the selected image need to correspond to the feature points of the projection line map.
In other embodiments, the target transformation relationship may be obtained by the projection system from an image acquired by the camera and a feature image projected by the projector. Specifically, a first projector projects a feature image; the camera acquires an image of the characteristic image projected by the first projector to a projection surface; the projection system obtains position coordinates of characteristic points of the acquired image in a coordinate system established based on the fact that two vertical sides of the acquired image are respectively an abscissa axis and an ordinate axis; obtaining position coordinates of feature points of the image correspondingly acquired in a coordinate system established based on two sides perpendicular to the feature image as an abscissa axis and an ordinate axis respectively; the projection system calculates the target transformation relation between the acquired image and the characteristic image projected by the projector according to the position coordinates of the characteristic points of the acquired image and the point coordinates of the characteristic points of the corresponding acquired image in the characteristic image by using a coordinate transformation method.
The position coordinates of the feature points in the above process may also be obtained by other coordinate systems, which are not limited herein; the feature image may be a checkerboard pattern, a grid pattern, a circle pattern, a dot pattern, a line pattern, or the like, and is not limited herein.
In some embodiments, after the projection system obtains the target transformation relationship, the projection system may respectively transform the first projection picture and the second projection picture on the projection plane according to the target transformation relationship, so as to obtain an adjusted projection picture in which the transformed first projection picture and the transformed second projection picture are projected on the projection plane at the same time; the projection screen in which the first projection screen and the second projection screen are superimposed on each other, which are projected onto the projection surface at the same time, may be converted based on the target conversion relationship, and an adjustment projection screen in which the first projection screen and the second projection screen are projected onto the projection surface at the same time may be obtained.
For example, referring to fig. 8 and 9, fig. 8 is an image acquired by a camera, and the projection system transforms fig. 8 according to a target transformation relationship to obtain a transformed image as shown in fig. 9.
When the projection picture is transformed by using the target transformation relationship, since the projection picture obtained according to the preset correction lattice is not a picture completely corresponding to the correction point, errors may exist, and therefore when the camera is used for capturing an image, a blank picture area with an area smaller than the area threshold is included in the image as a design margin, so that errors of the projection picture of the projector are reduced, and the lines in the projection picture are easier to find.
The regional threshold value can be stored in the projection system in advance, can be obtained from the associated equipment or cloud end through a wireless communication technology, and can be obtained from the associated equipment through a serial port communication interface; the size of the area threshold can be set by a user independently, and can also be obtained through third-party experimental data. For example, the area threshold is pre-stored in the projection system, and the size of the area threshold is 1/3 of the size of the projection area in the image acquired by the camera through the third party experimental data.
Step S130: and calculating the coincidence ratio of the first projection picture and the second projection picture as an initial coincidence ratio.
In some embodiments, calculating the overlap ratio of the first projection screen and the second projection screen may be to obtain an adjusted projection screen obtained by simultaneously projecting the first projection screen and the second projection screen on the projection surface; preprocessing an adjusted projection picture to obtain a binary image corresponding to the adjusted projection picture; calculating the line width in the binary image; and obtaining the coincidence ratio of the first projection picture and the second projection picture according to the corresponding relation between the line width and the coincidence ratio of the first projection picture and the second projection picture. Wherein the line width may be inversely related to the overlap ratio of the first projection screen and the second projection screen.
In some embodiments, the preprocessing is performed on the adjusted projection screen to obtain a binary image corresponding to the adjusted projection screen, and the graying processing, the filtering processing and the binarizing processing are performed on the adjusted projection screen to obtain a binary image corresponding to the adjusted projection screen.
Optionally, calculating the line width in the binary image may be that, according to a correction point in a preset correction lattice corresponding to the second projector, region segmentation is performed on the binary image to obtain a plurality of projection regions corresponding to the binary image; performing traversal calculation on each projection area to obtain the line width of each projection area; and carrying out average value calculation on the line widths of the projection areas corresponding to the binary image to obtain the line widths in the binary image.
As an implementation manner, according to the positions of the correction points in the preset correction lattice corresponding to the second projector, performing region segmentation on the binary image to obtain a plurality of projection regions corresponding to the binary image, wherein if the projection line diagram is a vertical line diagram, performing lateral segmentation on the binary image according to the correction points in the preset correction lattice; if the projection line diagram is a horizontal line diagram, vertically dividing the binary image according to correction points in a preset correction dot matrix; in the binary image, the lines are divided equally according to the line-to-line intervals.
For example, referring to fig. 10 and 11, the projection line diagram is a vertical line diagram, and the binary image corresponding to the projection line diagram is cut into 9×9 projection areas as shown in fig. 10 according to the correction points in the preset correction dot matrix 9×9 corresponding to the second projector and the average division between the lines according to the line-to-line interval, and each projection area corresponds to one line segment in the vertical line diagram. As shown in fig. 11, for a line segment in a projection area with a correction point as a longitudinal center, line width calculation is performed on a correction point of a vertical edge of a binary image; and calculating the line width of a line segment in one projection area of the projection area where the correction point is positioned for the correction point positioned in the middle of the binary image.
In some embodiments, the line shape of the lines in the projected image may be irregular due to the effect of the projector on projection, environmental factors during projection, and the quality of the image captured by the camera.
For example, referring to fig. 10 and 12, fig. 12 shows a case where a line type defect may exist after the projection screen in fig. 10 is partially enlarged, and a case where the width of a line corresponding to the same line segment in the projection line diagram in the projection area is unequal, misaligned, crossed, broken, etc. may exist in the projection screen after adjustment on the projection surface. The dashed box is a projection area in the projection screen.
In some embodiments, considering that the adjustment projection image may have the situation that the widths of the lines of the same line segment in the projection line map corresponding to the projection area are unequal, misaligned, crossed, disconnected, and the like, calculating the line widths in the binary image may be performing traversal calculation on a plurality of projection areas corresponding to the binary image, to obtain the line widths in different positions in each projection area; and calculating the average value, the mode value, the median value, the arithmetic average value and the like of the line widths in different positions in a plurality of projection areas corresponding to the binary image as the line width in the binary image.
In an optional implementation manner provided in the embodiment of the present application, considering that an error of a line width in an obtained binary image is reduced, according to a correction point in a preset correction lattice, region segmentation may be performed on the binary image, so as to obtain a plurality of projection regions corresponding to the binary image; performing traversal calculation on each projection area to obtain the line width of each projection area; and carrying out average value calculation on the line widths of the projection areas corresponding to the binary image to obtain the line widths in the binary image.
For example, referring to fig. 13, if the projection line is a vertical line, a starting point of the line width may be obtained by traversing from the starting position of the projection area in the lateral direction; transversely extending from the end point of the area line width; subtracting the starting point and the ending point of the width of the corresponding line of the projection area to obtain the line width of the pixel row; then traversing and calculating all line widths in the projection area longitudinally; carrying out average value calculation on the line width of each projection area according to the areas to obtain the average line width of each area; and carrying out average value calculation on the line widths of the projection areas corresponding to the binary image to obtain the line widths in the binary image. The line width of each projection area is calculated by adopting the line width average value in the projection area, and the branched lines in the projection area are combined to carry out line width calculation, so that the error of line width calculation is reduced.
The initial contact ratio may be the contact ratio of the first projection picture and the second projection picture obtained by calculating the first projector and the second projector according to the picture on the projection plane of the preset correction dot matrix projection line map, that is, the initial precision of overlapping projection of the projection system.
In some embodiments, to obtain the superposition of projection patterns of different projectors in the projection surface system, a cartesian coordinate system may be established with one vertex in a picture on a projection surface acquired by a camera as an origin, and two sides with the vertex as an intersection point as an abscissa axis and an ordinate axis, respectively. According to the Cartesian coordinate system, the original coordinate of a certain correction point in a preset correction dot matrix in the picture is obtained, and the first line width of the projection picture corresponding to the correction point is calculated, so that the coincidence ratio of projection line patterns of different projectors in the projection system is obtained.
Step S140: and adjusting the positions of the correction points in the preset correction dot matrix, and returning to the step of executing the second projection picture obtained by the second projector according to the preset correction dot matrix to project the projection line graph to the projection surface, and calculating the contact ratio of the first projection picture and the second projection picture until the obtained contact ratio is the highest and is greater than or equal to the initial contact ratio.
In some embodiments, when the first projector and the second projector both project the vertical line graph, overlapping images of the first projection picture and the second projection picture obtained on the projection surface correspond to the horizontal overlapping precision of the projection pictures obtained by overlapping the vertical line graph by the projection system; when the first projector and the second projector both project the transverse line diagram, the overlapping images of the first projection picture and the second projection picture obtained on the projection surface correspond to the longitudinal overlapping precision of the projection pictures obtained by overlapping the transverse line diagram by the projection system.
In some embodiments, the positions of the correction points in the preset correction dot matrix are adjusted, that is, if the projection line diagram is a vertical line diagram, the positions of the correction points in the preset correction dot matrix are adjusted towards the first direction; if the projection line diagram is a transverse line diagram, the positions of the correction points in the preset correction lattice are adjusted to the second direction. Wherein the first direction may be left or right and the second direction may be up or down. Wherein the first direction may be perpendicular to the second direction.
Optionally, the position of the correction point in the preset correction dot matrix is adjusted, and the projection system or an electronic device or a cloud associated with the projection system can control the correction point in the preset correction dot matrix to move in a first direction or move in a second direction through a software program so as to adjust a projection picture emitted by the second projector; the positions of the correction points in the preset correction dot matrix can be adjusted through manual operation, and the projection picture emitted by the second projector can be adjusted.
In an optional implementation manner provided in this embodiment of the present application, in consideration of accuracy and efficiency of adjusting positions of correction points in a preset correction lattice, a manner of adjusting positions of correction points in the preset correction lattice is operated by a software program, so as to improve accuracy and efficiency of adjusting positions of correction points in the preset correction lattice.
In some embodiments, the positions of the correction points in the preset correction lattice are adjusted, and the second projector is returned to execute the steps of obtaining a second projection picture obtained by projecting a projection line image onto a projection surface according to the preset correction lattice, and calculating the overlap ratio of the first projection picture and the second projection picture until the obtained overlap ratio is the highest and is greater than or equal to the initial overlap ratio, wherein, in order to improve the overlap ratio of the first projection picture and the second projection picture, the correction points in the preset correction lattice are controlled to move from the positions corresponding to the initial overlap ratio to the first direction or the second direction so as to adjust the position coordinates of the correction points.
After the positions of the correction points in the preset correction point matrix are adjusted, a second projection picture obtained by projecting the projection line graph to the projection surface by the second projector according to the preset correction point matrix with the positions of the correction points adjusted is obtained. And calculating the coincidence ratio of the first projection picture and the second projection picture.
In some embodiments, after adjusting the position of the correction point in the preset correction dot matrix, obtaining a second projection picture obtained by projecting the projection line graph onto the projection surface by the second projector according to the preset correction dot matrix with the position of the correction point adjusted, and calculating the coincidence ratio of the first projection picture and the second projection picture, which may be based on calculating the initial coincidence ratio, that is, the first line width, and the established cartesian coordinate system, calculating the coincidence ratio of the first projection picture and the second projection picture, that is, the second line width, and if the first line width is greater than the second line width, continuing to move the position of the correction point in the moving direction; if the first line width is smaller than the second line width, the position of the correction point is adjusted in the opposite direction of the position of the correction point in the preset correction, which is adjusted by acquiring the second line width, and the position of the correction point in the preset correction is adjusted. The first line width is the line width in the adjusted projection picture corresponding to the initial coincidence degree, the second line width is the line width in the adjusted projection picture obtained by simultaneously projecting the second projection picture obtained by the second projector according to the projection line diagram of the preset correction lattice and the first projection picture on the projection plane after adjusting the position of the correction point in the preset correction lattice.
And if the line width of the first projection picture and the second projection picture on the projection surface is changed from the reduced line width to the enlarged line width, and the line width is changed from the reduced line width to the minimum line width in the enlarged line width, namely the line width is the maximum corresponding to the first projection picture and the second projection picture. If the positions of the correction points are adjusted in the forward direction or the backward direction in the first direction or the second direction, the line widths of the first projection picture and the second projection picture on the projection surface are increased, and the line widths of the first projection picture and the second projection picture on the projection surface, which are overlapped at the beginning, are determined to be minimum, namely the line widths corresponding to the first projection picture and the second projection picture are maximum.
In some embodiments, if the line width in the corrected point area after adjustment is reduced, the line width value in the corrected point area and the coordinate adjustment value of the corrected point are recorded, and if the line width change is changed from smaller to larger when the line width is adjusted in a certain direction, the line width value recorded at this time is the minimum value, that is, the overlap ratio of the first projection picture and the second projection picture is the highest. If the line width values of the forward adjustment and the reverse adjustment become larger, the original value is the minimum value, namely the initial contact ratio is the highest contact ratio.
It should be understood that the line width of the first projection screen overlapping the second projection screen is inversely related to the overlap ratio of the first projection screen and the second projection screen, i.e. the larger the line width of the first projection screen overlapping the second projection screen is, the smaller the overlap ratio of the first projection screen and the second projection screen is.
In some embodiments, the method includes the steps of adjusting positions of correction points in a preset correction lattice, returning to execute the step of obtaining a second projection picture obtained by projecting a projection line graph onto a projection surface by a second projector according to the preset correction lattice, calculating the contact ratio of a first projection picture and the second projection picture until the obtained contact ratio is the highest and greater than or equal to the initial contact ratio, adjusting positions of the correction points in the preset correction lattice to obtain a plurality of adjustment correction lattices, obtaining a first projection picture obtained by projecting the projection line graph onto the projection surface by the first projector according to the preset correction lattice, obtaining a plurality of second projection pictures by projecting the projection line graph onto the projection surface by the second projector according to each adjustment correction lattice, and obtaining a target projection picture with the highest contact ratio with the first projection picture from the plurality of second projection pictures.
The obtaining of the target projection picture with the highest overlap ratio with the first projection picture from the plurality of second projection pictures may be obtaining an adjustment projection picture corresponding to each second projection picture obtained by simultaneously projecting the first projection picture and each second projection picture on the projection plane, preprocessing each adjustment projection picture to obtain a plurality of binary images, calculating the line width in each binary image, and obtaining the second projection picture corresponding to the line width smaller than the width threshold as the target projection picture.
The width threshold may be preset and stored in the projection system, or may be obtained from an associated cloud or electronic device through a wireless communication technology, or may be obtained from an associated electronic device through a serial communication interface, which is not limited herein. The width threshold value can be set by a user independently or can be obtained through third-party experimental data; the width threshold value can be set according to the requirement of the projection system on the overlapping effect, wherein the higher the overlapping effect requirement is, the higher the overlapping precision requirement is, and the smaller the correspondingly set width threshold value is.
It can be understood that the second projection picture corresponding to the line width smaller than the width threshold is obtained as the target projection picture, that is, the target projection picture with the highest overlap ratio with the first projection picture is obtained. The line width is smaller than a width threshold, namely the overlapping ratio of the second projection picture and the first projection picture meets the requirement of the projection system on the overlapping effect, the target projection picture with the highest overlapping ratio with the first projection picture is obtained, the overlapping precision of the projection system is improved, meanwhile, the line width is compared with the width threshold, the target projection image is obtained, and the efficiency of obtaining the high-precision projection system is improved.
If the line width is smaller than the width threshold, selecting a second projection picture corresponding to the line with the smallest line width among the lines as a target projection image; or randomly selecting a second projection picture corresponding to one line in the plurality of lines as a target projection image; and selecting a second projection picture corresponding to a line with a median line width value from the plurality of lines as a target projection image, which is not limited herein.
In an implementation manner provided in this embodiment of the present application, in consideration of improving the overlay accuracy of the projection system, if there are multiple lines with a line width smaller than the width threshold, a second projection image corresponding to a line with a minimum line width in the multiple lines may be selected as the target projection image, so as to improve the overlay accuracy of the projection system.
Step S150: and acquiring a target correction lattice corresponding to the highest contact ratio, so that the second projector projects according to the target correction lattice.
In some embodiments, the highest degree of coincidence is greater than the initial degree of coincidence, and the obtaining the target correction lattice corresponding to the highest degree of coincidence may be obtaining the preset correction lattice of the projected image of the second projector corresponding to the highest degree of coincidence as the target correction lattice.
In some embodiments, the highest degree of overlap is equal to the initial degree of overlap, that is, the position of the correction point in the preset correction lattice is adjusted, and the second projection picture obtained by the second projector projecting the projection line image onto the projection surface according to the preset correction lattice is returned to be acquired, and in the process of calculating the degree of overlap of the first projection picture and the second projection picture, the degree of overlap of the first projection picture and the second projection picture obtained by calculation is less than or equal to the initial degree of overlap, and then the preset correction lattice corresponding to the first projector is confirmed to be the correction lattice with the best overlapping effect of the projection image projected by the projector in the projection system, and the preset correction lattice is confirmed to be the target correction lattice.
In some embodiments, after the target correction lattice corresponding to the highest contact ratio is obtained, so that the second projector projects according to the target correction lattice, the projection system may use a communication protocol (such as IIC protocol, SPI protocol, UART protocol, etc.) to set the target adjustment correction lattice into the second projector, so that the second projector projects according to the target adjustment correction lattice.
The technical scheme provided by the embodiment of the application is applied to a projection system comprising at least two projectors, wherein the at least two projectors comprise a first projector and a second projector with the same projection surface, and a projection line graph is obtained by correcting a dot matrix according to a preset; the method comprises the steps of obtaining a first projection picture obtained by projecting a projection line graph onto a projection surface by a first projector according to a preset correction lattice, and obtaining a second projection picture obtained by projecting the projection line graph onto the projection surface by a second projector according to the preset correction lattice; calculating the coincidence ratio of the first projection picture and the second projection picture as an initial coincidence ratio; the position of a correction point in a preset correction dot matrix is adjusted, and the step of obtaining a second projection picture obtained by projecting a projection line graph onto a projection surface by a second projector according to the preset correction dot matrix is carried out in a return mode, and the overlapping ratio of the first projection picture and the second projection picture is calculated until the obtained overlapping ratio is the highest and is larger than or equal to the initial overlapping ratio; and acquiring a target correction lattice corresponding to the highest contact ratio, so that the second projector projects according to the target correction lattice. Therefore, by adopting the method, based on the projection system overlapping projection image, the correction dot matrix with the highest overlapping degree of the projection image of the projector for realizing the overlapping projection image in the projection system is obtained by adjusting the preset correction dot matrix of the projector in the projection system, so that the projector projects the image according to the correction dot matrix, the overlapping projection effect of the projection system is optimized, and the overlapping projection precision of the projection system is improved.
Referring to fig. 14, an image projection apparatus according to an embodiment of the present application is applied to a projection system including at least two projectors, where the at least two projectors include a first projector and a second projector having the same projection plane. The apparatus 200 includes: a projection image acquisition unit 210, a projection unit 220, an overlap ratio calculation unit 230, a correction point adjustment unit 240, and a target correction lattice acquisition unit 250. Wherein, the projection image obtaining unit 210 is configured to obtain a projection line map according to a preset correction lattice; a projection unit 220, configured to obtain a first projection picture obtained by the first projector projecting the projection line graph onto the projection surface according to the preset correction lattice, and obtain a second projection picture obtained by the second projector projecting the projection line graph onto the projection surface according to the preset correction lattice; a contact ratio calculating unit 230, configured to calculate a contact ratio between the first projection screen and the second projection screen as an initial contact ratio; a correction point adjustment unit 240, configured to adjust a position of a correction point in the preset correction lattice, and return to the step of executing the second projection picture obtained by obtaining the second projector to project the projection line graph onto the projection surface according to the preset correction lattice, and calculate a contact ratio between the first projection picture and the second projection picture until the obtained contact ratio is highest and is greater than or equal to the initial contact ratio; and the target correction lattice acquisition unit 250 is configured to acquire a target correction lattice corresponding to the highest overlap ratio, so that the second projector projects according to the target correction lattice.
In one embodiment, the projected line graph includes a vertical line graph and/or a horizontal line graph, and the projected image obtaining unit 210 is further configured to obtain the vertical line graph according to a preset alignment lattice of the correction lattice; or according to the line direction lattice of the preset correction lattice, obtaining a transverse line diagram.
In one embodiment, the correction point adjustment unit 240 is further configured to adjust the positions of the correction points in the preset correction lattice in the first direction if the projection line diagram is a vertical line diagram; and if the projection line diagram is a transverse line diagram, adjusting the positions of the correction points in the preset correction dot matrix to a second direction, wherein the first direction is perpendicular to the second direction.
In one embodiment, the contact ratio calculating unit 230 is further configured to obtain an adjusted projection image obtained by simultaneously projecting the first projection image and the second projection image on the projection surface; preprocessing the adjustment projection picture to obtain a binary image corresponding to the adjustment projection picture; calculating the line width in the binary image; and obtaining the coincidence ratio of the first projection picture and the second projection picture according to the corresponding relation between the line width and the coincidence ratio of the first projection picture and the second projection picture.
In one embodiment, the contact ratio calculating unit 230 is further configured to perform a graying process, a filtering process, and a binarizing process on the adjusted projection frame, so as to obtain a binary image corresponding to the adjusted projection frame.
In one embodiment, the contact ratio calculating unit 230 is further configured to perform region segmentation on the binary image according to the correction points in the preset correction lattice corresponding to the second projector when the binary image is obtained, so as to obtain a plurality of projection regions corresponding to the binary image; performing traversal calculation on each projection area to obtain the line width of each projection area; and carrying out average value calculation on the line widths of the projection areas corresponding to the binary image to obtain the line widths in the binary image.
By adopting the technical scheme provided by the application, a projection line graph is obtained by correcting the dot matrix according to the preset; the method comprises the steps of obtaining a first projection picture obtained by projecting a projection line graph onto a projection surface by a first projector according to a preset correction lattice, and obtaining a second projection picture obtained by projecting the projection line graph onto the projection surface by a second projector according to the preset correction lattice; calculating the coincidence ratio of the first projection picture and the second projection picture as an initial coincidence ratio; the position of a correction point in a preset correction dot matrix is adjusted, and the step of obtaining a second projection picture obtained by projecting a projection line graph onto a projection surface by a second projector according to the preset correction dot matrix is carried out in a return mode, and the overlapping ratio of the first projection picture and the second projection picture is calculated until the obtained overlapping ratio is the highest and is larger than or equal to the initial overlapping ratio; and acquiring a target correction lattice corresponding to the highest contact ratio, so that the second projector projects according to the target correction lattice. The method comprises the steps of dividing the obtained adjustment projection pictures obtained by simultaneously projecting a first projection picture and a second projection picture on a projection surface into areas, calculating line widths in all areas in the adjustment projection pictures, obtaining a target correction lattice corresponding to the highest contact ratio from a plurality of second projection pictures according to the corresponding relation between the line widths and the contact ratio of the first projection picture and the second projection picture, and obtaining the target correction lattice corresponding to the highest contact ratio from a plurality of second projection pictures, so that the second projector projects according to the target correction lattice, the brightness of the projection picture obtained by projecting an image by a projection system is increased, and the superposition projection precision of the projection system is improved.
It should be noted that, each embodiment of the present disclosure is described in a progressive manner, and each embodiment is mainly described in a different manner from other embodiments, and identical and similar parts between the embodiments are all enough to be referred to each other. For the apparatus class embodiments, the description is relatively simple as it is substantially similar to the method embodiments, and reference is made to the description of the method embodiments for relevant points. Any of the described processing manners in the method embodiment may be implemented by a corresponding processing module in the device embodiment, which is not described in detail in the device embodiment.
Referring to fig. 15, based on the above-mentioned image projection method, another projection system including a projection system capable of performing the above-mentioned image projection method is provided, and the projection system 300 includes: a first projector 310, a second projector 320, one or more processors 330, memory 340, and one or more applications. Wherein the second projector 310 and the second projector 320 have the same projection surface; the memory 340 stores therein a program that can execute the contents of the foregoing embodiments, and the processor 330 is connected to the first projector 310 and the second projector 320, respectively, and the processor 310 can execute the program stored in the memory 340. Among these, the projection system 300 may be a CRT large screen projection system, a DLP large screen projection system, an LCD large screen projection system, a PDP plasma large screen projection system, or the like.
Specifically, a projector, also called a projector, is a device capable of projecting images or videos onto a curtain, and playing corresponding video signals by connecting different interfaces with a computer, VCD, DVD, BD, a game console, a DV, etc. Projectors are widely used in homes, offices, schools, and entertainment venues, and are available in different types, such as CRT, LCD, DLP, etc., depending on the manner in which they are operated. Classifying according to interface categories: VGA interface projector, HDMI interface projector, and network projector. The performance indexes of the projector include: light output, horizontal scan frequency, vertical scan frequency, video bandwidth, resolution, convergence, etc.
The first projector 310 and the second projector 320 may be a conventional bulb machine, an LED projector, or a laser projector; the first projector 310 and the second projector 320 may be the same type of projector or different types of projector, and are not limited herein.
The processor 330 is connected to the first projector 310 and the second projector 320, respectively. In some implementations, the processor 330 and the first projector 310 and the second projector 320 may be communicatively connected via wireless communication technology (e.g., wiFi, bluetooth, zigbee, etc. technology); the processor 330 may also be communicatively coupled to the first projector 310 and the second projector 320 via a serial communication interface (e.g., SPI), without limitation.
Processor 330 may include one or more cores for processing data and a message matrix unit. Processor 330 connects various portions of the overall projection system 300 using various interfaces and lines to perform various functions of the projection system 300 and to process data by executing or executing instructions, programs, code sets, or instruction sets stored in memory 340, and invoking data stored in memory 340. Alternatively, the processor 330 may be implemented in hardware in at least one of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), programmable logic array (Programmable Logic Array, PLA). The processor 330 may integrate one or a combination of several of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), and a modem, etc. The CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for being responsible for rendering and drawing of display content; the modem is used to handle wireless communications. It will be appreciated that the modem may not be integrated into the processor and may be implemented solely by a single communication chip.
The Memory 340 may include a random access Memory (Random Access Memory, RAM) or a Read-Only Memory (Read-Only Memory). Memory 340 may be used to store instructions, programs, code, a set of codes, or a set of instructions. The memory 340 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the various method embodiments described above, and the like. The storage data area may also store data created by the terminal in use (e.g., audio data, text data, image data), etc.
In some embodiments, the projection system 300 further includes a camera, where the camera is configured to collect a first projection picture obtained by the first projector 310 projecting the projection line graph onto the projection surface according to the preset correction lattice, and collect a second projection picture obtained by the second projector 320 projecting the projection line graph onto the projection surface according to the preset correction lattice; the processor 330 is further configured to obtain a target transformation relationship according to the projection line map and the first projection screen; according to the target transformation relation, transforming the projection pictures obtained by simultaneously projecting the first projection picture and the second projection picture on the projection surface to obtain an adjusted projection picture; and calculating the coincidence ratio of the first projection picture and the second projection picture according to the adjusted projection picture.
Referring to fig. 16, a block diagram of a computer readable storage medium according to an embodiment of the present application is shown. The computer readable storage medium 400 has stored therein program code 410, the program code 410 being executable by a processor to perform the method described in the above method embodiments.
The computer readable storage medium 400 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer readable storage medium 400 comprises a non-volatile computer readable medium (non-transitory computer-readable storage medium). The computer readable storage medium 400 has storage space for program code 310 that performs any of the method steps described above. These program code 410 can be read from or written to one or more computer program products. The program code may be compressed, for example, in a suitable form.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and are not limiting thereof; although the present application has been described in detail with reference to the foregoing embodiments, one of ordinary skill in the art will appreciate that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not drive the essence of the corresponding technical solutions to depart from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (10)

1. An image projection method, for use in a projection system comprising at least two projectors, the at least two projectors including a first projector and a second projector having a same projection surface, the method comprising:
obtaining a projection line graph according to a preset correction lattice;
acquiring a first projection picture obtained by the first projector projecting the projection line graph to the projection surface according to the preset correction lattice, and acquiring a second projection picture obtained by the second projector projecting the projection line graph to the projection surface according to the preset correction lattice;
calculating the coincidence ratio of the first projection picture and the second projection picture as an initial coincidence ratio;
the position of a correction point in the preset correction dot matrix is adjusted, the step of obtaining a second projection picture obtained by the second projector by projecting the projection line graph to the projection surface according to the preset correction dot matrix is carried out, and the overlap ratio of the first projection picture and the second projection picture is calculated until the obtained overlap ratio is highest and is larger than or equal to the initial overlap ratio;
and acquiring a target correction lattice corresponding to the highest contact ratio, so that the second projector projects according to the target correction lattice.
2. The method according to claim 1, wherein the projection line map comprises a vertical line map and/or a horizontal line map, the obtaining the projection line map according to a preset correction lattice comprises:
obtaining a vertical line graph according to the alignment dot matrix of the preset correction dot matrix; or alternatively
And obtaining a transverse line diagram according to the line direction lattice of the preset correction lattice.
3. The method of claim 2, wherein said adjusting the positions of the correction points in the preset correction lattice comprises:
if the projection line diagram is a vertical line diagram, adjusting the positions of correction points in the preset correction dot matrix in a first direction;
and if the projection line diagram is a transverse line diagram, adjusting the positions of the correction points in the preset correction dot matrix to a second direction, wherein the first direction is perpendicular to the second direction.
4. The method of claim 1, wherein the calculating the overlap ratio of the first projection screen and the second projection screen comprises:
acquiring an adjustment projection picture obtained by simultaneously projecting the first projection picture and the second projection picture on the projection surface;
preprocessing the adjustment projection picture to obtain a binary image corresponding to the adjustment projection picture;
Calculating the line width in the binary image;
and obtaining the coincidence ratio of the first projection picture and the second projection picture according to the corresponding relation between the line width and the coincidence ratio of the first projection picture and the second projection picture.
5. The method of claim 4, wherein preprocessing the adjusted projection frame to obtain a binary image corresponding to the adjusted projection frame comprises:
and carrying out graying treatment, filtering treatment and binarization treatment on the adjustment projection picture to obtain a binary image corresponding to the adjustment projection picture.
6. The method of claim 4, wherein said calculating the line width in the binary image comprises:
when the binary image is obtained, carrying out region segmentation on the binary image according to correction points in a preset correction lattice corresponding to the second projector to obtain a plurality of projection regions corresponding to the binary image;
performing traversal calculation on each projection area to obtain the line width of each projection area;
and carrying out average value calculation on the line widths of the projection areas corresponding to the binary image to obtain the line widths in the binary image.
7. An image projection apparatus for use in a projection system comprising at least two projectors, the at least two projectors including a first projector and a second projector having the same projection surface, the apparatus comprising:
a projection image acquisition unit for acquiring a projection line pattern according to a preset correction lattice;
the projection unit is used for obtaining a first projection picture obtained by the first projector by projecting the projection line graph to the projection surface according to the preset correction lattice and obtaining a second projection picture obtained by the second projector by projecting the projection line graph to the projection surface according to the preset correction lattice;
a contact ratio calculating unit for calculating the contact ratio of the first projection picture and the second projection picture as an initial contact ratio;
a correction point adjustment unit, configured to adjust a position of a correction point in the preset correction lattice, and return to the step of executing the second projection picture obtained by obtaining the second projector to project the projection line graph onto the projection surface according to the preset correction lattice, and calculate a degree of overlap between the first projection picture and the second projection picture until the obtained degree of overlap is highest and is greater than or equal to the initial degree of overlap;
And the target correction lattice acquisition unit is used for acquiring a target correction lattice corresponding to the highest contact ratio so that the second projector projects according to the target correction lattice.
8. A projection system, comprising:
a first projector;
a second projector, the first projector and the second projector having the same projection surface;
one or more processors coupled to the first projector and the second projector, respectively;
a memory;
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications configured to perform the method of any of claims 1-6.
9. The projection system of claim 8, further comprising a camera configured to acquire a first projection picture obtained by the first projector projecting the projection line graph onto the projection surface according to a preset correction lattice, and acquire a second projection picture obtained by the second projector projecting the projection line graph onto the projection surface according to the preset correction lattice;
The processor is further used for obtaining a target transformation relation according to the projection line graph and the first projection picture; and
according to the target transformation relation, transforming a projection picture obtained by simultaneously projecting the first projection picture and the second projection picture on the projection surface to obtain an adjusted projection picture; and
and calculating the coincidence ratio of the first projection picture and the second projection picture according to the adjustment projection picture.
10. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a program code, which is callable by a processor for executing the method according to any one of claims 1-6.
CN202210728008.4A 2022-06-23 2022-06-23 Image projection method, device, projection system and storage medium Pending CN117319615A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210728008.4A CN117319615A (en) 2022-06-23 2022-06-23 Image projection method, device, projection system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210728008.4A CN117319615A (en) 2022-06-23 2022-06-23 Image projection method, device, projection system and storage medium

Publications (1)

Publication Number Publication Date
CN117319615A true CN117319615A (en) 2023-12-29

Family

ID=89241384

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210728008.4A Pending CN117319615A (en) 2022-06-23 2022-06-23 Image projection method, device, projection system and storage medium

Country Status (1)

Country Link
CN (1) CN117319615A (en)

Similar Documents

Publication Publication Date Title
US8322862B2 (en) Projector, computer program product, and trapezoidal distortion correcting method
JP4055010B2 (en) Image processing system, projector, program, information storage medium, and image processing method
US8003927B2 (en) Image projection apparatus which projects an image corrected according to a projection surface
JP3994290B2 (en) Image processing system, projector, program, information storage medium, and image processing method
JP5842694B2 (en) Image processing apparatus, projector, and projector control method
JP6205777B2 (en) Projection apparatus, projection method, and program for projection
US9224321B2 (en) Projector for performing trapezoidal distortion correction and method of controlling projector
US8328366B2 (en) Projector, computer program product, and exposure adjusting method
US9521383B2 (en) Image processing apparatus, projector, and image processing method
JP2017156581A (en) Projection device and control method of the same
US10057555B2 (en) Image processing device, display device, and method of controlling image processing device
JP6217100B2 (en) Image processing apparatus, projector, image processing method, and program
JP5515405B2 (en) Video processing device, video display device, and video processing method
JP2006033672A (en) Curved surface multi-screen projection method, and its device
CN117319615A (en) Image projection method, device, projection system and storage medium
CN113630588B (en) Control method of image projection system and image projection system
JP6418010B2 (en) Image processing apparatus, image processing method, and display apparatus
JP2015192177A (en) Image processor, display device, and image processing method
KR20220162595A (en) Electronic apparatus and control method thereof
EP3396948B1 (en) System and method for aligning stacked projectors
JP3882927B2 (en) Image processing system, projector, and image processing method
JP2010288062A (en) Projector, program, information storage medium, and image projection method
US11676241B2 (en) Control method for image projection system, and image projection system
CN114582270B (en) Luminance and chrominance data acquisition method, device and system and computer readable storage medium
US20220164928A1 (en) Image processing apparatus, image processing method, and program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication