CN115022605A - Projection method, projector, and computer-readable storage medium - Google Patents

Projection method, projector, and computer-readable storage medium Download PDF

Info

Publication number
CN115022605A
CN115022605A CN202210542116.2A CN202210542116A CN115022605A CN 115022605 A CN115022605 A CN 115022605A CN 202210542116 A CN202210542116 A CN 202210542116A CN 115022605 A CN115022605 A CN 115022605A
Authority
CN
China
Prior art keywords
area
image
projection
displayed
effective
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210542116.2A
Other languages
Chinese (zh)
Inventor
李志�
金凌琳
杨廷彬
越思文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Dangzhi Technology Co ltd
Original Assignee
Shenzhen Dangzhi Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Dangzhi Technology Co ltd filed Critical Shenzhen Dangzhi Technology Co ltd
Priority to CN202210542116.2A priority Critical patent/CN115022605A/en
Publication of CN115022605A publication Critical patent/CN115022605A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/12Picture reproducers
    • H04N9/31Projection devices for colour picture display, e.g. using electronic spatial light modulators [ESLM]
    • H04N9/3179Video signal processing therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/20Image enhancement or restoration using local operators
    • G06T5/30Erosion or dilatation, e.g. thinning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/70Denoising; Smoothing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/13Edge detection

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Transforming Electric Information Into Light Information (AREA)

Abstract

The invention provides a projection method, a projector and a computer readable storage medium, wherein the method comprises the following steps: acquiring an auxiliary projection image; determining a region to be displayed in the auxiliary projection image; acquiring a picture to be projected, and determining an effective projection area of the picture to be projected based on the area to be displayed; and projecting the picture to be projected based on the effective projection area. The application provides diversified projector display effects for the user, and the projection information that the user needs to be expressed in a key mode is highlighted through the effective projection area, so that the requirements of the user on user-defined local display and key display in the projection area are met.

Description

Projection method, projector, and computer-readable storage medium
Technical Field
The invention relates to the technical field of intelligent projection, in particular to a projection method, a projector and a computer readable storage medium.
Background
With the development of technology and economy, projectors gradually enter the home consumer field, and more users want to fully exert the functions of projectors. The display principle that the projector projects light to the surface of an object for imaging is utilized, displayed characters, patterns and the like can be projected to a wall, the ground, a roof and the like without occupying too much space, and dynamic videos can be added to character backgrounds by utilizing a projected video decoding mode.
However, the projection area of the projector is generally a full-page rectangular area, and only parameters such as display color, display position, display size, and the like of the entire rectangular area projected by the projector can be adjusted, so that a more diversified display effect cannot be provided for a user, and projection information that the user needs to express in a focused manner cannot be highlighted.
Disclosure of Invention
The invention mainly aims to provide a projection method, a projector and a computer readable storage medium, and aims to solve the technical problems that a conventional projector cannot provide more diversified display effects for a user and cannot highlight projection information which needs to be expressed by the user.
In order to achieve the above object, the present invention provides a projection method, including:
acquiring an auxiliary projection image;
determining a region to be displayed in the auxiliary projection image;
acquiring a picture to be projected, and determining an effective projection area of the picture to be projected based on the area to be displayed;
and projecting the picture to be projected based on the effective projection area.
Optionally, the step of determining the area to be displayed in the auxiliary projection image includes:
performing gray scale processing on the auxiliary projection image to generate a gray scale image;
carrying out binarization processing on the gray-scale image to generate a first binary image;
carrying out reverse color processing and morphological processing on the first binary image to obtain a corrected image;
and taking the effective pixel area in the corrected image as an area to be displayed.
Optionally, the step of determining the area to be displayed in the auxiliary projection image includes:
sequentially carrying out noise reduction processing and edge detection processing on the auxiliary projection image, and determining a reference contour in the auxiliary projection image;
carrying out binarization processing on the image obtained after edge detection to generate a second binary image;
determining an effective reference contour in the reference contours of the second binary image based on a preset contour limit condition;
setting the pixel value of the area outside the effective reference contour to be 0, and carrying out morphological processing on the effective reference contour area to obtain a corrected image;
and taking the effective pixel area in the corrected image as an area to be displayed.
Optionally, the step of determining a valid reference contour in the second binary image based on a preset contour limitation condition includes at least one of:
in the second binary image, the reference contour with contour coordinates located in a preset image area is used as an effective reference contour;
in the second binary image, taking the reference contour with the enclosed area smaller than a preset area threshold value as an effective reference contour;
and in the second binary image, the reference contour, of which the area ratio between the inside of a preset image area and the outside of the preset image area is larger than a preset value, is taken as an effective reference contour.
Optionally, the acquiring the auxiliary projection image comprises:
the auxiliary projection image is obtained from a local folder, a preset database of applications, or an online database.
Optionally, the step of determining an effective projection area of the to-be-projected picture based on the to-be-displayed area includes:
projecting the picture corresponding to the area to be displayed;
judging whether the number of the areas to be displayed is multiple;
if the number of the areas to be displayed is one, determining an effective projection area of the picture to be projected based on the position of the area to be displayed;
if the number of the areas to be displayed is multiple, determining a reference projection area according to the areas to be displayed;
marking at least one reference projection area, and projecting the marked reference projection area;
marking the reference projection area and outputting preset selection prompt information;
and receiving a selection instruction, and taking the reference projection area specified by the selection instruction as an effective projection area.
Optionally, the step of determining the area to be displayed in the auxiliary projection image includes:
carrying out binarization processing on the auxiliary projection image to generate a third binary image;
and performing reverse color processing on the third binary image, and determining an effective closed contour area in the processed image as an area to be displayed.
Optionally, the step of acquiring an auxiliary projection image includes:
acquiring input character information;
and obtaining an auxiliary projection image according to a preset character position and the input character information, wherein the input character information is positioned at the preset character position in the auxiliary projection image.
Optionally, the step of projecting the picture to be projected based on the effective projection area includes:
assigning a perspective mask value to pixels within the active projection area and assigning a non-perspective mask value to pixels outside the active projection area;
taking the area with the perspective mask value in the picture to be projected as an actual projection area;
and projecting the picture to be projected according to the actual projection area.
To achieve the above object, the present application also provides a projector including: a memory, a processor and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the projection method as described above.
To achieve the above object, the present application further provides a computer-readable storage medium having a computer program stored thereon, which when executed by a processor, implements the steps of the projection method described above.
In this application, through the supplementary projection image that acquires the projecting apparatus earlier, then confirm treat the display area in the supplementary projection image, treat that the pattern that the display area constitutes is the required projection pattern of user, in the projecting apparatus prepare to carry out the projected treat the projection picture in find treat the effective projection area that the position of display area corresponds, control the projecting apparatus at last and only project the treat projection picture of effective projection area corresponding range, and then the projecting apparatus only projects in treating the display area in current projection plane, the user realizes self-defined projection area through the supplementary projection image of input, and then provides the diversified projecting apparatus display effect for the user, through the projection information that effective projection area highlight display user needs key expression, the user's demand at the self-defined local display of projection area, key display more laminates.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the structures shown in the drawings without creative efforts.
FIG. 1 is a schematic view of an application scenario of the projection method of the present application;
fig. 2 is a schematic structural diagram of a projector in a hardware operating environment according to an embodiment of the present application;
FIG. 3 is a schematic flowchart of an embodiment of a projection method of the present application;
fig. 4 is a schematic view of a scene marked with a to-be-displayed area in an embodiment of the projection method of the present application.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
The technical solutions in the embodiments of the present invention will be described clearly and completely with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that all directional indicators (such as upper, lower, left, right, front and rear … …) in the embodiment of the present invention are only used to explain the relative position relationship between the components, the movement situation, etc. in a specific posture (as shown in the drawing), and if the specific posture is changed, the directional indicator is changed accordingly.
In addition, the descriptions related to "first", "second", etc. in the present invention are for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the feature. In addition, "and/or" in the whole text includes three schemes, taking a and/or B as an example, including a technical scheme, and a technical scheme that a and B meet simultaneously; in addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present invention.
As projectors gradually enter the home consumer field, more users want to fully exert the functions of projectors. The display principle that the projector projects light to the surface of an object for imaging is utilized, displayed characters, patterns and the like can be projected to a wall, the ground, a roof and the like without occupying too much space, and dynamic videos can be added to character backgrounds by utilizing a projected video decoding mode. However, the projection area of the projector is generally a full-page rectangular area, and only parameters such as display color, display position, display size, and the like of the entire rectangular area projected by the projector can be adjusted, so that a more diversified display effect cannot be provided for a user, and projection information that the user needs to express in a focused manner cannot be highlighted.
According to the method, the auxiliary projection image is obtained, the area to be displayed in the auxiliary projection image is determined, the picture to be projected is obtained, the effective projection area of the picture to be projected is determined based on the area to be displayed, and the picture to be projected is projected based on the effective projection area, so that a user can define the projection area by inputting the auxiliary projection image, the projection picture of a projector can highlight information to be expressed, the part which is not expressed can be displayed, a dark field is realized, and the eyeball of a person can be caught to the maximum extent; the product information propaganda of the merchant can also be realized through the effective projection area, for example, the brand LOGO is projected based on the effective projection area, and the online education guides the operation and the like.
The technical scheme of the application provides diversified display effects for the user, and the projector is applied to more scenes based on local projection of the effective projection area, for example, atmosphere rendering is realized in places such as restaurants, hotels and red-web shops. In the application, a user can design display content by himself, write or select pattern information (namely auxiliary projection images) to be expressed at a mobile phone or a tablet computer end, synchronize the pattern information to a projection picture, and enable a basic image (namely the projection picture) of a video or an image to be displayed only in a position area (namely an effective projection area) of expected pattern information, so that application requirements of different consumer groups are met to the maximum extent.
Referring to fig. 2, fig. 2 is a schematic diagram of a projector in a hardware operating environment according to an embodiment of the present application.
As shown in fig. 2, the projector may include: a processor 1001, such as a Central Processing Unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a WIreless interface (e.g., a WIreless-FIdelity (WI-FI) interface). The Memory 1005 may be a Random Access Memory (RAM) Memory, or may be a Non-Volatile Memory (NVM), such as a disk Memory. The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the configuration shown in fig. 2 does not constitute a limitation of the projector, and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 2, the memory 1005, which is a storage medium, may include therein an operating system, a data storage module, a network communication module, a user interface module, and a computer program.
In the projector shown in fig. 2, the network interface 1004 is mainly used for data communication with other devices; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 of the projector according to the present application may be provided in the projector, and the projector calls the computer program stored in the memory 1005 through the processor 1001 and executes the projection method provided by the embodiment of the present application.
It should be understood that the above description is only an example for better understanding of the technical solution of the present embodiment, and is not to be taken as the only limitation of the present embodiment.
It should be understood that the above description is only an example for better understanding of the technical solution of the present embodiment, and is not to be taken as the only limitation of the present embodiment.
The projection method will be described in detail below with reference to a flowchart of an embodiment of the projection method shown in fig. 3.
The present application provides a projection method, referring to fig. 3, in an embodiment of the projection method, the projection method includes the following steps:
step S10, acquiring an auxiliary projection image;
the pattern contour of the auxiliary projection image is used for limiting the display area of the projector basic image (namely the image to be projected), and the auxiliary projection image can be a character pattern or an image pattern. For example, referring to fig. 1, an overall image formed by the "trillion" character patterns on the left side of fig. 1 is an auxiliary projection image, or an overall image formed by the "toyota emblem" image patterns is an auxiliary projection image, where a closed outline area surrounded by the "trillion" character patterns is an area to be displayed, or a closed outline area surrounded by the "toyota emblem" image patterns is an area to be displayed. The right side of the figure 1 shows the final display effect of trillion character patterns as the superposed region of the to-be-displayed region and the to-be-projected picture, or the final display effect of the Toyota car logo image patterns as the superposed region of the to-be-displayed region and the to-be-projected picture.
Optionally, the step S10 of acquiring the auxiliary projection image includes: the auxiliary projection image is obtained from a local folder, a preset database of applications, or an online database.
The auxiliary projection image is input or selected by a user in a user-defined mode. The user can select the pattern of the area to be displayed as the auxiliary projection image input value projector from a local folder, wherein the local folder comprises a folder for storing the auxiliary projection image in equipment and devices with file storage functions, for example, the local folder is a folder in a USB flash disk, and the local equipment folder can be connected with the projector. Alternatively, the user may select and input the auxiliary projection image from a preset database of an APP (application) associated with the projector, that is, the user may input/select the auxiliary projection image in the APP or a functional interface of the projector, and the selected pattern may be introduced into the projector processor as the auxiliary projection image. Or the user can select and input the auxiliary projection image from an online database, the online database can be a background database of the projector related to the public number, and the user can call the online database to select and input the auxiliary projection image through the network, for example, the user sends a local pattern to the projector in the public number after scanning the code connection through a mobile phone to serve as the auxiliary projection image.
In some embodiments, the image document is extracted from a local folder of a storage media device that accesses the projector as an auxiliary projection image; or receiving a local image document in a local folder sent by the intelligent equipment associated with the projector to serve as an auxiliary projection image.
For example, the auxiliary projection image may be a pattern in an image document stored in a usb disk folder, and after the usb disk is inserted into the projector, the user may select the image document in the local folder of the usb disk as the auxiliary projection image through a remote controller associated with the projector, so as to use the pattern in the image document as a pattern of the area to be displayed in the light show mode of the projector.
For example, in addition to the usb disk import, the user may also select a local image document of a local folder of the mobile phone as an auxiliary projection image on a specific function interface on the mobile phone APP after the projector is paired with the mobile phone bluetooth/network.
In some embodiments, the step S10 of acquiring the auxiliary projection image includes:
acquiring input character information; and obtaining an auxiliary projection image according to a preset character position and the input character information, wherein the input character information is positioned at the preset character position in the auxiliary projection image.
The input character information comprises specific characters of characters or character strings input by a user in a projector matched APP or a projector functional interface, and also comprises information of word sizes and fonts of the specific characters.
For example, entering character information may be for a user to select a common shape, common phrases (happy birthday, welcome … …), etc. in a pattern library given in the projector companion APP/projector functional interface.
For example, the input character information may be a user drawing a pattern in the projector kit APP.
For input character information generated by manually inputting characters by a user, a system of the projector puts characters corresponding to the input character information into a preset standard graph with fixed resolution according to preset positions, fonts, word sizes and thicknesses based on the input character information to generate an overall picture, the overall picture is an auxiliary projection image, the preset positions are preset character positions, coordinates of character outlines in the graph can be obtained through simple preset relations (such as obtained according to the preset positions, the fonts, the word sizes and the input characters), then the system of the projector takes an area surrounded by the character outlines in the auxiliary projection image as an area to be displayed, and then a mask graph is made to operate and project the area with a picture to be projected.
Therefore, the auxiliary projection image can be acquired in multiple modes, so that a user can conveniently and flexibly select a suitable and convenient mode to input the auxiliary projection image into the projector based on the personalized projection requirement of the user.
Step S20, determining a region to be displayed in the auxiliary projection image;
and the area to be displayed is the area where the closed pattern in the auxiliary projection image is located, and after the auxiliary projection image is acquired, preprocessing such as binarization processing, edge detection processing, morphological processing and the like is carried out on the auxiliary projection image, so that the area to be displayed is determined in the auxiliary projection image.
In some embodiments, when the picture color in the auxiliary projection image selected by the user is monotonous (the background is single and light, for example, the background is white), and the outline of the pattern in the auxiliary projection image is obvious and has no burr (for example, the effective pattern in the auxiliary projection image is dark (for example, black)), in order to avoid unnecessary complex image processing and improve the efficiency of determining the region to be displayed, the step S20 of determining the region to be displayed in the auxiliary projection image includes:
step A1, carrying out gray scale processing on the auxiliary projection image to generate a gray scale image;
step A2, performing binarization processing on the gray-scale image to generate a first binary image;
step A3, performing reverse color processing and morphological processing on the first binary image to obtain a corrected image;
the first binary image is subjected to an inverse color process to remove the background highlight object (the pixel value of the black area is 0, the white pixel value is 1, and this step defaults to the case where the background of the first binary image is white and the effective area is black, so that the pixel value of the black effective part needs to be changed from 0 to 1).
And then carrying out morphological processing on the first binary image after the reverse color processing, specifically filling small holes in the pattern in the first binary image after the reverse color processing through opening operation, and removing edge burrs of the pattern in the first binary image after the reverse color processing through corrosion operation so as to obtain a corrected image.
Optionally, if the auxiliary projection image imported by the user is not a white background but a dark background, outputting reverse color selection prompt information to prompt the user to select whether to perform reverse color processing or not, so as to exchange the pattern and the background in the auxiliary projection image, and adjusting the image pixel value as an expected effective area to be 1, so as to avoid the identification of the area from appearing an oolong; in this step, the projector may be controlled to project the auxiliary projection image onto a wall surface or other projection surfaces, a user may convert an area (black area) with a pixel value of 0 into an area (white area) with a pixel value of 1 by means of a remote controller key or the like, and if the current white area is an area to be projected that is expected by the user (i.e., a pattern contour area that the user needs to project), the current white area is confirmed again, and the projector system automatically sets the pixel value of the pixel bit corresponding to the white area to 1;
the projector system automatically judges the pixel value '0' or '1' ratio of the first binary image, takes the pixel with the most ratio as a background pixel, and adjusts the pixel value to 0; the pattern formed by the pixels occupying a small proportion is used as the pattern of the area to be displayed, and the pixel value is adjusted to 1.
And step A4, taking the effective pixel area in the corrected image as the area to be displayed.
Identifying an effective pixel area with a pixel value of 1 in the corrected image, determining the position of the effective pixel area in an optical-mechanical coordinate system of the projector, for example, calibrating the position of the effective pixel area by using a coordinate value in the optical-mechanical coordinate system, and further taking the determined effective pixel area as an area to be displayed.
In some embodiments, when there is more background interference and more image noise in the auxiliary projection image selected by the user, for example, the auxiliary projection image is a picture obtained by shooting, and the user needs to use the outline of a certain pattern in the shot picture as the pattern of the area to be displayed, then more processing operations need to be performed on the picture to identify the required pattern of the area to be displayed, so as to improve the accuracy of identifying the area to be displayed, and the step S20 determines that the area to be displayed in the auxiliary projection image includes:
step B1, sequentially performing noise reduction processing and edge detection processing on the auxiliary projection image, and determining a reference contour in the auxiliary projection image;
carrying out bilateral filtering processing on the auxiliary projection image, and reducing image noise under the condition of ensuring pattern edge information of the auxiliary projection image; and then carrying out Sobel edge detection processing on the auxiliary projection image to obtain edge information of the pattern in the auxiliary projection image so as to determine a reference contour in the auxiliary projection image.
Step B2, carrying out binarization processing on the image obtained after edge detection to generate a second binary image;
and carrying out binarization processing on the image obtained after the edge detection, removing most of non-pattern background parts in the image, and generating a second binary image.
A step B3 of determining a valid reference contour among the reference contours of the second binary image based on a preset contour limit condition;
and setting contour limiting conditions according to the coordinate positions and the size of the contour area, and refilling the drawn reference contour in the second binary image according to the contour limiting conditions so as to screen out an effective reference contour in the reference contour.
And step B4, setting the pixel value of the area outside the effective reference contour to 0, performing morphological processing on the effective reference contour area to obtain a corrected image, and taking the effective pixel area in the corrected image as the area to be displayed.
Setting the pixel value of the area outside the effective reference contour to be 0, namely setting the area outside the effective reference contour to be black, performing morphological processing on the area of the effective reference contour in the second binary image, specifically filling small holes in the pattern in the area of the effective reference contour through opening operation, and removing edge burrs of the area of the effective reference contour through corrosion operation to obtain a corrected image.
Identifying an effective pixel area with a pixel value of 1 in the corrected image, determining the position of the effective pixel area in an optical-mechanical coordinate system of the projector, for example, calibrating the position of the effective pixel area by using a coordinate value in the optical-mechanical coordinate system, and further taking the determined effective pixel area as an area to be displayed.
In addition, a step of performing a gradation process on the auxiliary projection image is added before the noise reduction process is performed on the auxiliary projection image in step B1, and particularly when the auxiliary projection image selected by the user is a color, the gradation process is necessary for the auxiliary projection image, and in another case, the auxiliary projection image is gray, and in this case, an additional gradation process step is not necessary.
Step S30, acquiring a picture to be projected, and determining an effective projection area of the picture to be projected based on the area to be displayed;
after determining the area to be displayed in the auxiliary projection image, the pattern (including characters) of the area to be displayed is defaulted to the optical-mechanical coordinate system picture center position of the projector, the user can also adjust the center coordinate of the pattern of the area to be displayed in the APP, or the position of the pattern of the area to be displayed is adjusted by using a direction key of a remote controller, otherwise, the pattern is defaulted to the optical-mechanical coordinate system picture center position. After the adjustment operation, the coordinate value of the area pattern to be displayed of the auxiliary projection image in the optical machine coordinate system is correspondingly updated.
The to-be-projected picture can be an image currently projected by the projector, or an image in an image document selected after the user enters the APP and the relevant function interface of the projector. The picture to be projected may be a still picture or a picture per frame in a dynamic video. The picture to be projected may be an RGB value, a picture or a video.
And obtaining an effective projection area of the final projection of the picture to be projected according to the picture to be projected and the area to be displayed, namely, an overlapping part between the picture to be projected and the pattern of the area to be displayed is an effective projection area and can be displayed in the final projection picture, and a non-overlapping part is not displayed.
In some embodiments, the coordinate pixel value of the pattern of the to-be-displayed area is used as a mask for extracting the to-be-projected picture, and an effective projection area expected to be displayed of the to-be-projected picture is determined, so as to obtain a final projection picture. In an optical-mechanical coordinate system of a projection picture of a projector, a mask binary code corresponding to each pixel coordinate in a to-be-displayed area (effective area) is regarded as '1', and mask binary codes of pixels in other areas are regarded as '0'. The area of 0 is not displayed and the area of 1 is normally displayed.
And step S40, projecting the picture to be projected based on the effective projection area.
The overlapped area of the effective projection area and the picture to be projected is used as a final projection picture, the final projection picture is output to a display module (including a display driver and the like, so that a DLP (digital light processing) system) of the projector, and the final projection picture is projected into the current projection plane (such as a wall surface/curtain) through a projector optical machine.
In this application, through the supplementary projection image that acquires the projecting apparatus earlier, then confirm treat the display area in the supplementary projection image, treat that the pattern that the display area constitutes is the required projection pattern of user, find in treating the projection picture that the projecting is prepared to carry out in the projecting at the projecting apparatus treat the effective projection area that the position of display area corresponds, control the projecting apparatus at last and only project the picture of treating of the corresponding scope of effective projection area, and then the projecting apparatus only projects in treating the display area in current projection plane, the user realizes self-defined projection area through the supplementary projection image of input, and then provides diversified projecting apparatus display effect for the user, through the projection information that effective projection area highlight user need highlight expression, the demand that the user need highlight in the projection area is customized local display, key display more laminated.
Further, in another embodiment of the projection method of the present application, the step S20 of determining the area to be displayed in the auxiliary projection image includes: carrying out binarization processing on the auxiliary projection image to generate a third binary image; and performing reverse color processing on the third binary image, and determining an effective closed contour area in the processed image as an area to be displayed.
In this embodiment, the auxiliary projection image is "single", has no background interference, and has a round and smooth pattern without burrs, for example, the auxiliary projection image is the "foyota emblem" image pattern or the "trillion" character image mentioned above and in fig. 1, the auxiliary projection image can be simplified, and the binarization processing and the inverse color processing are sequentially performed, so as to take account of the processing efficiency, save the calculation resources, and the identification accuracy of the effective closed contour region, determine the region to be displayed, and further obtain the coordinate value of the cluster of the region to be displayed in the optical machine coordinate system of the projector.
In addition, in step S20, when the user inputs text manually or selects a desired text or pattern in a given pattern library as an auxiliary projection image, that is, the projector system obtains the input character information of the user, since the character pattern in the input character information is a preset system pre-pattern, there are no problems of unclear outline, burrs, etc., and the auxiliary projection image is determined as the area to be displayed in the target pre-pattern matched with the preset system pre-pattern, so that the processing efficiency is high and the area to be displayed is determined accurately.
Optionally, when the auxiliary projection image is used for inputting characters or selecting given characters/patterns for a user, the user can adjust basic parameters of the characters/patterns (the user can customize the thickness, size, font, and the like of the characters), that is, the user can adjust the character patterns and the basic parameters of the character patterns in the input character information, and finally obtain coordinate values of the clusters of the to-be-displayed area in the optical-mechanical coordinate system of the projector.
Further, in another embodiment of the projection method of the present application, the step B3, based on a preset contour limitation condition, determines the valid reference contour in the second binary image, including at least one of:
step C1, in the second binary image, the reference contour with contour coordinates all located in a preset image area is taken as an effective reference contour;
in some embodiments, the second binary image includes an optical-mechanical display area and a non-optical-mechanical display area, the optical-mechanical display area is an area corresponding to a position of a coverage area of the optical machine of the projector projected on the current projection surface in the second binary image, and the non-optical-mechanical display area is an area of the second binary image other than the optical-mechanical display area.
Optionally, the light machine display area includes an edge area and a middle area, and the preset image area is the middle area of the light machine display area. Based on the idea of coordinate limitation, excluding the reference contour close to the edge area of the optical machine display area, and judging the reference contour to be an invalid reference contour if the contour coordinates of contour points exist in the edge area of the optical machine display area in each closed reference contour; and taking the reference contour with the contour coordinates in the preset image area as an effective reference contour. For example, the width of the optical machine display area is W, the height is H, the coordinate of the upper left corner is (0,0), and the coordinate of any point (x, y) in the middle area of the optical machine display area satisfies the following conditions: arbitrary point (x, y), W/10< x < 9W/10; h/10< y < 9H/10. In this way, the reference contour not located in the preset image area is excluded by the contour coordinate limitation, and only the reference contour whose contour coordinates are located in the preset image area is reserved as the valid reference contour.
Step C2, in the second binary image, using the reference contour whose enclosed area is smaller than a preset area threshold value as an effective reference contour;
optionally, based on an area limitation idea, the reference contours with too small enclosing area are excluded, and among the closed reference contours, the reference contour with the enclosing area smaller than a preset area threshold is determined as an invalid reference contour, and the reference contour with the enclosing area larger than or equal to the preset area threshold is determined as an valid reference contour. For example, the area of the reference contour is S, the optical-mechanical display area is W, the height is H, the area of the optical-mechanical display area is S0 ═ W × H, the preset area threshold is S0/200, the enclosed area S of the reference contour satisfies S > S0/200, i.e., the reference contour is valid, otherwise, the reference contour is invalid.
And step C3, in the second binary image, using the reference contour, of which the area ratio between the inside of the preset image area and the outside of the preset image area is greater than the preset value, as an effective reference contour.
Optionally, the optical-mechanical display area includes an edge area and a middle area, and the preset image area is the middle area of the optical-mechanical display area. Based on the idea of combining coordinate limitation and area limitation, in the reference contour, partial contour coordinates are located in the edge area of the optical machine display area, and the area ratio of the contour area located in the middle area to the edge area is larger than a preset value, and the reference contour is still determined to be an effective reference contour. For example, in the reference contour, the coordinates of a part of the contour are located in the edge region of the optical machine display region, and the area ratio of the contour region located in the middle region to the edge region is more than 4 times, and the reference contour is still determined to be an effective reference contour.
In the embodiment of step C1, step C2 and/or step C3, an effective reference contour is efficiently and accurately screened out from the reference contours in the second binary image by the concept of coordinate limitation, the concept of area limitation, and the concept of combination of coordinate limitation and area limitation.
Further, in some realizable embodiments, the step of determining an effective projection area of the picture to be projected based on the area to be displayed includes:
step D1, projecting the picture corresponding to the area to be displayed;
step D2, judging whether the area to be displayed is a plurality of areas;
step D3, if there is one to-be-displayed area, determining an effective projection area of the to-be-projected picture based on the position of the to-be-displayed area;
and after determining the area to be displayed in the auxiliary projection image and acquiring the picture to be projected, controlling a projector to project the picture corresponding to the area to be displayed on the current projection surface, counting the number of the areas to be displayed, determining the final area to be displayed without user selection or based on a preset selection strategy when only one area to be displayed is available, and determining the effective projection area of the picture to be projected directly based on the position of the area to be displayed.
Step D4, if the area to be displayed is multiple, determining a reference projection area according to the area to be displayed; marking at least one reference projection area, and projecting the marked reference projection area; marking the reference projection area and outputting preset selection prompt information; and receiving a selection instruction, and taking the reference projection area specified by the selection instruction as an effective projection area.
When a plurality of areas to be displayed exist in a picture projected to a current projection surface, referring to the current projection surface on the left side of fig. 4, at this time, a projector is difficult to accurately distinguish which areas to be displayed are required by a user, at this time, a reference projection area is determined in the picture to be projected according to the position information of the areas to be displayed, and at least one reference projection area is marked.
In some embodiments, a check box is added around the reference projection area, for example, a mark on the right side of fig. 4, and then the projector is controlled to project the marked reference projection area onto the current projection surface for selection by the user. In some embodiments, any one or a pre-designated one of the plurality of reference projection regions is marked (e.g., as in FIG. 4) to facilitate a user in quickly locating and selecting a desired reference projection region. After the reference projection area is marked, preset selection prompt information can be synchronously output, and for example, the selection prompt information guides a user to operate a remote controller or a mobile phone associated with a projector to input a selection instruction in a voice mode. It should be noted here that the current projection surface on the right side in fig. 4 includes two markers, which is only one implementation manner, and the number of the markers may be one or more, and is not limited specifically.
In some embodiments, the user operates a remote controller or a mobile phone associated with the projector, jumps a check box between the reference projection areas based on a selection instruction, and finally selects one or a plurality of the reference projection areas as the effective projection areas. Optionally, marking at least one reference projection area may be to project different numbers in each reference projection area, and the user operates a remote controller or a mobile phone associated with the projector to input the number of the reference projection area to be selected based on the selection instruction, thereby determining the effective projection area. In addition, any other scheme which enables a user to select between different effective outlines through a remote controller, a mobile terminal APP and the like is adopted.
In this embodiment, the situation of one or more areas to be displayed is differentiated in a detailed manner, and in consideration of different selection requirements of different users in the situation of a plurality of areas to be displayed, a technical implementation is provided for determining a final effective projection area by referring to projection area marks and projection and selection designations, so that the effective projection area is more in line with the actual requirements of the users.
In some embodiments, the step S40, based on the effective projection area, projecting the picture to be projected includes:
step S41, assigning a perspective mask value to the pixels in the effective projection area, and assigning a non-perspective mask value to the pixels outside the effective projection area;
step S42, taking the area with the perspective mask value in the picture to be projected as the actual projection area;
and step S43, projecting the picture to be projected according to the actual projection area.
In some embodiments, after the pixels of the picture to be projected are assigned with the perspective mask value, when the projector light engine projects the picture to be projected, the pixels assigned with the perspective mask value are subjected to normal projection and no display parameter adjustment, that is, the pixels assigned with the perspective mask value are not blocked, not shielded, or projected according to the original display parameters, for example, the perspective mask value is binary "1", and the pixels assigned with the perspective mask value are projected according to the original RGB values. Pixels assigned a non-perspective mask value will be occluded, masked, or no longer projected according to the original display parameters, e.g., the perspective mask value is binary "0" and pixels assigned a non-perspective mask value are projected according to the RGB value of 0.0.0. Therefore, the embodiment provides an implementation manner of filtering the picture to be projected according to the effective projection area to perform local projection, the projector can be automatically implemented based on the algorithm, the control precision is at the pixel level, the control efficiency is high, and the projection precision is high.
The present application also provides a projector, the projector includes: a memory, a processor and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the projection method as described above.
The present application also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the projection method as described above.
In the embodiments of the projector and the computer-readable storage medium of the present application, for a technical effect corresponding to any one implementation manner, reference may be made to a technical effect corresponding to any one implementation manner of the embodiments of the projection method, and details are not described here.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein.
Furthermore, it should be understood that although the present description refers to embodiments, not every embodiment may contain only a single embodiment, and such description is for clarity only, and those skilled in the art should integrate the description, and the embodiments may be combined as appropriate to form other embodiments understood by those skilled in the art.

Claims (10)

1. A method of projection, the method comprising:
acquiring an auxiliary projection image;
determining a region to be displayed in the auxiliary projection image;
acquiring a picture to be projected, and determining an effective projection area of the picture to be projected based on the area to be displayed;
and projecting the picture to be projected based on the effective projection area.
2. The projection method of claim 1, wherein the step of determining the area to be displayed in the auxiliary projection image comprises:
performing gray scale processing on the auxiliary projection image to generate a gray scale image;
carrying out binarization processing on the gray-scale image to generate a first binary image;
performing reverse color processing and morphological processing on the first binary image to obtain a corrected image;
and taking the effective pixel area in the corrected image as an area to be displayed.
3. The projection method of claim 1, wherein the step of determining the area to be displayed in the auxiliary projection image comprises:
sequentially carrying out noise reduction processing and edge detection processing on the auxiliary projection image, and determining a reference contour in the auxiliary projection image;
carrying out binarization processing on the image obtained after edge detection to generate a second binary image;
determining an effective reference contour in the reference contours of the second binary image based on a preset contour limit condition;
setting the pixel value of the area outside the effective reference contour to be 0, and carrying out morphological processing on the effective reference contour area to obtain a corrected image;
and taking the effective pixel area in the corrected image as an area to be displayed.
4. The projection method of claim 3, wherein the step of determining the valid reference contour in the second binary image based on a preset contour constraint comprises at least one of:
in the second binary image, the reference contour with contour coordinates located in a preset image area is used as an effective reference contour;
in the second binary image, taking the reference contour with the enclosed area smaller than a preset area threshold value as an effective reference contour;
and in the second binary image, the reference contour, of which the area ratio between the inside of a preset image area and the outside of the preset image area is larger than a preset value, is taken as an effective reference contour.
5. The projection method of claim 1, wherein the acquiring the auxiliary projection image comprises:
the auxiliary projection image is obtained from a local folder, a preset database of applications, or an online database.
6. The projection method of claim 1, wherein the step of determining the area to be displayed in the auxiliary projection image comprises:
carrying out binarization processing on the auxiliary projection image to generate a third binary image;
and performing reverse color processing on the third binary image, and determining an effective closed contour area in the processed image as an area to be displayed.
7. The projection method of claim 1, wherein the step of acquiring an auxiliary projection image comprises:
acquiring input character information;
and obtaining an auxiliary projection image according to a preset character position and the input character information, wherein the input character information is positioned at the preset character position in the auxiliary projection image.
8. The projection method according to any one of claims 1 to 7, wherein the step of projecting the picture to be projected based on the effective projection area comprises:
assigning a perspective mask value to pixels within the active projection area and assigning a non-perspective mask value to pixels outside the active projection area;
taking the area with the perspective mask value in the picture to be projected as an actual projection area;
and projecting the picture to be projected according to the actual projection area.
9. A projector, characterized in that the projector comprises: memory, processor and computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, carries out the steps of the projection method according to any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the projection method according to one of claims 1 to 8.
CN202210542116.2A 2022-05-17 2022-05-17 Projection method, projector, and computer-readable storage medium Pending CN115022605A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210542116.2A CN115022605A (en) 2022-05-17 2022-05-17 Projection method, projector, and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210542116.2A CN115022605A (en) 2022-05-17 2022-05-17 Projection method, projector, and computer-readable storage medium

Publications (1)

Publication Number Publication Date
CN115022605A true CN115022605A (en) 2022-09-06

Family

ID=83068670

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210542116.2A Pending CN115022605A (en) 2022-05-17 2022-05-17 Projection method, projector, and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN115022605A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101946117A (en) * 2008-02-22 2011-01-12 松下电工株式会社 Light projection device and illumination device
CN105184216A (en) * 2015-07-24 2015-12-23 山东大学 Cardiac second region palm print digital extraction method
CN112580383A (en) * 2020-12-29 2021-03-30 科大讯飞(苏州)科技有限公司 Two-dimensional code identification method and device, electronic equipment and storage medium
CN113420582A (en) * 2020-11-04 2021-09-21 ***股份有限公司 Anti-counterfeiting detection method and system for palm vein recognition
CN113794868A (en) * 2021-09-29 2021-12-14 中国联合网络通信集团有限公司 Projection method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101946117A (en) * 2008-02-22 2011-01-12 松下电工株式会社 Light projection device and illumination device
CN105184216A (en) * 2015-07-24 2015-12-23 山东大学 Cardiac second region palm print digital extraction method
CN113420582A (en) * 2020-11-04 2021-09-21 ***股份有限公司 Anti-counterfeiting detection method and system for palm vein recognition
CN112580383A (en) * 2020-12-29 2021-03-30 科大讯飞(苏州)科技有限公司 Two-dimensional code identification method and device, electronic equipment and storage medium
CN113794868A (en) * 2021-09-29 2021-12-14 中国联合网络通信集团有限公司 Projection method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
阙禄松;王明泉;张俊生;李汉;: "基于Canny算子和形态学滤波的焊缝图像背景去除技术", 国外电子测量技术, no. 01, 15 January 2020 (2020-01-15) *

Similar Documents

Publication Publication Date Title
CN110443140B (en) Text positioning method, device, computer equipment and storage medium
CN109685746A (en) Brightness of image method of adjustment, device, storage medium and terminal
CN107122108B (en) Picture editing method and device
CN105138317A (en) Window display processing method and device applied to terminal equipment
CN109741281A (en) Image processing method, device, storage medium and terminal
US10460421B2 (en) Image processing apparatus and storage medium
CN112990205B (en) Method and device for generating handwritten character sample, electronic equipment and storage medium
US20160078336A1 (en) Apparatus and method for generating image-included two dimensional code
US9679386B2 (en) Image processing device capable of segmenting an image into plural areas
US11206294B2 (en) Method for separating local and remote content in a camera-projector based collaborative system
CN111461070B (en) Text recognition method, device, electronic equipment and storage medium
CN108494996A (en) Image processing method, device, storage medium and mobile terminal
US20240153097A1 (en) Methods and Systems for Automatically Generating Backdrop Imagery for a Graphical User Interface
CN111914846B (en) Layout data synthesis method, equipment and storage medium
JP4541397B2 (en) Pseudo three-dimensional image generation apparatus, pseudo three-dimensional image generation method, and pseudo three-dimensional image generation program
CN112906686A (en) Character recognition method and device, electronic equipment and storage medium
CN115022605A (en) Projection method, projector, and computer-readable storage medium
JP5618719B2 (en) Image processing apparatus, method and program thereof
CN108256611B (en) Two-dimensional code image generation method and device, computing equipment and storage medium
US11468658B2 (en) Systems and methods for generating typographical images or videos
CN112927321B (en) Intelligent image design method, device, equipment and storage medium based on neural network
CN113256484A (en) Method and device for stylizing image
JP4911585B2 (en) Image processing apparatus, image processing method, program, and information recording medium
US10572759B2 (en) Image processing device, image processing method, and program
CN115002430A (en) Projection method, projector, and computer-readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination