Projection picture adjustment method, device, storage medium and electronic device
By collecting and adjusting the brightness and color coordinates of the projected image area in real time, the problem of color inconsistency in the projected image is solved, and the overall color consistency and visual experience of the projected image are improved.
Patent Information
- Application Number
- CN202410917719.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-09
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-07-09
AI Technical Summary
In non-standard or specific environments, the colors of different areas of the projected image may deviate, affecting the visual experience. It is difficult for existing technology to effectively solve this problem.
By acquiring the target image, the projection equipment is controlled to project on the preset surface, and the brightness and color coordinate information of each area are collected in real time, mismatching areas are detected, and color adjustment is performed to achieve color consistency between areas.
It achieves color consistency in different areas of the projection screen, improves the visual experience, and is suitable for a variety of projection environments.
Smart Images

Figure CN118474317B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of projection technology, and in particular to a method, device, storage medium and electronic equipment for adjusting a projection image. Background Art
[0002] With the continuous advancement of visual technology, projection display systems have played an important role in many fields, from education, entertainment to commercial display. In projection display technology, maintaining color consistency and brightness uniformity is essential for high-quality image presentation. In order to achieve these standards, many projection systems rely on specially designed projection screens to optimize the display effect.
[0003] However, in practical applications, especially in non-standard or specific environments, it is relatively difficult to find a screen or surface that fully meets the projection requirements. Many common surfaces, whether indoors or outdoors, have problems such as uneven surfaces and irregular textures. In this case, the colors of different areas in the projected image may deviate, affecting the viewer's visual experience. Summary of the invention
[0004] The technical problem to be solved by the present invention is to provide a method, device, storage medium and electronic device for adjusting a projection screen, which can improve the color consistency of different areas of the projection screen. The specific scheme is as follows:
[0005] A method for adjusting a projection image, comprising:
[0006] Acquire a target image to be projected;
[0007] Controlling the projection device to project the target image to form a projection screen corresponding to the target image on a preset projection surface;
[0008] Collecting color information of each picture area of the projection picture, wherein the color information includes brightness and color coordinates; each picture area of the projection picture is divided based on the state information of the projection surface;
[0009] When it is detected that there is a color information mismatch between at least two of the picture areas in the projection picture, color adjustment is performed on the target image area in the target image so that the color information between the picture areas in the projection picture corresponding to the target image after color adjustment matches; the target image area includes an image area in the target image corresponding to at least one of the picture areas.
[0010] The above method may optionally include detecting that there is a mismatch in color information between at least two image regions in the projected image, including:
[0011] Determine a reference picture area in each of the picture areas, and use the area of the projection picture other than the reference picture area as a candidate picture area;
[0012] For each of the alternative picture areas, if the brightness difference between the alternative picture area and the reference picture area is greater than a first difference threshold, and / or the color coordinate difference is greater than a second difference threshold, it is determined that the color information between the alternative picture area and the reference picture area does not match; the first difference threshold is calculated based on the brightness of the reference picture area; the second difference threshold is calculated based on the color coordinates of the reference picture area.
[0013] In the above method, optionally, the step of adjusting the color of the target image area in the target image includes:
[0014] Determine an image area in the target image corresponding to a target picture area as a target image area to be adjusted; the target picture area is a candidate picture area whose color information does not match that of the reference picture area;
[0015] Color adjustment is performed on the target image area in the target image.
[0016] In the above method, optionally, if the brightness difference between the target image area and the reference image area is greater than a first difference threshold, then color adjustment is performed on the target image area in the target image, including:
[0017] When the brightness of the target picture area is greater than the brightness of the reference picture area, increasing the grayscale value of each color channel of the target image area corresponding to the target picture area in the target image according to a preset step size;
[0018] When the brightness of the target picture area is less than the brightness of the reference picture area, the grayscale values of each color channel of the target image area corresponding to the target picture area in the target image are reduced according to a preset step size.
[0019] In the above method, optionally, if the chromaticity difference between the target image area and the reference image area is greater than a second difference threshold, then color adjustment is performed on the target image area in the target image, including:
[0020] Determining a target color channel to be adjusted in a target image area of the target image according to a coordinate difference between the color coordinates of the target image area and the color coordinates of the reference image area;
[0021] The grayscale value of the target color channel to be adjusted in the target image area of the target image is adjusted.
[0022] In the above method, optionally, the collecting color information of each picture area of the projection picture includes:
[0023] A detection instruction is sent to the wireless chromaticity detector corresponding to each of the picture areas, so that the wireless chromaticity detector corresponding to each of the picture areas measures the brightness and color coordinates of each of the picture areas.
[0024] A device for adjusting a projection image, comprising:
[0025] An acquisition unit, used for acquiring a target image to be projected;
[0026] A projection unit, used to control the projection device to project the target image, so as to form a projection screen corresponding to the target image on a preset projection surface;
[0027] A collection unit, used for collecting color information of each picture area of the projection picture, wherein the color information includes brightness and color coordinates; each picture area of the projection picture is divided based on the state information of the projection surface;
[0028] An adjustment unit is used to perform color adjustment on a target image area in the target image when it is detected that color information mismatches exist between at least two of the image areas in the projection image, so that color information between various image areas in the projection image corresponding to the color-adjusted target image matches; the target image area includes an image area in the target image corresponding to at least one of the image areas.
[0029] In the above method, optionally, the adjusting unit comprises:
[0030] A first determining subunit, configured to determine a reference picture region in each of the picture regions, and use a region in the projection picture other than the reference picture region as a candidate picture region;
[0031] A second determination subunit is used to determine, for each of the alternative picture areas, that the color information between the alternative picture area and the reference picture area does not match if the brightness difference between the alternative picture area and the reference picture area is greater than a first difference threshold, and / or the color coordinate difference is greater than a second difference threshold; the first difference threshold is calculated based on the brightness of the reference picture area; and the second difference threshold is calculated based on the color coordinates of the reference picture area.
[0032] A storage medium includes stored instructions, wherein when the instructions are executed, the device where the storage medium is located is controlled to execute the above-mentioned method for adjusting a projection picture.
[0033] An electronic device includes a memory and one or more instructions, wherein the one or more instructions are stored in the memory and are configured to be executed by one or more processors to execute the above-mentioned projection picture adjustment method.
[0034] Based on the above-mentioned implementation of the present invention, a method, device, storage medium and electronic device for adjusting a projection screen are provided, the method comprising: obtaining a target image to be projected; controlling a projection device to project the target image to form a projection screen corresponding to the target image on a preset projection surface; collecting color information of each screen area of the projection screen, the color information including at least one of brightness and color coordinates; in the case of detecting that there is a mismatch in color information between at least two of the screen areas in the projection screen, color adjustment is performed on the target image area in the target image so that the color information between each screen area in the projection screen corresponding to the target image after color adjustment matches; the target image area includes an image area in the target image corresponding to at least one of the screen areas. Through the method provided by the embodiment of the present invention, the brightness and color coordinates of different areas of the projection screen can be measured in real time, and then the color of the target image area in the target image can be adjusted according to the measured brightness and color coordinates, which can improve the color consistency of different areas of the projection screen. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0036] Figure 1 A method flow chart of a method for adjusting a projection image provided by the present invention;
[0037] Figure 2 An example diagram of an implementation scenario provided by the present invention;
[0038] Figure 3 A flow chart of a process for detecting color information mismatch between two picture areas provided by the present invention;
[0039] Figure 4 An example diagram of a projection screen provided by the present invention;
[0040] Figure 5 A schematic diagram of the structure of a wireless chromaticity detector provided by the present invention;
[0041] Figure 6A schematic diagram of the structure of a projection picture adjustment device provided by the present invention;
[0042] Figure 7 The present invention provides a schematic structural diagram of an electronic device. DETAILED DESCRIPTION
[0043] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0044] In this application, the terms "comprises", "comprising" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element.
[0045] With the continuous advancement of visual technology, projection display systems have played an important role in many fields, from education, entertainment to commercial display. In projection display technology, maintaining color consistency and brightness uniformity is essential for high-quality image presentation. In order to achieve these standards, many projection systems rely on specially designed projection screens to optimize the display effect.
[0046] However, in practical applications, especially in non-standard or specific environments, it is relatively difficult to find a screen or surface that fully meets the projection requirements. Many common surfaces, whether indoors or outdoors, have problems such as uneven surfaces and irregular textures. In this case, the colors of different areas in the projected image may deviate, affecting the viewer's visual experience.
[0047] Based on this, an embodiment of the present invention provides a method for adjusting a projection screen, which can be applied to an electronic device, which can be a projection device, or a personal computer, tablet, mobile phone, server, various smart wearable devices, etc. connected to the projection device; the method flow chart of the method is as follows Figure 1 As shown, specifically including:
[0048] S101: Acquire a target image to be projected.
[0049] In this embodiment, the target image may be any image selected by the user for projection, for example, a test image, a photo, a video image, etc.
[0050] Optionally, the test image may be a pure color image, for example, an image of various colors such as white, red, green, blue, etc.
[0051] S102: Controlling the projection device to project the target image to form a projection screen corresponding to the target image on a preset projection surface.
[0052] In this embodiment, the projection surface may be a building surface, a screen, a mountain, etc., which may be used to reflect the light output by the projection device to form a projection picture.
[0053] S103: Collecting color information of each picture area of the projection picture, where the color information includes at least one of brightness and color coordinates; each picture area of the projection picture is divided based on state information of the projection surface.
[0054] In this embodiment, the color information of each picture area of the projection picture can be collected by a wireless chromaticity detector.
[0055] Optionally, the projection picture is divided according to the state information of the projection surface to obtain various picture areas, and the picture areas may be rectangular areas.
[0056] In some embodiments, the process of collecting color information of each image area of the projection image includes:
[0057] A detection instruction is sent to the wireless chromaticity detector corresponding to each of the picture areas, so that the wireless chromaticity detector corresponding to each of the picture areas measures the brightness and color coordinates of each of the picture areas.
[0058] Optionally, the projection screen range of the projection device on the projection surface can be divided into multiple screen areas according to the status information of the projection surface, and then a wireless chromaticity detector for collecting color information of each screen area can be arranged on the projection surface; the status information of the projection surface can include at least one of the reflectivity status information and flatness status information of the projection surface.
[0059] In some embodiments, the reflectivity status information and the flatness status information of the projection surface can be measured by a preset measuring device.
[0060] Optionally, the reflectivity status information may include the reflectivity of multiple preset sampling points of the projection surface, and the reflectivity of the sampling points may be measured by a measuring device such as a reflectance photometer or a spectroscopic reflectometer. The flatness status information may include the flatness of the projection surface, and the elevation data of each preset sampling point may be measured by a measuring device such as an optoelectronic measuring device or a laser ranging device, and then the flatness of the projection surface may be determined by the elevation data.
[0061] In this embodiment, the number of picture areas can be determined according to the reflectivity and / or flatness of each preset sampling point; for example, if the difference between the reflectivity of each preset sampling point does not meet the preset reflectivity condition, and the flatness does not meet the preset flatness condition, the projection surface can be divided into a first number of picture areas; if the difference between the reflectivity of each preset sampling point does not meet the preset reflectivity condition or the flatness does not meet the preset flatness condition, the projection surface can be divided into a second number of picture areas; if the difference between the reflectivity of each sampling point meets the preset flatness condition, and the flatness meets the flatness condition, the projection surface can be divided into a third number of picture areas; the first number is greater than the second number; the second number is greater than the third number. Optionally, the reflectivity condition and the flatness condition can be set by the user according to actual needs; for example, if the difference between the maximum reflectivity and the minimum reflectivity in each sampling point is greater than the preset difference threshold, it is determined that the reflectivity of each sampling point does not meet the reflectivity condition; if the flatness is less than the preset flatness threshold, it is determined that the flatness does not meet the flatness condition.
[0062] In some embodiments, after the number of picture areas is determined, the projection picture is divided according to the number to obtain the picture areas of the number.
[0063] In this embodiment, the wireless detector module can be fixed at any desired position on the projection surface through a base and a connecting rod.
[0064] In some embodiments, Figure 2 As shown, it is an example diagram of an implementation scenario provided by an embodiment of the present invention. The projection device can project an image onto a projection surface to form a projection screen. The wireless chromaticity detector can be arranged near a measuring point in the screen area of the projection screen. The measuring point can be any position in the screen area, for example, it can be the center of the screen area. The distance between the position near the measuring point and the measuring point is not greater than a preset distance threshold. The distance threshold can be determined according to the length of the connecting rod of the wireless chromaticity detector. The wireless chromaticity detector can deviate from the normal direction of the vertical projection surface at a small angle (for example, <5°), receive reflected light, and measure the brightness and color coordinates.
[0065] Optionally, each wireless detector is configured with a unique screen area identifier, and different wireless chromaticity detectors have different screen area identifiers, and the screen area identifier corresponds one-to-one to the screen area. The wireless chromaticity detector can send the measured brightness and color coordinates and the screen area identifier to the electronic device, so that the electronic device determines the screen area to which the received brightness and color coordinates belong based on the screen area identifier.
[0066] S104: When it is detected that color information mismatch exists between at least two picture areas in the projection picture, color adjustment is performed on the target image area in the target image so that color information between each picture area in the projection picture corresponding to the target image after color adjustment matches; the target image area includes an image area in the target image corresponding to at least one of the picture areas.
[0067] In this embodiment, if the brightness difference between two picture areas in the projection picture is greater than the brightness difference threshold, and / or the color coordinate difference is greater than the color coordinate difference threshold, it is determined that the color information between the two picture areas does not match; in this case, the target image needs to be color adjusted.
[0068] Optionally, performing color adjustment on the target image may be adjusting RGB values of screen pixels of a corresponding image area of the target image.
[0069] Through the method provided by the embodiment of the present invention, the brightness and color coordinates of different areas of the projection screen can be measured in real time, and then the color of the target image area in the target image can be adjusted according to the measured brightness and color coordinates, thereby improving the color consistency of different areas of the projection screen.
[0070] In an embodiment of the present invention, based on the above implementation process, optionally, a process of detecting that there is a color information mismatch between at least two image regions in the projection image is performed, such as Figure 3 As shown, including:
[0071] S301: Determine a reference picture area in each of the picture areas, and use a region in the projection picture other than the reference picture area as a candidate picture area.
[0072] In this embodiment, the reference picture area may be any area among various picture areas, or may be an area pre-selected by the user among various picture areas.
[0073] In some embodiments, a feasible way to determine the reference picture area in each picture area is: group each picture area according to the color information of each picture area to obtain multiple picture area groups, the brightness difference between each picture area in each picture area group is less than a preset brightness difference threshold, and the color coordinate difference is less than a preset color coordinate difference threshold; determine the group with the largest number of picture areas in each picture area group; and randomly select a picture area from the group with the largest number of picture areas as the reference picture area.
[0074] S302: For each of the alternative picture areas, if the brightness difference between the alternative picture area and the reference picture area is greater than a first difference threshold, and / or the color coordinate difference is greater than a second difference threshold, it is determined that the color information between the alternative picture area and the reference picture area does not match; the first difference threshold is calculated based on the brightness of the reference picture area; the second difference threshold is calculated based on the color coordinates of the reference picture area.
[0075] In this embodiment, the first difference threshold is calculated based on the brightness of the reference picture area and a first preset parameter; optionally, the first preset parameter may be a proportional coefficient, which may include but is not limited to values such as 0, 0.5%, 1%, 2%, etc., and the brightness of the reference picture area may be multiplied by the first preset parameter to obtain the first difference threshold.
[0076] Optionally, the brightness difference value may reflect the degree of difference between the brightness of the reference picture area and the brightness of the candidate picture area. In some embodiments, the brightness difference value may be the absolute value of the difference between the brightness of the reference picture area and the brightness of the candidate picture area.
[0077] In this embodiment, the second difference threshold is calculated based on the color coordinates of the reference picture area and the second preset parameter; in this embodiment, the second preset parameter is similar to the first preset parameter and may also be a proportional coefficient, which may be set according to actual needs, for example, may include but is not limited to values such as 0, 0.5%, 1%, 2%, etc. The horizontal coordinate in the color coordinate of the reference picture area may be multiplied by the second preset parameter, and the vertical coordinate in the color coordinate of the reference picture area may be multiplied by the second preset parameter, so as to obtain the second difference threshold, that is, the second difference threshold includes the difference threshold of the horizontal coordinate and the difference threshold of the vertical coordinate.
[0078] Optionally, the color coordinate difference may reflect the degree of difference between the color coordinates of the reference picture area and the color coordinates of the alternative picture area. In some embodiments, the coordinate difference may include the absolute value of the difference between the horizontal coordinate in the color coordinates of the reference picture area and the horizontal coordinate in the color coordinates of the alternative picture area, and the absolute value of the difference between the vertical coordinate in the color coordinates of the reference picture area and the vertical coordinate in the color coordinates of the alternative picture area. If the absolute value of the difference in the horizontal coordinate is less than the difference threshold of the horizontal coordinate, and / or the absolute value of the difference in the vertical coordinate is less than the difference threshold of the vertical coordinate, it can be determined that the reference picture area does not match the alternative picture area.
[0079] In an embodiment provided by the present invention, based on the above implementation process, optionally, the color adjustment of the target image area in the target image includes:
[0080] An image area in the target image corresponding to a target picture area is determined as a target image area to be adjusted; the target picture area is a candidate picture area whose color information does not match that of the reference picture area.
[0081] Color adjustment is performed on the target image area in the target image.
[0082] In this embodiment, the color adjustment of the target image area may be brightness adjustment and chromaticity adjustment of the target image area.
[0083] In an embodiment of the present invention, based on the above implementation process, optionally, if the brightness difference between the target image area and the reference image area is greater than a first difference threshold, the color adjustment of the target image area in the target image includes:
[0084] When the brightness of the target picture area is greater than the brightness of the reference picture area, increasing the grayscale value of each color channel of the target image area corresponding to the target picture area in the target image according to a preset step size;
[0085] When the brightness of the target picture area is less than the brightness of the reference picture area, the grayscale values of each color channel of the target image area corresponding to the target picture area in the target image are reduced according to a preset step size.
[0086] In this embodiment, the preset step size can be set to any value, for example, it can be 1.
[0087] Optionally, the grayscale values of each color channel may be simultaneously added to the preset step size to increase the brightness of the target image area; the grayscale values of each color channel may be simultaneously subtracted from the preset step size to reduce the brightness of the target image area.
[0088] Optionally, the grayscale values of each color channel of the target image area corresponding to the target picture area are continuously adjusted until the brightness difference between the brightness of the reference picture area and the brightness of the target picture area is no greater than a first difference threshold.
[0089] In an embodiment of the present invention, based on the above implementation process, optionally, if the chromaticity difference between the target image area and the reference image area is greater than a second difference threshold, the color adjustment of the target image area in the target image includes:
[0090] Determining a target color channel to be adjusted in a target image area of the target image according to a coordinate difference between the color coordinates of the target image area and the color coordinates of the reference image area;
[0091] The grayscale value of the target color channel to be adjusted in the target image area of the target image is adjusted.
[0092] In this embodiment, the coordinate difference includes the difference on the X-axis and the difference on the Y-axis of the color coordinate.
[0093] In this embodiment, the target color channel may be at least one color channel of the three color channels of RGB.
[0094] Optionally, the color coordinates of the reference picture area are continuously collected, and then the coordinate difference between the color coordinates of the reference picture area and the color coordinates of the target picture area is calculated, the target color channel is determined according to the coordinate difference, and the grayscale value of the target color channel of the target image area corresponding to the target picture area is adjusted until the coordinate difference between the color coordinates of the reference picture area and the color coordinates of the target picture area is no greater than a first difference threshold.
[0095] In this embodiment, the specific process of adjusting the chromaticity of the target image area corresponding to the target screen area in the target image is as follows:
[0096] The comparison result between the color coordinates of the reference picture area and the color coordinates of the target picture area can be determined according to the coordinate difference;
[0097] If the comparison result indicates that the abscissa of the target picture area is greater than the abscissa of the reference picture area, and the ordinate of the target picture area is greater than or equal to the ordinate of the reference picture area, then the target color channel may be the B channel of the RGB three color channels; in this case, a preset grayscale setting value may be added to the grayscale value in the B channel to perform chromaticity adjustment, and then the color coordinates of the target picture area are re-collected, and the coordinate difference between the color coordinates of the reference picture area and the color coordinates of the target picture area is re-determined to determine a new comparison result;
[0098] If the comparison result indicates that the abscissa of the target picture area is greater than the abscissa of the reference picture area, and the ordinate of the target picture area is less than or equal to the ordinate of the reference picture area, then the target color channel may be the G channel of the RGB three color channels. In this case, a preset grayscale setting value may be added to the grayscale value in the G channel to perform chromaticity adjustment, and then the color coordinates of the target picture area are re-collected, and the coordinate difference between the color coordinates of the reference picture area and the color coordinates of the target picture area is re-determined to determine a new comparison result;
[0099] If the comparison result indicates that the abscissa of the target picture area is smaller than the abscissa of the reference picture area, and the ordinate of the target picture area is greater than or equal to the ordinate of the reference picture area, then the target color channel may be the R channel of the RGB three color channels. In this case, a preset grayscale setting value may be added to the grayscale value in the R channel to perform chromaticity adjustment, and then the color coordinates of the target picture area are re-collected, and the coordinate difference between the color coordinates of the reference picture area and the color coordinates of the target picture area is re-determined to determine a new comparison result;
[0100] If the comparison result indicates that the abscissa of the target picture area is smaller than the abscissa of the reference picture area, and the ordinate of the target picture area is smaller than or equal to the ordinate of the reference picture area, then the target color channel may be the B channel of the RGB three color channels. In this case, a preset grayscale setting value may be added to the grayscale value in the B channel to perform chromaticity adjustment, and then the color coordinates of the target picture area are re-collected, and the coordinate difference between the color coordinates of the reference picture area and the color coordinates of the target picture area is re-determined to determine a new comparison result;
[0101] If the comparison result indicates that the abscissa of the target picture region is equal to the abscissa of the reference picture region, and the ordinate of the target picture region is equal to the ordinate of the reference picture region, then the chromaticity adjustment is completed.
[0102] Optionally, after the chromaticity adjustment is completed, it may be detected again whether the brightness difference between the brightness of the target picture area and the brightness of the reference picture area is greater than the first difference threshold.
[0103] In order to clearly introduce the principle of this solution, an example is given below:
[0104] When the projector projects a standard D65 test white field with a white balance point of (0.3127, 0.3290), due to the difference in reflectivity distribution of the projection surface, the image colors at different positions observed by the human eye are quite different, and the perceived color temperatures are different, resulting in a very poor effect. In this case, if a color image or video is directly projected, the colors at different positions will be seriously distorted. Therefore, in this embodiment, if Figure 4As shown, the projection area can be divided into several rectangular sub-areas (picture areas) according to the status information of the projection surface. For a specific sub-area, a white field test chart is projected, and the reflected light brightness and color coordinates are monitored in real time using a wireless chromaticity detector. The image processing software in the projector automatically adjusts the RGB values of the picture pixels corresponding to the area according to the returned data, and finally returns the image color temperature of this part to the required set value (such as D65, or others).
[0105] Optionally, the wireless chromaticity detector measures the brightness and color coordinates according to the received measurement instruction, and returns the data to the projection device. The projection device calculates according to the received brightness and color coordinate information, and adjusts the grayscale value of the image pixel of the projected part, and finally makes the image of the corresponding pixel the set white field.
[0106] Specifically, after the sub-areas are divided, there are two ways to perform automatic adjustment:
[0107] (1) Use a wireless detector to adjust each sub-area in a certain order, either manually or automatically. According to the measurement order, you can manually inform the image processing software of the sub-area number currently being processed, or you can use the TOF camera to automatically detect and obtain the partition and sub-area number information currently being processed.
[0108] (2) Arrange a wireless detector array. Each wireless detector in the array is numbered in advance. When returning measurement information, it carries the number information. The number corresponds one-to-one to the image pixel block.
[0109] Initially, a standard diffuse reflection plate or a high-uniformity curtain that can be used as a reference is placed at the position of sub-area 11 (reference picture area), and the brightness L0 and color coordinates (x0, y0) of the area are detected as a reference for adjustment; then the diffuse reflection plate or curtain is removed, and automatic adjustment of the brightness and color coordinates is performed for each subsequent sub-area (alternative picture area).
[0110] Specifically, the current sub-region to be adjusted (a sub-region other than sub-region 11) may be determined; the brightness L1 and color coordinates (x1, y1) of the center point of the sub-region to be adjusted are collected; and the color of the sub-region to be adjusted is adjusted as follows:
[0111] Step 1: Execute brightness judgment, obtain a first judgment result, and adjust the brightness according to the first judgment result.
[0112] In this embodiment, if L1 > L0, then the RGB gray values of the pixels corresponding to the target image area in the target image that corresponds to the sub-region to be adjusted are all decreased by 1; if L1 < L0, then the RGB gray values of the pixels corresponding to the target image area are all increased by 1; issue a command to drive the wireless detector to measure the brightness of the center point of the sub-region to be adjusted, return the new brightness L1, and re-perform the brightness judgment to obtain a new first judgment result.
[0113] If the new L1 > L0, then continue to decrease the RGB gray values of the pixels corresponding to the target image area by 1; otherwise, increase the RGB gray values of the pixels corresponding to the target image area by 1; issue a command to drive the wireless detector to perform the measurement, and return the new brightness L1; loop until L1 = L0, where the determination condition for L1 = L0 is: |(L1 - L0) / L0| <= 1%.
[0114] Second step: Perform color coordinate judgment to obtain a second judgment result, and adjust the chromaticity according to the second judgment result. In this embodiment, if |(x1 - x0) / x0| <= 1%, then it can be considered that x1 = x0, and the same applies to the others.
[0115] Generally, the set color temperature is D65 (x0 = 0.3127, y0 = 0.3290). Hereinafter, the present invention takes this white point as an example to introduce the adjustment process.
[0116] If x1 > 0.3127 and y1 >= 0.3290, then the gray value of color channel B is increased by 1, and after re-measuring the color coordinates of the center point of the sub-region to be adjusted, re-perform the judgment to obtain a new second judgment result.
[0117] If x1 > 0.3127 and y1 <= 0.3290, then the gray value of color channel G is increased by 1, and after re-measuring the color coordinates of the center point of the sub-region to be adjusted, re-perform the judgment to obtain a new second judgment result.
[0118] If x1 < 0.3127 and y1 >= 0.3290, then the gray value of color channel R is increased by 1, and after re-measuring the color coordinates of the center point of the sub-region to be adjusted, re-perform the judgment to obtain a new second judgment result.
[0119] If x1 < 0.3127 and y1 <= 0.3290, then the gray value of color channel B is decreased by 1, and after re-measuring the color coordinates of the center point of the sub-region to be adjusted, re-perform the judgment to obtain a new second judgment result.
[0120] When x1 = 0.3127 and y1 = 0.3290, the loop stops, and the white field of the sub-region to be adjusted is given and output according to the RGB values at this time.
[0121] Step 3: Cycle the brightness adjustment in step 2 and the chromaticity adjustment in step 3, and achieve the goal after no more than 3 cycles.
[0122] Step 4: Repeat the adjustment process from Steps 1 to 3 for the red, green, blue monochrome fields and other hue test images to make the different colors consistent.
[0123] In this embodiment, for colors including white, red, green, blue and other various hues, the brightness and chromaticity of the sub-areas are adjusted to make them consistent with the brightness and chromaticity of the reference picture area, so that the colors of each area can be kept highly consistent.
[0124] See also Figure 5 , is a schematic diagram of the structure of a wireless chromaticity detector provided by an embodiment of the present invention, specifically comprising:
[0125] Light detection module 1, data processing module 2, control chip 3 and wireless transceiver module 4;
[0126] The light detection module 1 is used to collect light signals in the picture area;
[0127] The data processing module 2 is used to process the light signal of the picture area to obtain the color information of the picture area;
[0128] The wireless transceiver module 4 is used to receive the detection instruction sent by the electronic device, and send the received detection instruction to the control chip 3; and can send the color information of the picture area and the picture area mark to the electronic device; the electronic device can be a projection device, or a control device of the projection device;
[0129] The control chip 3 is used to control the data processing module 2 to process the light signal of the picture area to obtain the color information of the picture area when receiving the detection instruction; and then control the wireless transceiver module 4 to send the color information of the picture area and the picture area identification to the electronic device.
[0130] and Figure 1 Corresponding to the method described above, an embodiment of the present invention further provides a projection screen adjustment device, which is applied to electronic equipment. The projection screen adjustment device can be used to adjust the projection screen. Figure 1 The specific implementation of the method is shown in the following diagram: Figure 6 As shown, including:
[0131] An acquisition unit 601 is used to acquire a target image to be projected;
[0132] The projection unit 602 is used to control the projection device to project the target image so as to form a projection screen corresponding to the target image on a preset projection surface;
[0133] A collection unit 603, used to collect color information of each picture area of the projection picture, wherein the color information includes at least one of brightness and color coordinates;
[0134] The adjustment unit 604 is used to perform color adjustment on the target image area in the target image when it is detected that the color information between at least two of the picture areas in the projection picture does not match, so that the color information between the picture areas in the projection picture corresponding to the target image after color adjustment matches; the target image area includes an image area in the target image corresponding to at least one of the picture areas.
[0135] In the method provided in the embodiment of the present invention, based on the above solution, optionally, the adjusting unit includes:
[0136] A first determining subunit, configured to determine a reference picture region in each of the picture regions, and use a region in the projection picture other than the reference picture region as a candidate picture region;
[0137] A second determination subunit is used to determine, for each of the alternative picture areas, that the color information between the alternative picture area and the reference picture area does not match if the brightness difference between the alternative picture area and the reference picture area is greater than a first difference threshold, and / or the color coordinate difference is greater than a second difference threshold; the first difference threshold is calculated based on the brightness of the reference picture area; and the second difference threshold is calculated based on the color coordinates of the reference picture area.
[0138] In an embodiment provided by the present invention, based on the above solution, optionally, the adjusting unit includes:
[0139] A third determining subunit is used to determine an image area in the target image corresponding to a target picture area as a target image area to be adjusted; the target picture area is a candidate picture area whose color information does not match that of the reference picture area;
[0140] The adjustment subunit is used to perform color adjustment on the target image area in the target image.
[0141] In an embodiment provided by the present invention, based on the above solution, optionally, if the brightness difference between the target picture area and the reference picture area is greater than a first difference threshold, the adjustment subunit includes:
[0142] A first adjustment module, configured to increase the grayscale value of each color channel of a target image area corresponding to the target image area in the target image according to a preset step length when the brightness of the target image area is greater than the brightness of the reference image area;
[0143] The second adjustment module is used to reduce the grayscale value of each color channel of the target image area corresponding to the target image area in the target image according to a preset step size when the brightness of the target image area is less than the brightness of the reference image area.
[0144] In an embodiment provided by the present invention, based on the above solution, optionally, if the chrominance difference between the target picture area and the reference picture area is greater than a second difference threshold, the adjusting subunit includes:
[0145] A determination module, configured to determine a target color channel to be adjusted in a target image area of the target image according to a coordinate difference between the color coordinates of the target image area and the color coordinates of the reference image area;
[0146] The third adjustment module is used to adjust the grayscale value of the target color channel to be adjusted in the target image area of the target image.
[0147] In an embodiment provided by the present invention, based on the above solution, optionally, the acquisition unit includes:
[0148] The acquisition subunit is used to send a detection instruction to the wireless chromaticity detector corresponding to each of the picture areas, so that the wireless chromaticity detector corresponding to each of the picture areas measures the brightness and color coordinates of each of the picture areas.
[0149] The specific principles and execution processes of each unit and module in the projection screen adjustment device disclosed in the above embodiment of the present invention are the same as the projection screen adjustment method disclosed in the above embodiment of the present invention. Please refer to the corresponding parts of the projection screen adjustment method provided in the above embodiment of the present invention, and will not be repeated here.
[0150] An embodiment of the present invention further provides a storage medium, which includes stored instructions, wherein when the instructions are executed, the device where the storage medium is located is controlled to execute the above-mentioned method for adjusting the projection picture.
[0151] The embodiment of the present invention further provides an electronic device, the structural diagram of which is shown in FIG. Figure 7 As shown, it specifically includes a memory 701 and one or more instructions 702, wherein the one or more instructions 702 are stored in the memory 701 and are configured to be executed by one or more processors 703 to perform the following operations:
[0152] Acquire a target image to be projected;
[0153] Controlling the projection device to project the target image to form a projection screen corresponding to the target image on a preset projection surface;
[0154] Collecting color information of each picture area of the projection picture, wherein the color information includes at least one of brightness and color coordinates;
[0155] When it is detected that there is a color information mismatch between at least two of the picture areas in the projection picture, color adjustment is performed on the target image area in the target image so that the color information between the picture areas in the projection picture corresponding to the target image after color adjustment matches; the target image area includes an image area in the target image corresponding to at least one of the picture areas.
[0156] It should be noted that each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the embodiments can be referred to each other. For the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0157] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are merely used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations.
[0158] For the convenience of description, the above device is described as being divided into various units according to their functions. Of course, when implementing the present invention, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0159] It can be known from the above description of the implementation mode that those skilled in the art can clearly understand that the present invention can be implemented by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present invention can be essentially or partly contributed to the prior art in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present invention or certain parts of the embodiments.
[0160] The above is a detailed introduction to a method for adjusting a projection screen provided by the present invention. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A method for adjusting a projection image, characterized in that: include: Acquire a target image to be projected; Controlling the projection device to project the target image to form a projection screen corresponding to the target image on a preset projection surface; Collecting color information of each picture area of the projection picture, wherein the color information includes brightness and color coordinates; each picture area of the projection picture is divided based on the state information of the projection surface; the state information of the projection surface may include at least one of reflectivity state information and flatness state information of the projection surface; When it is detected that color information mismatches exist between at least two of the image areas in the projected image, color adjustment is performed on the target image area in the target image so that color information between the image areas in the projected image corresponding to the color-adjusted target image matches; the target image area includes an image area in the target image corresponding to at least one of the image areas; The process of detecting that there is a mismatch in color information between at least two image areas in the projection image includes: Grouping each picture area according to color information of each picture area to obtain a plurality of picture area groups, wherein a brightness difference between each picture area in each picture area group is less than a preset brightness difference threshold, and a color coordinate difference is less than a preset color coordinate difference threshold; determining a group with the largest number of picture areas in each picture area group; randomly selecting a picture area in the group with the largest number of picture areas as a reference picture area, and using areas in the projection picture other than the reference picture area as candidate picture areas; For each of the alternative picture areas, if the brightness difference between the alternative picture area and the reference picture area is greater than a first difference threshold, and / or the color coordinate difference is greater than a second difference threshold, it is determined that the color information between the alternative picture area and the reference picture area does not match; the first difference threshold is calculated based on the brightness of the reference picture area; the second difference threshold is calculated based on the color coordinates of the reference picture area.
2. The method according to claim 1, characterized in that: The color adjustment of the target image area in the target image includes: Determine an image area in the target image corresponding to a target picture area as a target image area to be adjusted; the target picture area is a candidate picture area whose color information does not match that of the reference picture area; Color adjustment is performed on the target image area in the target image.
3. The method according to claim 2, characterized in that If the brightness difference between the target image area and the reference image area is greater than a first difference threshold, then color adjustment is performed on the target image area in the target image, including: When the brightness of the target picture area is greater than the brightness of the reference picture area, reducing the grayscale value of each color channel of the target image area corresponding to the target picture area in the target image according to a preset step size; When the brightness of the target picture area is less than the brightness of the reference picture area, the grayscale value of each color channel of the target image area corresponding to the target picture area in the target image is increased according to a preset step size.
4. The method according to claim 2, characterized in that: If the chromaticity difference between the target image area and the reference image area is greater than a second difference threshold, then color adjustment is performed on the target image area in the target image, including: Determining a target color channel to be adjusted in a target image area of the target image according to a coordinate difference between the color coordinates of the target image area and the color coordinates of the reference image area; The grayscale value of the target color channel to be adjusted in the target image area of the target image is adjusted.
5. The method according to claim 1, characterized in that The collecting of color information of each picture area of the projection picture includes: A detection instruction is sent to the wireless chromaticity detector corresponding to each picture area of the projection picture, so that the wireless chromaticity detector corresponding to each picture area measures and obtains the color information of each picture area.
6. A device for adjusting a projection image, characterized in that: include: An acquisition unit, used for acquiring a target image to be projected; A projection unit, used to control the projection device to project the target image, so as to form a projection screen corresponding to the target image on a preset projection surface; A collection unit, configured to collect color information of each picture area of the projection picture, wherein the color information includes brightness and color coordinates; each picture area of the projection picture is divided based on the state information of the projection surface; the state information of the projection surface may include at least one of reflectivity state information and flatness state information of the projection surface; an adjustment unit, configured to, when detecting that color information mismatches exist between at least two of the image regions in the projection image, perform color adjustment on the target image region in the target image, so that color information between the respective image regions in the projection image corresponding to the color-adjusted target image matches; The target image area includes an image area in the target image corresponding to at least one of the picture areas; The regulating unit comprises: A first determining subunit is configured to group each picture area according to color information of each picture area to obtain a plurality of picture area groups, wherein a brightness difference between each picture area in each picture area group is less than a preset brightness difference threshold, and a color coordinate difference is less than a preset color coordinate difference threshold; determine a group with the largest number of picture areas in each picture area group; randomly select a picture area in the group with the largest number of picture areas as a reference picture area, and use an area in the projection picture other than the reference picture area as a candidate picture area; A second determination subunit is used to determine, for each of the alternative picture areas, that the color information between the alternative picture area and the reference picture area does not match if the brightness difference between the alternative picture area and the reference picture area is greater than a first difference threshold, and / or the color coordinate difference is greater than a second difference threshold; the first difference threshold is calculated based on the brightness of the reference picture area; and the second difference threshold is calculated based on the color coordinates of the reference picture area.
7. A storage medium, characterized in that: The storage medium includes stored instructions, wherein when the instructions are executed, the device where the storage medium is located is controlled to execute the method for adjusting the projection picture according to any one of claims 1 to 5.
8. An electronic device, characterized in that: It comprises a memory and one or more instructions, wherein the one or more instructions are stored in the memory and are configured to be executed by one or more processors to perform the projection picture adjustment method as described in any one of claims 1 to 5.
