WO2022105277A1 - Projection control method and apparatus, projection optical machine, and readable storage medium - Google Patents
Projection control method and apparatus, projection optical machine, and readable storage medium Download PDFInfo
- Publication number
- WO2022105277A1 WO2022105277A1 PCT/CN2021/106835 CN2021106835W WO2022105277A1 WO 2022105277 A1 WO2022105277 A1 WO 2022105277A1 CN 2021106835 W CN2021106835 W CN 2021106835W WO 2022105277 A1 WO2022105277 A1 WO 2022105277A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- image
- area
- projection
- medium
- picture
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 57
- 230000003287 optical effect Effects 0.000 title abstract description 7
- 238000013507 mapping Methods 0.000 claims abstract description 44
- 230000009466 transformation Effects 0.000 claims description 56
- 238000012795 verification Methods 0.000 claims description 25
- 238000004590 computer program Methods 0.000 claims description 15
- 239000000284 extract Substances 0.000 claims description 13
- 238000000605 extraction Methods 0.000 claims description 10
- 238000003709 image segmentation Methods 0.000 claims description 7
- 238000004364 calculation method Methods 0.000 claims description 5
- 230000011218 segmentation Effects 0.000 claims description 5
- 230000001131 transforming effect Effects 0.000 claims description 2
- 238000006243 chemical reaction Methods 0.000 abstract 2
- 230000000694 effects Effects 0.000 description 16
- 230000006870 function Effects 0.000 description 14
- 238000010586 diagram Methods 0.000 description 13
- 238000004891 communication Methods 0.000 description 9
- 239000000203 mixture Substances 0.000 description 9
- 230000008569 process Effects 0.000 description 5
- 238000012545 processing Methods 0.000 description 5
- 238000004422 calculation algorithm Methods 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- 238000011426 transformation method Methods 0.000 description 1
- 230000007704 transition Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N9/00—Details of colour television systems
- H04N9/12—Picture reproducers
- H04N9/31—Projection devices for colour picture display, e.g. using electronic spatial light modulators [ESLM]
- H04N9/3179—Video signal processing therefor
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/11—Region-based segmentation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/12—Edge-based segmentation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/13—Edge detection
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/155—Segmentation; Edge detection involving morphological operators
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N9/00—Details of colour television systems
- H04N9/12—Picture reproducers
- H04N9/31—Projection devices for colour picture display, e.g. using electronic spatial light modulators [ESLM]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20112—Image segmentation details
- G06T2207/20152—Watershed segmentation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20112—Image segmentation details
- G06T2207/20164—Salient point detection; Corner detection
Definitions
- the present application relates to the technical field of screen projection, and in particular, to a projection control method, device, projector and readable storage medium.
- the user usually needs to select a special object (for example, a blank wall or a blank curtain) as the projection medium of the light projector, and then manually select a certain object on the current projection medium by observing the human eye.
- a special object for example, a blank wall or a blank curtain
- Each area is used as the projection area, and the screen is correspondingly projected into the selected projection area by manually adjusting the projector.
- the manually selected projection area usually cannot meet the requirements of image projection.
- Manual debugging of the projector will also affect the efficiency of image projection, and it is easy to produce image projection errors, so that the image cannot be truly projected into the selected projection area. For display, the screen projection effect cannot be guaranteed, which affects the user's screen browsing experience.
- the purpose of the present application is to provide a projection control method, device, projector and readable storage medium, which can automatically delineate an effective area suitable for image projection on the current projection medium, and automatically and quickly The to-be-displayed picture is projected into the effective area for display, so as to improve the picture projection effect and the user's picture browsing experience.
- the present application provides a projection control method, the method comprising:
- the to-be-displayed image is transformed to the image of the projector and the image to be displayed.
- the delivery area corresponding to the largest effective display area the corresponding to-be-delivered screen is obtained;
- the projector is controlled to project the picture to be displayed, so that the picture content of the picture to be displayed is displayed on the projection medium.
- the step of extracting a maximum effective display area that satisfies a preset screen ratio from the multiple areas to be checked includes:
- the target verification area whose corresponding border size ratio meets the preset screen ratio is directly used as the maximum effective display area.
- the step of extracting a maximum effective display area that satisfies a preset screen ratio from the multiple areas to be checked further includes:
- the largest continuous area of pixels is used as the largest effective display area.
- the step of extracting a maximum pixel continuous area that satisfies the preset screen ratio from the multiple areas to be checked includes:
- the inscribed rectangular area with the largest area is taken as the largest pixel continuous area.
- the to-be-displayed picture is transformed according to the corner position of the maximum effective display area in the medium image and the image mapping transformation relationship between the projector and the photographing device.
- the step of obtaining the corresponding to-be-delivered picture in the projection area corresponding to the maximum effective display area of the light projector includes:
- Coordinate transformation is performed on each pixel in the to-be-displayed image according to the coordinate matching relationship, to obtain the to-be-launched image overlapping the placement area.
- the method further includes:
- the image mapping transformation relationship between the light projector and the photographing device is determined.
- the present application provides a projection control device, the device comprising:
- a medium image acquisition module configured to acquire a medium image photographed by the photographing device for the current projection medium
- an image area segmentation module configured to perform image segmentation on the medium image to obtain a plurality of areas to be verified included in the medium image
- a display area extraction module used for extracting the maximum effective display area that satisfies the preset screen ratio from the multiple areas to be checked;
- a picture mapping transformation module configured to transform the to-be-displayed picture into the said Obtaining a corresponding picture to be released in the delivery area corresponding to the maximum effective display area of the projector;
- the picture projection control module is used for controlling the light projector to project the picture to be displayed, so that the picture content of the picture to be displayed is displayed on the projection medium.
- the manner in which the display area extraction module extracts a maximum effective display area that satisfies a preset screen ratio from the plurality of areas to be verified includes:
- the target verification area whose corresponding border size ratio meets the preset screen ratio is directly used as the maximum effective display area.
- the display area extraction module extracts a method of extracting a maximum effective display area that satisfies a preset screen ratio from the plurality of areas to be checked, further comprising:
- the largest continuous area of pixels is used as the largest effective display area.
- the manner in which the display area extraction module extracts a maximum pixel continuous area that satisfies the preset screen ratio from the plurality of areas to be verified includes:
- the inscribed rectangular area with the largest area is taken as the largest pixel continuous area.
- the image mapping transformation module converts the The method of transforming the to-be-displayed picture into the delivery area of the projector light machine corresponding to the maximum effective display area to obtain the corresponding to-be-released picture includes:
- Coordinate transformation is performed on each pixel in the to-be-displayed image according to the coordinate matching relationship, to obtain the to-be-launched image overlapping the placement area.
- the device further comprises:
- a medium projection calibration module configured to control the light projector to project a debugging picture to the current projection medium, and obtain a medium calibration image captured by the photographing device for the debugging picture;
- the corner coordinate calculation module is used to calculate the first corner coordinates of the debugging screen in the optical-mechanical coordinate system where the projector is located, and the camera coordinate system corresponding to the medium calibration image of the debugging screen The coordinates of the second corner point below;
- the present application provides a light projector, including a processor and a memory, where the memory stores a computer program executable by the processor, and the processor can execute the computer program to implement the foregoing embodiments
- the present application provides a readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, implements the projection control method described in any one of the foregoing embodiments.
- the medium image captured by the photographing device for the current projection medium is obtained, and a plurality of areas to be verified are divided from the images in the medium image, and then the maximum effective display that meets the preset screen ratio is extracted from the plurality of areas to be verified.
- the image to be displayed is transformed into the projection area corresponding to the maximum effective display area of the projector to obtain the corresponding image to be released, and then directly control
- the projection light projector projects the screen to be displayed, so that the screen content of the screen to be displayed can be quickly displayed in the area of the projection medium corresponding to the maximum effective display area and suitable for screen projection, thereby improving the screen projection effect and the user's screen browsing experience.
- FIG. 1 is one of the schematic flowcharts of a projection control method provided by an embodiment of the present application
- FIG. 2 is one of the schematic flowcharts of the sub-steps included in step S230 in FIG. 1;
- step S230 in FIG. 1 is the second schematic flowchart of the sub-steps included in step S230 in FIG. 1;
- FIG. 4 is a schematic flowchart of the sub-steps included in step S240 in FIG. 1;
- FIG. 5 is the second schematic flowchart of the projection control method provided by the embodiment of the present application.
- FIG. 7 is the second schematic diagram of the composition of the projection control device provided by the embodiment of the present application.
- Icons 100-projection control device; 110-media image acquisition module; 120-image area segmentation module; 130-display area extraction module; 140-image mapping transformation module; 150-image projection control module; 160-media projection calibration module; 170-corner coordinate calculation module; 180-transformation relationship creation module; 10-projector light machine; 11-memory; 12-processor; 13-communication unit; 14-photographing device.
- the projection medium can be randomly selected by the user of the light projector according to their own needs, and the projection medium can be, but not limited to, a blank wall, a blank newspaper board, a blank curtain, etc.; the projection control shown in FIG. 1
- the method can be executed solely by the computer equipment communicatively connected with the projector and the photographing device, or directly by the projector communicatively connected with the photographing device, or by the projector integrated with the photographing device.
- the projection control method shown in FIG. 1 will be described in detail below.
- Step S210 acquiring a medium image photographed by the photographing device for the current projection medium.
- a pure white image can be projected onto the current projection medium through a light projector or other light and shadow projection equipment, and then an image of the current projection medium is captured by the photographing device. Obtain the medium image corresponding to the current projection medium.
- the brightness of the projected pure white image needs to be higher than 20% of the maximum projection brightness of the projector to ensure that all the collected
- the media features contained in the media images are richer and more detailed.
- an electronic device for example, a computer device that is communicatively connected to the projector and the photographing device, or an electronic device that is communicatively connected to the photographing device executes the projection control method shown in FIG. 1 . projector) can directly obtain the medium image from the photographing device through the network.
- the flood filling algorithm or the watershed algorithm can be used to perform similar chromaticity clustering on each pixel in the medium image, and the corresponding chromaticity can be clustered according to the clustering result.
- Image segmentation is performed on the medium image to segment a plurality of regions to be verified from the medium image. Wherein, each pixel point in each area to be checked belongs to the same pixel chromaticity category.
- Step S230 extracting a maximum effective display area that satisfies a preset screen ratio from a plurality of areas to be verified.
- the preset aspect ratio is used to represent a preset image size ratio that is suitable for the image projection area to carry, wherein the preset aspect ratio can be a range of image ratios (for example, 16: 9 to 16:10), or a combination of multiple specific ratios (for example, 3:2, 4:3, and 16:9), or a single size ratio (for example, 16:9).
- the preset aspect ratio can be a range of image ratios (for example, 16: 9 to 16:10), or a combination of multiple specific ratios (for example, 3:2, 4:3, and 16:9), or a single size ratio (for example, 16:9).
- the multiple areas to be verified included in the medium image After the multiple areas to be verified included in the medium image are determined, it can be determined according to the preset screen ratio whether there is a certain area to be verified directly in the multiple areas to be verified, which can be directly used as the optimal image projection
- the maximum effective display area of the effect, or the largest image area that is free from foreign matter and noise and meets the preset screen ratio is cut out from the multiple areas to be verified as the maximum effective display area.
- Step S240 according to the corner position of the maximum effective display area in the medium image, and the image mapping transformation relationship between the projector and the photographing device, transform the to-be-displayed picture into the projection corresponding to the maximum effective display area of the projector. In the area, the corresponding to-be-delivered screen is obtained.
- the image mapping transformation relationship is used to indicate that in the case where the projector and the photographing device use the current projection medium as a reference, the same thing is in the picture projected by the projector and the image captured by the photographing device.
- the mapping relationship between their corresponding thing positions In other words, under the condition that the positions of the light projector and the photographing device do not change relative to the current projection medium, the light projector projects a picture including a certain thing to the current projection medium, and the photographing device When the device faces the current projection medium to take a picture of the picture including the object, the position information of the object in the optical-mechanical coordinate system where the projector is located is the same as the location of the object in the photographing coordinate system where the photographing device is located.
- the position matching relationship between the information is the above-mentioned image mapping transformation relationship.
- the delivery area is an area corresponding to the maximum effective display area in the optical-mechanical coordinate system where the projector is located.
- the specific position information of the placement area can be obtained by converting the relevant position information of the maximum effective display area in the medium image through the image mapping transformation relationship.
- the image to be displayed can be aligned as a whole by means of coordinate transformation Within the range of the projection area, the corresponding to-be-released picture is obtained, so that when the projector directly projects the to-be-released picture toward the current projection medium, the current projection medium corresponds to the maximum effective display area and is suitable for The image content of the to-be-displayed image will be truly and effectively displayed in the image projection area.
- the projector can be directly controlled to perform the operation on the obtained image to be displayed. Projection, so that the to-be-launched picture is correspondingly projected in the area of the current projection medium that corresponds to the maximum effective display area and is suitable for picture projection, so that the picture content of the to-be-displayed picture can be displayed normally in the suitable picture projection area of the current projection medium.
- the best screen projection effect improve the user's screen browsing experience, without spending labor costs to determine the best projection area and debug the projector.
- the embodiment of the present application provides the following extraction methods that can extract the real and effective display area to ensure that The light projector can effectively project the picture content of the picture to be displayed into a suitable picture projection area of the current projection medium for display.
- the method of extracting the display area will be described in detail below.
- step S230 is one of the schematic flowcharts of the sub-steps included in step S230 in FIG. 1 .
- the step S230 may include sub-steps S231 to S233.
- Sub-step S231 performing quadrilateral boundary fitting on each area to be checked.
- sub-step S233 when it is detected that the border size ratio meets the preset screen ratio, the target verification area corresponding to the border size ratio satisfying the preset screen ratio is directly used as the maximum effective display area.
- the target verification area with the largest area may be used as the maximum effective display area, so as to ensure that the screen content of the screen to be displayed can be displayed in the While ensuring the effect of screen projection, the function of maximizing screen projection is realized.
- the above-mentioned sub-steps S231 to S233 can be executed to determine the target verification area that can be directly used as the maximum effective display area for realizing the best image projection effect among the above-mentioned multiple areas to be verified, so as to It is ensured that the light projector can finally project the picture content of the picture to be displayed into an area suitable for picture projection in the current projection medium.
- step S230 is the second schematic flowchart of the sub-steps included in step S230 in FIG. 1 .
- the step S230 may further include sub-steps S235 to S236.
- Sub-step S235 in the case that the boundary size ratio of the target verification area does not meet the preset screen ratio, or there is no target verification area, extract the maximum pixel continuous area that meets the preset screen ratio from the multiple to-be-verified areas .
- the maximum continuous area of pixels is used as the maximum effective display area.
- the step of extracting the largest pixel continuous area that meets the preset screen ratio from the multiple areas to be verified may include:
- the inscribed rectangular area with the largest area is taken as the largest pixel continuous area.
- an area contour can be extracted for each area to be screened, and a histogram projection algorithm is used to determine the largest area within the contour of the area to obtain the inscribed rectangular continuous area corresponding to the area to be screened.
- the above-mentioned sub-step S235 to sub-step S236 can be performed to cut out the maximum of the preset screen ratio without foreign matter and noise from the above-mentioned multiple areas to be checked.
- the image area is used as the maximum effective display area for achieving the best picture projection effect, so as to ensure that the light projector can finally project the picture content of the picture to be displayed into the area suitable for picture projection in the current projection medium.
- the embodiment of the present application provides a picture transformation method for the picture to be displayed, so as to ensure that the essence of the picture finally projected by the light projector matches the maximum effective display area, and realize the automatic control operation of projection of the light projector. , to avoid projection errors.
- the screen transition method will be described in detail below.
- step S240 is a schematic flowchart of sub-steps included in step S240 in FIG. 1 .
- the step S240 may include sub-steps S241 to S243.
- Sub-step S241 Perform positional transformation on the corner position of the maximum effective display area according to the image mapping transformation relationship to obtain the corner position coordinates of the delivery area in the optical-mechanical coordinate system where the projector is located.
- Sub-step S242 establishing a coordinate matching relationship between the position coordinates of the corner points and the position coordinates of the vertices of the to-be-displayed picture in the optical-mechanical coordinate system.
- sub-step S243 coordinate transformation is performed on each pixel in the to-be-displayed image according to the coordinate matching relationship, so as to obtain the to-be-launched image overlapping the placement area.
- the coordinate matching relationship is used to represent the position mapping relationship between the placement area corresponding to the maximum effective display area in the layer where the optical-mechanical coordinate system is located, and the outline area of the image to be displayed.
- the present application can effectively align the screen content of the screen to be displayed within the range of the delivery area by executing sub-steps S241 to S243, so as to realize the automatic projection control operation of the light projector and avoid projection errors.
- FIG. 5 is the second schematic flowchart of the projection control method provided by the embodiment of the present application.
- the projection control method shown in FIG. 5 is compared with the projection control method shown in FIG. 1 , and the projection control method shown in FIG. 5 further includes step S207 , step S208 and step S209 .
- the steps S207, S208 and S209 are used to accurately measure the projector with the current projection medium as a reference when the positions of the projector and the photographing device relative to the current projection medium remain unchanged.
- the image mapping transformation relationship between the camera and the photographing device ensures that the projector can normally project the to-be-displayed image on the current projection medium within an effective area suitable for image projection, thereby improving the user's image browsing experience.
- the steps S207, S208 and S209 need to be re-executed to parameterize the image mapping transformation relationship. calibration.
- Step S207 controlling the light projector to project a debugging picture to the current projection medium, and acquiring a medium calibration image captured by the photographing device for the debugging picture.
- Step S208 Calculate the first corner coordinates of the debugging screen in the optical-mechanical coordinate system where the projector is located, and the second corner coordinates of the debugging screen in the photographing coordinate system corresponding to the medium calibration image.
- Step S209 according to the positional correspondence between the coordinates of the first corner point and the coordinates of the second corner point, determine the image mapping transformation relationship between the projector and the photographing device.
- the debugging screen may be a black and white checkerboard screen or a black and white stripe screen, and the specific screen content may be configured differently according to user requirements.
- the positional correspondence between the coordinates of the first corner point and the coordinates of the second corner point corresponding to the debugging screen may be directly used as the image mapping transformation relationship.
- the present application can accurately measure the current projection medium as a reference by performing the above steps S207, S208 and S209 when the respective positions of the projector and the photographing device relative to the current projection medium remain unchanged.
- an embodiment of the present application provides a projection control device, so that an electronic device that stores or solidifies the projection control device can realize the above-mentioned by running the software function modules and computer programs included in the projection control device.
- the function corresponding to the projection control method The specific composition of the projection control device provided by the present application will be described below.
- FIG. 6 is one of the schematic diagrams of the composition of the projection control apparatus 100 provided by the embodiment of the present application.
- the projection control apparatus 100 may include a medium image acquisition module 110 , an image region segmentation module 120 , a display region extraction module 130 , an image mapping transformation module 140 , and an image projection control module 150 .
- the medium image acquisition module 110 is configured to acquire a medium image photographed by the photographing device for the current projection medium.
- the image area segmentation module 120 is configured to perform image segmentation on the medium image to obtain a plurality of areas to be verified included in the medium image.
- the display area extraction module 130 is configured to extract the maximum effective display area that meets the preset screen ratio from the multiple areas to be checked.
- the picture mapping transformation module 140 is used to transform the to-be-displayed picture into the maximum effective display area and the maximum effective display area according to the corner position of the maximum effective display area in the medium image and the image mapping transformation relationship between the projector and the photographing device. In the delivery area corresponding to the display area, the corresponding to-be-delivered screen is obtained.
- the picture projection control module 150 is used for controlling the light projector to project the picture to be displayed, so that the picture content of the picture to be displayed is displayed on the projection medium.
- the manner in which the display area extracting module 130 extracts the maximum effective display area that satisfies the preset screen ratio from the multiple areas to be checked may include:
- the target verification area corresponding to the border size ratio satisfying the preset screen ratio is directly used as the maximum effective display area.
- the manner in which the display area extraction module 130 extracts the maximum effective display area that satisfies the preset screen ratio from a plurality of areas to be checked may further include:
- the boundary size ratio of the target verification area does not meet the preset screen ratio, or the target verification area does not exist, extract the maximum pixel continuous area that meets the preset screen ratio from the multiple to-be-verified areas;
- the manner in which the display area extracting module 130 extracts the maximum pixel continuous area satisfying the preset screen ratio from the multiple areas to be verified includes:
- the inscribed rectangular area with the largest area is regarded as the largest pixel continuous area.
- the picture mapping transformation module 140 transforms the picture to be displayed into the projection light according to the corner position of the maximum effective display area in the medium image and the image mapping transformation relationship between the light projector and the camera device.
- the method of obtaining the corresponding to-be-delivered screen in the delivery area corresponding to the maximum effective display area of the computer may include:
- coordinate transformation is performed on each pixel in the to-be-displayed image to obtain the to-be-launched image overlapping the placement area.
- FIG. 7 is the second schematic diagram of the composition of the projection control apparatus 100 provided by the embodiment of the present application.
- the projection control apparatus 100 may further include a medium projection calibration module 160 , a corner coordinate calculation module 170 and a transformation relationship creation module 180 .
- the medium projection calibration module 160 is used to control the light projector to project the debugging picture to the current projection medium, and obtain the medium calibration image captured by the photographing device for the debugging picture.
- the corner coordinate calculation module 170 is used to calculate the first corner coordinates of the debugging screen in the optical-mechanical coordinate system where the projector is located, and the second corner coordinates of the debugging screen in the photographing coordinate system corresponding to the medium calibration image. .
- the transformation relationship creation module 180 is configured to determine the image mapping transformation relationship between the projector and the photographing device according to the positional correspondence between the coordinates of the first corner point and the coordinates of the second corner point.
- an embodiment of the present application provides a light projector in which the projection control device 100 is stored or cured, which can implement the above-mentioned functions by running software function modules and computer programs included in the projection control device 100 .
- the function corresponding to the projection control method.
- the specific composition of the optical projector provided by the present application will be described below.
- FIG. 8 is a schematic diagram of the composition of the light projector 10 provided by the embodiment of the present application.
- the light projector 10 can be used to automatically delineate an effective area suitable for image projection on the current projection medium for the to-be-displayed image, and automatically and quickly project the to-be-displayed image into the effective area.
- the area where the image is displayed on the projection medium can meet the image projection requirements, avoid image projection errors caused by manual debugging of the projector 10, and improve the image projection efficiency, so as to improve the image projection effect and the user's image browsing experience.
- the projector 10 may include a memory 11 , a processor 12 , a communication unit 13 , a photographing device 14 and the projection control device 100 .
- the elements of the memory 11 , the processor 12 , the communication unit 13 , and the photographing device 14 are electrically connected to each other indirectly or indirectly to realize data transmission or interaction.
- the elements of the memory 11 , the processor 12 , the communication unit 13 and the photographing device 14 can be electrically connected to each other through one or more communication buses or signal lines.
- the memory 11 may be, but not limited to, a random access memory (Random Access Memory, RAM), a read only memory (Read Only Memory, ROM), a programmable read only memory (Programmable Read-Only Memory) Memory, PROM), Erasable Programmable Read-Only Memory (EPROM), Electrically Erasable Read-Only Memory (Electric Erasable Programmable Read-Only Memory, EEPROM), etc.
- RAM Random Access Memory
- ROM read only memory
- PROM programmable read only memory
- EPROM Erasable Programmable Read-Only Memory
- EEPROM Electrically Erasable Read-Only Memory
- the processor 12 may be an integrated circuit chip with signal processing capability.
- the processor 12 may be a general-purpose processor, including at least one of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU), and a network processor (Network Processor, NP).
- the general-purpose processor may be a microprocessor, or the processor may also be any conventional processor, etc., and may implement or execute the methods, steps, and logical block diagrams disclosed in the embodiments of this application.
- the communication unit 13 is configured to establish a communication connection between the light projector 10 and other electronic devices through a network, and to send and receive data through the network, wherein the network includes a wired communication network and a wireless Communications network.
- the photographing device 14 includes a camera, and the photographing device 14 collects images of the picture projected by the light projector 10 through the camera.
- the projection control device 100 includes at least one software function module that can be stored in the memory 11 in the form of software or firmware or be solidified in the operating system of the projector 10 .
- the processor 12 may be configured to execute executable modules stored in the memory 11 , such as software function modules and computer programs included in the projection control device 100 .
- the projector 10 automatically delineates an effective area suitable for image projection on the current projection medium through the projection control device 100 for the to-be-displayed image, and automatically and quickly projects the to-be-displayed image into the effective area for display.
- the projector 10 can also accurately measure the current projection medium as The image mapping transformation relationship between the reference projector 10 and the photographing device 14, and when the position of the projector 10 and/or the photographing device 14 changes relative to the current projection medium, the image is synchronously
- the mapping transformation relationship is used for parameter calibration.
- FIG. 8 is only a schematic diagram of the composition of the light projector 10, and the light projector 10 may further include more or less components than those shown in FIG. 8 different configurations are shown. Each component shown in FIG. 8 may be implemented in hardware, software, or a combination thereof.
- each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more functions for implementing the specified logical function(s) executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures.
- each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations can be implemented in dedicated hardware-based systems that perform the specified functions or actions , or can be implemented in a combination of dedicated hardware and computer instructions.
- each functional module in each embodiment of the present application may be integrated together to form an independent part, or each module may exist independently, or two or more modules may be integrated to form an independent part.
- the functions are implemented in the form of software function modules and sold or used as independent products, they may be stored in a readable storage medium.
- the technical solution of the present application can be embodied in the form of a software product in essence, or the part that contributes to the prior art or the part of the technical solution, and the computer software product is stored in a readable storage medium , including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application.
- the aforementioned readable storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other various programs that can store program codes medium.
- the present application obtains the medium image captured by the photographing device for the current projection medium, and obtains the image from the medium image. Divide a plurality of areas to be checked, and then extract the maximum effective display area that meets the preset screen ratio from the plurality of areas to be checked, and according to the image mapping transformation relationship between the projector and the camera, the to-be-displayed The screen is transformed into the projection area corresponding to the maximum effective display area of the projector, and the corresponding image to be displayed is obtained, and then the projector is directly controlled to project the image to be displayed, so that the content of the image to be displayed can be quickly displayed on the projection medium. It is displayed in the area corresponding to the maximum effective display area and suitable for screen projection, thereby improving the screen projection effect and the user's screen browsing experience.
- the present application can also accurately measure the image mapping transformation relationship between the projector and the camera with the current projection medium as a reference when the positions of the projector and the photographing device remain unchanged relative to the current projection medium, and When the position of the projector and/or the photographing device changes relative to the current projection medium, the parameters of the image mapping transformation relationship are synchronously calibrated, thereby ensuring the accuracy of the image mapping transformation relationship and improving the image projection accuracy.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Projection Apparatus (AREA)
- Transforming Electric Information Into Light Information (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
The present invention relates to the technical field of image projection. Disclosed are a projection control method and apparatus, a projection optical machine, and a readable storage medium. The method comprises: acquiring a medium image captured when a photographing device performs image capture on a current projection medium; segmenting the medium image into multiple areas to be verified; automatically extracting, from the multiple areas, a maximum effective display area meeting a preset aspect ratio; performing conversion on an image to be displayed according to a corner position of the maximum effective display area in the medium image and an image mapping and conversion relationship between a projection optical machine and the photographing device, transferring the converted image to a projection area of the projection optical machine corresponding to the maximum effective display area, and obtaining a corresponding image to be projected; and directly controlling the projection optical machine to project said image. The invention enables the content of an image to be displayed to be quickly displayed in an area of the projection medium corresponding to the maximum effective display area and suitable for image projection, thereby improving image projection performance and image viewing experience of users.
Description
本申请涉及画面投影技术领域,具体而言,涉及一种投影控制方法、装置、投影光机及可读存储介质。The present application relates to the technical field of screen projection, and in particular, to a projection control method, device, projector and readable storage medium.
目前,投影光机在使用过程中,通常需要用户自行选取特殊物体(例如,空白墙面或空白幕布)作为投影光机的投影介质,而后通过人眼观测的方式人工地选取当前投影介质上某个区域作为投影区域,并通过手动调试投影光机的方式使画面对应投影到选定的投影区域内。但就实际而言,人工选取的投影区域通常无法满足画面投影需求,人工调试投影光机通常也会影响画面投影效率,并容易产生画面投影误差,无法将画面真实投影到选定的投影区域内进行显示,无法保证画面投影效果,影响用户的画面浏览体验。At present, in the process of using the light projector, the user usually needs to select a special object (for example, a blank wall or a blank curtain) as the projection medium of the light projector, and then manually select a certain object on the current projection medium by observing the human eye. Each area is used as the projection area, and the screen is correspondingly projected into the selected projection area by manually adjusting the projector. However, in practice, the manually selected projection area usually cannot meet the requirements of image projection. Manual debugging of the projector will also affect the efficiency of image projection, and it is easy to produce image projection errors, so that the image cannot be truly projected into the selected projection area. For display, the screen projection effect cannot be guaranteed, which affects the user's screen browsing experience.
发明内容SUMMARY OF THE INVENTION
有鉴于此,本申请的目的在于提供一种投影控制方法、装置、投影光机及可读存储介质,能够自动地在当前投影介质上圈定适合画面投影的有效区域范围,并自动且快速地将待显示画面投影到有效区域范围内进行显示,以提高画面投影效果及用户的画面浏览体验。In view of this, the purpose of the present application is to provide a projection control method, device, projector and readable storage medium, which can automatically delineate an effective area suitable for image projection on the current projection medium, and automatically and quickly The to-be-displayed picture is projected into the effective area for display, so as to improve the picture projection effect and the user's picture browsing experience.
为了实现上述目的,本申请实施例采用的技术方案如下:In order to achieve the above purpose, the technical solutions adopted in the embodiments of the present application are as follows:
第一方面,本申请提供一种投影控制方法,所述方法包括:In a first aspect, the present application provides a projection control method, the method comprising:
获取拍照装置针对当前投影介质拍摄到的介质图像;acquiring a medium image captured by the photographing device for the current projection medium;
对所述介质图像进行图像分割,得到所述介质图像所包括的多个待校验区域;Perform image segmentation on the medium image to obtain a plurality of areas to be verified included in the medium image;
从所述多个待校验区域中提取满足预设画面比例的最大有效显示区域;extracting the maximum effective display area that meets the preset aspect ratio from the multiple areas to be verified;
根据所述最大有效显示区域在所述介质图像中的角点位置,以及投影光机与所述拍照装置之间的图像映射变换关系,将待显示画面变换到所述投影光机的与所述最大有效显示区域对应的投放区域内,得到对应的待投放画面;According to the corner position of the maximum effective display area in the medium image and the image mapping transformation relationship between the projector and the photographing device, the to-be-displayed image is transformed to the image of the projector and the image to be displayed. In the delivery area corresponding to the largest effective display area, the corresponding to-be-delivered screen is obtained;
控制所述投影光机对所述待投放画面进行投影,使所述待显示画面的画面内容在所述投影介质上显示。The projector is controlled to project the picture to be displayed, so that the picture content of the picture to be displayed is displayed on the projection medium.
在可选的实施方式中,所述从所述多个待校验区域中提取满足预设画面比例的最大有效显示区域的步骤,包括:In an optional implementation manner, the step of extracting a maximum effective display area that satisfies a preset screen ratio from the multiple areas to be checked includes:
对每个待校验区域进行四边形边界拟合;Perform quadrilateral boundary fitting for each area to be verified;
若存在拟合出四边形边界的目标校验区域,则检测拟合出的所述四边形边界的边界尺寸比例是否满足所述预设画面比例;If there is a target verification area to which the quadrilateral boundary is fitted, detecting whether the fitted boundary size ratio of the quadrilateral boundary satisfies the preset screen ratio;
在检测到所述边界尺寸比例满足所述预设画面比例的情况下,直接将对应边界尺寸比例满足所述预设画面比例的所述目标校验区域作为所述最大有效显示区域。When it is detected that the border size ratio satisfies the preset screen ratio, the target verification area whose corresponding border size ratio meets the preset screen ratio is directly used as the maximum effective display area.
在可选的实施方式中,所述从所述多个待校验区域中提取满足预设画面比例的最大 有效显示区域的步骤,还包括:In an optional implementation manner, the step of extracting a maximum effective display area that satisfies a preset screen ratio from the multiple areas to be checked further includes:
在目标校验区域的边界尺寸比例不满足所述预设画面比例,或不存在所述目标校验区域的情况下,从所述多个待校验区域中提取满足所述预设画面比例的最大像素连续区域;In the case that the boundary size ratio of the target verification area does not meet the preset screen ratio, or the target verification area does not exist, extract the image size that meets the preset screen ratio from the multiple to-be-verified areas. Maximum pixel contiguous area;
将所述最大像素连续区域作为所述最大有效显示区域。The largest continuous area of pixels is used as the largest effective display area.
在可选的实施方式中,所述从所述多个待校验区域中提取满足所述预设画面比例的最大像素连续区域的步骤,包括:In an optional implementation manner, the step of extracting a maximum pixel continuous area that satisfies the preset screen ratio from the multiple areas to be checked includes:
从所述多个待校验区域中选取预设数目个待筛查区域,其中所述待筛查区域的像素点数目大于未被选取的待校验区域的像素点数目;Select a preset number of areas to be screened from the plurality of areas to be checked, wherein the number of pixels in the area to be screened is greater than the number of pixels in the area to be checked that is not selected;
针对每个待筛查区域,确定该待筛查区域的面积最大的内接矩形连续区域;For each to-be-screened area, determine the inscribed rectangular continuous area with the largest area of the to-be-screened area;
在得到的每个内接矩形连续区域内按照所述预设画面比例求取对应的内接矩形区域;Obtain the corresponding inscribed rectangular area according to the preset screen ratio in each obtained inscribed rectangular continuous area;
将区域面积最大的所述内接矩形区域作为所述最大像素连续区域。The inscribed rectangular area with the largest area is taken as the largest pixel continuous area.
在可选的实施方式中,所述根据所述最大有效显示区域在所述介质图像中的角点位置,以及投影光机与所述拍照装置之间的图像映射变换关系,将待显示画面变换到所述投影光机的与所述最大有效显示区域对应的投放区域内,得到对应的待投放画面的步骤,包括:In an optional implementation manner, the to-be-displayed picture is transformed according to the corner position of the maximum effective display area in the medium image and the image mapping transformation relationship between the projector and the photographing device. The step of obtaining the corresponding to-be-delivered picture in the projection area corresponding to the maximum effective display area of the light projector includes:
根据所述图像映射变换关系对所述最大有效显示区域的角点位置进行位置变换,得到所述投影光机所在的光机坐标系下的所述投放区域的角点位置坐标;Perform position transformation on the corner position of the maximum effective display area according to the image mapping transformation relationship to obtain the corner position coordinates of the placement area under the optical-mechanical coordinate system where the projector is located;
在所述光机坐标系下建立所述角点位置坐标与所述待显示画面的顶点位置坐标之间的坐标匹配关系;establishing a coordinate matching relationship between the corner position coordinates and the vertex position coordinates of the to-be-displayed picture in the optical-mechanical coordinate system;
根据所述坐标匹配关系对所述待显示画面内各像素点进行坐标变换,得到与所述投放区域位置重叠的所述待投放画面。Coordinate transformation is performed on each pixel in the to-be-displayed image according to the coordinate matching relationship, to obtain the to-be-launched image overlapping the placement area.
在可选的实施方式中,所述方法还包括:In an optional embodiment, the method further includes:
控制所述投影光机向当前投影介质投射调试画面,并获取所述拍照装置针对所述调试画面拍摄到的介质校准图像;Controlling the light projector to project a debugging picture to the current projection medium, and acquiring a medium calibration image captured by the photographing device for the debugging picture;
计算所述调试画面在所述投影光机所在的光机坐标系下的第一角点坐标,以及所述调试画面在所述介质校准图像所对应的拍照坐标系下的第二角点坐标;Calculate the coordinates of the first corner point of the debugging image in the optical-mechanical coordinate system where the projector is located, and the coordinates of the second corner of the debugging image in the photographing coordinate system corresponding to the medium calibration image;
根据所述第一角点坐标与所述第二角点坐标之间的位置对应关系,确定所述投影光机与所述拍照装置之间的图像映射变换关系。According to the positional correspondence between the coordinates of the first corner point and the coordinates of the second corner point, the image mapping transformation relationship between the light projector and the photographing device is determined.
第二方面,本申请提供一种投影控制装置,所述装置包括:In a second aspect, the present application provides a projection control device, the device comprising:
介质图像获取模块,用于获取拍照装置针对当前投影介质拍摄到的介质图像;a medium image acquisition module, configured to acquire a medium image photographed by the photographing device for the current projection medium;
图像区域分割模块,用于对所述介质图像进行图像分割,得到所述介质图像所包括的多个待校验区域;an image area segmentation module, configured to perform image segmentation on the medium image to obtain a plurality of areas to be verified included in the medium image;
显示区域提取模块,用于从所述多个待校验区域中提取满足预设画面比例的最大有 效显示区域;A display area extraction module, used for extracting the maximum effective display area that satisfies the preset screen ratio from the multiple areas to be checked;
画面映射变换模块,用于根据所述最大有效显示区域在所述介质图像中的角点位置,以及投影光机与所述拍照装置之间的图像映射变换关系,将待显示画面变换到所述投影光机的与所述最大有效显示区域对应的投放区域内,得到对应的待投放画面;A picture mapping transformation module, configured to transform the to-be-displayed picture into the said Obtaining a corresponding picture to be released in the delivery area corresponding to the maximum effective display area of the projector;
画面投影控制模块,用于控制所述投影光机对所述待投放画面进行投影,使所述待显示画面的画面内容在所述投影介质上显示。The picture projection control module is used for controlling the light projector to project the picture to be displayed, so that the picture content of the picture to be displayed is displayed on the projection medium.
在可选的实施方式中,所述显示区域提取模块从所述多个待校验区域中提取满足预设画面比例的最大有效显示区域的方式,包括:In an optional implementation manner, the manner in which the display area extraction module extracts a maximum effective display area that satisfies a preset screen ratio from the plurality of areas to be verified includes:
对每个待校验区域进行四边形边界拟合;Perform quadrilateral boundary fitting for each area to be verified;
若存在拟合出四边形边界的目标校验区域,则检测拟合出的所述四边形边界的边界尺寸比例是否满足所述预设画面比例;If there is a target verification area to which the quadrilateral boundary is fitted, detecting whether the fitted boundary size ratio of the quadrilateral boundary satisfies the preset screen ratio;
在检测到所述边界尺寸比例满足所述预设画面比例的情况下,直接将对应边界尺寸比例满足所述预设画面比例的所述目标校验区域作为所述最大有效显示区域。When it is detected that the border size ratio satisfies the preset screen ratio, the target verification area whose corresponding border size ratio meets the preset screen ratio is directly used as the maximum effective display area.
在可选的实施方式中,所述显示区域提取模块从所述多个待校验区域中提取满足预设画面比例的最大有效显示区域的方式,还包括:In an optional implementation manner, the display area extraction module extracts a method of extracting a maximum effective display area that satisfies a preset screen ratio from the plurality of areas to be checked, further comprising:
在目标校验区域的边界尺寸比例不满足所述预设画面比例,或不存在所述目标校验区域的情况下,从所述多个待校验区域中提取满足所述预设画面比例的最大像素连续区域;In the case that the boundary size ratio of the target verification area does not meet the preset screen ratio, or the target verification area does not exist, extract the image size that meets the preset screen ratio from the multiple to-be-verified areas. Maximum pixel contiguous area;
将所述最大像素连续区域作为所述最大有效显示区域。The largest continuous area of pixels is used as the largest effective display area.
在可选的实施方式中,所述显示区域提取模块从所述多个待校验区域中提取满足所述预设画面比例的最大像素连续区域的方式,包括:In an optional implementation manner, the manner in which the display area extraction module extracts a maximum pixel continuous area that satisfies the preset screen ratio from the plurality of areas to be verified includes:
从所述多个待校验区域中选取预设数目个待筛查区域,其中所述待筛查区域的像素点数目大于未被选取的待校验区域的像素点数目;Select a preset number of areas to be screened from the plurality of areas to be checked, wherein the number of pixels in the area to be screened is greater than the number of pixels in the area to be checked that is not selected;
针对每个待筛查区域,确定该待筛查区域的面积最大的内接矩形连续区域;For each to-be-screened area, determine the inscribed rectangular continuous area with the largest area of the to-be-screened area;
在得到的每个内接矩形连续区域内按照所述预设画面比例求取对应的内接矩形区域;Obtain the corresponding inscribed rectangular area according to the preset screen ratio in each obtained inscribed rectangular continuous area;
将区域面积最大的所述内接矩形区域作为所述最大像素连续区域。The inscribed rectangular area with the largest area is taken as the largest pixel continuous area.
在可选的实施方式中,所述画面映射变换模块根据所述最大有效显示区域在所述介质图像中的角点位置,以及投影光机与所述拍照装置之间的图像映射变换关系,将待显示画面变换到所述投影光机的与所述最大有效显示区域对应的投放区域内,得到对应的待投放画面的方式,包括:In an optional implementation manner, the image mapping transformation module, according to the corner position of the maximum effective display area in the medium image, and the image mapping transformation relationship between the projector and the photographing device, converts the The method of transforming the to-be-displayed picture into the delivery area of the projector light machine corresponding to the maximum effective display area to obtain the corresponding to-be-released picture includes:
根据所述图像映射变换关系对所述最大有效显示区域的角点位置进行位置变换,得到所述投影光机所在的光机坐标系下的所述投放区域的角点位置坐标;Perform position transformation on the corner position of the maximum effective display area according to the image mapping transformation relationship to obtain the corner position coordinates of the placement area under the optical-mechanical coordinate system where the projector is located;
在所述光机坐标系下建立所述角点位置坐标与所述待显示画面的顶点位置坐标之间的坐标匹配关系;establishing a coordinate matching relationship between the corner position coordinates and the vertex position coordinates of the to-be-displayed picture in the optical-mechanical coordinate system;
根据所述坐标匹配关系对所述待显示画面内各像素点进行坐标变换,得到与所述投放区域位置重叠的所述待投放画面。Coordinate transformation is performed on each pixel in the to-be-displayed image according to the coordinate matching relationship, to obtain the to-be-launched image overlapping the placement area.
在可选的实施方式中,所述装置还包括:In an optional embodiment, the device further comprises:
介质投影校准模块,用于控制所述投影光机向当前投影介质投射调试画面,并获取所述拍照装置针对所述调试画面拍摄到的介质校准图像;a medium projection calibration module, configured to control the light projector to project a debugging picture to the current projection medium, and obtain a medium calibration image captured by the photographing device for the debugging picture;
角点坐标计算模块,用于计算所述调试画面在所述投影光机所在的光机坐标系下的第一角点坐标,以及所述调试画面在所述介质校准图像所对应的拍照坐标系下的第二角点坐标;The corner coordinate calculation module is used to calculate the first corner coordinates of the debugging screen in the optical-mechanical coordinate system where the projector is located, and the camera coordinate system corresponding to the medium calibration image of the debugging screen The coordinates of the second corner point below;
变换关系创建模块,用于根据所述第一角点坐标与所述第二角点坐标之间的位置对应关系,确定所述投影光机与所述拍照装置之间的图像映射变换关系。A transformation relationship creation module, configured to determine an image mapping transformation relationship between the light projector and the photographing device according to the positional correspondence between the coordinates of the first corner point and the coordinates of the second corner point.
第三方面,本申请提供一种投影光机,包括处理器和存储器,所述存储器存储有能够被所述处理器执行的计算机程序,所述处理器可执行所述计算机程序,实现前述实施方式中任意一项所述的投影控制方法。In a third aspect, the present application provides a light projector, including a processor and a memory, where the memory stores a computer program executable by the processor, and the processor can execute the computer program to implement the foregoing embodiments The projection control method described in any one of.
第四方面,本申请提供一种可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时,实现前述实施方式中任意一项所述的投影控制方法。In a fourth aspect, the present application provides a readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, implements the projection control method described in any one of the foregoing embodiments.
本申请实施例的有益效果包括如下内容:The beneficial effects of the embodiments of the present application include the following:
本申请通过获取拍照装置针对当前投影介质拍摄到的介质图像,并从介质图像中图像分割出多个待校验区域,接着从多个待校验区域中提取满足预设画面比例的最大有效显示区域,并根据及投影光机与拍照装置之间的图像映射变换关系,将待显示画面变换到投影光机的与最大有效显示区域对应的投放区域内,得到对应的待投放画面,进而直接控制投影光机对待投放画面进行投影,使待显示画面的画面内容得以快速地在投影介质上的与最大有效显示区域对应且适合画面投影的区域内显示,从而提高画面投影效果以及用户的画面浏览体验。In the present application, the medium image captured by the photographing device for the current projection medium is obtained, and a plurality of areas to be verified are divided from the images in the medium image, and then the maximum effective display that meets the preset screen ratio is extracted from the plurality of areas to be verified. area, and according to the image mapping transformation relationship between the projector and the photographing device, the image to be displayed is transformed into the projection area corresponding to the maximum effective display area of the projector to obtain the corresponding image to be released, and then directly control The projection light projector projects the screen to be displayed, so that the screen content of the screen to be displayed can be quickly displayed in the area of the projection medium corresponding to the maximum effective display area and suitable for screen projection, thereby improving the screen projection effect and the user's screen browsing experience. .
为使本申请的上述目的、特征和优点能更明显易懂,下文特举较佳实施例,并配合所附附图,作详细说明如下。In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, the preferred embodiments are exemplified below, and are described in detail as follows in conjunction with the accompanying drawings.
为了更清楚地说明本申请实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,应当理解,以下附图仅示出了本申请的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。In order to illustrate the technical solutions of the embodiments of the present application more clearly, the following drawings will briefly introduce the drawings that need to be used in the embodiments. It should be understood that the following drawings only show some embodiments of the present application, and therefore do not It should be regarded as a limitation of the scope, and for those of ordinary skill in the art, other related drawings can also be obtained according to these drawings without any creative effort.
图1为本申请实施例提供的投影控制方法的流程示意图之一;FIG. 1 is one of the schematic flowcharts of a projection control method provided by an embodiment of the present application;
图2为图1中的步骤S230包括的子步骤的流程示意图之一;FIG. 2 is one of the schematic flowcharts of the sub-steps included in step S230 in FIG. 1;
图3为图1中的步骤S230包括的子步骤的流程示意图之二;3 is the second schematic flowchart of the sub-steps included in step S230 in FIG. 1;
图4为图1中的步骤S240包括的子步骤的流程示意图;FIG. 4 is a schematic flowchart of the sub-steps included in step S240 in FIG. 1;
图5为本申请实施例提供的投影控制方法的流程示意图之二;FIG. 5 is the second schematic flowchart of the projection control method provided by the embodiment of the present application;
图6为本申请实施例提供的投影控制装置的组成示意图之一;FIG. 6 is one of the schematic diagrams of the composition of the projection control device provided by the embodiment of the present application;
图7为本申请实施例提供的投影控制装置的组成示意图之二;FIG. 7 is the second schematic diagram of the composition of the projection control device provided by the embodiment of the present application;
图8为本申请实施例提供的投影光机的组成示意图。FIG. 8 is a schematic diagram of the composition of the light projector provided by the embodiment of the present application.
图标:100-投影控制装置;110-介质图像获取模块;120-图像区域分割模块;130-显示区域提取模块;140-画面映射变换模块;150-画面投影控制模块;160-介质投影校准模块;170-角点坐标计算模块;180-变换关系创建模块;10-投影光机;11-存储器;12-处理器;13-通信单元;14-拍照装置。Icons: 100-projection control device; 110-media image acquisition module; 120-image area segmentation module; 130-display area extraction module; 140-image mapping transformation module; 150-image projection control module; 160-media projection calibration module; 170-corner coordinate calculation module; 180-transformation relationship creation module; 10-projector light machine; 11-memory; 12-processor; 13-communication unit; 14-photographing device.
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。通常在此处附图中描述和示出的本申请实施例的组件可以以各种不同的配置来布置和设计。In order to make the purposes, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments It is a part of the embodiments of the present application, but not all of the embodiments. The components of the embodiments of the present application generally described and illustrated in the drawings herein may be arranged and designed in a variety of different configurations.
因此,以下对在附图中提供的本申请的实施例的详细描述并非旨在限制要求保护的本申请的范围,而是仅仅表示本申请的选定实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。Thus, the following detailed description of the embodiments of the application provided in the accompanying drawings is not intended to limit the scope of the application as claimed, but is merely representative of selected embodiments of the application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present application.
应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步定义和解释。It should be noted that like numerals and letters refer to like items in the following figures, so once an item is defined in one figure, it does not require further definition and explanation in subsequent figures.
在本申请的描述中,需要理解的是,术语“第一”和“第二”等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。对于本领域的普通技术人员而言,可以具体情况理解上述术语在本申请中的具体含义。In the description of this application, it is to be understood that relational terms such as the terms "first" and "second" etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require Or imply that there is any such actual relationship or order between these entities or operations. Moreover, the terms "comprising", "comprising" or any other variation thereof are intended to encompass a non-exclusive inclusion such that a process, method, article or device that includes a list of elements includes not only those elements, but also includes not explicitly listed or other elements inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element. For those of ordinary skill in the art, the specific meanings of the above terms in this application can be understood in specific situations.
下面结合附图,对本申请的一些实施方式作详细说明。在不冲突的情况下,下述的实施例及实施例中的特征可以相互结合。Some embodiments of the present application will be described in detail below with reference to the accompanying drawings. The following embodiments and features of the embodiments may be combined with each other without conflict.
请参照图1,图1是本申请实施例提供的投影控制方法的流程示意图之一。在本申请实施例中,图1所示的投影控制方法能够自动地在当前投影介质上圈定适合画面投影的有效区域范围,并自动且快速地将待显示画面投影到有效区域范围内进行显示,从而确保投影介质上显示画面的区域能够满足画面投影需求,避免产生人工调试投影光机所造成的画面投影误差,提升画面投影效率,以提高画面投影效果及用户的画面浏览体验。其中,所述投影介质可由投影光机的使用人员根据自身需求进行随机选择,所述投影介质可以是,但不限于,空白墙面、空白报板、空白幕布等;图1所示的投影控制方法可由与投影光机及拍照装置通信连接的计算机设备单独执行,也可直接由与拍照装置通信连接的投影光机单独执行,还可由集成有拍照装置的投影光机独自执行。下面对图1所示的投影控制方法进行详细描述。Please refer to FIG. 1 . FIG. 1 is a schematic flowchart of a projection control method provided by an embodiment of the present application. In the embodiment of the present application, the projection control method shown in FIG. 1 can automatically delineate an effective area suitable for image projection on the current projection medium, and automatically and quickly project the to-be-displayed image into the effective area for display. This ensures that the area where the image is displayed on the projection medium can meet the image projection requirements, avoids image projection errors caused by manual adjustment of the projector light machine, and improves the image projection efficiency, so as to improve the image projection effect and the user's image browsing experience. Wherein, the projection medium can be randomly selected by the user of the light projector according to their own needs, and the projection medium can be, but not limited to, a blank wall, a blank newspaper board, a blank curtain, etc.; the projection control shown in FIG. 1 The method can be executed solely by the computer equipment communicatively connected with the projector and the photographing device, or directly by the projector communicatively connected with the photographing device, or by the projector integrated with the photographing device. The projection control method shown in FIG. 1 will be described in detail below.
步骤S210,获取拍照装置针对当前投影介质拍摄到的介质图像。Step S210, acquiring a medium image photographed by the photographing device for the current projection medium.
在本实施例中,当确定出需要进行画面投射的当前投影介质后,可通过投影光机或其他光影投射设备向当前投影介质投射纯白图像,而后由拍照装置对当前投影介质进行图像采集,得到当前投影介质所对应的介质图像。在此过程中,为提升图1所示的投影控制方法的投影精准度,被投射的纯白图像的亮度需高于所述投影光机的最大投影亮度的20%,以确保采集到的所述介质图像中蕴含的介质特征更为丰富细致。In this embodiment, after the current projection medium that needs to be projected is determined, a pure white image can be projected onto the current projection medium through a light projector or other light and shadow projection equipment, and then an image of the current projection medium is captured by the photographing device. Obtain the medium image corresponding to the current projection medium. In this process, in order to improve the projection accuracy of the projection control method shown in FIG. 1, the brightness of the projected pure white image needs to be higher than 20% of the maximum projection brightness of the projector to ensure that all the collected The media features contained in the media images are richer and more detailed.
其中,当所述拍照装置拍摄到所述介质图像后,执行图1所示的投影控制方法的电子设备(比如,与投影光机及拍照装置通信连接的计算机设备,或与拍照装置通信连接的投影光机)可直接通过网络从该拍照装置处获取到所述介质图像。Wherein, after the photographing device captures the medium image, an electronic device (for example, a computer device that is communicatively connected to the projector and the photographing device, or an electronic device that is communicatively connected to the photographing device) executes the projection control method shown in FIG. 1 . projector) can directly obtain the medium image from the photographing device through the network.
步骤S220,对介质图像进行图像分割,得到介质图像所包括的多个待校验区域。Step S220: Perform image segmentation on the medium image to obtain a plurality of regions to be verified included in the medium image.
在本实施例中,当得到当前投影介质的介质图像后,可通过采用漫水填充算法或分水岭算法,对所述介质图像内各像素点进行相似色度聚类,并按照聚类结果对该介质图像进行图像分割,以从所述介质图像中分割出多个待校验区域。其中,每个待校验区域内的各像素点被归属于同一像素色度类别。In this embodiment, after the medium image of the current projection medium is obtained, the flood filling algorithm or the watershed algorithm can be used to perform similar chromaticity clustering on each pixel in the medium image, and the corresponding chromaticity can be clustered according to the clustering result. Image segmentation is performed on the medium image to segment a plurality of regions to be verified from the medium image. Wherein, each pixel point in each area to be checked belongs to the same pixel chromaticity category.
步骤S230,从多个待校验区域中提取满足预设画面比例的最大有效显示区域。Step S230, extracting a maximum effective display area that satisfies a preset screen ratio from a plurality of areas to be verified.
在本实施例中,所述预设画面比例用于表示预先设定的适合画面投影区域所能承载的画面尺寸比例,其中所述预设画面比例可以是以一个画面比例范围(比如,16:9~16:10)进行表达,也可以是多个具体比例的组合(比如,3:2、4:3及16:9)进行表达,还可以是单个尺寸比例(比如,16:9)进行表达。In this embodiment, the preset aspect ratio is used to represent a preset image size ratio that is suitable for the image projection area to carry, wherein the preset aspect ratio can be a range of image ratios (for example, 16: 9 to 16:10), or a combination of multiple specific ratios (for example, 3:2, 4:3, and 16:9), or a single size ratio (for example, 16:9). Express.
当确定出介质图像所包括的多个待校验区域后,可按照所述预设画面比例确定这多个待校验区域中是否直接存在某个待校验区域能够直接作为实现最佳画面投影效果的最大有效显示区域,或在这多个待校验区域中截取出无异物及杂色存在且满足所述预设画面比例的最大图像区域作为所述最大有效显示区域。After the multiple areas to be verified included in the medium image are determined, it can be determined according to the preset screen ratio whether there is a certain area to be verified directly in the multiple areas to be verified, which can be directly used as the optimal image projection The maximum effective display area of the effect, or the largest image area that is free from foreign matter and noise and meets the preset screen ratio is cut out from the multiple areas to be verified as the maximum effective display area.
步骤S240,根据最大有效显示区域在介质图像中的角点位置,以及投影光机与拍照装置之间的图像映射变换关系,将待显示画面变换到投影光机的与最大有效显示区域对应的投放区域内,得到对应的待投放画面。Step S240, according to the corner position of the maximum effective display area in the medium image, and the image mapping transformation relationship between the projector and the photographing device, transform the to-be-displayed picture into the projection corresponding to the maximum effective display area of the projector. In the area, the corresponding to-be-delivered screen is obtained.
在本实施例中,所述图像映射变换关系用于表示在投影光机与拍照装置以当前投影介质为参照的情况下,同一事物在投影光机所投影的画面及拍照装置所拍摄的图像中各自对应的事物位置之间的映射关系。换句话说,在所述投影光机与所述拍照装置各自相对于当前投影介质不发生位置变化的情况下,所述投影光机向当前投影介质投影包括某一事物的画面,而所述拍照装置朝向当前投影介质对包括该事物的画面进行拍照时,该事物在所述投影光机所在的光机坐标系下的位置信息,与该事物在所述拍照装置所在的拍照坐标系下的位置信息之间的位置匹配关系,即为上述图像映射变换关系。此时,所述投放区域即为所述投影光机所在的光机坐标系下与所述最大有效显示区域相互对应的区域。其中,所述投放区域的具体位置信息可由所述最大有效显示区域在所述介质图像内的相关位置信息通过所述图像映射变换关系转换得到。In this embodiment, the image mapping transformation relationship is used to indicate that in the case where the projector and the photographing device use the current projection medium as a reference, the same thing is in the picture projected by the projector and the image captured by the photographing device. The mapping relationship between their corresponding thing positions. In other words, under the condition that the positions of the light projector and the photographing device do not change relative to the current projection medium, the light projector projects a picture including a certain thing to the current projection medium, and the photographing device When the device faces the current projection medium to take a picture of the picture including the object, the position information of the object in the optical-mechanical coordinate system where the projector is located is the same as the location of the object in the photographing coordinate system where the photographing device is located. The position matching relationship between the information is the above-mentioned image mapping transformation relationship. In this case, the delivery area is an area corresponding to the maximum effective display area in the optical-mechanical coordinate system where the projector is located. Wherein, the specific position information of the placement area can be obtained by converting the relevant position information of the maximum effective display area in the medium image through the image mapping transformation relationship.
当通过所述最大有效显示区域在所述介质图像内的角点位置,确定出所述最大有效显示区域所对应的投放区域的角点位置后,可通过坐标变换的方式将待显示画面整体对齐到所述投放区域的范围内,得到对应的待投放画面,以在所述投影光机直接朝向当前投影介质对所述待投放画面进行投影时,当前投影介质的与最大有效显示区域对应且适合画面投影的区域内会真实有效地显现出所述待显示画面的画面内容。After the corner position of the delivery area corresponding to the maximum effective display area is determined through the corner position of the maximum effective display area in the medium image, the image to be displayed can be aligned as a whole by means of coordinate transformation Within the range of the projection area, the corresponding to-be-released picture is obtained, so that when the projector directly projects the to-be-released picture toward the current projection medium, the current projection medium corresponds to the maximum effective display area and is suitable for The image content of the to-be-displayed image will be truly and effectively displayed in the image projection area.
步骤S250,控制投影光机对待投放画面进行投影,使待显示画面的画面内容在投影介质上显示。Step S250 , controlling the light projector to project the picture to be displayed, so that the picture content of the picture to be displayed is displayed on the projection medium.
在本实施例中,当待显示画面在光机坐标系所在层面内被变换到与所述最大有效显示区域对应的投放区域内后,可直接控制所述投影光机对得到的待投放画面进行投影,使该待投放画面对应投射在当前投影介质的与最大有效显示区域对应且适合画面投影的区域内,使待显示画面的画面内容得以在当前投影介质的适合画面投影区域内正常显示,以达到最佳的画面投影效果,提升用户的画面浏览体验,无需花费人力成本确定最佳投影区域及调试投影光机。In this embodiment, after the image to be displayed is transformed into the delivery area corresponding to the maximum effective display area in the layer where the optical-machine coordinate system is located, the projector can be directly controlled to perform the operation on the obtained image to be displayed. Projection, so that the to-be-launched picture is correspondingly projected in the area of the current projection medium that corresponds to the maximum effective display area and is suitable for picture projection, so that the picture content of the to-be-displayed picture can be displayed normally in the suitable picture projection area of the current projection medium. To achieve the best screen projection effect, improve the user's screen browsing experience, without spending labor costs to determine the best projection area and debug the projector.
由此,本申请可通过执行图1所示的投影控制方法,使投影光机能够自适应地确定当前投影介质上适合画面投影的有效区域范围,并自动且快速地将待显示画面的画面内容投影到有效区域范围内进行显示,避免产生人工调试投影光机所造成的画面投影误差,提升画面投影效率,以提高画面投影效果及用户的画面浏览体验。Therefore, the present application can implement the projection control method shown in FIG. 1 , so that the light projector can adaptively determine the effective area range suitable for picture projection on the current projection medium, and automatically and quickly convert the picture content of the picture to be displayed. Projecting into the effective area for display, avoiding the screen projection error caused by manual debugging of the projector, and improving the screen projection efficiency, so as to improve the screen projection effect and the user's screen browsing experience.
在本申请中,介质图像中的最大有效显示区域的具体选定,是影响投影控制方法的画面投影效果的重要因素,因此本申请实施例提供如下能够提取真实有效的显示区域提取方式,来确保所述投影光机能够有效地将待显示画面的画面内容投影到当前投影介质的适合画面投影区域内进行显示。下面对该显示区域提取方式进行详细阐述。In the present application, the specific selection of the maximum effective display area in the medium image is an important factor affecting the screen projection effect of the projection control method. Therefore, the embodiment of the present application provides the following extraction methods that can extract the real and effective display area to ensure that The light projector can effectively project the picture content of the picture to be displayed into a suitable picture projection area of the current projection medium for display. The method of extracting the display area will be described in detail below.
可选地,请参照图2,图2是图1中的步骤S230包括的子步骤的流程示意图之一。在本实施例中,所述步骤S230可以包括子步骤S231~子步骤S233。Optionally, please refer to FIG. 2 , which is one of the schematic flowcharts of the sub-steps included in step S230 in FIG. 1 . In this embodiment, the step S230 may include sub-steps S231 to S233.
子步骤S231,对每个待校验区域进行四边形边界拟合。Sub-step S231, performing quadrilateral boundary fitting on each area to be checked.
子步骤S232,若存在拟合出四边形边界的目标校验区域,则检测拟合出的四边形边界的边界尺寸比例是否满足预设画面比例。In sub-step S232, if there is a target verification area in which the quadrilateral boundary is fitted, it is detected whether the boundary size ratio of the fitted quadrilateral boundary satisfies the preset screen ratio.
子步骤S233,在检测到边界尺寸比例满足预设画面比例的情况下,直接将对应边界尺寸比例满足预设画面比例的目标校验区域作为最大有效显示区域。In sub-step S233, when it is detected that the border size ratio meets the preset screen ratio, the target verification area corresponding to the border size ratio satisfying the preset screen ratio is directly used as the maximum effective display area.
其中,若存在多个对应边界尺寸比例满足预设画面比例的目标校验区域,则可将面积最大的该目标校验区域作为所述最大有效显示区域,以保证待显示画面的画面内容能够在确保画面投影效果的同时,实现画面投影最大化功能。Wherein, if there are multiple target verification areas whose corresponding boundary size ratios meet the preset screen ratio, the target verification area with the largest area may be used as the maximum effective display area, so as to ensure that the screen content of the screen to be displayed can be displayed in the While ensuring the effect of screen projection, the function of maximizing screen projection is realized.
在本实施例中,可通过执行上述子步骤S231~子步骤S233的方式,确定上述多个待校验区域中能够直接作为实现最佳画面投影效果的最大有效显示区域的目标校验区域,以确保所述投影光机最终能够将待显示画面的画面内容投影到当前投影介质中适合画面投影的区域内。In this embodiment, the above-mentioned sub-steps S231 to S233 can be executed to determine the target verification area that can be directly used as the maximum effective display area for realizing the best image projection effect among the above-mentioned multiple areas to be verified, so as to It is ensured that the light projector can finally project the picture content of the picture to be displayed into an area suitable for picture projection in the current projection medium.
可选地,请参照图3,图3是图1中的步骤S230包括的子步骤的流程示意图之二。在本实施例中,所述步骤S230还可以包括子步骤S235~子步骤S236。Optionally, please refer to FIG. 3 , which is the second schematic flowchart of the sub-steps included in step S230 in FIG. 1 . In this embodiment, the step S230 may further include sub-steps S235 to S236.
子步骤S235,在目标校验区域的边界尺寸比例不满足预设画面比例,或不存在目标校验区域的情况下,从多个待校验区域中提取满足预设画面比例的最大像素连续区域。Sub-step S235, in the case that the boundary size ratio of the target verification area does not meet the preset screen ratio, or there is no target verification area, extract the maximum pixel continuous area that meets the preset screen ratio from the multiple to-be-verified areas .
子步骤S236,将最大像素连续区域作为最大有效显示区域。In sub-step S236, the maximum continuous area of pixels is used as the maximum effective display area.
在本实施例中,当确定介质图像所包括的多个待校验区域中并不存在任何一个能够拟合出四边形边界的目标校验区域,或者所述多个待校验区域中的目标校验区域所对应 的边界尺寸比例并不满足所述预设画面比例的情况下,可通过在这多个待校验区域中截取出无异物及杂色存在且满足所述预设画面比例的最大图像区域(即最大像素连续区域)作为当前的最大有效显示区域,以确保画面投影效果。In this embodiment, when it is determined that there is no target verification area capable of fitting a quadrilateral boundary among the multiple areas to be verified included in the medium image, or the target verification area in the multiple areas to be verified does not exist When the boundary size ratio corresponding to the test area does not meet the preset screen ratio, the maximum size that does not exist foreign objects and noise and satisfies the preset screen ratio can be cut out from the multiple areas to be verified. The image area (ie, the maximum pixel continuous area) is used as the current maximum effective display area to ensure the screen projection effect.
其中,所述从多个待校验区域中提取满足预设画面比例的最大像素连续区域的步骤,可以包括:Wherein, the step of extracting the largest pixel continuous area that meets the preset screen ratio from the multiple areas to be verified may include:
从所述多个待校验区域中选取预设数目个待筛查区域,其中所述待筛查区域的像素点数目大于未被选取的待校验区域的像素点数目;Select a preset number of areas to be screened from the plurality of areas to be checked, wherein the number of pixels in the area to be screened is greater than the number of pixels in the area to be checked that is not selected;
针对每个待筛查区域,确定该待筛查区域的面积最大的内接矩形连续区域;For each to-be-screened area, determine the inscribed rectangular continuous area with the largest area of the to-be-screened area;
在得到的每个内接矩形连续区域内按照所述预设画面比例求取对应的内接矩形区域;Obtain the corresponding inscribed rectangular area according to the preset screen ratio in each obtained inscribed rectangular continuous area;
将区域面积最大的所述内接矩形区域作为所述最大像素连续区域。The inscribed rectangular area with the largest area is taken as the largest pixel continuous area.
在本实施例的一种实施方式中,在确定出预设数目个待筛查区域后,可针对每个待筛查区域提取其区域轮廓,并采用直方图投影算法确定该区域轮廓内面积最大的矩形连续区域,得到该待筛查区域所对应的内接矩形连续区域。In an implementation of this embodiment, after a preset number of areas to be screened are determined, an area contour can be extracted for each area to be screened, and a histogram projection algorithm is used to determine the largest area within the contour of the area to obtain the inscribed rectangular continuous area corresponding to the area to be screened.
由此,在本实施例中,可通过执行上述子步骤S235~子步骤S236的方式,从上述多个待校验区域中截取出无异物及杂色存在且满足所述预设画面比例的最大图像区域,来充当实现最佳画面投影效果的最大有效显示区域,以确保所述投影光机最终能够将待显示画面的画面内容投影到当前投影介质中适合画面投影的区域范围内。Therefore, in this embodiment, the above-mentioned sub-step S235 to sub-step S236 can be performed to cut out the maximum of the preset screen ratio without foreign matter and noise from the above-mentioned multiple areas to be checked. The image area is used as the maximum effective display area for achieving the best picture projection effect, so as to ensure that the light projector can finally project the picture content of the picture to be displayed into the area suitable for picture projection in the current projection medium.
在本申请中,本申请实施例提供一种针对待显示画面的画面变换方式,确保所述投影光机最终投影出的画面实质与最大有效显示区域相互匹配,实现投影光机的投影自动化调控操作,避免出现投影误差。下面对该画面变换方式进行详细阐述。In the present application, the embodiment of the present application provides a picture transformation method for the picture to be displayed, so as to ensure that the essence of the picture finally projected by the light projector matches the maximum effective display area, and realize the automatic control operation of projection of the light projector. , to avoid projection errors. The screen transition method will be described in detail below.
请参照图4,图4是图1中的步骤S240包括的子步骤的流程示意图。在本实施例中,所述步骤S240可以包括子步骤S241~子步骤S243。Please refer to FIG. 4 , which is a schematic flowchart of sub-steps included in step S240 in FIG. 1 . In this embodiment, the step S240 may include sub-steps S241 to S243.
子步骤S241,根据图像映射变换关系对最大有效显示区域的角点位置进行位置变换,得到投影光机所在的光机坐标系下的投放区域的角点位置坐标。Sub-step S241: Perform positional transformation on the corner position of the maximum effective display area according to the image mapping transformation relationship to obtain the corner position coordinates of the delivery area in the optical-mechanical coordinate system where the projector is located.
子步骤S242,在光机坐标系下建立角点位置坐标与待显示画面的顶点位置坐标之间的坐标匹配关系。Sub-step S242, establishing a coordinate matching relationship between the position coordinates of the corner points and the position coordinates of the vertices of the to-be-displayed picture in the optical-mechanical coordinate system.
子步骤S243,根据坐标匹配关系对待显示画面内各像素点进行坐标变换,得到与投放区域位置重叠的待投放画面。In sub-step S243, coordinate transformation is performed on each pixel in the to-be-displayed image according to the coordinate matching relationship, so as to obtain the to-be-launched image overlapping the placement area.
其中,坐标匹配关系用于表示所述最大有效显示区域在所述光机坐标系所在层面内对应的投放区域,与所述待显示画面的画面轮廓区域之间的位置映射关系。The coordinate matching relationship is used to represent the position mapping relationship between the placement area corresponding to the maximum effective display area in the layer where the optical-mechanical coordinate system is located, and the outline area of the image to be displayed.
由此,本申请可通过执行子步骤S241~子步骤S243,将待显示画面的画面内容有效地对齐到所述投放区域的范围内,实现投影光机的投影自动化调控操作,避免出现投影误差。Therefore, the present application can effectively align the screen content of the screen to be displayed within the range of the delivery area by executing sub-steps S241 to S243, so as to realize the automatic projection control operation of the light projector and avoid projection errors.
可选地,请参照图5,图5是本申请实施例提供的投影控制方法的流程示意图之二。在本申请实施例中,图5所示的投影控制方法与图1所示的投影控制方法相比,图5所示的投影控制方法还包括步骤S207、步骤S208及步骤S209。其中,所述步骤S207、 步骤S208及步骤S209用于在所述投影光机与所述拍照装置各自相对于当前投影介质的位置不变时,精准测量出以当前投影介质为参照的投影光机与拍照装置之间的图像映射变换关系,进而保证投影光机能够正常将待显示画面投影到当前投影介质上适合画面投影的有效区域范围内,提升用户的画面浏览体验。其中,当所述投影光机和/或所述拍照装置相对于当前投影介质发生位置变动时,便需重新执行所述步骤S207、步骤S208及步骤S209,以对所述图像映射变换关系进行参数校准。Optionally, please refer to FIG. 5 , which is the second schematic flowchart of the projection control method provided by the embodiment of the present application. In the embodiment of the present application, the projection control method shown in FIG. 5 is compared with the projection control method shown in FIG. 1 , and the projection control method shown in FIG. 5 further includes step S207 , step S208 and step S209 . Wherein, the steps S207, S208 and S209 are used to accurately measure the projector with the current projection medium as a reference when the positions of the projector and the photographing device relative to the current projection medium remain unchanged. The image mapping transformation relationship between the camera and the photographing device ensures that the projector can normally project the to-be-displayed image on the current projection medium within an effective area suitable for image projection, thereby improving the user's image browsing experience. Wherein, when the position of the projector and/or the photographing device changes relative to the current projection medium, the steps S207, S208 and S209 need to be re-executed to parameterize the image mapping transformation relationship. calibration.
步骤S207,控制投影光机向当前投影介质投射调试画面,并获取拍照装置针对调试画面拍摄到的介质校准图像。Step S207 , controlling the light projector to project a debugging picture to the current projection medium, and acquiring a medium calibration image captured by the photographing device for the debugging picture.
步骤S208,计算调试画面在投影光机所在的光机坐标系下的第一角点坐标,以及调试画面在介质校准图像所对应的拍照坐标系下的第二角点坐标。Step S208: Calculate the first corner coordinates of the debugging screen in the optical-mechanical coordinate system where the projector is located, and the second corner coordinates of the debugging screen in the photographing coordinate system corresponding to the medium calibration image.
步骤S209,根据第一角点坐标与第二角点坐标之间的位置对应关系,确定投影光机与拍照装置之间的图像映射变换关系。Step S209, according to the positional correspondence between the coordinates of the first corner point and the coordinates of the second corner point, determine the image mapping transformation relationship between the projector and the photographing device.
在本实施例中,所述调试画面可以是黑白棋盘格画面,也可以是黑白条纹画面,具体的画面内容可根据用户需求进行不同的配置。在本实施例的一种实施方式中,可直接将调试画面所对应的第一角点坐标与第二角点坐标之间的位置对应关系,作为所述图像映射变换关系。In this embodiment, the debugging screen may be a black and white checkerboard screen or a black and white stripe screen, and the specific screen content may be configured differently according to user requirements. In an implementation of this embodiment, the positional correspondence between the coordinates of the first corner point and the coordinates of the second corner point corresponding to the debugging screen may be directly used as the image mapping transformation relationship.
由此,本申请可通过执行上述步骤S207、步骤S208及步骤S209,在所述投影光机与所述拍照装置各自相对于当前投影介质的位置不变时,精准测量出以当前投影介质为参照的投影光机与拍照装置之间的图像映射变换关系,并在所述投影光机和/或所述拍照装置相对于当前投影介质发生位置变动时,同步地对所述图像映射变换关系进行参数校准,进而保证所述投影光机最终能够正常地将待显示画面的画面内容投影到当前投影介质的适合画面投影的有效区域范围内,提升用户的画面浏览体验。Therefore, the present application can accurately measure the current projection medium as a reference by performing the above steps S207, S208 and S209 when the respective positions of the projector and the photographing device relative to the current projection medium remain unchanged. The image mapping transformation relationship between the projector and the photographing device, and when the position of the projector and/or the photographing device changes relative to the current projection medium, the image mapping transformation relationship is synchronously parameterized calibration, thereby ensuring that the light projector can finally normally project the picture content of the picture to be displayed into the effective area of the current projection medium suitable for picture projection, so as to improve the user's picture browsing experience.
在本申请中,本申请实施例提供一种投影控制装置,使存储或固化有所述投影控制装置的电子设备能够通过运行所述投影控制装置所包括的软件功能模块及计算机程序等,实现上述投影控制方法所对应的功能。下面对本申请提供的投影控制装置的具体组成进行描述。In the present application, an embodiment of the present application provides a projection control device, so that an electronic device that stores or solidifies the projection control device can realize the above-mentioned by running the software function modules and computer programs included in the projection control device. The function corresponding to the projection control method. The specific composition of the projection control device provided by the present application will be described below.
可选地,请参照图6,图6是本申请实施例提供的投影控制装置100的组成示意图之一。在本申请实施例中,所述投影控制装置100可以包括介质图像获取模块110、图像区域分割模块120、显示区域提取模块130、画面映射变换模块140及画面投影控制模块150。Optionally, please refer to FIG. 6 . FIG. 6 is one of the schematic diagrams of the composition of the projection control apparatus 100 provided by the embodiment of the present application. In this embodiment of the present application, the projection control apparatus 100 may include a medium image acquisition module 110 , an image region segmentation module 120 , a display region extraction module 130 , an image mapping transformation module 140 , and an image projection control module 150 .
介质图像获取模块110,用于获取拍照装置针对当前投影介质拍摄到的介质图像。The medium image acquisition module 110 is configured to acquire a medium image photographed by the photographing device for the current projection medium.
图像区域分割模块120,用于对介质图像进行图像分割,得到介质图像所包括的多个待校验区域。The image area segmentation module 120 is configured to perform image segmentation on the medium image to obtain a plurality of areas to be verified included in the medium image.
显示区域提取模块130,用于从多个待校验区域中提取满足预设画面比例的最大有效显示区域。The display area extraction module 130 is configured to extract the maximum effective display area that meets the preset screen ratio from the multiple areas to be checked.
画面映射变换模块140,用于根据最大有效显示区域在介质图像中的角点位置,以及投影光机与拍照装置之间的图像映射变换关系,将待显示画面变换到投影光机的与最大有效显示区域对应的投放区域内,得到对应的待投放画面。The picture mapping transformation module 140 is used to transform the to-be-displayed picture into the maximum effective display area and the maximum effective display area according to the corner position of the maximum effective display area in the medium image and the image mapping transformation relationship between the projector and the photographing device. In the delivery area corresponding to the display area, the corresponding to-be-delivered screen is obtained.
画面投影控制模块150,用于控制投影光机对待投放画面进行投影,使待显示画面的画面内容在投影介质上显示。The picture projection control module 150 is used for controlling the light projector to project the picture to be displayed, so that the picture content of the picture to be displayed is displayed on the projection medium.
在本实施例的一种实施方式中,所述显示区域提取模块130从多个待校验区域中提取满足预设画面比例的最大有效显示区域的方式,可以包括:In an implementation of this embodiment, the manner in which the display area extracting module 130 extracts the maximum effective display area that satisfies the preset screen ratio from the multiple areas to be checked may include:
对每个待校验区域进行四边形边界拟合;Perform quadrilateral boundary fitting for each area to be verified;
若存在拟合出四边形边界的目标校验区域,则检测拟合出的四边形边界的边界尺寸比例是否满足预设画面比例;If there is a target verification area to which the quadrilateral boundary is fitted, then check whether the boundary size ratio of the fitted quadrilateral boundary meets the preset screen ratio;
在检测到边界尺寸比例满足预设画面比例的情况下,直接将对应边界尺寸比例满足预设画面比例的目标校验区域作为最大有效显示区域。When it is detected that the border size ratio satisfies the preset screen ratio, the target verification area corresponding to the border size ratio satisfying the preset screen ratio is directly used as the maximum effective display area.
在本实施例的另一种实施方式中,所述显示区域提取模块130从多个待校验区域中提取满足预设画面比例的最大有效显示区域的方式,还可以包括:In another implementation of this embodiment, the manner in which the display area extraction module 130 extracts the maximum effective display area that satisfies the preset screen ratio from a plurality of areas to be checked may further include:
在目标校验区域的边界尺寸比例不满足预设画面比例,或不存在目标校验区域的情况下,从多个待校验区域中提取满足预设画面比例的最大像素连续区域;In the case that the boundary size ratio of the target verification area does not meet the preset screen ratio, or the target verification area does not exist, extract the maximum pixel continuous area that meets the preset screen ratio from the multiple to-be-verified areas;
将最大像素连续区域作为最大有效显示区域。Take the largest pixel contiguous area as the largest effective display area.
其中,所述显示区域提取模块130从多个待校验区域中提取满足预设画面比例的最大像素连续区域的方式,包括:Wherein, the manner in which the display area extracting module 130 extracts the maximum pixel continuous area satisfying the preset screen ratio from the multiple areas to be verified includes:
从多个待校验区域中选取预设数目个待筛查区域,其中待筛查区域的像素点数目大于未被选取的待校验区域的像素点数目;Select a preset number of areas to be screened from a plurality of areas to be checked, wherein the number of pixels in the area to be screened is greater than the number of pixels in the area to be checked that is not selected;
针对每个待筛查区域,确定该待筛查区域的面积最大的内接矩形连续区域;For each to-be-screened area, determine the inscribed rectangular continuous area with the largest area of the to-be-screened area;
在得到的每个内接矩形连续区域内按照预设画面比例求取对应的内接矩形区域;In each obtained inscribed rectangular continuous area, the corresponding inscribed rectangular area is obtained according to the preset screen ratio;
将区域面积最大的内接矩形区域作为最大像素连续区域。The inscribed rectangular area with the largest area is regarded as the largest pixel continuous area.
在本实施例中,所述画面映射变换模块140根据最大有效显示区域在介质图像中的角点位置,以及投影光机与拍照装置之间的图像映射变换关系,将待显示画面变换到投影光机的与最大有效显示区域对应的投放区域内,得到对应的待投放画面的方式,可以包括:In this embodiment, the picture mapping transformation module 140 transforms the picture to be displayed into the projection light according to the corner position of the maximum effective display area in the medium image and the image mapping transformation relationship between the light projector and the camera device. The method of obtaining the corresponding to-be-delivered screen in the delivery area corresponding to the maximum effective display area of the computer may include:
根据图像映射变换关系对最大有效显示区域的角点位置进行位置变换,得到投影光机所在的光机坐标系下的投放区域的角点位置坐标;Perform position transformation on the corner position of the maximum effective display area according to the image mapping transformation relationship, and obtain the corner position coordinates of the placement area under the optical-mechanical coordinate system where the projector is located;
在光机坐标系下建立角点位置坐标与待显示画面的顶点位置坐标之间的坐标匹配关系;Establish the coordinate matching relationship between the corner position coordinates and the vertex position coordinates of the to-be-displayed image in the optical-mechanical coordinate system;
根据坐标匹配关系对待显示画面内各像素点进行坐标变换,得到与投放区域位置重叠的待投放画面。According to the coordinate matching relationship, coordinate transformation is performed on each pixel in the to-be-displayed image to obtain the to-be-launched image overlapping the placement area.
可选地,请参照图7,图7是本申请实施例提供的投影控制装置100的组成示意图之二。在本申请实施例中,所述投影控制装置100还可以包括介质投影校准模块160、角点坐标计算模块170及变换关系创建模块180。Optionally, please refer to FIG. 7 . FIG. 7 is the second schematic diagram of the composition of the projection control apparatus 100 provided by the embodiment of the present application. In this embodiment of the present application, the projection control apparatus 100 may further include a medium projection calibration module 160 , a corner coordinate calculation module 170 and a transformation relationship creation module 180 .
介质投影校准模块160,用于控制投影光机向当前投影介质投射调试画面,并获取 拍照装置针对调试画面拍摄到的介质校准图像。The medium projection calibration module 160 is used to control the light projector to project the debugging picture to the current projection medium, and obtain the medium calibration image captured by the photographing device for the debugging picture.
角点坐标计算模块170,用于计算调试画面在投影光机所在的光机坐标系下的第一角点坐标,以及调试画面在介质校准图像所对应的拍照坐标系下的第二角点坐标。The corner coordinate calculation module 170 is used to calculate the first corner coordinates of the debugging screen in the optical-mechanical coordinate system where the projector is located, and the second corner coordinates of the debugging screen in the photographing coordinate system corresponding to the medium calibration image. .
变换关系创建模块180,用于根据第一角点坐标与第二角点坐标之间的位置对应关系,确定投影光机与拍照装置之间的图像映射变换关系。The transformation relationship creation module 180 is configured to determine the image mapping transformation relationship between the projector and the photographing device according to the positional correspondence between the coordinates of the first corner point and the coordinates of the second corner point.
需要说明的是,本申请实施例所提供的投影控制装置100,其基本原理及产生的技术效果与前述投影控制方法相同,为简要描述,本实施例部分未提及之处,可参考上述的针对投影控制方法的描述内容。It should be noted that the basic principles and technical effects of the projection control device 100 provided by the embodiments of the present application are the same as the aforementioned projection control methods. A description of the projection control method.
在本申请中,本申请实施例提供一种存储或固化有所述投影控制装置100的投影光机,其能够通过运行所述投影控制装置100所包括的软件功能模块及计算机程序等,实现上述投影控制方法所对应的功能。下面对本申请提供的投影光机的具体组成进行描述。In the present application, an embodiment of the present application provides a light projector in which the projection control device 100 is stored or cured, which can implement the above-mentioned functions by running software function modules and computer programs included in the projection control device 100 . The function corresponding to the projection control method. The specific composition of the optical projector provided by the present application will be described below.
请参照图8,图8是本申请实施例提供的投影光机10的组成示意图。在本申请实施例中,所述投影光机10可用于针对待显示画面自动地在当前投影介质上圈定适合画面投影的有效区域范围,并自动且快速地将待显示画面投影到有效区域范围内进行显示,从而确保投影介质上显示画面的区域能够满足画面投影需求,避免产生人工调试投影光机10所造成的画面投影误差,提升画面投影效率,以提高画面投影效果及用户的画面浏览体验。Please refer to FIG. 8 , which is a schematic diagram of the composition of the light projector 10 provided by the embodiment of the present application. In the embodiment of the present application, the light projector 10 can be used to automatically delineate an effective area suitable for image projection on the current projection medium for the to-be-displayed image, and automatically and quickly project the to-be-displayed image into the effective area. To ensure that the area where the image is displayed on the projection medium can meet the image projection requirements, avoid image projection errors caused by manual debugging of the projector 10, and improve the image projection efficiency, so as to improve the image projection effect and the user's image browsing experience.
其中,所述投影光机10可以包括存储器11、处理器12、通信单元13、拍照装置14及所述投影控制装置100。所述存储器11、所述处理器12、所述通信单元13及所述拍照装置14各个元件相互之间接或间接地电性连接,以实现数据的传输或交互。例如,所述存储器11、所述处理器12、所述通信单元13及所述拍照装置14这些元件相互之间可通过一条或多条通讯总线或信号线实现电性连接。The projector 10 may include a memory 11 , a processor 12 , a communication unit 13 , a photographing device 14 and the projection control device 100 . The elements of the memory 11 , the processor 12 , the communication unit 13 , and the photographing device 14 are electrically connected to each other indirectly or indirectly to realize data transmission or interaction. For example, the elements of the memory 11 , the processor 12 , the communication unit 13 and the photographing device 14 can be electrically connected to each other through one or more communication buses or signal lines.
在本实施例中,所述存储器11可以是,但不限于,随机存取存储器(Random Access Memory,RAM),只读存储器(Read Only Memory,ROM),可编程只读存储器(Programmable Read-Only Memory,PROM),可擦除只读存储器(Erasable Programmable Read-Only Memory,EPROM),电可擦除只读存储器(Electric Erasable Programmable Read-Only Memory,EEPROM)等。其中,所述存储器11用于存储计算机程序,所述处理器12在接收到执行指令后,可相应地执行所述计算机程序。In this embodiment, the memory 11 may be, but not limited to, a random access memory (Random Access Memory, RAM), a read only memory (Read Only Memory, ROM), a programmable read only memory (Programmable Read-Only Memory) Memory, PROM), Erasable Programmable Read-Only Memory (EPROM), Electrically Erasable Read-Only Memory (Electric Erasable Programmable Read-Only Memory, EEPROM), etc. Wherein, the memory 11 is used for storing a computer program, and the processor 12 can execute the computer program correspondingly after receiving the execution instruction.
在本实施例中,所述处理器12可以是一种具有信号的处理能力的集成电路芯片。所述处理器12可以是通用处理器,包括中央处理器(Central Processing Unit,CPU)、图形处理器(Graphics Processing Unit,GPU)及网络处理器(Network Processor,NP)中的至少一种。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等,可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。In this embodiment, the processor 12 may be an integrated circuit chip with signal processing capability. The processor 12 may be a general-purpose processor, including at least one of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU), and a network processor (Network Processor, NP). The general-purpose processor may be a microprocessor, or the processor may also be any conventional processor, etc., and may implement or execute the methods, steps, and logical block diagrams disclosed in the embodiments of this application.
在本实施例中,所述通信单元13用于通过网络建立所述投影光机10与其他电子设备之间的通信连接,并通过所述网络收发数据,其中所述网络包括有线通信网络及无线通信网络。In this embodiment, the communication unit 13 is configured to establish a communication connection between the light projector 10 and other electronic devices through a network, and to send and receive data through the network, wherein the network includes a wired communication network and a wireless Communications network.
在本实施例中,所述拍照装置14包括摄像头,所述拍照装置14通过所述摄像头对所述投影光机10投射出的画面进行图像采集。In this embodiment, the photographing device 14 includes a camera, and the photographing device 14 collects images of the picture projected by the light projector 10 through the camera.
在本实施例中,所述投影控制装置100包括至少一个能够以软件或固件的形式存储于所述存储器11中或固化在所述投影光机10的操作系统中的软件功能模块。所述处理器12可用于执行所述存储器11存储的可执行模块,例如所述投影控制装置100所包括的软件功能模块及计算机程序等。所述投影光机10通过所述投影控制装置100针对待显示画面自动地在当前投影介质上圈定适合画面投影的有效区域范围,并自动且快速地将待显示画面投影到有效区域范围内进行显示,从而确保投影介质上显示画面的区域能够满足画面投影需求,避免产生人工调试投影光机10所造成的画面投影误差,提升画面投影效率,以提高画面投影效果及用户的画面浏览体验。In this embodiment, the projection control device 100 includes at least one software function module that can be stored in the memory 11 in the form of software or firmware or be solidified in the operating system of the projector 10 . The processor 12 may be configured to execute executable modules stored in the memory 11 , such as software function modules and computer programs included in the projection control device 100 . The projector 10 automatically delineates an effective area suitable for image projection on the current projection medium through the projection control device 100 for the to-be-displayed image, and automatically and quickly projects the to-be-displayed image into the effective area for display. , so as to ensure that the area where the image is displayed on the projection medium can meet the image projection requirements, avoid image projection errors caused by manual debugging of the projector 10, and improve the image projection efficiency, so as to improve the image projection effect and the user's image browsing experience.
同时,所述投影光机10还可通过所述投影控制装置100在所述投影光机10与所述拍照装置14各自相对于当前投影介质的位置不变时,精准测量出以当前投影介质为参照的投影光机10与拍照装置14之间的图像映射变换关系,并在所述投影光机10和/或所述拍照装置14相对于当前投影介质发生位置变动时,同步地对所述图像映射变换关系进行参数校准。At the same time, the projector 10 can also accurately measure the current projection medium as The image mapping transformation relationship between the reference projector 10 and the photographing device 14, and when the position of the projector 10 and/or the photographing device 14 changes relative to the current projection medium, the image is synchronously The mapping transformation relationship is used for parameter calibration.
可以理解的是,图8所示的框图仅为投影光机10的一种组成示意图,所述投影光机10还可包括比图8中所示更多或者更少的组件,或者具有与图8所示不同的配置。图8中所示的各组件可以采用硬件、软件或其组合实现。It can be understood that the block diagram shown in FIG. 8 is only a schematic diagram of the composition of the light projector 10, and the light projector 10 may further include more or less components than those shown in FIG. 8 different configurations are shown. Each component shown in FIG. 8 may be implemented in hardware, software, or a combination thereof.
在本申请所提供的实施例中,应该理解到,所揭露的装置和方法,也可以通过其它的方式实现。以上所描述的装置实施例仅仅是示意性的,例如,附图中的流程图和框图显示了根据本申请的实施例的装置、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或代码的一部分,所述模块、程序段或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现方式中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。In the embodiments provided in this application, it should be understood that the disclosed apparatus and method may also be implemented in other manners. The apparatus embodiments described above are merely illustrative, eg, the flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality and operation of possible implementations of apparatuses, methods and computer program products according to embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more functions for implementing the specified logical function(s) executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It is also noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented in dedicated hardware-based systems that perform the specified functions or actions , or can be implemented in a combination of dedicated hardware and computer instructions.
另外,在本申请各个实施例中的各功能模块可以集成在一起形成一个独立的部分,也可以是各个模块单独存在,也可以两个或两个以上模块集成形成一个独立的部分。所述功能如果以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个可读存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个可读存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的可读存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。In addition, each functional module in each embodiment of the present application may be integrated together to form an independent part, or each module may exist independently, or two or more modules may be integrated to form an independent part. If the functions are implemented in the form of software function modules and sold or used as independent products, they may be stored in a readable storage medium. Based on such understanding, the technical solution of the present application can be embodied in the form of a software product in essence, or the part that contributes to the prior art or the part of the technical solution, and the computer software product is stored in a readable storage medium , including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned readable storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other various programs that can store program codes medium.
综上所述,在本申请实施例提供的投影控制方法、装置、投影光机及可读存储介质中,本申请通过获取拍照装置针对当前投影介质拍摄到的介质图像,并从介质图像中图像分割出多个待校验区域,接着从多个待校验区域中提取满足预设画面比例的最大有效显示区域,并根据及投影光机与拍照装置之间的图像映射变换关系,将待显示画面变换到投影光机的与最大有效显示区域对应的投放区域内,得到对应的待投放画面,进而直 接控制投影光机对待投放画面进行投影,使待显示画面的画面内容得以快速地在投影介质上的与最大有效显示区域对应且适合画面投影的区域内显示,从而提高画面投影效果以及用户的画面浏览体验。In summary, in the projection control method, device, projector, and readable storage medium provided by the embodiments of the present application, the present application obtains the medium image captured by the photographing device for the current projection medium, and obtains the image from the medium image. Divide a plurality of areas to be checked, and then extract the maximum effective display area that meets the preset screen ratio from the plurality of areas to be checked, and according to the image mapping transformation relationship between the projector and the camera, the to-be-displayed The screen is transformed into the projection area corresponding to the maximum effective display area of the projector, and the corresponding image to be displayed is obtained, and then the projector is directly controlled to project the image to be displayed, so that the content of the image to be displayed can be quickly displayed on the projection medium. It is displayed in the area corresponding to the maximum effective display area and suitable for screen projection, thereby improving the screen projection effect and the user's screen browsing experience.
此外,本申请还可在投影光机与拍摄装置各自相对于当前投影介质的位置不变时,精准测量出以当前投影介质为参照的投影光机与拍照装置之间的图像映射变换关系,并在投影光机和/或拍照装置相对于当前投影介质发生位置变动时,同步地对图像映射变换关系进行参数校准,进而确保图像映射变换关系的准确性,提升画面投影精准度。In addition, the present application can also accurately measure the image mapping transformation relationship between the projector and the camera with the current projection medium as a reference when the positions of the projector and the photographing device remain unchanged relative to the current projection medium, and When the position of the projector and/or the photographing device changes relative to the current projection medium, the parameters of the image mapping transformation relationship are synchronously calibrated, thereby ensuring the accuracy of the image mapping transformation relationship and improving the image projection accuracy.
以上所述,仅为本申请的各种实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。The above are only various embodiments of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present application, All should be covered within the scope of protection of this application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims (10)
- 一种投影控制方法,其特征在于,所述方法包括:A projection control method, characterized in that the method comprises:获取拍照装置针对当前投影介质拍摄到的介质图像;acquiring a medium image captured by the photographing device for the current projection medium;对所述介质图像进行图像分割,得到所述介质图像所包括的多个待校验区域;Perform image segmentation on the medium image to obtain a plurality of areas to be verified included in the medium image;从所述多个待校验区域中提取满足预设画面比例的最大有效显示区域;extracting the maximum effective display area that meets the preset aspect ratio from the multiple areas to be verified;根据所述最大有效显示区域在所述介质图像中的角点位置,以及投影光机与所述拍照装置之间的图像映射变换关系,将待显示画面变换到所述投影光机的与所述最大有效显示区域对应的投放区域内,得到对应的待投放画面;According to the corner position of the maximum effective display area in the medium image and the image mapping transformation relationship between the projector and the photographing device, the to-be-displayed picture is transformed to the image of the projector and the image to be displayed. In the delivery area corresponding to the largest effective display area, the corresponding to-be-delivered screen is obtained;控制所述投影光机对所述待投放画面进行投影,使所述待显示画面的画面内容在所述投影介质上显示。The projector is controlled to project the picture to be displayed, so that the picture content of the picture to be displayed is displayed on the projection medium.
- 根据权利要求1所述的方法,其特征在于,所述从所述多个待校验区域中提取满足预设画面比例的最大有效显示区域的步骤,包括:The method according to claim 1, wherein the step of extracting a maximum effective display area satisfying a preset screen ratio from the plurality of areas to be verified comprises:对每个待校验区域进行四边形边界拟合;Perform quadrilateral boundary fitting for each area to be verified;若存在拟合出四边形边界的目标校验区域,则检测拟合出的所述四边形边界的边界尺寸比例是否满足所述预设画面比例;If there is a target verification area to which the quadrilateral boundary is fitted, detecting whether the fitted boundary size ratio of the quadrilateral boundary satisfies the preset screen ratio;在检测到所述边界尺寸比例满足所述预设画面比例的情况下,直接将对应边界尺寸比例满足所述预设画面比例的所述目标校验区域作为所述最大有效显示区域。When it is detected that the border size ratio satisfies the preset screen ratio, the target verification area whose corresponding border size ratio meets the preset screen ratio is directly used as the maximum effective display area.
- 根据权利要求2所述的方法,其特征在于,所述从所述多个待校验区域中提取满足预设画面比例的最大有效显示区域的步骤,还包括:The method according to claim 2, wherein the step of extracting a maximum effective display area satisfying a preset screen ratio from the plurality of areas to be checked further comprises:在目标校验区域的边界尺寸比例不满足所述预设画面比例,或不存在所述目标校验区域的情况下,从所述多个待校验区域中提取满足所述预设画面比例的最大像素连续区域;In the case that the boundary size ratio of the target verification area does not meet the preset screen ratio, or the target verification area does not exist, extract the image size that meets the preset screen ratio from the multiple to-be-verified areas. Maximum pixel contiguous area;将所述最大像素连续区域作为所述最大有效显示区域。The largest continuous area of pixels is used as the largest effective display area.
- 根据权利要求3所述的方法,其特征在于,所述从所述多个待校验区域中提取满足所述预设画面比例的最大像素连续区域的步骤,包括:The method according to claim 3, wherein the step of extracting a maximum pixel continuous area satisfying the preset screen ratio from the plurality of areas to be verified comprises:从所述多个待校验区域中选取预设数目个待筛查区域,其中所述待筛查区域的像素点数目大于未被选取的待校验区域的像素点数目;Select a preset number of areas to be screened from the plurality of areas to be checked, wherein the number of pixels in the area to be screened is greater than the number of pixels in the area to be checked that is not selected;针对每个待筛查区域,确定该待筛查区域的面积最大的内接矩形连续区域;For each to-be-screened area, determine the inscribed rectangular continuous area with the largest area of the to-be-screened area;在得到的每个内接矩形连续区域内按照所述预设画面比例求取对应的内接矩形区域;Obtain the corresponding inscribed rectangular area according to the preset screen ratio in each obtained inscribed rectangular continuous area;将区域面积最大的所述内接矩形区域作为所述最大像素连续区域。The inscribed rectangular area with the largest area is taken as the largest pixel continuous area.
- 根据权利要求1所述的方法,其特征在于,所述根据所述最大有效显示区域在所述介质图像中的角点位置,以及投影光机与所述拍照装置之间的图像映射变换关系,将 待显示画面变换到所述投影光机的与所述最大有效显示区域对应的投放区域内,得到对应的待投放画面的步骤,包括:The method according to claim 1, wherein, according to the corner position of the maximum effective display area in the medium image and the image mapping transformation relationship between the projector and the photographing device, The step of transforming the to-be-displayed picture into the projection area corresponding to the maximum effective display area of the projector to obtain the corresponding to-be-released picture includes:根据所述图像映射变换关系对所述最大有效显示区域的角点位置进行位置变换,得到所述投影光机所在的光机坐标系下的所述投放区域的角点位置坐标;Perform position transformation on the corner position of the maximum effective display area according to the image mapping transformation relationship to obtain the corner position coordinates of the placement area under the optical-mechanical coordinate system where the projector is located;在所述光机坐标系下建立所述角点位置坐标与所述待显示画面的顶点位置坐标之间的坐标匹配关系;establishing a coordinate matching relationship between the corner position coordinates and the vertex position coordinates of the to-be-displayed picture in the optical-mechanical coordinate system;根据所述坐标匹配关系对所述待显示画面内各像素点进行坐标变换,得到与所述投放区域位置重叠的所述待投放画面。Coordinate transformation is performed on each pixel in the to-be-displayed image according to the coordinate matching relationship, to obtain the to-be-launched image overlapping the placement area.
- 根据权利要求1-5中任意一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-5, wherein the method further comprises:控制所述投影光机向当前投影介质投射调试画面,并获取所述拍照装置针对所述调试画面拍摄到的介质校准图像;Controlling the light projector to project a debugging picture to the current projection medium, and acquiring a medium calibration image captured by the photographing device for the debugging picture;计算所述调试画面在所述投影光机所在的光机坐标系下的第一角点坐标,以及所述调试画面在所述介质校准图像所对应的拍照坐标系下的第二角点坐标;Calculate the coordinates of the first corner point of the debugging image in the optical-mechanical coordinate system where the projector is located, and the coordinates of the second corner of the debugging image in the photographing coordinate system corresponding to the medium calibration image;根据所述第一角点坐标与所述第二角点坐标之间的位置对应关系,确定所述投影光机与所述拍照装置之间的图像映射变换关系。According to the positional correspondence between the coordinates of the first corner point and the coordinates of the second corner point, the image mapping transformation relationship between the light projector and the photographing device is determined.
- 一种投影控制装置,其特征在于,所述装置包括:A projection control device, characterized in that the device comprises:介质图像获取模块,用于获取拍照装置针对当前投影介质拍摄到的介质图像;a medium image acquisition module, configured to acquire a medium image photographed by the photographing device for the current projection medium;图像区域分割模块,用于对所述介质图像进行图像分割,得到所述介质图像所包括的多个待校验区域;an image area segmentation module, configured to perform image segmentation on the medium image to obtain a plurality of areas to be verified included in the medium image;显示区域提取模块,用于从所述多个待校验区域中提取满足预设画面比例的最大有效显示区域;a display area extraction module, used for extracting a maximum effective display area that satisfies a preset screen ratio from the multiple areas to be verified;画面映射变换模块,用于根据所述最大有效显示区域在所述介质图像中的角点位置,以及投影光机与所述拍照装置之间的图像映射变换关系,将待显示画面变换到所述投影光机的与所述最大有效显示区域对应的投放区域内,得到对应的待投放画面;A picture mapping transformation module, configured to transform the to-be-displayed picture into the said Obtaining a corresponding picture to be released in the delivery area corresponding to the maximum effective display area of the projector;画面投影控制模块,用于控制所述投影光机对所述待投放画面进行投影,使所述待显示画面的画面内容在所述投影介质上显示。The picture projection control module is used for controlling the light projector to project the picture to be displayed, so that the picture content of the picture to be displayed is displayed on the projection medium.
- 根据权利要求7所述的装置,其特征在于,所述装置还包括:The device according to claim 7, wherein the device further comprises:介质投影校准模块,用于控制所述投影光机向当前投影介质投射调试画面,并获取所述拍照装置针对所述调试画面拍摄到的介质校准图像;a medium projection calibration module, configured to control the light projector to project a debugging picture to the current projection medium, and obtain a medium calibration image captured by the photographing device for the debugging picture;角点坐标计算模块,用于计算所述调试画面在所述投影光机所在的光机坐标系下的第一角点坐标,以及所述调试画面在所述介质校准图像所对应的拍照坐标系下的第二角点坐标;The corner coordinate calculation module is used to calculate the first corner coordinates of the debugging screen in the optical-mechanical coordinate system where the projector is located, and the camera coordinate system corresponding to the medium calibration image of the debugging screen The coordinates of the second corner point below;变换关系创建模块,用于根据所述第一角点坐标与所述第二角点坐标之间的位置对应关系,确定所述投影光机与所述拍照装置之间的图像映射变换关系。A transformation relationship creation module, configured to determine an image mapping transformation relationship between the light projector and the photographing device according to the positional correspondence between the coordinates of the first corner point and the coordinates of the second corner point.
- 一种投影光机,其特征在于,包括处理器和存储器,所述存储器存储有能够被所 述处理器执行的计算机程序,所述处理器可执行所述计算机程序,实现权利要求1-6中任意一项所述的投影控制方法。A light projector, characterized in that it comprises a processor and a memory, the memory stores a computer program executable by the processor, the processor can execute the computer program, and implements the computer program in claims 1-6. Any one of the projection control methods described above.
- 一种可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时,实现权利要求1-6中任意一项所述的投影控制方法。A readable storage medium on which a computer program is stored, characterized in that, when the computer program is executed by a processor, the projection control method according to any one of claims 1-6 is implemented.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011290236.5A CN114520895B (en) | 2020-11-18 | 2020-11-18 | Projection control method, device, projection optical machine and readable storage medium |
CN202011290236.5 | 2020-11-18 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2022105277A1 true WO2022105277A1 (en) | 2022-05-27 |
Family
ID=81594627
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2021/106835 WO2022105277A1 (en) | 2020-11-18 | 2021-07-16 | Projection control method and apparatus, projection optical machine, and readable storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN114520895B (en) |
WO (1) | WO2022105277A1 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115174879A (en) * | 2022-07-18 | 2022-10-11 | 峰米(重庆)创新科技有限公司 | Projection picture correction method, projection picture correction device, computer equipment and storage medium |
CN117893781A (en) * | 2024-03-15 | 2024-04-16 | 深圳麦风科技有限公司 | Method, device and storage medium for extracting image difference region |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7018050B2 (en) * | 2003-09-08 | 2006-03-28 | Hewlett-Packard Development Company, L.P. | System and method for correcting luminance non-uniformity of obliquely projected images |
CN106060310A (en) * | 2016-06-17 | 2016-10-26 | 联想(北京)有限公司 | Display control method and display control apparatus |
CN108965839A (en) * | 2018-07-18 | 2018-12-07 | 成都市极米科技有限公司 | A kind of method and module of adjust automatically projected picture |
CN110636273A (en) * | 2019-10-15 | 2019-12-31 | 歌尔股份有限公司 | Method and device for adjusting projection picture, readable storage medium and projector |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3951984B2 (en) * | 2003-08-22 | 2007-08-01 | 日本電気株式会社 | Image projection method and image projection apparatus |
CN109698944B (en) * | 2017-10-23 | 2021-04-02 | 深圳市Tcl高新技术开发有限公司 | Projection area correction method, projection apparatus, and computer-readable storage medium |
CN109996051B (en) * | 2017-12-31 | 2021-01-05 | 广景视睿科技(深圳)有限公司 | Projection area self-adaptive dynamic projection method, device and system |
KR102127863B1 (en) * | 2018-03-30 | 2020-06-29 | 한국과학기술연구원 | Method for adjusting image on cylindrical screen device |
CN110996081B (en) * | 2019-12-06 | 2022-01-21 | 北京一数科技有限公司 | Projection picture correction method and device, electronic equipment and readable storage medium |
-
2020
- 2020-11-18 CN CN202011290236.5A patent/CN114520895B/en active Active
-
2021
- 2021-07-16 WO PCT/CN2021/106835 patent/WO2022105277A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7018050B2 (en) * | 2003-09-08 | 2006-03-28 | Hewlett-Packard Development Company, L.P. | System and method for correcting luminance non-uniformity of obliquely projected images |
CN106060310A (en) * | 2016-06-17 | 2016-10-26 | 联想(北京)有限公司 | Display control method and display control apparatus |
CN108965839A (en) * | 2018-07-18 | 2018-12-07 | 成都市极米科技有限公司 | A kind of method and module of adjust automatically projected picture |
CN110636273A (en) * | 2019-10-15 | 2019-12-31 | 歌尔股份有限公司 | Method and device for adjusting projection picture, readable storage medium and projector |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115174879A (en) * | 2022-07-18 | 2022-10-11 | 峰米(重庆)创新科技有限公司 | Projection picture correction method, projection picture correction device, computer equipment and storage medium |
CN115174879B (en) * | 2022-07-18 | 2024-03-15 | 峰米(重庆)创新科技有限公司 | Projection screen correction method, apparatus, computer device and storage medium |
CN117893781A (en) * | 2024-03-15 | 2024-04-16 | 深圳麦风科技有限公司 | Method, device and storage medium for extracting image difference region |
CN117893781B (en) * | 2024-03-15 | 2024-05-07 | 深圳麦风科技有限公司 | Method, device and storage medium for extracting image difference region |
Also Published As
Publication number | Publication date |
---|---|
CN114520895A (en) | 2022-05-20 |
CN114520895B (en) | 2022-11-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110136229B (en) | Method and equipment for real-time virtual face changing | |
CN112272292B (en) | Projection correction method, apparatus and storage medium | |
WO2022105276A1 (en) | Method and apparatus for determining projection area, projection device, and readable storage medium | |
JP6336117B2 (en) | Building height calculation method, apparatus and storage medium | |
WO2022012085A1 (en) | Face image processing method and apparatus, storage medium, and electronic device | |
WO2019042216A1 (en) | Image blurring processing method and device, and photographing terminal | |
CN108063928B (en) | A kind of image automatic adjusting method, device and the electronic equipment of projector | |
CN107909569B (en) | Screen-patterned detection method, screen-patterned detection device and electronic equipment | |
WO2022105277A1 (en) | Projection control method and apparatus, projection optical machine, and readable storage medium | |
CN111629146B (en) | Shooting parameter adjusting method, shooting parameter adjusting device, shooting parameter adjusting equipment and storage medium | |
CN114640833B (en) | Projection picture adjusting method, device, electronic equipment and storage medium | |
US11074742B2 (en) | Image processing apparatus, image processing method, and storage medium | |
US20110210908A1 (en) | Apparatus, system, and method of sharing drawing data | |
US11127141B2 (en) | Image processing apparatus, image processing method, and a non-transitory computer readable storage medium | |
CN110310341A (en) | Method, device, equipment and storage medium for generating default parameters in color algorithm | |
CN114520893B (en) | Picture projection method and device, projection equipment and readable storage medium | |
CN111917986A (en) | Image processing method, medium thereof, and electronic device | |
CN101980299B (en) | Chessboard calibration-based camera mapping method | |
WO2024055531A1 (en) | Illuminometer value identification method, electronic device, and storage medium | |
WO2023184783A1 (en) | Image detection and recognition apparatus and detection and recognition method therefor | |
CN109600604A (en) | Contrast test method, device and computer readable storage medium | |
WO2021184303A1 (en) | Video processing method and device | |
WO2024164633A1 (en) | Projection image correction method and apparatus, projection device, collection device, and medium | |
US11386525B2 (en) | Image stitching apparatus and operation method thereof | |
CN114582270B (en) | Luminance and chrominance data acquisition method, device and system and computer readable storage medium |
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: 21893429 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 21893429 Country of ref document: EP Kind code of ref document: A1 |