Method and device for determining projected image, storage medium and electronic device
By comparing the current background image and the historical background image, the motion trajectory of the moving object is obtained and compensated, which solves the problem of poor projection effect caused by dynamic objects in the projector and improves the projection effect.
Patent Information
- Application Number
- CN202110838396.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-23
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2041-07-23
AI Technical Summary
During the projection process of the projector, due to the presence of dynamic objects in the projected content, the projection effect is poor, and the existing technology cannot effectively solve this problem.
By acquiring the current background image reflected by the background area and comparing it with the historical background image, it is determined whether there is a moving object, and the image signal is compensated according to the movement trajectory of the moving object to generate the projection image to be projected to achieve synchronization. projection.
The image signal of the moving object is compensated through the compensation processing module, so that the projection effect is improved, a projected image consistent with the content of the image signal is achieved, and the projection effect of the projector is improved.
Smart Images

Figure CN115695741B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communications, and in particular to a method and device for determining a projected image, a storage medium and an electronic device. Background Art
[0002] With the development of society, in order to better teach children, more and more schools and families have begun to use projectors to teach children. However, there are some problems in the projection process. For example, if there are dynamic objects in the content projected by the projector, there will be a corresponding delay in the content projected by the projector in the background area, and the synchronous projection cannot be performed well, resulting in poor projection effect.
[0003] In the related art, there is no effective solution to the problem that during the use of the projector, the projection effect of the projector is poor due to the presence of dynamic objects in the projected content.
[0004] Therefore, it is necessary to improve the related technology to overcome the above-mentioned defects in the related technology. Summary of the invention
[0005] The embodiments of the present invention provide a method and device for determining a projected image, a storage medium and an electronic device to solve the problem that, during the use of a projector, the projection effect of the projector is poor due to the presence of dynamic objects in the projected content.
[0006] According to one aspect of an embodiment of the present invention, a method for determining a projected image is provided, comprising: acquiring a current background image reflected by an image signal through a background area; comparing the current background image with a historical background image to determine whether there is a moving object in the current background image; when there is a moving object in the current background image, acquiring a motion trajectory of the moving object, and instructing a compensation processing module to perform compensation processing on the image signal according to the motion trajectory to obtain a projected image to be projected.
[0007] Furthermore, obtaining the motion trajectory of the moving object includes: obtaining multiple historical background images, and determining the change trend of the current background image in target parameters based on the multiple historical background images and the current background image, wherein the target parameters include at least one of the following: the shape of the moving object, the movement direction of the moving object, and the movement speed in the movement direction; determining the change trend of the current background image in the target parameters as the motion trajectory of the moving object.
[0008] Furthermore, the compensation processing module is instructed to perform compensation processing on the image signal according to the motion trajectory to obtain the projection image to be projected, including: determining the movement distance of the moving object within the target time period according to the movement speed in the target parameter; at the beginning of the target time period, compensating the image signal according to the movement distance, the movement direction, and the shape of the moving object, so that at the end of the target time period, the projection image to be projected is obtained.
[0009] Further, instructing the compensation processing module to perform compensation processing on the image signal according to the motion trajectory to obtain a projection image to be projected, including: instructing the compensation processing module to determine the color information of the background area; performing compensation processing on the image signal according to the color indicated by the color information and the motion trajectory to obtain the projection image to be projected, wherein the projection image to be projected is consistent with the content of the image signal.
[0010] Furthermore, before comparing the current background image with the historical background image, the method also includes: saving the current background image and the historical background image in the compensation processing module; compressing the current background image and the historical background image respectively to obtain a compressed current background image and a compressed historical background image, wherein the compressed current background image includes: a first primary color signal and a first pixel color difference signal, and the compressed historical background image includes: a second primary color signal and a second pixel color difference signal.
[0011] Furthermore, after instructing the compensation processing module to perform compensation processing on the image signal according to the motion trajectory to obtain the projection image to be projected, the method also includes: instructing the compensation processing module to send the obtained projection image to be projected to the projection image determination device; instructing the projection image determination device to project the projection image to be projected onto the background area.
[0012] According to another aspect of an embodiment of the present invention, a device for determining a projected image is also provided, including: an acquisition module, used to acquire a current background image reflected by an image signal through a background area; a determination module, used to compare the current background image with a historical background image to determine whether there is a moving object in the current background image; a compensation module, used to acquire a motion trajectory of the moving object when there is a moving object in the current background image, and instruct a compensation processing module to perform compensation processing on the image signal according to the motion trajectory to obtain a projected image to be projected.
[0013] Furthermore, the compensation module is also used to obtain multiple historical background images, and determine the change trend of the current background image in the target parameters based on the multiple historical background images and the current background image, wherein the target parameters include at least one of the following: the shape of the moving object, the moving direction of the moving object, and the moving speed in the moving direction; the change trend of the current background image in the target parameters is determined as the moving trajectory of the moving object.
[0014] According to another aspect of the embodiments of the present invention, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned method for determining the projection image when running.
[0015] According to another aspect of an embodiment of the present invention, there is provided an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the method for determining the projection image through the computer program.
[0016] Through the present invention, the current background image reflected by the image signal through the background area is obtained; the current background image and the historical background image are compared to determine whether there is a moving object in the current background image; if there is a moving object in the current background image, the motion trajectory of the moving object is obtained, and the compensation processing module is instructed to perform compensation processing on the image signal according to the motion trajectory to obtain the projection image to be projected. In other words, the current background image and the historical background image reflected by the image signal through the background area are compared, and if it is determined that there is a moving object, the motion trajectory of the moving object is obtained, and then the compensation processing module is instructed to perform compensation processing on the image signal according to the motion trajectory. The above technical solution solves the problem that the projection effect of the projector is poor due to the presence of dynamic objects in the projected content during the use of the projector, and then the image signal with the moving object is compensated by the compensation processing module, so that synchronous projection can be performed, thereby improving the projection effect. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0018] Figure 1 It is a hardware structure block diagram of a mobile terminal of a method for determining a projected image according to an embodiment of the present invention;
[0019] Figure 2 is a flow chart of a method for determining a projected image according to an embodiment of the present invention;
[0020] Figure 3 is a color light reflection principle diagram of a method for determining a projected image according to an embodiment of the present invention;
[0021] Figure 4 is a projection principle diagram of a projection device in the related art of an embodiment of the present invention;
[0022] Figure 5 is a trajectory prediction module diagram of a method for determining a projected image according to an embodiment of the present invention;
[0023] Figure 6 is a schematic diagram of a background compensation calculation module of a method for determining a projected image according to an embodiment of the present invention;
[0024] Figure 7 is a projection principle diagram of a method for determining a projected image according to an embodiment of the present invention;
[0025] Figure 8 is a schematic diagram of a collection background of a method for determining a projection image according to an embodiment of the present invention;
[0026] Fig. 9 4 is a structural block diagram of a device for determining a projected image according to an embodiment of the present invention. DETAILED DESCRIPTION
[0027] The present invention will be described in detail below with reference to the accompanying drawings and in combination with embodiments. It should be noted that the embodiments and features in the embodiments of the present application can be combined with each other without conflict.
[0028] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0029] The method embodiment provided in the embodiment of the present application can be executed in a mobile terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 FIG. 1 is a hardware structure block diagram of a mobile terminal of a method for determining a projected image according to an embodiment of the present invention. Figure 1 As shown, the mobile terminal may include one or more ( Figure 1Only one is shown in the figure) processor 102 (processor 102 may include but is not limited to a microprocessor (Microprocessor Unit, referred to as MPU) or a programmable logic device (Programmable logic device, referred to as PLD)) and a memory 104 for storing data. In an exemplary embodiment, the mobile terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is for illustration only and does not limit the structure of the mobile terminal. Figure 1 More or fewer components as shown, or with Figure 1 Equivalent functions or comparisons shown Figure 1 A different configuration with more features is shown.
[0030] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the method for determining the projected image in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a 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 a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the mobile terminal via a network. Examples of the above network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0031] The transmission device 106 is used to receive or send data via a network. The specific example of the above network 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 (Network Interface Controller, referred to as 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 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0032] In this embodiment, a method for determining a projected image is provided. Figure 2 is a flow chart of a method for determining a projected image according to an embodiment of the present invention, the flow chart comprising the following steps:
[0033] Step S202: obtaining a current background image reflected by the image signal through the background area;
[0034] It should be noted that the method for determining the projected image of the present application can be applied to devices with image projection functions such as projectors, etc., and is not specifically limited in this embodiment. The image signal is emitted by a signal source, and then emitted to the background area by the projector, and the current background image reflected by the background area is collected by the lighting lens.
[0035] Step S204: comparing the current background image with the historical background image to determine whether there is a moving object in the current background image;
[0036] Step S206: when there is a moving object in the current background image, the motion trajectory of the moving object is obtained, and a compensation processing module is instructed to perform compensation processing on the image signal according to the motion trajectory to obtain a projection image to be projected.
[0037] Through the above steps, the current background image reflected by the image signal through the background area is obtained; the current background image and the historical background image are compared to determine whether there is a moving object in the current background image; if there is a moving object in the current background image, the motion trajectory of the moving object is obtained, and the compensation processing module is instructed to perform compensation processing on the image signal according to the motion trajectory to obtain the projection image to be projected. That is to say, the current background image and the historical background image reflected by the image signal through the background area are compared, and if it is determined that there is a moving object, the motion trajectory of the moving object is obtained, and then the compensation processing module is instructed to perform compensation processing on the image signal according to the motion trajectory. The above technical solution solves the problem that the projection effect of the projector is poor due to the presence of dynamic objects in the projected content during the use of the projector, and then the image signal with the moving object is compensated by the compensation processing module, so that synchronous projection can be performed, thereby improving the projection effect.
[0038] It should be noted that before comparing the current background image and the historical background image, the current background image and the historical background image need to be saved in the compensation processing module; the current background image and the historical background image are respectively compressed to obtain a compressed current background image and a compressed historical background image, wherein the compressed current background image includes: a first primary color signal and a first pixel color difference signal, and the compressed historical background image includes: a second primary color signal and a second pixel color difference signal. In other words, after obtaining the current background image and the historical background image reflected by the image signal through the background area, it is necessary to save both the current background image and the historical background image in the compensation processing module, and the background image can be saved in the form of pixel points, and the specific pixel point formats are as follows: [1, 1, #FFFFFF], [1, 2, #FFFFFF], [100, 200, #6A6AFF], [100, 200, #4A7AEF]. Each pixel has a color value, which takes up a large space. Since the background area is usually single in color, the color contrast is not particularly large. Therefore, the compensation processing module can compress the current background image and the historical background image respectively to obtain the compressed current background image and the compressed historical background image. The advantage of this can be understood as that for the parts with the same color, only one color and range can be stored, and the color of each pixel does not need to be stored. However, the data of the background image will not be lost, so the amount of data can be greatly reduced while the effect remains unchanged. Both the computing environment and the transmission link of the background image can be improved, and storage space can be saved.
[0039] It should be noted that the current background image and the historical background image in this embodiment are obtained by collecting the light reflected from the background area through the light-collecting lens on the projector and sending it to the photosensitive element for relevant processing. The photosensitive element is currently mostly CCD / CMOS. The current background image and the historical background image represent different collection times.
[0040] Furthermore, obtaining the motion trajectory of the moving object in the above-mentioned step S206 can be achieved through the following technical solution: obtaining multiple historical background images, and determining the change trend of the current background image in the target parameters based on the multiple historical background images and the current background image, wherein the target parameters include at least one of the following: the shape of the moving object, the moving direction of the moving object, and the moving speed in the moving direction; determining the change trend of the current background image in the target parameters as the motion trajectory of the moving object.
[0041] That is to say, when it is determined that there is a moving object in the current background image, multiple historical background images will be further obtained, and the multiple historical background images will be compared with the current historical background image to determine the changing trends of the shape of the moving object, the moving direction of the moving object, and the moving speed of the moving direction in the current background image, and the changing trends of the shape of the moving object, the moving direction of the moving object, and the moving speed of the moving direction are determined as the moving trajectory of the moving object. It should be noted that in order to better determine the moving trajectory of the moving object, at least 10 historical background images need to be obtained.
[0042] Furthermore, after determining the motion trajectory of the moving object, it is necessary to instruct the compensation processing module to perform compensation processing on the image signal according to the motion trajectory to obtain the projection image to be projected, which can be achieved through the following technical solution: determining the movement distance of the moving object within the target time period according to the movement speed in the target parameter; at the beginning of the target time period, compensating the image signal according to the movement distance, the movement direction, and the shape of the moving object, so that at the end of the target time period, the projection image to be projected is obtained.
[0043] That is, the compensation calculation module receives the motion trajectory of the moving object, and then determines the moving distance of the moving object in the target time period according to the moving speed in the target parameter in the motion trajectory, and at the beginning of the target time period, the image signal is compensated according to the moving distance of the moving object, the moving direction of the moving object and the shape of the moving object, so that at the end of the target time period, the projection image to be projected is obtained. For a better understanding, for example, by calculation, the moving speed of the moving object is 1 meter per second, and the moving direction is to move to the right, that is, in the next 1 millisecond, the moving object will move 1 millimeter to the right, and then the compensation calculation module will compensate the image signal according to the predicted moving distance of the moving object, the moving direction of the moving object and the shape of the moving object, and finally compensate the color difference in advance at a position 1 millimeter outside the right side of the moving object contour, and end the compensation in advance at a position 1 millimeter inside the left side of the object contour.
[0044] It should be noted that the compensation processing module performs compensation processing on the image signal according to the motion trajectory to obtain the projection image to be projected, and the compensation processing module is required to determine the color information of the background area; the image signal is compensated according to the color indicated by the color information and the motion trajectory to obtain the projection image to be projected, wherein the projection image to be projected is consistent with the content of the image signal.
[0045] That is to say, the compensation calculation module also needs to compensate the image signal according to the color information of the background area. For a better understanding, the following is a specific description of the color light reflection principle. Figure 3 This is a color light reflection principle diagram of a method for determining a projected image according to an embodiment of the present invention. Light is emitted from a light source, projected onto a background wall (equivalent to the above-mentioned background area), and then reflected into the human eye. The color seen by the human eye is the reflected light. For example: if the color of the background wall is white and the light from the light source is red, the human eye sees red. If the color of the background wall is green and the light from the light source is red, the human eye sees black.
[0046] It should be noted that if the background wall is white and the light source does not project light in a certain area, then the area will contrast with the surrounding light, and the human eye will see black. (For example, a black image will be projected on a white screen). If the background wall is black and the light source increases the brightness of the light projected in a certain area, then the area will show the color of the light source. (For example, a white image will be projected on a black screen).
[0047] Similarly, if an area of the background wall is blocked by an object of a certain color, the light source must enhance the brightness of the object area so that the background wall can reflect the color of the light source as much as possible. Ultimately, people see an effect that is basically consistent with the color of the source film.
[0048] Therefore, the compensation processing module needs to perform compensation processing on the image signal according to the color indicated by the color information of the background image and the motion trajectory to obtain the projection image to be projected.
[0049] It should be noted that, after instructing the compensation processing module to perform compensation processing on the image signal according to the motion trajectory to obtain the projection image to be projected, the method also includes: instructing the compensation processing module to send the obtained projection image to be projected to the projection image determination device; instructing the projection image determination device to project the projection image to be projected onto the background area.
[0050] It should be noted that the device for determining the above-mentioned projected image may be a projector.
[0051] Obviously, the above-described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. In order to better understand the above-mentioned method for determining the projected image, the above-mentioned process is described below in conjunction with the embodiments, but it is not intended to limit the technical solution of the embodiments of the present invention. Specifically:
[0052] In an optional embodiment, in order to better understand how a projection device projects an image in the related art, Figure 4It is a projection principle diagram of a projection device in the related technology of an embodiment of the present invention, which is specifically shown as follows:
[0053] The digital signal source (equivalent to the signal source in the above embodiment) outputs a digital image signal (equivalent to the image signal in the above embodiment), wherein the digital signal source includes: a personal computer (PC), a video compact disc (VCD), and a TV box. The digital image signal is input to the main body of the projection image determination machine through a high definition multimedia interface (HDMI), a video graphics array (VGA), a wireless fidelity (WIFI), etc. It should be noted that the digital image signal here is the final pixel and RGB color array formed after the relevant column transformation.
[0054] Further, Figure 5 It is a trajectory prediction module diagram of a method for determining a projected image according to an embodiment of the present invention. Specifically, the background moving object trajectory prediction module receives and caches a digital background signal as a current background image, and then the prediction module compares the historical background image with the current background image to determine the moving object (equivalent to the moving object in the above embodiment), and captures the current moving object image, and then predicts the moving object's trajectory based on the current moving object image (equivalent to the current background image in the above embodiment) and the historical background image, wherein the moving trajectory includes: the shape of the moving object, the moving distance of the moving object, the moving direction of the moving object, and the moving speed of the moving object. The historical background image stores at least 10 historical images before the current background image.
[0055] After the trajectory prediction module predicts the motion trajectory of the moving object, the motion trajectory will be sent to the background compensation calculation module (equivalent to the compensation processing module in the above embodiment). In order to better understand the background compensation calculation module, Figure 6 1 is a schematic diagram of a background compensation calculation module of a method for determining a projected image according to an embodiment of the present invention, specifically:
[0056] The background compensation calculation module receives and caches the digital background signal transmitted by the analog-to-digital converter. The cache format is as follows: [1, 1, #FFFFFF], [1, 2, #FFFFFF], [100, 200, #6A6AFF], [100, 200, #4A7AEF]. Each pixel has a color value, which takes up a large space.
[0057] Due to the large space occupied, the background compensation calculation module will compress and store the digital background signal after caching. The compressed signal is divided into two parts: background primary color (equivalent to the primary color signal in the above embodiment) and pixel color difference (equivalent to the pixel color difference signal in the above embodiment). Among them, 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 difference is [100, 200, #6A6AFF], [100, 200, #4A7AEF]. It should be noted that when the background is very clean, the compression effect is obvious, and there may be only primary color data but no color difference data. When the background is very messy, the compression effect is not obvious.
[0058] It should be noted that the background compensation calculation module receives an image signal, which has been transformed in the original device to form an array of pixels and RGB colors, such as [100, 200, #00FFFF], indicating that the color at the pixel point (100, 200) should be green.
[0059] The background compensation calculation module receives the motion trajectory of the moving object at the same time. If there is no moving object in the current background image, the previous compensation calculation result can be reused directly. If there is a moving object in the current background, the compensation calculation needs to be performed again.
[0060] For example: the background compensation calculation module makes compensation in advance in the direction of movement according to the moving direction and speed of the moving object. Specifically, if the moving object moves to the right at a speed of 1 m / s, the moving object will move 1 mm to the right in the next 1 millisecond. Then the background compensation calculation module needs to eventually compensate for the color difference in advance at a position 1 mm outside the right side of the object outline, and end the compensation in advance at a position 1 mm inside the left side of the object outline.
[0061] In a complete embodiment, in order to better understand the method for determining the projection image in the embodiment of the present application, Figure 7 is a projection principle diagram of a method for determining a projected image according to an embodiment of the present invention, and the specific implementation method is as follows:
[0062] The solution of this embodiment is compared with Figure 4 For the solution, a lighting lens, a photosensitive element, an analog-to-digital converter, a background object motion trajectory prediction device based on an artificial intelligence module, and a background compensation calculation module are added.
[0063] Specifically, before projection, the projection device first collects the image of the projection background wall (relative to the background area in the above embodiment) through the lighting lens. If the background wall of the projection image is clean, the collected background image is the same color and brightness. If the background wall of the projection image is uneven or there are other objects in the background wall, the collected background image is different color and brightness. Figure 8 is a schematic diagram of a background acquisition method for determining a projection image according to an embodiment of the present invention. Figure 8 In (a), since the background wall of the projected image is clean, the background image with the same color and brightness is captured. Figure 8 In (b), since the background wall of the projected image is messy, the background images collected are of different colors and different brightness. Figure 8 (c) is the collected cluttered background with moving objects.
[0064] After the light is collected by the light-collecting lens, the light is projected onto the photosensitive element through the light-collecting lens. Currently, the most common photosensitive element is CCD / CMOS. The photosensitive element converts the light into an analog image signal, which is converted into a digital background signal through an analog-to-digital converter. Among them, the digital background signal is a multidimensional array containing rows, columns, and color values, such as [1, 1, #FF0000], which means that the color at the pixel position (1, 1) is red. For a pure white and clean background image converted into a digital background signal, the color values of all pixel positions are [1, 1, #FFFFFF], [1, 2, #FFFFFF]. For a messy background image converted into a digital background signal, the color values of some pixel positions will be different, such as [100, 200, #6A6AFF], [100, 200, #4A7AEF].
[0065] Then the digital background signal is simultaneously transmitted to the background moving object trajectory prediction device based on the artificial intelligence module (equivalent to the trajectory prediction module in the above embodiment) and the background compensation calculation module. The trajectory prediction device compares the current background with the historical background, determines the moving object in the background, and determines the movement trajectory of the object, and sends the movement trajectory to the background compensation calculation module. Then the compensation calculation module uses the digital background signal sent by the analog-to-digital converter and the movement trajectory of the moving object sent by the trajectory prediction device for calculation, and then adjusts the compensation scheme according to the changes in the background, and makes compensation in the direction of movement in advance according to the trajectory prediction. The playback signal obtained after compensation (equivalent to the projection image to be projected in the above embodiment) is sent to the projector body, and then projected on the background area.
[0066] By adopting the above technical solution, even if there are moving objects in the projected content, the projection effect will not be affected.
[0067] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a device for determining a projected image, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0068] In this embodiment, a device for determining a projected image is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and will not be repeated hereafter. As used below, the term "module" may be a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0069] Fig. 9 is a structural block diagram of a device for determining a projection image according to an embodiment of the present invention. Fig. 9 As shown, including:
[0070] An acquisition module 92 is used to acquire a current background image reflected by the image signal through the background area;
[0071] A determination module 94, configured to compare the current background image with the historical background image to determine whether there is a moving object in the current background image;
[0072] The compensation module 96 is used to obtain the motion trajectory of the moving object when there is a moving object in the current background image, and instruct the compensation processing module to perform compensation processing on the image signal according to the motion trajectory to obtain the projection image to be projected.
[0073] Through the above module, the current background image reflected by the image signal through the background area is obtained; the current background image and the historical background image are compared to determine whether there is a moving object in the current background image; if there is a moving object in the current background image, the motion trajectory of the moving object is obtained, and the compensation processing module is instructed to perform compensation processing on the image signal according to the motion trajectory to obtain the projection image to be projected. In other words, the current background image and the historical background image reflected by the image signal through the background area are compared, and if it is determined that there is a moving object, the motion trajectory of the moving object is obtained, and then the compensation processing module is instructed to perform compensation processing on the image signal according to the motion trajectory. The above technical solution solves the problem that the projection effect of the projector is poor due to the presence of dynamic objects in the projected content during the use of the projector, and then the image signal with the moving object is compensated by the compensation processing module, so that synchronous projection can be performed, thereby improving the projection effect.
[0074] Optionally, the compensation module 96 is also used to obtain multiple historical background images, and determine the change trend of the current background image in the target parameters based on the multiple historical background images and the current background image, wherein the target parameters include at least one of the following: the shape of the moving object, the moving direction of the moving object, and the moving speed in the moving direction; the change trend of the current background image in the target parameters is determined as the moving trajectory of the moving object.
[0075] Optionally, the compensation module 96 is also used to determine the movement distance of the moving object within the target time period according to the movement speed in the target parameters; at the beginning of the target time period, the image signal is compensated according to the movement distance, the movement direction, and the shape of the moving object, so that at the end of the target time period, the projection image to be projected is obtained.
[0076] Optionally, the compensation module 96 is also used to instruct the compensation processing module to determine the color information of the background area; perform compensation processing on the image signal according to the color indicated by the color information and the motion trajectory to obtain a projection image to be projected, wherein the projection image to be projected is consistent with the content of the image signal.
[0077] Optionally, the determination module 94 is also used to save the current background image and the historical background image in the compensation processing module; and to perform compression processing on the current background image and the historical background image respectively to obtain a compressed current background image and a compressed historical background image, wherein the compressed current background image includes: a first primary color signal and a first pixel color difference signal, and the compressed historical background image includes: a second primary color signal and a second pixel color difference signal.
[0078] Optionally, the compensation module 96 is further used to instruct the compensation processing module to send the obtained projection image to be projected to the projection image determination device; and instruct the projection image determination device to project the projection image to be projected onto the background area.
[0079] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.
[0080] An embodiment of the present invention further provides a storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.
[0081] Further, in this embodiment, the above storage medium may be configured to store a computer program for performing the following steps:
[0082] S1, obtaining the current background image reflected by the image signal through the background area;
[0083] S2, comparing the current background image with the historical background image to determine whether there is a moving object in the current background image;
[0084] S3, when there is a moving object in the current background image, obtaining a motion trajectory of the moving object, and instructing a compensation processing module to perform compensation processing on the image signal according to the motion trajectory to obtain a projection image to be projected.
[0085] Furthermore, in this embodiment, the above-mentioned storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store computer programs.
[0086] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0087] Furthermore, the electronic device 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.
[0088] Further, in this embodiment, the processor may be configured to execute the following steps through a computer program:
[0089] S1, obtaining the current background image reflected by the image signal through the background area;
[0090] S2, comparing the current background image with the historical background image to determine whether there is a moving object in the current background image;
[0091] S3, when there is a moving object in the current background image, obtaining a motion trajectory of the moving object, and instructing a compensation processing module to perform compensation processing on the image signal according to the motion trajectory to obtain a projection image to be projected.
[0092] Furthermore, in this further, the specific examples in this embodiment can refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.
[0093] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, and further, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
[0094] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for determining a projected image, characterized in that: include: Obtaining a current background image of an image signal reflected by a background area; Comparing the current background image with the historical background image to determine whether there is a moving object in the current background image; In the case where there is a moving object in the current background image, obtaining a motion trajectory of the moving object, and instructing a compensation processing module to perform compensation processing on the image signal according to the motion trajectory to obtain a projection image to be projected; Wherein, obtaining the motion trajectory of the moving object includes: Acquire multiple historical background images, and determine the change trend of the current background image in target parameters according to the multiple historical background images and the current background image, wherein the target parameters include at least one of the following: the shape of the moving object, the moving direction of the moving object, and the moving speed of the moving direction; Determining the change trend of the current background image in the target parameter as the motion trajectory of the moving object; The step of instructing the compensation processing module to perform compensation processing on the image signal according to the motion trajectory to obtain a projection image to be projected includes: Determine the movement distance of the moving object within the target time period according to the movement speed in the target parameter; At the beginning of the target time period, the image signal is compensated according to the moving distance, the moving direction, and the shape of the moving object, so that the projection image to be projected is obtained at the end of the target time period.
2. The method for determining a projection image according to claim 1, characterized in that: Instructing a compensation processing module to perform compensation processing on the image signal according to the motion trajectory to obtain a projection image to be projected, including: Instructing the compensation processing module to determine the color information of the background area; The image signal is compensated according to the color indicated by the color information and the motion trajectory to obtain a projection image to be projected, wherein the projection image to be projected is consistent with the content of the image signal.
3. The method for determining a projection image according to claim 1, characterized in that: Before comparing the current background image with the historical background image, the method further includes: Saving the current background image and the historical background image in the compensation processing module; The current background image and the historical background image are compressed respectively to obtain a compressed current background image and a compressed historical background image, wherein the compressed current background image includes: a first primary color signal and a first pixel color difference signal, and the compressed historical background image includes: a second primary color signal and a second pixel color difference signal.
4. The method for determining a projection image according to any one of claims 1 to 3, characterized in that: After instructing the compensation processing module to perform compensation processing on the image signal according to the motion trajectory to obtain a projection image to be projected, the method further includes: Instructing the compensation processing module to send the obtained projection image to be projected to a projection image determination device; The projection image determination device is instructed to project the projection image to be projected onto the background area.
5. A device for determining a projected image, characterized in that: include: An acquisition module, used to acquire a current background image reflected by an image signal through a background area; A determination module, used for comparing the current background image with the historical background image to determine whether there is a moving object in the current background image; A compensation module, configured to obtain a motion trajectory of a moving object when there is a moving object in the current background image, and instruct a compensation processing module to perform compensation processing on the image signal according to the motion trajectory to obtain a projection image to be projected; Wherein, the compensation module is further used to obtain a plurality of historical background images, and determine the change trend of the current background image in the target parameter according to the plurality of historical background images and the current background image, wherein the target parameter includes at least one of the following: the shape of the moving object, the moving direction of the moving object, and the moving speed in the moving direction; the change trend of the current background image in the target parameter is determined as the moving trajectory of the moving object; Among them, the compensation module is also used to determine the movement distance of the moving object within the target time period according to the movement speed in the target parameter; at the beginning of the target time period, the image signal is compensated according to the movement distance, the movement direction, and the shape of the moving object, so that at the end of the target time period, the projection image to be projected is obtained.
6. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program executes the method described in any one of claims 1 to 4 when executed.
7. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 4 through the computer program.
