Projection control method, device, system and storage medium
By obtaining the color characteristic data of the preset solid color image from the projection equipment, calculating the target color current coefficient and adjusting the color temperature of the projection screen, the impact of different walls or curtains on the projection effect is solved and better projection effects are achieved.
Patent Information
- Application Number
- CN202111350785.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-15
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2041-11-15
AI Technical Summary
The materials and colors of different walls or curtains will affect the color temperature of the projection equipment, resulting in poor projection effects.
By obtaining the color characteristic data of the preset solid-color image on different projection surfaces by the projection equipment, the target color current coefficient is calculated, and the color temperature of the projection screen is adjusted based on the coefficient to match the color temperature of the target projection surface.
It improves the image or video projection effect of the projection equipment on different projection surfaces, ensuring the best picture experience.
Smart Images

Figure CN116132642B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of projection technology, and in particular, relates to a projection control method, device, system and storage medium. Background Art
[0002] At present, with the continuous development of science and technology, more and more technological devices have entered people's lives. Among them, projection devices such as projectors have received widespread attention. Projection devices can project images or videos onto walls or screens, so that users can watch the projected images.
[0003] In the related art, different users project different images onto different walls or screens when using projection equipment. Therefore, when the projection equipment projects images or videos, the material and color of the wall or screen will affect the color temperature of the projected image, resulting in poor projection effect. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide a projection control method, device, system and storage medium, which can solve the problem in the related art that the material and color of the wall or screen affect the color temperature of the projected image, resulting in poor projection effect.
[0005] In a first aspect, an embodiment of the present application provides a projection control method, which is applied to a projection device, and the method includes: obtaining first color characteristic data corresponding to the projection device, wherein the first color characteristic data is obtained by projecting a preset pure color image onto a preset projection surface by the projection device; projecting the preset pure color image onto a target projection surface to obtain a first projection picture; obtaining second color characteristic data corresponding to the first projection picture; determining a target color current coefficient based on the first color characteristic data and the second color characteristic data; and adjusting the color temperature of the first projection picture based on the target color current coefficient.
[0006] In a second aspect, an embodiment of the present application provides a projection device, comprising: an acquisition module, used to acquire first color characteristic data corresponding to the projection device, wherein the first color characteristic data is obtained by projecting a preset pure color image onto a preset projection surface by the projection device; a projection module, used to project the preset pure color image onto a target projection surface to obtain a first projection picture; the acquisition module, also used to acquire second color characteristic data corresponding to the first projection picture; a determination module, used to determine a target color current coefficient based on the first color characteristic data and the second color characteristic data; an adjustment module, used to adjust the color temperature of the first projection picture based on the target color current coefficient.
[0007] In a third aspect, an embodiment of the present application provides a projection device, comprising: a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, the steps of the projection control method of the first aspect are implemented.
[0008] In a fourth aspect, an embodiment of the present application provides a projection control system, comprising the projection device of the second aspect.
[0009] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the steps of the projection control method of the first aspect are implemented.
[0010] The present application provides a projection control method, device, system and storage medium. The projection device can obtain first color feature data obtained when a preset pure color image is projected onto a preset projection surface in advance. The first color feature data can achieve an ideal projection effect. The projection device can project a preset pure color image onto a target projection surface to obtain a first projection screen, and obtain second color feature data corresponding to the first projection screen. Based on this, according to the first color feature data and the second color feature data, a target color current coefficient can be determined, and the color temperature of the first projection screen can be adjusted based on the target color current coefficient, so as to achieve automatic adjustment of the color temperature of the projection screen and improve the projection effect of the projection device projecting an image or video onto the target projection surface. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0012] Figure 1 It is one of the flowcharts of the projection control method provided in the embodiment of the present application;
[0013] Figure 2 This is the second flowchart of the projection control method provided in the embodiment of the present application;
[0014] Figure 3 This is the third flow chart of the projection control method provided in the embodiment of the present application;
[0015] Figure 4 This is the fourth flowchart of the projection control method provided in the embodiment of the present application;
[0016] Figure 5 This is the fifth flowchart of the projection control method provided in the embodiment of the present application;
[0017] Figure 6 is a structural schematic diagram of a projection device provided in an embodiment of the present application;
[0018] Figure 7 It is a schematic diagram of the hardware structure of a projection device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0019] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.
[0020] As mentioned in the background technology, a projection device can project an image or video onto a wall or a screen so that the user can view the projected image. However, different users may project different walls or screens onto different projection devices. Therefore, when the projection device projects an image or video, the material and color of the wall or screen will affect the color temperature of the projected image, resulting in a poor projection effect. For example, when a projection device projects an image or video onto a wall with patterns, the color temperature of the projected image will be affected by the pattern of the wall.
[0021] In order to solve the problems in the related art, the embodiment of the present application provides a projection control method, in which the projection device can obtain the first color characteristic data obtained when a preset pure color image is projected onto a preset projection surface in advance, and the first color characteristic data can achieve an ideal projection effect. The projection device can project the preset pure color image onto the target projection surface, obtain the first projection screen, and obtain the second color characteristic data corresponding to the first projection screen. Based on this, according to the first color characteristic data and the second color characteristic data, the target color current coefficient can be determined, and the color temperature of the first projection screen can be adjusted based on the target color current coefficient, so as to realize automatic adjustment of the color temperature of the projection screen, improve the projection effect of the projection device projecting the image or video onto the target projection surface, and solve the problem in the related art that the material and color of the wall or curtain affect the color temperature of the projection screen, resulting in poor projection effect.
[0022] The projection control method provided in the embodiment of the present application is described in detail below through specific embodiments and application scenarios in conjunction with the accompanying drawings.
[0023] Figure 1 1 is a flowchart of a projection control method provided by an embodiment of the present application, and the execution subject of the projection control method may be a projection device. It should be noted that the above execution subject does not constitute a limitation on the present application.
[0024] like Figure 1 As shown, the projection control method provided in the embodiment of the present application may include steps 110 to 150.
[0025] Step 110: Acquire first color characteristic data corresponding to the projection device.
[0026] The first color characteristic data is obtained by projecting a preset pure color image onto a preset projection surface through a projection device.
[0027] Specifically, the preset projection surface can be a pure color projection surface with better projection effect and more ideal, such as a pure white wall, a pure white curtain, etc.; the preset pure color image can be a pure color image of any color, and this application does not make any specific limitations on this.
[0028] It should be noted that, since the preset projection surface can be a projection surface with better projection effect and a more ideal projection surface, after the projection device projects the preset pure color image onto the preset projection surface, the projection effect in the obtained projection picture is better.
[0029] Step 120 , projecting a preset pure color image onto a target projection surface to obtain a first projection picture.
[0030] Specifically, when the projection device projects a preset pure color image on the target projection surface, a first projection picture can be obtained.
[0031] It should be noted that the preset pure color image projected by the projection device onto the target projection surface and the preset projection surface may be the same image.
[0032] Step 130: Acquire second color characteristic data corresponding to the first projection image.
[0033] Step 140: Determine a target color current coefficient according to the first color characteristic data and the second color characteristic data.
[0034] Step 150: adjusting the color temperature of the first projection image based on the target color current coefficient.
[0035] Specifically, the target color current coefficient may be used as the current coefficient of the projection lamp.
[0036] Exemplarily, the projection lamp may be a color RGB lamp, and the projection device may use the target color current coefficient as the current coefficient of the RGB lamp to adjust the light, thereby achieving the effect of adjusting the color temperature of the first projection picture.
[0037] In the projection control method provided in the embodiment of the present application, the projection device can obtain the first color characteristic data obtained when projecting a preset pure color image onto a preset projection surface in advance, and the first color characteristic data can achieve an ideal projection effect. The projection device can project the preset pure color image onto the target projection surface to obtain a first projection screen, and obtain the second color characteristic data corresponding to the first projection screen. Based on this, according to the first color characteristic data and the second color characteristic data, the target color current coefficient can be determined, and the color temperature of the first projection screen can be adjusted based on the target color current coefficient, so as to realize automatic adjustment of the color temperature of the projection screen and improve the projection effect of the projection device projecting an image or video onto the target projection surface.
[0038] In some embodiments of the present application, Figure 2 FIG. 1 is a flow chart of another projection control method provided by an embodiment of the present application. Figure 2 As shown, before acquiring the first color characteristic data corresponding to the projection device in step 110, the method may further include: steps 210 to 230.
[0039] Step 210: white balance adjustment is performed on the camera of the projection device based on preset camera parameters, and a preset pure color image is projected onto a preset projection surface to obtain a second projection picture.
[0040] Specifically, the projection device can fix a projection white balance correction environment, perform white balance once, and then project a preset pure color image on a preset projection surface to obtain a second projection picture.
[0041] In one embodiment, the preset camera parameters may include exposure time, gain parameters, etc.
[0042] Step 220: photograph the second projection picture to obtain a second image.
[0043] The projection device can call a camera to capture a preset projection surface after projecting a preset pure color image, that is, a second projection screen, to obtain a second image.
[0044] Step 230, determining the color average value of all pixels in the second image to obtain first color feature data.
[0045] The first color feature data may be the mean value of each channel of all pixel points of the second image in a color space, and the color space may be a YCbCr space, an RGB space, a YUV space, or the like.
[0046] Taking the color space as YCbCr space as an example, the projection device can determine the mean of three channels (brightness Y, blue component Cb, red component Cr) of all pixels in the second image in the YCbCr space to obtain first color feature data.
[0047] In one embodiment, the first color characteristic data includes a first brightness value, a first color value, and a second color value.
[0048] Exemplarily, taking the YCbCr color space as an example, the projection device can calculate the average brightness value based on the brightness values of all pixels in the second image, that is, the first brightness value Y1; calculate the average blue component value based on the blue component values of all pixels in the second image, that is, the first color value Cb1; calculate the average red component value based on the red component values of all pixels in the second image, that is, the second color value Cr1.
[0049] In some embodiments of the present application, step 110 of acquiring the second color characteristic data corresponding to the first projection picture may specifically include:
[0050] Step 1101: photograph a first projection picture to obtain a first image.
[0051] The projection device can call a camera to capture the target projection surface after projecting a preset pure color image, that is, the first projection screen, to obtain a first image.
[0052] Step 1102, determining the color average value of the pixels of the first image to obtain second color feature data.
[0053] The second color feature data may be determined according to the mean values of each channel of the pixel points of the first image in a color space, and the color space may be a YCbCr space, an RGB space, a YUV space, or the like.
[0054] Optionally, in one embodiment, step 1102 determines the color average value of the pixel points of the first image to obtain the second color feature data, which may specifically include: if the target projection surface is a pure color, calculating the color average value of all pixel points in the first image to obtain the second color feature data; if the target projection surface is not a pure color, determining the target pixel point among all the pixel points of the first image, and calculating the color average value of the target pixel point to obtain the second color feature data.
[0055] Specifically, the projection device may include a sensor, so the projection device may determine whether the target projection surface is a pure color or a non-pure color through the sensor.
[0056] In one embodiment, if the target projection surface is a pure color, calculating the color average of all pixels in the first image to obtain second color feature data may include: calculating the mean of each channel of all pixels in the second image in the color space to obtain second color feature data.
[0057] Specifically, the second color characteristic data may include a second brightness value, a third color value, and a fourth color value.
[0058] Exemplarily, taking the color space as the YCbCr space as an example, the projection device can determine the mean of the three channels (brightness Y, blue component Cb, red component Cr) of all pixels in the first image in the YCbCr space to obtain the second color feature data. The projection device can calculate the average brightness value according to the brightness values of all pixels in the first image, that is, the second brightness value Y2; calculate the average blue component value according to the blue component values of all pixels in the first image, that is, the third color value Cb2; calculate the average red component value according to the red component values of all pixels in the first image, that is, the fourth color value Cr2.
[0059] It should be noted that, when the target projection surface is a pure color, the way in which the projection device determines the first characteristic data according to the first image is the same as the way in which the projection device determines the second characteristic data according to the second image.
[0060] In the embodiment of the present application, if the target projection surface is a pure color, the projection device can calculate the color average value of all pixels in the first image to obtain the second color characteristic data corresponding to the first projection screen. On the basis of obtaining the first color characteristic data and the second color characteristic data, since the first color characteristic data and the second color characteristic data are obtained by projecting the same image onto the preset projection surface and the target projection surface respectively, after determining the target color current coefficient according to the first color characteristic data and the second color characteristic data, the color temperature of the first projection screen can be adjusted based on the target color current coefficient, so that the color temperature of the first projection screen is close to the color temperature of the target projection surface, so as to achieve the best picture experience and effectively improve the projection effect.
[0061] In another embodiment, if the target projection surface is not a pure color, determining the target pixel point among all the pixel points of the first image may include: Figure 3 Steps 310 to 340 are shown:
[0062] Step 310: Obtain color values of all pixels in the first image.
[0063] Step 320: Divide all pixels into a preset number of first intervals based on the color value of each pixel.
[0064] The preset number can be set according to actual needs, and the preset number of first intervals are arranged in descending order of color value.
[0065] It should be noted that the color value span of each first interval is the same.
[0066] For example, the color value range is 0-255. If the preset number is 16, the 16 first intervals are [255, 240], [224, 239], [208, 223], [192, 207]…[16, 31], [0, 15] from large to small, and the color value span of each first interval is 16.
[0067] Exemplarily, the process of dividing the intervals is described by taking the first image including the pixels af as an example, wherein the color values of the pixels a and b are 210, the color values of the pixels c and d are 200, the color value of the pixel e is 10, and the color value of the pixel f is 16. According to the color values of the pixels af, the projection device can divide the pixels a and b into the first interval [208, 223], divide the pixels c and d into the first interval [192, 207], divide the pixel e into the first interval [0, 15], and divide the pixel f into the first interval [16, 31].
[0068] Step 330 : when the accumulated value of the number of pixels in the first N-1 first intervals is not greater than the first value and the accumulated value of the number of pixels in the first N first intervals is greater than the first value, the first N first intervals are determined to be target intervals.
[0069] The first value is half of the number of all pixels, and N is an integer greater than zero.
[0070] In the above example, the first image includes pixel af, and the first value is 3. When the cumulative value of the number of pixels in the first N-1 first intervals is not greater than 3, and the cumulative value of the number of pixels in the first N first intervals is greater than 3, the first N first intervals are determined to be target intervals. Among the above 16 first intervals, since the cumulative value of the number of pixels in the first 3 first intervals is 2 (less than 3), and the cumulative value of the number of pixels in the first 4 first intervals is 4 (greater than 3), the first 4 first intervals can be determined to be target intervals.
[0071] Step 340: Determine the pixel points that are divided into the target interval as target pixel points.
[0072] Continuing with the above example, the pixel points ad falling into the first four first intervals [255, 240], [224, 239], [208, 223], and [192, 207] are target pixel points, and the color average value of the pixel points ad is calculated to obtain the second color feature data.
[0073] In the embodiment of the present application, if the target projection surface is not a pure color, for example, there is a patterned wallpaper on the target projection surface, or the target projection surface contains multiple colors, the projection device can divide all the pixels in the first image into different first intervals, and determine the second color feature data according to the color values of the target pixels in the first N first intervals, that is, the main pixels in the first image, so as to extract the main color data in the first image. Based on the main color data and the first color feature data, the target color current coefficient can be accurately determined, and based on the target color current coefficient, the color temperature of the first projection picture can be adjusted to make the color temperature of the first projection picture close to the color temperature of the target projection surface, so as to achieve the best picture experience and effectively improve the projection effect.
[0074] It should be noted that the color values of the same pixel in different channels are different. For example, the color values of the three channels (brightness Y, blue component Cb, and red component Cr) of the pixel in the YCbCr space are all different. Therefore, the projection device can determine the target pixel corresponding to each channel, and determine the second color feature data corresponding to the channel according to the color value of the target pixel corresponding to each channel.
[0075] Taking the Y channel in the YCbCr space as an example, the projection device can obtain the brightness values of all pixels in the first image, and based on the brightness value of each pixel, divide all pixels into a preset number of first intervals, and the preset number of first intervals are arranged in descending order of brightness value. When the cumulative value of the number of pixels in the current N-1 first intervals is not greater than the first value, and the cumulative value of the number of pixels in the first N first intervals is greater than the first value, the first N first intervals are determined to be the target intervals, and the pixels divided into the target intervals are determined to be the target pixels corresponding to the Y channel. On this basis, the projection device can determine the average value of the brightness values of all target pixels corresponding to the Y channel as the second brightness value in the second feature data.
[0076] In some embodiments of the present application, the preset database may include color parameters and color current coefficients matching the color parameters. Step 140 determines the target color current coefficient according to the first color characteristic data and the second color characteristic data, which may specifically include: Figure 4 Steps 410 - 430 are shown.
[0077] Step 410, calculating a first color parameter according to the first color characteristic data and the second color characteristic data.
[0078] In one embodiment, the first color characteristic data may include a first brightness value, a first color value, and a second color value, the second color characteristic data may include a second brightness value, a third color value, and a fourth color value, the first color parameter may include a third brightness value, a fifth color value, and a sixth color value, and step 410 may specifically include the following: Figure 5 Steps 510 - 530 are shown.
[0079] Step 510: Calculate a third brightness value according to a ratio of the second brightness value to the first value, wherein the first value is an average of the sum of the first brightness value, the first color value, and the second color value.
[0080] Step 520, calculating a fifth color value according to the ratio of the third color value to the first value.
[0081] Step 530: Calculate a sixth color value according to the ratio of the fourth color value to the second color value.
[0082] Exemplarily, the first color characteristic data may include a first brightness value Y1, a first color value Cb1, and a second color value Cr1, the second color characteristic data may include a second brightness value Y2, a third color value Cb2, and a fourth color value Cr2, and the first color parameter may include a third brightness value Y3, a fifth color value Cb3, and a sixth color value Cr3. The third brightness value Y3 may be Y2 / (Y1+Cb1+Cr1), the fifth color value Cb3 may be Cb2 / (Y1+Cb1+Cr1), and the sixth color value Cr3 may be Cr2 / Cr1.
[0083] It should be noted that the present application does not specifically limit the execution order of step 510 to step 530.
[0084] Step 420: Determine a second color parameter in the preset database, which has the smallest difference with the first color parameter.
[0085] Exemplarily, Table (1) is a table of correspondence between color parameters (r1, r2, r3) and color current coefficients (Rg, Gg, Bg) provided in an embodiment of the present application. If the first color parameter includes a third brightness value Y3, a fifth color value Cb3, and a sixth color value Cr3, then the second color parameter having the smallest difference with the first color parameter can be determined by min(|r1-Y3|+|r2-Cb3|+|r3-Cr3|).
[0086] Table (1)
[0087] Color Temperature r1 r2 r3 R G Bg 2500k x1 x2 x3 I1 I2 I3 3000k xx1 xx2 xx3 II1 II2 II3 3500k xxx1 xxx2 xxx3 III1 III2 III3 ... ... ... ... ... ... ...
[0088] For example, if (|x1-Y3|+|x2-Cb3|+|x3-Cr3|) is less than (|xx1-Y3|+|xx2-Cb3|+|xx3-Cr3|) and less than (|xxx1-Y3|+|xxx2-Cb3|+|xxx3-Cr3|), then (x1, x2, x3) can be determined as the second color parameter.
[0089] Step 430: Obtain a target color current coefficient that matches the second color parameter.
[0090] Referring to the above example, if (x1, x2, x3) is the second color parameter, then the target color current coefficient corresponding to (x1, x2, x3) is (I1, I2, I3). Therefore, the projection device can adjust the current coefficient of the RGB projection lamp to (I1, I2, I3) to achieve color temperature adjustment of the projection lamp, thereby effectively adjusting the color temperature of the first projection picture.
[0091] In the embodiment of the present application, the projection device can calculate the first color parameter according to the first color characteristic data and the second color characteristic data, and search the preset database for the second color parameter that is closest to the first color parameter, that is, the second color parameter with the smallest difference. Since the preset database records the target color current coefficient that matches the second color parameter, the color temperature of the first projection picture can be adjusted by the target color current coefficient, and the color temperature of the first projection picture is adjusted to a color temperature close to the target projection surface, so as to achieve color temperature matching between the first projection picture and the target projection surface, effectively improve the projection effect, and provide users with the best picture experience and viewing experience.
[0092] In one embodiment, the color current coefficient in the preset database can be matched with the color parameter. Specifically, the user can control the same model of projection equipment to project the same image onto projection surfaces of different color temperatures to obtain multiple third projection screens. By shooting the third image obtained from each third projection screen, the third color characteristic data corresponding to each projection screen can be determined; a set of color parameters can be determined based on each third color characteristic data and the first color characteristic data. The user can manually adjust the current of the RGB projection lamp so that the adjusted color temperature of the projection lamp matches the color temperature of the projection surface, and record the current coefficient of the RGB projection lamp to obtain the preset database.
[0093] It should be noted that the projection control method provided in the first aspect of the embodiment of the present application can be executed by a projection device or a control module in the projection device for executing the projection control method. The projection device is described in detail below.
[0094] Figure 6 Schematic diagram of a projection device provided in an embodiment of the present application. Figure 6As shown, the projection device 600 may include: an acquisition module 610 , a projection module 620 , a determination module 630 , and an adjustment module 640 .
[0095] Among them, the acquisition module 610 is used to obtain the first color characteristic data corresponding to the projection device, wherein the first color characteristic data is obtained by projecting a preset pure color image onto a preset projection surface by the projection device; the projection module 620 is used to project the preset pure color image onto the target projection surface to obtain a first projection picture; the acquisition module 610 is also used to obtain the second color characteristic data corresponding to the first projection picture; the determination module 630 is used to determine the target color current coefficient based on the first color characteristic data and the second color characteristic data; the adjustment module 640 is used to adjust the color temperature of the first projection picture based on the target color current coefficient.
[0096] The projection device provided in the embodiment of the present application can obtain the first color characteristic data obtained when a preset pure color image is projected onto a preset projection surface in advance, and the first color characteristic data can achieve an ideal projection effect. The projection device can project a preset pure color image onto a target projection surface to obtain a first projection screen, and obtain the second color characteristic data corresponding to the first projection screen. Based on this, according to the first color characteristic data and the second color characteristic data, the target color current coefficient can be determined, and the color temperature of the first projection screen can be adjusted based on the target color current coefficient, so as to realize automatic adjustment of the color temperature of the projection screen and improve the projection effect of the projection device projecting an image or video onto the target projection surface.
[0097] In some embodiments of the present application, the acquisition module 610 includes: a shooting unit, used to shoot the first projection picture to obtain a first image; and a determination unit, used to determine the color average value of the pixel points of the first image to obtain second color feature data.
[0098] In some embodiments of the present application, the determination module 630 is specifically used to: if the target projection surface is a pure color, calculate the color average value of all pixels in the first image to obtain second color feature data; if the target projection surface is a non-pure color, determine the target pixel among all pixels in the first image, and calculate the color average value of the target pixel to obtain second color feature data.
[0099] In some embodiments of the present application, the determination module 630 includes: an acquisition unit, used to acquire the color values of all pixels in the first image; a division unit, used to divide all pixels into a preset number of first intervals based on the color value of each pixel, and the preset number of first intervals are arranged in descending order of color value; a determination unit, used to determine that the first N first intervals are target intervals when the cumulative value of the number of pixels in the current N-1 first intervals is not greater than the first value, and the cumulative value of the number of pixels in the first N first intervals is greater than the first value, wherein the first value is half of the number of all pixels, and N is an integer greater than zero; the determination unit is also used to determine that the pixel points divided into the target interval are target pixels.
[0100] In some embodiments of the present application, the device also includes: a control module, which is used to adjust the white balance of the camera of the projection device based on preset camera parameters before obtaining the first color characteristic data corresponding to the projection device, and project a preset pure color image onto a preset projection surface to obtain a second projection picture; a shooting module, which is used to shoot the second projection picture to obtain a second image; and a determination module 630, which is also used to determine the color average value of all pixels in the second image to obtain the first color characteristic data.
[0101] In some embodiments of the present application, the preset database includes color parameters and color current coefficients matching the color parameters, and the determination module 630 includes: a calculation unit, used to calculate the first color parameter based on the first color characteristic data and the second color characteristic data; a determination unit, used to determine the second color parameter with the smallest difference with the first color parameter among the color parameters in the preset database; and an acquisition unit, used to acquire a target color current coefficient matching the second color parameter.
[0102] In some embodiments of the present application, the first color characteristic data includes a first brightness value, a first color value, and a second color value, the second color characteristic data includes a second brightness value, a third color value, and a fourth color value, the first color parameter includes a third brightness value, a fifth color value, and a sixth color value, and the calculation unit is specifically used to: calculate the third brightness value according to the ratio of the second brightness value to the first numerical value, wherein the first numerical value is the average of the sum of the first brightness value, the first color value, and the second color value; calculate the fifth color value according to the ratio of the third color value to the first numerical value; and calculate the sixth color value according to the ratio of the fourth color value to the second color value.
[0103] In some embodiments of the present application, the projection device includes a sensor, and the determination module 630 is further configured to determine whether the target projection surface is a pure color or a non-pure color through the sensor.
[0104] It should be noted that the projection control method provided in the first aspect of the embodiment of the present application can be executed by a projection device, or a control module in the projection device for executing the projection control method.
[0105] Figure 7 It is a schematic diagram of the hardware structure of a projection device provided in an embodiment of the present application.
[0106] like Figure 7 As shown, the projection device 700 in this embodiment may include a processor 701 and a memory 702 storing computer program instructions.
[0107] Specifically, the processor 701 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0108] The memory 702 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 702 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 702 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 702 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 702 is a non-volatile solid-state memory. The memory may include a read-only memory (ROM), a random access memory (RAM), a disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Thus, typically, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the methods according to the embodiments of the present application.
[0109] The processor 701 implements any one of the projection control methods in the above embodiments by reading and executing computer program instructions stored in the memory 702 .
[0110] In one example, the projection device 700 may further include a communication interface 703 and a bus 710. Figure 7As shown, the processor 701, the memory 702, and the communication interface 703 are connected via a bus 710 and communicate with each other.
[0111] The communication interface 703 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.
[0112] Bus 710 includes hardware, software or both, and the parts of online data flow billing equipment are coupled to each other. For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front-end bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 710 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the present application considers any suitable bus or interconnection.
[0113] The projection device provided in the embodiment of the present application can achieve Figure 1-Figure 5 To avoid repetition, the various processes implemented by the projection device in the method embodiment are not described here.
[0114] In combination with the projection control method in the above embodiment, the embodiment of the present application can provide a projection control system, which includes the projection device in the above embodiment. The specific content of the projection device can refer to the relevant description in the above embodiment, which will not be repeated here.
[0115] In addition, in combination with the projection control method in the above embodiment, the embodiment of the present application can provide a computer storage medium for implementation. The computer storage medium stores computer program instructions; when the computer program instructions are executed by a processor, the steps of any one of the projection control methods in the above embodiment are implemented.
[0116] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.
[0117] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), appropriate firmware, plug-in, function card, etc. When implemented in software, the elements of the present application are programs or code segments used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
[0118] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.
[0119] Aspects of the present disclosure are described above with reference to the flowchart and / or block diagram of the method, device (system) and computer program product according to the embodiment of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field programmable logic circuit. It can also be understood that each box in the block diagram and / or flowchart and the combination of boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs a specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.
[0120] The above is only a specific implementation of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.
Claims
1. A projection control method, characterized in that: Applied to a projection device, the method comprises: Adjusting the white balance of the camera of the projection device based on preset camera parameters, and projecting a preset pure color image onto a preset projection surface to obtain a second projection picture; photographing the second projection picture to obtain a second image; Determine the color average value of all pixels in the second image to obtain first color feature data; Acquire the first color characteristic data corresponding to the projection device; Projecting the preset pure color image onto a target projection surface to obtain a first projection picture; Shooting the first projection picture to obtain a first image; Determine the color average value of the pixels of the first image to obtain second color feature data; determining a target color current coefficient according to the first color characteristic data and the second color characteristic data; The color temperature of the first projection picture is adjusted based on the target color current coefficient.
2. The method according to claim 1, characterized in that: The step of determining the color average value of the pixels of the first image to obtain second color feature data includes: If the target projection surface is a pure color, calculate the color average of all pixels in the first image to obtain the second color feature data; If the target projection surface is not a pure color, a target pixel point among all the pixel points of the first image is determined, and a color average value of the target pixel point is calculated to obtain the second color feature data.
3. The method according to claim 2, characterized in that The determining of the target pixel point among all the pixel points of the first image includes: Obtaining color values of all pixels in the first image; Based on the color value of each pixel, all pixels are divided into a preset number of first intervals, and the preset number of first intervals are arranged in descending order of color value; When the accumulated value of the number of pixel points in the current N-1 first intervals is not greater than the first value, and the accumulated value of the number of pixel points in the first N first intervals is greater than the first value, the first N first intervals are determined to be the target interval, wherein the first value is one-half of the number of all pixel points, and N is an integer greater than zero; The pixel points divided into the target interval are determined as the target pixel points.
4. The method according to claim 1, characterized in that: The preset database includes color parameters and color current coefficients matching the color parameters, and determining the target color current coefficient according to the first color characteristic data and the second color characteristic data includes: Calculating a first color parameter according to the first color characteristic data and the second color characteristic data; Determine a second color parameter in the preset database, which has the smallest difference with the first color parameter; A target color current coefficient matching the second color parameter is obtained.
5. The method according to claim 4, characterized in that The first color characteristic data includes a first brightness value, a first color value, and a second color value; the second color characteristic data includes a second brightness value, a third color value, and a fourth color value; the first color parameter includes a third brightness value, a fifth color value, and a sixth color value; and calculating the first color parameter according to the first color characteristic data and the second color characteristic data includes: Calculating the third brightness value according to the ratio of the second brightness value to the first value, wherein the first value is the average of the sum of the first brightness value, the first color value, and the second color value; Calculating the fifth color value according to the ratio of the third color value to the first value; The sixth color value is calculated according to a ratio of the fourth color value to the second color value.
6. The method according to claim 2, characterized in that The projection device includes a sensor, and the method further includes: The sensor determines whether the target projection surface is a pure color or a non-pure color.
7. A projection device, characterized in that: include: A control module, configured to adjust the white balance of the camera of the projection device based on preset camera parameters, and project a preset pure color image onto a preset projection surface to obtain a second projection picture; A shooting module, used for shooting the second projection picture to obtain a second image; A determination module, used to determine the color average value of all pixels in the second image to obtain first color feature data; An acquisition module, used for acquiring the first color characteristic data corresponding to the projection device; A projection module, used for projecting the preset pure color image onto a target projection surface to obtain a first projection picture; A shooting unit, used for shooting the first projection picture to obtain a first image; A determination unit, which determines a color average value of pixels of the first image to obtain second color feature data; The determination module is further used to determine a target color current coefficient according to the first color characteristic data and the second color characteristic data; An adjustment module is used to adjust the color temperature of the first projection picture based on the target color current coefficient.
8. A projection control system, characterized in that: Comprising the projection device as claimed in claim 7.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the projection control method according to any one of claims 1 to 6 is implemented.
