CN115695742A - Projection method and apparatus, storage medium, and electronic apparatus - Google Patents
Projection method and apparatus, storage medium, and electronic apparatus Download PDFInfo
- Publication number
- CN115695742A CN115695742A CN202110839812.5A CN202110839812A CN115695742A CN 115695742 A CN115695742 A CN 115695742A CN 202110839812 A CN202110839812 A CN 202110839812A CN 115695742 A CN115695742 A CN 115695742A
- Authority
- CN
- China
- Prior art keywords
- digital
- image signal
- background
- signal
- projected
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 50
- 238000004364 calculation method Methods 0.000 claims abstract description 51
- 238000012545 processing Methods 0.000 claims description 31
- 238000004590 computer program Methods 0.000 claims description 16
- 239000003086 colorant Substances 0.000 claims description 11
- 238000003491 array Methods 0.000 claims description 4
- 230000008569 process Effects 0.000 abstract description 9
- 230000000875 corresponding effect Effects 0.000 description 25
- 238000010586 diagram Methods 0.000 description 14
- 230000000694 effects Effects 0.000 description 12
- 230000005540 biological transmission Effects 0.000 description 8
- 239000000872 buffer Substances 0.000 description 6
- 230000006835 compression Effects 0.000 description 6
- 238000007906 compression Methods 0.000 description 6
- 238000004891 communication Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000002596 correlated effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
Images
Abstract
The invention provides a projection method and device, a storage medium and an electronic device, wherein the projection method comprises the following steps: acquiring a digital background signal of a region to be projected and a digital image signal sent by a digital signal source, wherein the digital background signal is represented by a multi-dimensional array, and the digital image signal is to be projected to the region to be projected; the digital background signal is compressed by an indication background compensation calculation module, and the digital image signal is compensated according to the compressed digital background signal to obtain a target digital image signal; and projecting the target digital image signal to the area to be projected through a projection lens. By adopting the technical scheme, the problem that the projection equipment is inflexible to use due to the fact that the projection must be projected to a white and smooth wall surface or a white curtain in the process of using the projection equipment is solved.
Description
Technical Field
The present invention relates to the field of communications, and in particular, to a projection method and apparatus, a storage medium, and an electronic apparatus.
Background
With the development of society, projection devices have come to be used in more and more households, and in order to make projection effect better, the projection devices are generally projected onto a white wall or a white curtain.
However, the white wall and the white curtain have a common problem that the white wall and the white curtain need to be fixed locally, and for small-sized users, certain difficulty may exist in selecting a wall surface suitable for hanging the curtain.
In the related art, no effective solution has been proposed to the problem that the projection must be projected onto a white and flat wall surface or a white curtain during the use of the projection apparatus, which results in inflexible use of the projection apparatus.
Disclosure of Invention
Embodiments of the present invention provide a projection method and apparatus, a storage medium, and an electronic apparatus, so as to solve a problem in the related art that, in a process of using a projection device, a projection must be projected onto a white wall or a white curtain, which results in inflexible use of the projection device.
According to an aspect of an embodiment of the present invention, there is provided a projection method, including: acquiring a digital background signal of a region to be projected and a digital image signal sent by a digital signal source, wherein the digital background signal is represented by a multidimensional array, and the digital image signal is to be projected to the region to be projected; instructing a background compensation calculation module to compress the digital background signal, and performing compensation processing on the digital image signal according to the compressed digital background signal to obtain a target digital image signal; and projecting the target digital image signal to the area to be projected through a projection lens.
Further, acquiring a digital background signal of the area to be projected, comprising: acquiring light rays emitted by the area to be projected through a lighting lens, and sending the light rays to a photosensitive element so as to obtain an analog image signal corresponding to the light rays through the photosensitive element; and sending the analog image signal to an analog-to-digital converter to obtain a digital background signal corresponding to the analog image signal.
Further, sending the analog image signal to an analog-to-digital converter to obtain a digital background signal corresponding to the analog image signal, including: sending the analog image signal to an analog-to-digital converter to obtain multidimensional arrays, wherein each multidimensional array comprises: the system comprises row coordinates, column coordinates and color values, wherein the row coordinates are used for indicating the row coordinates in the simulated image corresponding to each dimension array, the column coordinates are used for indicating the column coordinates in the simulated image corresponding to each dimension array, and the color values are used for indicating the colors of the corresponding positions of the row coordinates and the column coordinates; determining the multi-dimensional array as the digital background signal.
Further, instructing a background compensation calculation module to compress the digital background signal comprises: instructing the background compensation calculation module to acquire the color type of the digital background signal; compressing the digital background signal according to the color type to obtain a compressed array background signal, wherein the compressed digital background signal comprises: background primary color signals and pixel color difference signals. Further, after the digital image signal is compensated according to the compressed digital background signal to obtain a target digital image signal, the method further includes: instructing the background compensation calculation module to determine a color state of the compressed digital background signal; and performing compensation processing on the digital image signal according to the color state so as to enable the color reflected after the obtained target digital image signal is transmitted to the region to be projected to be the color indicated by the digital image signal. Further, projecting the target digital image signal to the region to be projected through a projection lens, including: saving the target digital background signal in a projector body, wherein the projector body comprises: the background compensation calculation module; and indicating the projector body to project the target digital background signal on the area to be projected through the projection lens.
According to another aspect of the embodiments of the present invention, there is also provided a projection apparatus, including: the device comprises an acquisition module, a projection module and a display module, wherein the acquisition module is used for acquiring a digital background signal of a region to be projected and a digital image signal sent by a digital signal source, the digital background signal is represented by a multi-dimensional array, and the digital image signal is to be projected to the region to be projected; the compensation processing module is used for indicating the background compensation calculation module to compress the digital background signal and performing compensation processing on the digital image signal according to the compressed digital background signal to obtain a target digital image signal; and the projection module is used for projecting the target digital image signal to the area to be projected through a projection lens.
Further, the compensation processing module is further configured to instruct the background compensation calculating module to determine a color state of the digital background signal; and performing compensation processing on the digital image signal according to the color state so as to enable the color reflected after the obtained target digital image signal is transmitted to the region to be projected to be the color indicated by the digital image signal.
According to a further aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the above projection method when running.
According to another aspect of the embodiments of the present invention, there is also provided an electronic apparatus, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the projection method through the computer program.
According to the invention, a digital background signal of a region to be projected and a digital image signal sent by a digital signal source are obtained, wherein the digital background signal is represented by a multidimensional array, and the digital image signal is to be projected to the region to be projected; instructing a background compensation calculation module to compress the digital background signal, and performing compensation processing on the digital image signal according to the compressed digital background signal to obtain a target digital image signal; and projecting the target digital image signal to the area to be projected through a projection lens. That is to say, the digital image signal sent by the digital signal source is compensated by the background compensation calculating module according to the digital background signal of the area to be projected, and the compensated digital image signal is projected to the area to be projected through the projection lens, so that the problem that the projection equipment is inflexible to use due to the fact that the projection must be projected onto a white and smooth wall surface or a white curtain in the process of using the projection equipment is solved. And then can throw the projection of projection equipment other colours's wall, or on the wall of a little unevenness for the user can be nimble use projection equipment.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a block diagram of a hardware configuration of a mobile terminal of a projection method according to an embodiment of the present invention;
FIG. 2 is a schematic projection diagram of a projection apparatus according to an embodiment of the present invention;
FIG. 3 is a flow chart illustrating a projection method according to an embodiment of the invention;
FIG. 4 is a schematic diagram of a projection method according to an embodiment of the invention;
FIG. 5 is a schematic diagram of an acquisition background of a projection method according to an embodiment of the present invention;
FIG. 6 is a block diagram of a background compensation calculation module of a projection method according to an embodiment of the invention;
FIG. 7 is a schematic diagram of reflection of color light according to a projection method of an embodiment of the present invention;
fig. 8 is a block diagram of a projection apparatus according to an embodiment of the present invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
The method provided by the embodiment of the application can be executed in a mobile terminal or a similar operation device. Taking the mobile terminal as an example, fig. 1 is a block diagram of a hardware structure of the mobile terminal of a projection method according to an embodiment of the present invention. As shown in fig. 1, the mobile terminal may include one or more processors 102 (only one is shown in fig. 1), wherein the processors 102 may include, but are not limited to, a Microprocessor (MPU) or a Programmable Logic Device (PLD), and a memory 104 for storing data, and in an exemplary embodiment, the mobile terminal may further include a transmission device 106 for communication function and an input/output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration, and does not limit the structure of the mobile terminal. For example, the mobile terminal may also include more or fewer components than shown in FIG. 1, or have a different configuration with equivalent functionality to that shown in FIG. 1 or with more functionality than that shown in FIG. 1.
The memory 104 can be used for storing computer programs, for example, software programs and modules of application software, such as computer programs corresponding to the projection method in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer programs stored in the memory 104, so as to implement the above-mentioned method. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the mobile terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a Network adapter (NIC), which can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used to communicate with the internet in a wireless manner.
In order to better understand how the projection apparatus in the related art projects, fig. 2 is a projection schematic diagram of the projection apparatus in the related art according to an embodiment of the present invention, which is specifically shown as follows:
the digital signal source outputs a digital image signal, wherein the digital signal source comprises: personal Computer (PC), video Compact Disc (VCD), and tv box. Digital image signals are input to the projector body through a High Definition Multimedia Interface (HDMI), a Video Graphics Array (VGA) Interface, a Wireless Fidelity (WIFI) Interface, and the like. It should be noted that the digital image signal here is a final pixel and RGB color array formed after the correlated column transformation.
After receiving the digital image signal, the projector body converts the digital image signal into red, green and blue light, and projects the red, green and blue light onto a background wall through the projection lens. However, the projection process of the conventional projection device has certain requirements on the background wall, the color of the background wall must be white, and the wall surface must be flat.
In view of the above problem, a projection method is provided in this embodiment, and fig. 3 is a schematic flow chart of a projection method according to an embodiment of the present invention, where the flow chart includes the following steps:
step S302: acquiring a digital background signal of a region to be projected and a digital image signal sent by a digital signal source, wherein the digital background signal is represented by a multi-dimensional array, and the digital image signal is to be projected to the region to be projected;
step S304: the digital background signal is compressed by an indication background compensation calculation module, and the digital image signal is compensated according to the compressed digital background signal to obtain a target digital image signal;
step S306: and projecting the target digital image signal to the area to be projected through a projection lens.
Through the steps, a digital background signal of a region to be projected and a digital image signal sent by a digital signal source are obtained, wherein the digital background signal is represented by a multi-dimensional array, and the digital image signal is to be projected to the region to be projected; the digital background signal is compressed by an indication background compensation calculation module, and the digital image signal is compensated according to the compressed digital background signal to obtain a target digital image signal; and projecting the target digital image signal to the area to be projected through a projection lens. That is to say, the background compensation calculation module compensates the digital image signal sent by the digital signal source according to the digital background signal of the area to be projected, and the compensated digital image signal is projected to the area to be projected through the projection lens, so that the problem that the projection equipment is not flexible to use because the projection must be projected onto a white and smooth wall surface or a white curtain in the process of using the projection equipment is solved. And then can throw the wall of other colours with projection equipment's projection, perhaps on a little uneven wall for the user can be nimble use projection equipment.
The color value difference sum principle is applied to the embodiment, so that the projection equipment performs difference and compensation on the color of the projection source according to the color value reflected by the reflecting surface, the same effect as that of the white curtain is achieved, and a user can perform projection everywhere.
In order to obtain the color value of the surface to be reflected, specifically, the digital background signal of the area to be projected needs to be obtained, which includes: acquiring light rays emitted by the area to be projected through a lighting lens, and sending the light rays to a photosensitive element so as to obtain an analog image signal corresponding to the light rays through the photosensitive element; and sending the analog image signal to an analog-to-digital converter to obtain a digital background signal corresponding to the analog image signal.
That is to say, according to the color value reflected by the to-be-reflected surface of the to-be-projected area, the color of the projection source is subjected to difference compensation, light emitted by the to-be-projected area needs to be acquired through a lighting lens of the projection device, the lighting lens sends the acquired light to a photosensitive element, then the photosensitive element converts the acquired light into an analog image signal corresponding to the light, and sends the analog image signal to an analog-to-digital converter, and the analog-to-digital converter converts the analog image signal into a corresponding digital background signal. The photosensitive element includes: CCD/CMOS.
In order to better understand that the analog-to-digital converter converts the analog image signal into the corresponding digital background signal, in an alternative embodiment, the following technical solutions may be implemented: sending the analog image signal to an analog-to-digital converter to obtain multidimensional arrays, wherein each multidimensional array comprises: the system comprises row coordinates, column coordinates and color values, wherein the row coordinates are used for indicating the row coordinates in the simulated image corresponding to each dimension array, the column coordinates are used for indicating the column coordinates in the simulated image corresponding to each dimension array, and the color values are used for indicating the colors of the corresponding positions of the row coordinates and the column coordinates; determining the multi-dimensional array as the digital background signal.
It can be seen that the analog-to-digital converter converts the analog image signal into the digital background signal, and the digital background signal is a multi-dimensional array comprising row, column and color values, for example, there is a digital background signal [1, # FF0000], wherein the first 1 represents the row coordinate of the digital background signal in the analog image, the second 1 represents the column coordinate of the digital background signal in the analog image, # FF0000 represents the color red, and the entire one-dimensional array represents the color red at the pixel bit (1, 1) position.
It should be noted that, for the analog image signal corresponding to the pure white and clean region to be projected, after the analog-to-digital converter converts the analog image signal into the digital background signal, all the pixel bit color values of the digital background signal are [1, # FFFFFF ], [1,2, # ffff ] \8230, i.e. all the pixel bit positions are white in color. For the analog image signal corresponding to the disordered region to be projected, after the analog-to-digital converter converts the analog image signal into the digital background signal, the color values of the pixel bits of the digital background signal part will be different, for example, [100, 200, #6A6AFF ], [100, 200, #4A7AEF ].
It should be noted that, instructing the background compensation calculating module to compress the digital background signal may be implemented by: instructing the background compensation calculation module to acquire the color type of the digital background signal; compressing the digital background signal according to the color type to obtain a compressed array background signal, wherein the compressed digital background signal comprises: background primary color signals and pixel color difference signals.
The background compensation calculation module receives and buffers the digital background signal, and the specific buffer format is as follows: [1, # FFFFFF ], [1,2, # FFFFFF ], [100, 200, #6A6AFF ], [100, 200, #4A7AEF ]. Each pixel point has a color value, and the occupied space is large. Therefore, the background compensation calculation module needs to compress and store the data background signal, and specifically, since the color of the region to be projected is generally single and the color contrast is not particularly large, only one color and range can be stored for the part with the same color, and the color of each pixel point does not need to be stored. By adopting the mode, the data of the digital background signal can not be lost, the data volume can be greatly reduced while the effect is not changed, the speed can be improved in the calculation link or the transmission link of the digital background signal, and the storage space can be saved. The compressed signal is divided into a background primary color and a pixel color difference, wherein the background primary color takes the color value with the largest proportion as: the background primary color is white [ # FFFFFF ], and the pixel color differences [100, 200, #6A6AFF ], [100, 200, #4A7AEF ]. When the area to be projected is clean, the compression effect is obvious, and only background primary color data and no pixel color difference data are possible. When the area to be projected is cluttered, the compression effect is not obvious.
Further, after the digital image signal is compensated according to the compressed digital background signal to obtain a target digital image signal: the background compensation calculation module needs to be instructed to determine the color state of the digital background signal; and performing compensation processing on the digital image signal according to the color state so as to enable the color reflected after the obtained target digital image signal is transmitted to the area to be projected to be the color indicated by the digital image signal.
That is to say, after the analog-to-digital converter sends the digital background signal to the background compensation calculating module, the background compensation calculating module will determine the color state of the digital background signal first, that is, determine the color state of the area to be projected. And the background compensation calculation module can perform compensation processing on the digital image signal sent by the digital signal source according to the color state, so that the color reflected after the obtained target digital image signal is sent to the area to be projected is the color indicated by the digital image signal.
For better understanding, alternatives are, for example: the color indicated by the digital image signal emitted by the digital signal source is red, and if the color of the area to be projected is white, the digital image signal can make the color reflected by the area to be projected be red without processing. At this time, if the color of the region to be projected is green and the digital image signal is not processed, the color reflected by the region to be projected is not red, and at this time, the digital image needs to be processed to obtain the color information of the region to be projected, and the specific obtaining and converting processes are described in detail, and are not described herein again. And then, the background compensation calculation module performs compensation processing on the digital image signal sent by the digital signal source according to the acquired color state of the region to be projected, so that the color indicated by the processed digital image signal is still red.
Further, projecting the target digital image signal to the region to be projected through a projection lens, including: saving the target digital background signal in a projector body, wherein the projector body comprises: the background compensation calculation module; and indicating the projector body to project the target digital background signal on the area to be projected through the projection lens. That is to say, the scene compensation calculation module stores the target digital background after compensation processing in the projector body, and then the projector body projects the target digital background signal in the area to be projected through the projection lens.
It is to be understood that the above-described embodiments are only a few, but not all, embodiments of the present invention. In order to better understand the above projection method, the following describes the above process with reference to an embodiment, but the technical solution of the embodiment of the present invention is not limited, specifically:
in a complete embodiment, fig. 4 is a schematic diagram of a projection method according to an embodiment of the present invention, which is implemented as follows:
compared with the scheme of fig. 2, the scheme of the present embodiment adds a lighting lens, a photosensitive element, an analog-to-digital converter and a background compensation calculation module.
Specifically, before projection, the projection apparatus collects a picture of a projection background wall (contrary to the area to be projected in the above embodiment) through a lighting lens. If the projection background wall is clean, the collected background pictures with the same color and the same brightness are collected, and if the projection background wall is uneven or a cluttered background of other objects exists in the background wall, the collected background pictures with different colors and different brightness are collected. Specifically, fig. 5 is a schematic diagram of a captured background of a projection method according to an embodiment of the present invention, in (a) of fig. 5, since a projection background wall is clean, a background picture with the same color and the same brightness is captured, and in (b) of fig. 5, since the projection background wall is cluttered, a background picture with different colors and different brightness is captured.
After the lighting lens collects the light, the light is projected onto the photosensitive element through the lighting lens. The photosensitive element is mostly a CCD/CMOS at present, and converts light into an analog image signal, which is converted into a digital background signal by an analog-to-digital converter. The digital background signal is a multi-dimensional array of row, column, and color values, e.g., [1, # FF0000], indicating that the color at pixel bit (1, 1) is red. For a pure white and clean background picture converted to a digital background signal, all pixel bit color values are [1, # FFFFFF ], [1,2, # FFFFFF ]. For the scrambled background picture to be converted into digital background signal, the color values of some pixel bits will be different, such as [100, 200, #6A6AFF ], [100, 200, #4A7AEF ]. And then the converted digital background signal is transmitted into a background compensation calculation module for compensation calculation.
For better understanding of the background compensation calculation module, fig. 6 is a schematic diagram of the background compensation calculation module of a projection method according to an embodiment of the present invention, which is specifically shown as follows:
the background compensation calculation module receives and buffers the digital background signal, and the buffer format is as follows: [1, # FFFFFF ], [1,2, # FFFFFF ], [100, 200, #6A6AFF ], [100, 200, #4A7AEF ]. Each pixel point has a color value, and the occupied space is large.
And after the background compensation calculation module caches the digital background signals, the digital background signals are compressed and stored, and the compressed signals are divided into two parts, namely background primary colors and pixel color differences. Wherein, the background primary color takes the color value with the largest proportion, such as: the background primary color is white [ # FFFFFF ], and the pixel color differences [100, 200, #6A6AFF ], [100, 200, #4A7AEF ]. It should be noted that, when the background is clean, the compression effect is obvious, and there may be only primary color data and no color difference data. When the background is cluttered, the compression effect is not noticeable.
It should be noted that the background compensation calculation module receives an image signal, which is transformed into an array of pixels and RGB colors in the original device. E.g., [100, 200, #00FFFF ], indicates that the color at the pixel point (100, 200) should be green. And then the background compensation calculation module carries out compensation processing on the digital background signal according to the received image signal.
To better understand the principle of color light reflection, fig. 7 is a schematic diagram of color light reflection of a projection method according to an embodiment of the present invention, light is emitted from a light source, projected onto a background wall, and reflected into human eyes, and the color seen by a human is the reflected light. For example: if the background wall is white and the light source is red, the human eye will see red. If the background wall is green and the light source is red, the human eye sees black.
It should be noted that if the color of the background wall is white and the light source does not project light in a certain area, the area is contrasted with the ambient light, and the human eye looks black. (e.g., projecting a black image on a white screen). If the background wall is black in color and the light source enhances the brightness of the projected light in a certain area, the area will show the color of the light from the light source. (e.g., projecting a white image on a black screen).
Similarly, if a certain area of the background wall is shaded by an object with a certain color, the light source is required to enhance the brightness of the area of the object, so that the background wall can reflect the light color of the light source to the maximum extent, and finally, people can see the effect which is basically consistent with the color of the film source.
Through the technical scheme of the embodiment, the projection equipment can project everywhere in a room without depending on a curtain and a white wall.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a projection device, or a network device) to execute the method according to the embodiments of the present invention.
In this embodiment, a projection apparatus is further provided, and the apparatus is used for implementing the above embodiments and preferred embodiments, which have already been described and are not described again. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 8 is a block diagram of a projection apparatus according to an embodiment of the present invention, as shown in fig. 8, including:
an obtaining module 82, configured to obtain a digital background signal of a region to be projected and a digital image signal sent by a digital signal source, where the digital background signal is represented by a multidimensional array, and the digital image signal is to be projected to the region to be projected;
a compensation processing module 84, configured to instruct the background compensation calculation module to compress the digital background signal, and perform compensation processing on the digital image signal according to the compressed digital background signal to obtain a target digital image signal;
and the projection module 86 is used for projecting the target digital image signal to the area to be projected through a projection lens.
The method comprises the steps that through the module, a digital background signal of a region to be projected and a digital image signal sent by a digital signal source are obtained, wherein the digital background signal is represented by a multi-dimensional array, and the digital image signal is to be projected to the region to be projected; the digital background signal is compressed by an indication background compensation calculation module, and the digital image signal is compensated according to the compressed digital background signal to obtain a target digital image signal; and projecting the target digital image signal to the area to be projected through a projection lens. That is to say, the background compensation calculation module compensates the digital image signal sent by the digital signal source according to the digital background signal of the area to be projected, and the compensated digital image signal is projected to the area to be projected through the projection lens, so that the problem that the projection equipment is not flexible to use because the projection must be projected onto a white and smooth wall surface or a white curtain in the process of using the projection equipment is solved. And then can throw the wall of other colours with projection equipment's projection, perhaps on a little uneven wall for the user can be nimble use projection equipment.
The color value difference sum principle is applied to the embodiment, so that the projection equipment performs difference and compensation on the color of the projection source according to the color value reflected by the to-be-reflected surface, the same effect as that of the white curtain is achieved, and a user can perform projection everywhere.
Optionally, the obtaining module 82 is further configured to obtain light emitted from the area to be projected through a lighting lens, and send the light to a photosensitive element, so as to obtain an analog image signal corresponding to the light through the photosensitive element; and sending the analog image signal to an analog-to-digital converter to obtain a digital background signal corresponding to the analog image signal.
That is to say, according to the color value of waiting the plane of reflection of projection area, carry out difference and compensation to the color of projection source, need obtain the light that waits projection area launches through projection equipment's daylighting camera lens, the daylighting camera lens sends the light of gathering to photosensitive element, and then photosensitive element converts the light that obtains into the analog image signal that the light corresponds to with analog-to-digital converter, analog-to-digital converter converts analog image signal into corresponding digital background signal. The photosensitive element includes: CCD/CMOS.
It should be noted that the obtaining module 82 is further configured to send the analog image signal to an analog-to-digital converter to obtain a multidimensional array, where each of the multidimensional arrays includes: the system comprises row coordinates, column coordinates and color values, wherein the row coordinates are used for indicating the row coordinates in the simulated image corresponding to each dimension array, the column coordinates are used for indicating the column coordinates in the simulated image corresponding to each dimension array, and the color values are used for indicating the colors of the corresponding positions of the row coordinates and the column coordinates; determining the multi-dimensional array as the digital background signal.
It can be seen that the analog-to-digital converter converts the analog image signal into the digital background signal, and the digital background signal is a multi-dimensional array comprising row, column and color values, for example, there is a digital background signal [1, # FF0000], wherein the first 1 represents the row coordinate of the digital background signal in the analog image, the second 1 represents the column coordinate of the digital background signal in the analog image, # FF0000 represents the color red, and the entire one-dimensional array represents the color red at the pixel bit (1, 1) position.
It should be noted that, for the analog image signal corresponding to the pure white and clean region to be projected, after the analog-to-digital converter converts the analog image signal into the digital background signal, all the pixel bit color values of the digital background signal are [1, # FFFFFF ], [1,2, # ffff ] \8230, i.e. all the pixel bit positions are white in color. For the analog image signal corresponding to the disordered region to be projected, after the analog-to-digital converter converts the analog image signal into the digital background signal, the color values of the pixel bits of the digital background signal part will be different, for example, [100, 200, #6A6AFF ], [100, 200, #4A7AEF ].
It should be noted that the compensation processing module 84 is further configured to instruct the background compensation calculating module to obtain the color type of the digital background signal; compressing the digital background signal according to the color type to obtain a compressed array background signal, wherein the compressed digital background signal comprises: background primary color signals and pixel color difference signals.
The background compensation calculation module receives and buffers the digital background signal, and the specific buffer format is as follows: [1,1, # FFFFFF ], [1,2, # FFFFFF ], [100, 200, #6A6AFF ], [100, 200, #4A7AEF ]. Wherein, each pixel all has a colour value, and occupation space is great. Therefore, the background compensation calculation module needs to compress and store the data background signal, and specifically, because the color of the region to be projected is generally single and the color contrast is not particularly large, only one color and range can be stored for the part with the same color, and the color of each pixel point does not need to be stored. By adopting the mode, the data of the digital background signal can not be lost, the data volume can be greatly reduced while the effect is not changed, the speed can be increased in the calculation link or the transmission link of the digital background signal, and the storage space can be saved. The compressed signal is divided into a background primary color and a pixel color difference, wherein the background primary color takes the color value with the largest proportion as: the background primaries are white [ # FFFFFF ], pixel color differences [100, 200, #6A6AFF ], [100, 200, #4A7AEF ]. When the area to be projected is clean, the compression effect is obvious, and only background primary color data and no pixel color difference data are possible. When the area to be projected is very cluttered, the compression effect is not obvious.
Further, the compensation processing module 84 is further configured to instruct the background compensation calculating module to determine a color status of the digital background signal; and performing compensation processing on the digital image signal according to the color state so as to enable the color reflected after the obtained target digital image signal is transmitted to the region to be projected to be the color indicated by the digital image signal.
That is, after the analog-to-digital converter sends the digital background signal to the background compensation calculation module, the background compensation calculation module will determine the color state of the digital background signal, that is, determine the color state of the region to be projected. And the background compensation calculation module can perform compensation processing on the digital image signal sent by the digital signal source according to the color state, so that the color reflected after the obtained target digital image signal is sent to the area to be projected is the color indicated by the digital image signal.
For better understanding, alternatives are, for example: the color indicated by the digital image signal emitted by the digital signal source is red, and if the color of the area to be projected is white, the digital image signal can make the color reflected by the area to be projected be red without processing. At this time, if the color of the region to be projected is green and the digital image signal is not processed, the color reflected by the region to be projected is not red, and at this time, the digital image needs to be processed to obtain the color information of the region to be projected, and the specific obtaining and converting processes are described in detail, and are not described herein again. And then, the background compensation calculation module performs compensation processing on the digital image signal sent by the digital signal source according to the acquired color state of the region to be projected, so that the color indicated by the processed digital image signal is still red.
Further, the projection module 86 is further configured to store the target digital background signal in a projector body, where the projector body includes: the background compensation calculation module; and indicating the projector body to project the target digital background signal on the area to be projected through the projection lens. That is to say, the scene compensation calculation module stores the target digital background after compensation processing in the projector body, and then the projector body projects the target digital background signal in the area to be projected through the projection lens.
It should be noted that the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are located in different processors in any combination.
An embodiment of the present invention further provides a storage medium having a computer program stored therein, wherein the computer program is configured to perform the steps in any of the method embodiments described above when executed.
Further, in the present embodiment, the above-mentioned storage medium may be configured to store a computer program for executing the steps of:
s1, acquiring a digital background signal of a region to be projected and a digital image signal sent by a digital signal source, wherein the digital background signal is represented by a multidimensional array, and the digital image signal is to be projected to the region to be projected;
s2, instructing a background compensation calculation module to compress the digital background signal, and performing compensation processing on the digital image signal according to the compressed digital background signal to obtain a target digital image signal;
and S3, projecting the target digital image signal to the area to be projected through a projection lens.
Further, in the present embodiment, the storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
Further, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Further, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, acquiring a digital background signal of a region to be projected and a digital image signal sent by a digital signal source, wherein the digital background signal is represented by a multi-dimensional array, and the digital image signal is to be projected to the region to be projected;
s2, instructing a background compensation calculation module to compress the digital background signal, and performing compensation processing on the digital image signal according to the compressed digital background signal to obtain a target digital image signal;
and S3, projecting the target digital image signal to the area to be projected through a projection lens.
Further, in this embodiment, reference may be made to the examples described in the above embodiments and optional implementation manners for specific examples, and details of this embodiment are not repeated herein.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and further, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.
Claims (10)
1. A method of projection, comprising:
acquiring a digital background signal of a region to be projected and a digital image signal sent by a digital signal source, wherein the digital background signal is represented by a multi-dimensional array, and the digital image signal is to be projected to the region to be projected;
instructing a background compensation calculation module to compress the digital background signal, and performing compensation processing on the digital image signal according to the compressed digital background signal to obtain a target digital image signal; and projecting the target digital image signal to the area to be projected through a projection lens.
2. The projection method of claim 1, wherein obtaining a digital background signal of the area to be projected comprises:
acquiring light rays emitted by the area to be projected through a lighting lens, and sending the light rays to a photosensitive element so as to obtain an analog image signal corresponding to the light rays through the photosensitive element; and sending the analog image signal to an analog-to-digital converter to obtain a digital background signal corresponding to the analog image signal.
3. The projection method according to claim 2, wherein sending the analog image signal to an analog-to-digital converter to obtain a digital background signal corresponding to the analog image signal comprises:
and sending the analog image signal to an analog-to-digital converter to obtain multidimensional arrays, wherein each multidimensional array comprises: the system comprises row coordinates, column coordinates and color values, wherein the row coordinates are used for indicating the row coordinates in the simulated image corresponding to each dimension array, the column coordinates are used for indicating the column coordinates in the simulated image corresponding to each dimension array, and the color values are used for indicating the colors of the corresponding positions of the row coordinates and the column coordinates;
determining the multi-dimensional array as the digital background signal.
4. The projection method of claim 1, wherein instructing a background compensation calculation module to compress the digital background signal comprises:
instructing the background compensation calculation module to acquire the color type of the digital background signal;
compressing the digital background signal according to the color type to obtain a compressed array background signal, wherein the compressed digital background signal comprises: background primary color signals and pixel color difference signals.
5. The projection method according to claim 1, wherein after the digital image signal is compensated according to the compressed digital background signal to obtain the target digital image signal, the method further comprises:
instructing the background compensation calculation module to determine a color state of the compressed digital background signal;
and performing compensation processing on the digital image signal according to the color state so as to enable the color reflected after the obtained target digital image signal is transmitted to the area to be projected to be the color indicated by the digital image signal.
6. The projection method according to any one of claims 1 to 5, wherein projecting the target digital image signal to the region to be projected through a projection lens comprises:
saving the target digital background signal in a projector body, wherein the projector body comprises: the background compensation calculation module;
and indicating the projector body to project the target digital background signal on the area to be projected through the projection lens.
7. A projection device, comprising:
the acquisition module is used for acquiring a digital background signal of a region to be projected and a digital image signal sent by a digital signal source, wherein the digital background signal is represented by a multidimensional array, and the digital image signal is to be projected to the region to be projected;
the compensation processing module is used for indicating the background compensation calculation module to compress the digital background signal and performing compensation processing on the digital image signal according to the compressed digital background signal to obtain a target digital image signal;
and the projection module is used for projecting the target digital image signal to the area to be projected through a projection lens.
8. The projection device of claim 7, wherein the compensation processing module is further configured to instruct the background compensation calculation module to determine a color status of the digital background signal; and performing compensation processing on the digital image signal according to the color state so as to enable the color reflected after the obtained target digital image signal is transmitted to the region to be projected to be the color indicated by the digital image signal.
9. A computer-readable storage medium, comprising a stored program, wherein the program is operable to perform the method of any one of claims 1 to 6.
10. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method of any of claims 1 to 6 by means of the computer program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110839812.5A CN115695742A (en) | 2021-07-23 | 2021-07-23 | Projection method and apparatus, storage medium, and electronic apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110839812.5A CN115695742A (en) | 2021-07-23 | 2021-07-23 | Projection method and apparatus, storage medium, and electronic apparatus |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115695742A true CN115695742A (en) | 2023-02-03 |
Family
ID=85044673
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110839812.5A Pending CN115695742A (en) | 2021-07-23 | 2021-07-23 | Projection method and apparatus, storage medium, and electronic apparatus |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115695742A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105357505A (en) * | 2015-11-11 | 2016-02-24 | 广东威创视讯科技股份有限公司 | Color compensation method and system for digital light processing chip, and signal processing chip |
WO2016184142A1 (en) * | 2015-11-25 | 2016-11-24 | 中兴通讯股份有限公司 | Color correction method and apparatus for projection picture |
CN106796713A (en) * | 2014-11-10 | 2017-05-31 | 英特尔公司 | It is compressed using index bit in MSAA |
CN108737806A (en) * | 2018-08-30 | 2018-11-02 | Oppo广东移动通信有限公司 | A kind of projecting apparatus color correcting method and device, computer storage media |
CN109191403A (en) * | 2018-09-07 | 2019-01-11 | Oppo广东移动通信有限公司 | Image processing method and device, electronic equipment, computer readable storage medium |
CN109286800A (en) * | 2018-10-23 | 2019-01-29 | 北京数科技有限公司 | A kind of projected color method of adjustment and device |
-
2021
- 2021-07-23 CN CN202110839812.5A patent/CN115695742A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106796713A (en) * | 2014-11-10 | 2017-05-31 | 英特尔公司 | It is compressed using index bit in MSAA |
CN105357505A (en) * | 2015-11-11 | 2016-02-24 | 广东威创视讯科技股份有限公司 | Color compensation method and system for digital light processing chip, and signal processing chip |
WO2016184142A1 (en) * | 2015-11-25 | 2016-11-24 | 中兴通讯股份有限公司 | Color correction method and apparatus for projection picture |
CN108737806A (en) * | 2018-08-30 | 2018-11-02 | Oppo广东移动通信有限公司 | A kind of projecting apparatus color correcting method and device, computer storage media |
CN109191403A (en) * | 2018-09-07 | 2019-01-11 | Oppo广东移动通信有限公司 | Image processing method and device, electronic equipment, computer readable storage medium |
CN109286800A (en) * | 2018-10-23 | 2019-01-29 | 北京数科技有限公司 | A kind of projected color method of adjustment and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP7313330B2 (en) | Video image data processing in electronics | |
US6833863B1 (en) | Method and apparatus for still image capture during video streaming operations of a tethered digital camera | |
CN108632597B (en) | Three-dimensional video communication method and system, electronic device and readable storage medium | |
US20180007372A1 (en) | A method and apparatus of encoding and decoding a color picture | |
KR102385365B1 (en) | Electronic device and method for encoding image data in the electronic device | |
CN109167915A (en) | Image processing method, system and computer readable storage medium | |
JP7359521B2 (en) | Image processing method and device | |
US10674163B2 (en) | Color space compression | |
WO2002031806A1 (en) | Method of and system for low-bandwidth transmission of color video | |
CN115526787A (en) | Video processing method and device | |
CN110930932B (en) | Display screen correction method and system | |
CN115695742A (en) | Projection method and apparatus, storage medium, and electronic apparatus | |
US20230115821A1 (en) | Image processing devices and methods | |
US20200106821A1 (en) | Video processing apparatus, video conference system, and video processing method | |
EP4262192A1 (en) | Video processing method and apparatus, electronic device, and storage medium | |
US20210297558A1 (en) | Cubiform method | |
US20050128054A1 (en) | Method, system, and apparatus to identify and transmit data to an image display | |
CN115695741A (en) | Projection image determination method and apparatus, storage medium, and electronic apparatus | |
CN115527474A (en) | Image display method, image display device, projection device, and storage medium | |
US20230199159A1 (en) | Projection system, and control method for projection system | |
CN110012307A (en) | Video transmission method, device and main terminal equipment | |
WO2017086610A1 (en) | Portable pico projector for learning, to which internet of things function is added | |
US11233999B2 (en) | Transmission of a reverse video feed | |
EP4250722A1 (en) | Image processing method and related device | |
EP4270936A1 (en) | Video processing method and apparatus, electronic device, and 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 |