Display device
By detecting the black edge of the image in the processor of the display device and setting the grayscale value of the pixel points in the black edge area to zero, the problem that the black edge of the image in the prior art is not black, and the image contrast and display effect are improved.
Patent Information
- Application Number
- CN202311206893.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-18
- Publication Date
- 2025-03-18
- Estimated Expiration
- 2043-09-18
AI Technical Summary
The prior art is prone to interference when adding black edges to an image, so that the black edges in the image received by the display device are not black, the contrast of the image is low, and the display effect is poor.
By using a preset black edge detection method in the processor of the display device, black edge detection is performed on the current frame image. If a black edge area is detected, the grayscale value of the pixel points in the black edge area is set to zero to obtain the image to be displayed.
The black edges in the displayed image are achieved to be black, which improves the contrast of the image and improves the display effect.
Smart Images

Figure CN119649775A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to image processing technology, and more specifically, to a display device. Background Art
[0002] With the development of science and technology, people have put forward higher requirements for image display, requiring not only clear images, but also complete image display.
[0003] In the prior art, since the size ratio of some images is different from the size ratio of the display screen in the display device, in order to display the entire content of the image, black borders can be added to the image so that the size ratio of the processed image is the same as the size ratio of the display screen, and then the processed image is transmitted to the display device for display. However, in the process of adding black borders to the image or in the transmission process, interference is easily caused, so that the black borders in the image received by the display device are not black, the contrast of the image is low, and the display effect is poor.
[0004] Therefore, there is an urgent need for an image processing method that can process an image received by a display device to achieve black edges of the displayed image. Summary of the invention
[0005] An embodiment of the present application provides a display device for solving the problem that an image processing method is urgently needed and can process an image received by the display device to achieve black edges of the displayed image.
[0006] In a first aspect, an embodiment of the present application provides a display device, the display device comprising:
[0007] A display screen and a processor, wherein the processor is configured to:
[0008] Get the current frame image in the video to be displayed;
[0009] Using a preset black edge detection method, performing black edge detection on the current frame image to obtain a detection result, wherein the detection result is used to indicate whether a black edge area exists or not;
[0010] If the detection result indicates that a black border region exists, the grayscale values of the pixels in the target black border region are set to zero to obtain an image to be displayed;
[0011] If the detection result indicates that there is no black border area, then the grayscale value modification process is not performed on the current frame image, and the current frame image is used as the image to be displayed;
[0012] The display screen is configured to display the image to be displayed.
[0013] The beneficial effects of this embodiment are as follows: after the processor acquires the current frame image, the current frame image is subjected to black edge detection through a preset black edge detection method to obtain a detection result. If the detection result indicates the existence of a black edge region, the grayscale value of the pixel points in the target black edge region is set to zero, and the image to be displayed is obtained and then displayed through the display screen. This solution performs black edge detection on the current frame image, and when a black edge region is detected, sets the grayscale value of the pixel points in the black edge region to zero before displaying it, so that the black edges in the displayed image are black, thereby improving the image contrast and the display effect.
[0014] In some embodiments of the present application, when the processor is used to use a preset black edge detection method to perform black edge detection on the current frame image and obtain a detection result, it is specifically used to:
[0015] Determine a reference image corresponding to the current frame image;
[0016] According to the brightness values corresponding to the pixels in the current frame image and the brightness values corresponding to the pixels in the reference image, black edge detection is performed on the current frame image to obtain a detection result.
[0017] The beneficial effect of this embodiment is that by first determining a reference image and then using the brightness values corresponding to the pixels in the current frame image and the reference image to perform black edge detection, the detection result is more accurate.
[0018] In some embodiments of the present application, when the processor is used to determine the reference image corresponding to the current frame image, it is specifically used to:
[0019] A preset number of images adjacent to the current frame image in the video to be displayed are used as the reference images.
[0020] The beneficial effect of this embodiment is that the image adjacent to the current frame image is used as a reference image, so that the detection result generated subsequently using the reference image is more accurate.
[0021] In some embodiments of the present application, when the processor is used to perform black edge detection on the current frame image according to the brightness value corresponding to the pixel point in the current frame image and the brightness value corresponding to the pixel point in the reference image to obtain the detection result, it is specifically used to:
[0022] Subtracting the brightness value corresponding to the pixel point in the current frame image from the brightness value corresponding to the pixel point in the reference image to obtain a first brightness difference value of the pixel point;
[0023] Determine whether there is a first picture pixel point whose first brightness difference does not belong to a preset first brightness threshold range in a preset first black border area and a preset second black border area; the preset first black border area is located at the upper edge and the lower edge of the display screen, and the preset second black border area is located at the left edge and the right edge of the display screen;
[0024] If the first picture pixel point exists in the preset first black border area and the preset second black border area, a detection result that no black border area exists is generated;
[0025] If the first picture pixel does not exist in the preset first black border area or the preset second black border area, the black border area of the preset first black border area and the preset second black border area, whichever does not contain the first picture pixel, is used as the target black border area;
[0026] A detection result is generated according to a relationship between the number of first picture pixel points outside the target black border area and a preset picture number threshold.
[0027] The beneficial effects of this embodiment are as follows: a first brightness difference value of the pixel point is obtained by subtracting the brightness value corresponding to the pixel point in the current frame image from the brightness value corresponding to the pixel point in the reference image, and then a detection result is generated based on whether there is a first picture pixel point with a first brightness difference value that does not fall within the preset first brightness threshold range in the preset first black border area and the preset second black border area, so that the detection result is more accurate.
[0028] In some embodiments of the present application, when the processor is used to generate a detection result according to the size relationship between the number of first picture pixels outside the target black border area and a preset picture number threshold, it is specifically used to:
[0029] Determine whether the number of first picture pixel points outside the target black border area reaches or exceeds a preset picture number threshold;
[0030] If the number of first picture pixel points outside the target black border area reaches or exceeds a preset picture number threshold, a detection result of the existence of a black border area is generated;
[0031] If the number of first picture pixel points outside the target black border area does not reach or exceed the preset picture number threshold, a detection result that no black border area exists is generated.
[0032] Beneficial effect of this embodiment: a detection result is generated according to the relationship between the number of first picture pixel points outside the target black border area and a preset picture number threshold, so that the detection result is more accurate.
[0033] In some embodiments of the present application, when the processor is used to determine the reference image corresponding to the current frame image, it is specifically used to:
[0034] Using a preset first black-bordered image and a preset second black-bordered image as the reference images;
[0035] Among them, the brightness value corresponding to the pixel points in the preset first black-border area in the preset first black-border image is zero, and the brightness value corresponding to the pixel points in the preset second black-border area in the preset second black-border image is zero; the preset first black-border area is located at the upper edge and the lower edge of the display screen, and the preset second black-border area is located at the left edge and the right edge of the display screen.
[0036] The beneficial effect of this embodiment is that the preset first black-bordered image and the preset second black-bordered image are used as reference images, so that the detection results generated subsequently using the reference images are more accurate.
[0037] In some embodiments of the present application, when the processor is used to perform black edge detection on the current frame image according to the brightness value corresponding to the pixel point in the current frame image and the brightness value corresponding to the pixel point in the reference image to obtain the detection result, it is specifically used to:
[0038] Subtracting the brightness value corresponding to the pixel point in the current frame image from the brightness value corresponding to the pixel point in the preset first black-border image to obtain a second brightness difference value of the pixel point;
[0039] Subtracting the brightness value corresponding to the pixel point in the current frame image from the brightness value corresponding to the pixel point in the preset second black-border image to obtain a third brightness difference value of the pixel point;
[0040] Determine whether there is a second picture pixel point in the preset first black border area whose second brightness difference does not fall within the preset second brightness threshold range;
[0041] If there is a second picture pixel point in the preset first black border area, determining whether there is a third picture pixel point in the preset second black border area whose third brightness difference does not fall within the preset second brightness threshold range;
[0042] If there is a third picture pixel point in the preset second black border area, generating a detection result that no black border area exists;
[0043] If there is no third picture pixel point in the preset second black border area, generating a detection result according to a magnitude relationship between the number of third picture pixel points outside the preset second black border area and a preset picture number threshold;
[0044] If there is no second picture pixel point in the preset first black border area, a detection result is generated according to the relationship between the number of second picture pixel points outside the preset first black border area and a preset picture number threshold.
[0045] The beneficial effects of this embodiment are as follows: by subtracting the brightness values corresponding to the pixels in the current frame image from the brightness values corresponding to the pixels in the preset first black-border image and the preset second black-border image, respectively, to obtain the second brightness difference value and the third brightness difference value of the pixels, and then generating a detection result based on whether there are second picture pixels in the preset first black-border area whose second brightness difference value does not fall within the preset second brightness threshold range and whether there are third picture pixels in the preset second black-border area whose third brightness difference value does not fall within the preset second brightness threshold range, so that the detection result is more accurate.
[0046] In some embodiments of the present application, when the processor is used to generate a detection result according to the size relationship between the number of third picture pixels outside the preset second black border area and the preset picture number threshold, it is specifically used to:
[0047] The preset second black border area is used as the target black border area;
[0048] Determine whether the number of third picture pixel points outside the target black border area reaches or exceeds a preset picture number threshold;
[0049] If the number of third picture pixel points outside the target black border area reaches or exceeds a preset picture number threshold, a detection result indicating the existence of a black border area is generated;
[0050] If the number of the third picture pixel points outside the target black border area does not reach or exceed the preset picture number threshold, a detection result indicating that there is no black border area is generated.
[0051] Beneficial effect of this embodiment: a detection result is generated according to the relationship between the number of third picture pixel points outside the target black border area and a preset picture number threshold, so that the detection result is more accurate.
[0052] In some embodiments of the present application, when the processor is used to generate a detection result according to the size relationship between the number of second picture pixels outside the preset first black border area and the preset picture number threshold, it is specifically used to:
[0053] The preset first black border area is used as the target black border area;
[0054] Determine whether the number of second picture pixel points outside the target black border area reaches or exceeds a preset picture number threshold;
[0055] If the number of the second picture pixel points outside the target black border area reaches or exceeds the preset picture number threshold, a detection result of the existence of the black border area is generated;
[0056] If the number of the second picture pixel points outside the target black border area does not reach or exceed the preset picture number threshold, a detection result that no black border area exists is generated.
[0057] Beneficial effect of this embodiment: a detection result is generated according to the relationship between the number of second picture pixel points outside the target black border area and a preset picture number threshold, so that the detection result is more accurate.
[0058] In some embodiments of the present application, before the processor is used to set the grayscale value of the pixel point in the existing target black border area to zero, it is also used to:
[0059] Determine whether there is a pixel point with a non-zero grayscale value in the target black border area;
[0060] Accordingly, when the processor is used to set the grayscale value of the pixel point in the existing target black border area to zero, it is specifically used to:
[0061] If there are pixels with non-zero grayscale values in the target black border region, the grayscale values of the pixels in the target black border region are set to zero.
[0062] The beneficial effect of this embodiment is as follows: after detecting the black border area, if there are pixels with non-zero grayscale values in the black border area, the grayscale values of the pixels in the black border area are set to zero, so that the detection of whether the black border is displayed as black is more accurate, and the black border of the displayed image can be ensured to be black. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] In order to more clearly illustrate the implementation methods in the embodiments of the present application or the related technologies, the following is a brief introduction to the drawings required for use in the embodiments or the related technology descriptions. Obviously, the drawings described below are some embodiments of the present application, and a person skilled in the art can also obtain other drawings based on these drawings.
[0064] Figure 1 This is a schematic diagram of a 16:9 image with black borders added to the top and bottom provided by this application;
[0065] Figure 2 This is a schematic diagram of a 16:9 image with left and right black borders added provided by this application;
[0066] Figure 3 A schematic diagram of the structure of the display device provided in this application;
[0067] Figure 4 A flowchart of the image processing method provided in this application;
[0068] Figure 5 The process diagram of black edge detection for the current frame image provided by this application Figure 1 ;
[0069] Figure 6 The process diagram of black edge detection for the current frame image provided by this application Figure 2 ;
[0070] Figure 7 The process diagram of black edge detection for the current frame image provided by this application Figure 3 ;
[0071] Figure 8 The process diagram of black edge detection for the current frame image provided by this application Figure 4 ;
[0072] Fig. 9 The process diagram of black edge detection for the current frame image provided by this application Figure 5 ;
[0073] Fig.10 A schematic diagram of the structure of an image processing device embodiment provided in this application. DETAILED DESCRIPTION
[0074] In order to make the purpose, implementation mode and advantages of the present application clearer, the exemplary implementation mode of the present application will be clearly and completely described below in conjunction with the drawings in the exemplary embodiments of the present application. Obviously, the described exemplary embodiments are only part of the embodiments of the present application, not all of the embodiments.
[0075] Based on the exemplary embodiments described in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the claims attached to this application. In addition, although the disclosure in this application is introduced according to one or several exemplary examples, it should be understood that each aspect of the disclosure can also constitute a complete implementation method separately.
[0076] It should be noted that the brief description of terms in this application is only for the convenience of understanding the embodiments described below, and is not intended to limit the embodiments of this application. Unless otherwise specified, these terms should be understood according to their common and usual meanings.
[0077] The terms "first", "second", "third", etc. in the specification and claims of this application and the above drawings are used to distinguish similar or similar objects or entities, and do not necessarily mean to limit a specific order or sequence, unless otherwise indicated. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances, for example, they can be implemented according to orders other than those given in the diagrams or descriptions of the embodiments of this application.
[0078] In addition, the terms "include" and "have" and any variations thereof are intended to cover but not exclude inclusion, for example, a product or device comprising a list of components is not necessarily limited to those components expressly listed but may include other components not expressly listed or inherent to such products or devices.
[0079] With the development of technology, images can be processed in various ways to meet people's different needs. Now it is possible to display the entire image content when the image size ratio is different from the display size ratio.
[0080] In the prior art, since the size ratio of some images is different from the size ratio of the display screen in the display device, in order to display the entire content of the image, black borders can be added to the image so that the size ratio of the processed image is the same as the size ratio of the display screen, and the processed image is then transmitted to the display device for display.
[0081] For example, the image has a 21:9 aspect ratio and the display has a 16:9 aspect ratio, so black borders need to be added to the top and bottom of the image to form a 16:9 aspect ratio. Figure 1 The following is a schematic diagram of a 16:9 image with black borders added to the top and bottom provided by this application. Figure 1 As shown, the upper and lower edges in the figure are black edges.
[0082] For example, if the image has a 4:3 aspect ratio and the display has a 16:9 aspect ratio, black borders need to be added to the left and right sides of the image to form a 16:9 aspect ratio. Figure 2 The following is a schematic diagram of a 16:9 image with left and right black borders added to the image provided by this application. Figure 2 As shown, the left and right edges in the figure are black edges.
[0083] However, in the process of adding black borders to the image or in the transmission process, interference is easily caused, so that the black borders in the image received by the display device are not black, the contrast of the image is low, and the display effect is poor. Therefore, there is an urgent need for an image processing method that can process the image received by the display device so that the black borders of the displayed image are black.
[0084] In view of the problems existing in the prior art, the inventors found in the process of studying the image processing method that in order to display the black edges of the displayed image as black, after obtaining the current frame image, the black edge detection is performed on the current frame image. If a black edge area is detected, the gray value of the pixel point in the black edge area is set to zero, and the image to be displayed is obtained and displayed. The black edges in the displayed image are black, which effectively improves the contrast of the image and improves the display effect. Based on the above invention concept, the image processing scheme in this application is designed.
[0085] The following is an example of an application scenario of the image processing method provided in this application.
[0086] Exemplarily, in this scenario, a user uses a display device to watch a video. After the display device obtains a current frame image, it uses a preset black edge detection method to perform black edge detection on the current frame image to obtain a detection result.
[0087] If the detection result indicates that a black border region exists, the grayscale values of the pixels in the target black border region are set to zero to obtain an image to be displayed, and then the image to be displayed is displayed for the user to watch.
[0088] The black edges in the displayed image are black, which can improve the display effect.
[0089] It should be noted that the above scenario is only an example of an application scenario provided by an embodiment of the present application. The embodiment of the present application does not limit the actual form of the various devices included in the scenario. In the specific application of the solution, it can be set according to actual needs.
[0090] Figure 3 A schematic diagram of the structure of the display device provided in this application, such as Figure 3 As shown, the display device includes a processor, a display screen connected to the processor, and also includes a communication unit, an external interface, and a memory connected to the processor. Figure 4 This is a flow chart of the image processing method provided in the present application. The execution subject of the method may be a display device. The method in this embodiment may be implemented by software, hardware, or a combination of software and hardware.
[0091] like Figure 4 As shown, the processor in the display device is configured to perform the following steps:
[0092] S401: Acquire the current frame image in the video to be displayed.
[0093] After receiving the current frame image in the video to be displayed, the external interface or communication unit in the display device transmits it to the processor for processing.
[0094] S402: Using a preset black edge detection method, perform black edge detection on the current frame image to obtain a detection result.
[0095] After the processor acquires the current frame image, it may use a preset black edge detection method to perform black edge detection on the current frame image to obtain a detection result, and the detection result is used to indicate whether a black edge area exists or does not exist.
[0096] Specifically, the reference image corresponding to the current frame image can be determined first; then, according to the brightness values corresponding to the pixels in the current frame image and the brightness values corresponding to the pixels in the reference image, black edge detection is performed on the current frame image to obtain a detection result.
[0097] During the black border detection process, if a black border area is detected, the target black border area will also be determined.
[0098] S403: If the detection result indicates that a black border region exists, the grayscale values of the pixels in the target black border region are set to zero to obtain an image to be displayed.
[0099] After the processor obtains the detection result, if the detection result indicates that a black border area exists, the grayscale value of the pixel point in the existing target black border area is set to zero to obtain the image to be displayed.
[0100] It should be noted that if a pixel includes multiple sub-pixels, the grayscale value of each sub-pixel in the target black border area is set to zero.
[0101] It should be noted that if the detection result indicates that there is no black border area, the grayscale value modification process is not performed on the current frame image, and the current frame image is used as the image to be displayed.
[0102] The display screen is configured to: display the image to be displayed. Since the grayscale values of the pixels in the target black border region in the image to be displayed are set to zero, the target black border region in the displayed image to be displayed is black.
[0103] The display device provided in this embodiment includes a display screen and a processor; the processor is configured to, after acquiring the current frame image, perform black edge detection on the current frame image by a preset black edge detection method to obtain a detection result. If the detection result indicates that there is a black edge area, the grayscale value of the pixel points in the target black edge area is set to zero, and the image to be displayed is displayed through the display screen after it is obtained. This solution performs black edge detection on the current frame image, and when a black edge area is detected, sets the grayscale value of the pixel points in the black edge area to zero before displaying it, so that the black edges in the displayed image are black, thereby improving the image contrast and the display effect.
[0104] Furthermore, based on the above-mentioned embodiment, the embodiment of the present application describes a situation in which the processor uses a preset number of images adjacent to the current frame image as reference images and performs black edge detection based on the reference images. Figure 5 The process diagram of black edge detection for the current frame image provided by this application Figure 1 , wherein the processor in the display device is configured to perform the following steps:
[0105] S501: Subtract the brightness value corresponding to the pixel in the current frame image from the brightness value corresponding to the pixel in the reference image to obtain a first brightness difference value of the pixel.
[0106] After the processor obtains the current frame image, a preset number of images adjacent to the current frame image in the video to be displayed may be used as reference images.
[0107] For each pixel, a brightness value corresponding to the pixel in the current frame image is subtracted from a brightness value corresponding to the pixel in the reference image to obtain a first brightness difference value of the pixel.
[0108] It should be noted that the preset number of images adjacent to the current frame image in the video to be displayed may be: a preset number of images before the current frame image; or: a preset number of images after the current frame image; or: a preset number of images randomly selected from the preset number of images before the current frame image and the preset number of images after the current frame image. The preset number may be 2, 3, 5, etc. The embodiment of the present application does not limit the preset number of images and the preset number adjacent to the current frame image in the video to be displayed, and it can be determined according to actual conditions.
[0109] S502: Determine whether there is a first picture pixel point whose first brightness difference does not fall within the preset first brightness threshold range in the preset first black border area and the preset second black border area. If the first picture pixel point exists in the preset first black border area and the preset second black border area, execute step S503; if the first picture pixel point does not exist in the preset first black border area or the preset second black border area, execute step S504.
[0110] After obtaining the first brightness difference value of each pixel point, the processor determines whether there is a first picture pixel point in the preset first black border area and the preset second black border area whose first brightness difference value does not fall within the preset first brightness threshold range.
[0111] The first black border area is preset to be located at the upper edge and the lower edge of the display screen, and the second black border area is preset to be located at the left edge and the right edge of the display screen.
[0112] It should be noted that the preset first brightness threshold range can be [-2, 2], [-3, 3], [-5, 5], etc. The embodiment of the present application does not limit the preset first brightness threshold range and can be set according to actual conditions.
[0113] S503: Generate a detection result in which no black border area exists.
[0114] If the processor determines that the first picture pixel point exists in the preset first black border area and the preset second black border area, it means that there is no black border in the current frame image, and then generates a detection result that there is no black border area.
[0115] S504: The black border region where no first picture pixel point exists in the preset first black border region and the preset second black border region is used as the target black border region.
[0116] If the processor determines that there is no first picture pixel in the preset first black border area or the preset second black border area, it cannot be determined whether there is a black border in the current frame image, and it is necessary to use the black border area of the preset first black border area or the preset second black border area where there is no first picture pixel as the target black border area.
[0117] S505: Generate a detection result according to a relationship between the number of first picture pixel points outside the target black border area and a preset picture number threshold.
[0118] After obtaining the target black border area, the processor may generate a detection result according to the relationship between the number of first picture pixel points outside the target black border area and a preset picture number threshold.
[0119] It should be noted that a detection result can be generated for each reference image. When all detection results indicate the existence of a black-border area, the detection result indicating the existence of a black-border area will be used as the detection result required by this scheme. That is, it is determined based on the detection result whether the grayscale value of the pixel points in the black-border area needs to be set to zero.
[0120] When there is a detection result indicating that there is no black border area, the detection result indicating that there is no black border area is used as the detection result required by this solution.
[0121] The display device provided by the present embodiment obtains a first brightness difference value of the pixel point by subtracting the brightness value corresponding to the pixel point in the current frame image from the brightness value corresponding to the pixel point in the reference image, and then generates a detection result based on whether there is a first picture pixel point with a first brightness difference value that does not fall within a preset first brightness threshold range in a preset first black border area and a preset second black border area, so that the detection result is more accurate.
[0122] Further, based on the above embodiment, the embodiment of the present application describes the situation where the processor generates a detection result based on the relationship between the number of first picture pixels outside the target black border area and a preset picture number threshold. Figure 6 The process diagram of black edge detection for the current frame image provided by this application Figure 2 , wherein the processor in the display device is configured to perform the following steps:
[0123] S601: Determine whether the number of first picture pixel points outside the target black border area reaches or exceeds the preset picture number threshold; if the number of first picture pixel points outside the target black border area reaches or exceeds the preset picture number threshold, execute step S602; if the number of first picture pixel points outside the target black border area does not reach or exceeds the preset picture number threshold, execute step S603.
[0124] After obtaining the target black border area, the processor determines whether the number of first picture pixel points outside the target black border area reaches or exceeds a preset picture number threshold to determine whether there is a black border in the current frame image.
[0125] It should be noted that the preset screen quantity threshold may be 300,000, 550,000, 1,400,000, etc. The embodiment of the present application does not limit the preset screen quantity threshold, and may be set according to actual conditions.
[0126] S602: Generate a detection result of a black border area.
[0127] If the processor determines that the number of first picture pixel points outside the target black border area reaches or exceeds a preset picture number threshold, indicating that a black border exists in the current frame image, a detection result of a black border area is generated.
[0128] S603: Generate a detection result in which no black border area exists.
[0129] If the processor determines that the number of first picture pixel points outside the target black border area does not reach the preset picture number threshold, it means that there is no black border in the current frame image, and the current frame image may be a black image, then a detection result is generated that there is no black border area.
[0130] The display device provided in this embodiment generates a detection result of the existence of a black-border area when the number of first picture pixel points outside the target black-border area reaches above a preset picture number threshold; and generates a detection result of the non-existence of a black-border area when the number of first picture pixel points outside the target black-border area does not reach above the preset picture number threshold, so that the detection result is more accurate.
[0131] Further, based on the above embodiment, the embodiment of the present application describes a situation in which the processor uses the preset first black-border image and the preset second black-border image as reference images and performs black-border detection based on the reference images. Figure 7 The process diagram of black edge detection for the current frame image provided by this application Figure 3 , wherein the processor in the display device is configured to perform the following steps:
[0132] S701: Subtract the brightness value corresponding to the pixel in the current frame image from the brightness value corresponding to the pixel in the preset first black-border image to obtain a second brightness difference value of the pixel.
[0133] After the processor obtains the current frame image, the preset first black-border image and the preset second black-border image may be used as reference images.
[0134] Among them, the brightness value corresponding to the pixel points in the preset first black-border area in the preset first black-border image is zero, and the brightness value corresponding to the pixel points in the preset second black-border area in the preset second black-border image is zero; the preset first black-border area is located at the upper edge and lower edge of the display screen, and the preset second black-border area is located at the left edge and right edge of the display screen.
[0135] For each pixel point, a brightness value corresponding to the pixel point in the current frame image is subtracted from a brightness value corresponding to the pixel point in the preset first black-border image to obtain a second brightness difference value of the pixel point.
[0136] S702: Subtract the brightness value corresponding to the pixel in the current frame image from the brightness value corresponding to the pixel in the preset second black-border image to obtain a third brightness difference value of the pixel.
[0137] After the processor determines the reference image, for each pixel point, the brightness value corresponding to the pixel point in the current frame image is subtracted from the brightness value corresponding to the pixel point in the preset second black-border image to obtain a third brightness difference value of the pixel point.
[0138] It should be noted that the execution order of step S701 and step S702 may be step S701 first and then step S702; or step S702 may be first and then step S701; or step S701 and step S702 may be executed simultaneously. The embodiment of the present application does not limit the execution order of step S701 and step S702, and it can be set according to actual conditions.
[0139] S703: Determine whether there is a second screen pixel point in the preset first black border area and the second brightness difference value does not fall within the preset second brightness threshold range; if there is a second screen pixel point in the preset first black border area, execute step S704; if there is no second screen pixel point in the preset first black border area, execute step S707.
[0140] After obtaining the second brightness difference value, the processor determines whether there is a second picture pixel point in the preset first black border area whose second brightness difference value does not fall within the preset second brightness threshold range, so as to determine whether there are upper and lower black borders in the current frame image.
[0141] It should be noted that the preset second brightness threshold range can be [-3, 3], [-5, 5], [-7, 7], etc. The embodiment of the present application does not limit the preset second brightness threshold range and can be set according to actual conditions.
[0142] S704: Determine whether there is a third screen pixel point in the preset second black border area whose third brightness difference does not fall within the preset second brightness threshold range; if there is a third screen pixel point in the preset second black border area, execute step S705; if there is no third screen pixel point in the preset second black border area, execute step S706.
[0143] If the processor determines that there is a second screen pixel point in the preset first black border area, it means that there are no upper and lower black borders in the current frame image. It is also necessary to determine whether there are left and right black borders in the current frame image, and to judge whether there is a third screen pixel point in the preset second black border area whose third brightness difference does not fall within the preset second brightness threshold range.
[0144] S705: Generate a detection result in which no black border area exists.
[0145] If the processor determines that there is a third picture pixel point in the preset second black border area, it means that there are no left and right black borders in the current frame image, and then a detection result of no black border area is generated.
[0146] S706: Generate a detection result according to a relationship between the number of third picture pixel points outside the preset second black border area and a preset picture number threshold.
[0147] If the processor determines that there is no third picture pixel in the preset second black border area, it cannot be determined whether there are left and right black borders in the current frame image. It is necessary to generate a detection result based on the relationship between the number of third picture pixels outside the preset second black border area and the preset picture number threshold.
[0148] S707: Generate a detection result according to a relationship between the number of second picture pixel points outside the preset first black border area and a preset picture number threshold.
[0149] If the processor determines that there are no second picture pixels in the preset first black border area, it cannot yet determine whether there are upper and lower black borders in the current frame image. It is necessary to generate a detection result based on the relationship between the number of second picture pixels outside the preset first black border area and the preset picture number threshold.
[0150] The display device provided by the present embodiment obtains a second brightness difference value and a third brightness difference value of the pixel point by subtracting the brightness value corresponding to the pixel point in the current frame image from the brightness value corresponding to the pixel point in the preset first black-border image and the preset second black-border image, respectively, and then generates a detection result according to whether there is a second picture pixel point in the preset first black-border area whose second brightness difference value does not fall within the preset second brightness threshold range and whether there is a third picture pixel point in the preset second black-border area whose third brightness difference value does not fall within the preset second brightness threshold range, so that the detection result is more accurate.
[0151] Further, based on the above embodiment, the embodiment of the present application describes the situation where the processor generates a detection result according to the relationship between the number of third picture pixels outside the preset second black border area and the preset picture number threshold. Figure 8 The process diagram of black edge detection for the current frame image provided by this application Figure 4 , wherein the processor in the display device is configured to perform the following steps:
[0152] S801: Using a preset second black border area as a target black border area.
[0153] If the processor determines that there is no third picture pixel in the preset second black border area, but cannot determine whether there are left and right black borders in the current frame image, the preset second black border area is first used as the target black border area.
[0154] S802: Determine whether the number of third picture pixel points outside the target black border area reaches or exceeds the preset picture number threshold; if the number of third picture pixel points outside the target black border area reaches or exceeds the preset picture number threshold, execute step S803; if the number of third picture pixel points outside the target black border area does not reach or exceeds the preset picture number threshold, execute step S804.
[0155] After the processor sets the preset second black border area as the target black border area, it determines whether the number of third picture pixel points outside the target black border area reaches or exceeds the preset picture number threshold to determine whether there are left and right black borders in the current frame image.
[0156] S803: Generate a detection result of a black border area.
[0157] If the processor determines that the number of third picture pixel points outside the target black border area reaches above the preset picture number threshold, it means that there are left and right black borders in the current frame image, and a detection result of the existence of the black border area is generated.
[0158] S804: Generate a detection result in which no black edge area exists.
[0159] If the processor determines that the number of third picture pixels outside the target black border area does not reach the preset picture number threshold, it means that there are no left and right black borders in the current frame image, and the current frame image may be a black image, then a detection result is generated that there is no black border area.
[0160] The display device provided in this embodiment generates a detection result of the existence of a black-border area when the number of third-picture pixel points outside the target black-border area reaches above a preset picture number threshold; and generates a detection result of the non-existence of a black-border area when the number of third-picture pixel points outside the target black-border area does not reach above the preset picture number threshold, thereby making the detection result more accurate.
[0161] Further, based on the above embodiment, the embodiment of the present application describes the situation where the processor generates a detection result according to the relationship between the number of second picture pixels outside the preset first black border area and the preset picture number threshold. Fig. 9 The process diagram of black edge detection for the current frame image provided by this application Figure 5 , wherein the processor in the display device is configured to perform the following steps:
[0162] S901: Using a preset first black border area as a target black border area.
[0163] If the processor determines that there is no second picture pixel in the preset first black border area, but cannot determine whether there are upper and lower black borders in the current frame image, the preset first black border area is first used as the target black border area.
[0164] S902: Determine whether the number of second picture pixel points outside the target black border area reaches or exceeds the preset picture number threshold; if the number of second picture pixel points outside the target black border area reaches or exceeds the preset picture number threshold, execute step S903; if the number of second picture pixel points outside the target black border area does not reach or exceeds the preset picture number threshold, execute step S904.
[0165] After the processor sets the preset first black border area as the target black border area, it determines whether the number of second picture pixel points outside the target black border area reaches or exceeds the preset picture number threshold to determine whether there are upper and lower black borders in the current frame image.
[0166] S903: Generate a detection result of a black border area.
[0167] If the processor determines that the number of second picture pixel points outside the target black border area reaches above the preset picture number threshold, it means that there are upper and lower black borders in the current frame image, and a detection result of the existence of the black border area is generated.
[0168] S904: Generate a detection result in which no black edge area exists.
[0169] If the processor determines that the number of second picture pixel points outside the target black border area does not reach the preset picture number threshold, it means that there are no upper and lower black borders in the current frame image, and the current frame image may be a black image, then a detection result is generated that there is no black border area.
[0170] The display device provided in this embodiment generates a detection result of the existence of a black-border area when the number of second picture pixel points outside the target black-border area reaches above a preset picture number threshold; and generates a detection result of the non-existence of a black-border area when the number of second picture pixel points outside the target black-border area does not reach above the preset picture number threshold, so that the detection result is more accurate.
[0171] Further, based on the above embodiment, the embodiment of the present application describes the situation where the processor first determines whether there are pixels with non-zero grayscale values in the target black border area before setting the grayscale values of the pixels in the target black border area to zero.
[0172] In order to save energy consumption and ensure that the black borders of the displayed image are black, after the processor determines that the detection result indicates the existence of a black border area, before setting the grayscale values of the pixels in the target black border area to zero, it is necessary to determine whether there are pixels with non-zero grayscale values in the target black border area.
[0173] If there are no pixels with non-zero grayscale values in the target black border region, it means that the black border of the displayed image is black, and there is no need to set the grayscale values of the pixels in the target black border region to zero, which can save energy.
[0174] If there are pixels with non-zero grayscale values in the target black border region, the grayscale values of the pixels in the target black border region are set to zero, thereby ensuring that the black border of the displayed image is black.
[0175] It should be noted that if a pixel includes multiple sub-pixels, it is necessary to determine whether there is a sub-pixel with a non-zero grayscale value in the target black border region. If there is a sub-pixel with a non-zero grayscale value in the target black border region, the grayscale value of the sub-pixel in the target black border region is set to zero.
[0176] The display device provided in this embodiment, after determining that the detection result indicates the existence of a black border area, if there are pixels with non-zero grayscale values in the black border area, the grayscale values of the pixels in the black border area are set to zero, so that the detection of whether the black border is displayed as black is more accurate, and it can be ensured that the black border of the displayed image is black.
[0177] In the present application, an image processing method is also provided, and the steps thereof may be:
[0178] Get the current frame image in the video to be displayed.
[0179] A preset black edge detection method is used to perform black edge detection on the current frame image to obtain a detection result.
[0180] If the detection result indicates that a black border region exists, the grayscale values of the pixels in the target black border region are set to zero to obtain an image to be displayed.
[0181] If the detection result indicates that there is no black border area, the grayscale value modification process is not performed on the current frame image, and the current frame image is used as the image to be displayed.
[0182] Displays the image to be displayed.
[0183] For specific implementation steps and technical effects, please refer to the above embodiments, and this application will not repeat them.
[0184] Fig.10 This is a schematic diagram of the structure of an embodiment of the image processing device provided by the present application; the device can be integrated into the display device in the above method embodiment, or can be implemented by the display device in the above method embodiment. Fig.10 As shown, the image processing device 1000 includes:
[0185] The acquisition module 1001 is used to acquire the current frame image in the video to be displayed.
[0186] The processing module 1002 is used to:
[0187] A preset black edge detection method is used to perform black edge detection on the current frame image to obtain a detection result.
[0188] If the detection result indicates that a black border region exists, the grayscale values of the pixels in the target black border region are set to zero to obtain an image to be displayed.
[0189] If the detection result indicates that there is no black border area, the grayscale value modification process is not performed on the current frame image, and the current frame image is used as the image to be displayed.
[0190] The display module 1003 is used to display the image to be displayed.
[0191] Furthermore, the processing module 1002 is specifically configured to:
[0192] Determine a reference image corresponding to the current frame image;
[0193] According to the brightness values corresponding to the pixels in the current frame image and the brightness values corresponding to the pixels in the reference image, black edge detection is performed on the current frame image to obtain a detection result.
[0194] Furthermore, the processing module 1002 is further specifically configured to use a preset number of images adjacent to the current frame image in the video to be displayed as the reference images.
[0195] Furthermore, the processing module 1002 is further configured to:
[0196] Subtracting the brightness value corresponding to the pixel point in the current frame image from the brightness value corresponding to the pixel point in the reference image to obtain a first brightness difference value of the pixel point;
[0197] Determine whether there is a first picture pixel point whose first brightness difference does not belong to a preset first brightness threshold range in a preset first black border area and a preset second black border area; the preset first black border area is located at the upper edge and the lower edge of the display screen, and the preset second black border area is located at the left edge and the right edge of the display screen;
[0198] If the first picture pixel point exists in the preset first black border area and the preset second black border area, a detection result that no black border area exists is generated;
[0199] If the first picture pixel does not exist in the preset first black border area or the preset second black border area, the black border area of the preset first black border area and the preset second black border area, whichever does not contain the first picture pixel, is used as the target black border area;
[0200] A detection result is generated according to a relationship between the number of first picture pixel points outside the target black border area and a preset picture number threshold.
[0201] Furthermore, the processing module 1002 is further configured to:
[0202] Determine whether the number of first picture pixel points outside the target black border area reaches or exceeds a preset picture number threshold;
[0203] If the number of first picture pixel points outside the target black border area reaches or exceeds a preset picture number threshold, a detection result of the existence of a black border area is generated;
[0204] If the number of first picture pixel points outside the target black border area does not reach or exceed the preset picture number threshold, a detection result that no black border area exists is generated.
[0205] Furthermore, the processing module 1002 is further configured to:
[0206] Using a preset first black-bordered image and a preset second black-bordered image as the reference images;
[0207] Among them, the brightness value corresponding to the pixel points in the preset first black-border area in the preset first black-border image is zero, and the brightness value corresponding to the pixel points in the preset second black-border area in the preset second black-border image is zero; the preset first black-border area is located at the upper edge and the lower edge of the display screen, and the preset second black-border area is located at the left edge and the right edge of the display screen.
[0208] Furthermore, the processing module 1002 is further configured to:
[0209] Subtracting the brightness value corresponding to the pixel point in the current frame image from the brightness value corresponding to the pixel point in the preset first black-border image to obtain a second brightness difference value of the pixel point;
[0210] Subtracting the brightness value corresponding to the pixel point in the current frame image from the brightness value corresponding to the pixel point in the preset second black-border image to obtain a third brightness difference value of the pixel point;
[0211] Determine whether there is a second picture pixel point in the preset first black border area whose second brightness difference does not fall within the preset second brightness threshold range;
[0212] If there is a second picture pixel point in the preset first black border area, determining whether there is a third picture pixel point in the preset second black border area whose third brightness difference does not fall within the preset second brightness threshold range;
[0213] If there is a third picture pixel point in the preset second black border area, generating a detection result that no black border area exists;
[0214] If there is no third picture pixel point in the preset second black border area, generating a detection result according to a magnitude relationship between the number of third picture pixel points outside the preset second black border area and a preset picture number threshold;
[0215] If there is no second picture pixel point in the preset first black border area, a detection result is generated according to the relationship between the number of second picture pixel points outside the preset first black border area and a preset picture number threshold.
[0216] Furthermore, the processing module 1002 is further configured to:
[0217] The preset second black border area is used as the target black border area;
[0218] Determine whether the number of third picture pixel points outside the target black border area reaches or exceeds a preset picture number threshold;
[0219] If the number of third picture pixel points outside the target black border area reaches or exceeds a preset picture number threshold, a detection result indicating the existence of a black border area is generated;
[0220] If the number of the third picture pixel points outside the target black border area does not reach or exceed the preset picture number threshold, a detection result indicating that there is no black border area is generated.
[0221] Furthermore, the processing module 1002 is further configured to:
[0222] The preset first black border area is used as the target black border area;
[0223] Determine whether the number of second picture pixel points outside the target black border area reaches or exceeds a preset picture number threshold;
[0224] If the number of the second picture pixel points outside the target black border area reaches or exceeds the preset picture number threshold, a detection result of the existence of the black border area is generated;
[0225] If the number of the second picture pixel points outside the target black border area does not reach or exceed the preset picture number threshold, a detection result that no black border area exists is generated.
[0226] Furthermore, the processing module 1002 is also used for:
[0227] Determine whether there is a pixel point with a non-zero grayscale value in the target black border area;
[0228] If there are pixels with non-zero grayscale values in the target black border region, the grayscale values of the pixels in the target black border region are set to zero.
[0229] The image processing device provided in this embodiment is used to execute the technical solution in any of the aforementioned embodiments. Its implementation principle and technical effects are similar and will not be described in detail here.
[0230] An embodiment of the present application further provides a readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the technical solution provided in any of the aforementioned embodiments is implemented.
[0231] An embodiment of the present application also provides a computer program product, including a computer program, which is used to implement the technical solution provided by any of the aforementioned embodiments when executed by a processor.
[0232] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.
[0233] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
[0234] For ease of explanation, the above description has been made in conjunction with specific embodiments. However, the above exemplary discussion is not intended to be exhaustive or limit the embodiments to the specific forms disclosed above. Based on the above teachings, various modifications and variations can be obtained. The selection and description of the above embodiments are intended to better explain the principles and practical applications, so that those skilled in the art can better use the embodiments and various different variations of the embodiments suitable for specific use considerations.
Claims
1. A display device, characterized in that: The display device comprises: A display screen and a processor, wherein the processor is configured to: Get the current frame image in the video to be displayed; Using a preset black edge detection method, performing black edge detection on the current frame image to obtain a detection result, wherein the detection result is used to indicate whether a black edge area exists or does not exist; If the detection result indicates that a black border region exists, the grayscale values of the pixels in the target black border region are set to zero to obtain an image to be displayed; If the detection result indicates that there is no black border area, then the grayscale value modification process is not performed on the current frame image, and the current frame image is used as the image to be displayed; The display screen is configured to display the image to be displayed.
2. The display device according to claim 1, characterized in that When the processor is used to perform black edge detection on the current frame image using a preset black edge detection method to obtain a detection result, the processor is specifically used to: Determine a reference image corresponding to the current frame image; According to the brightness values corresponding to the pixels in the current frame image and the brightness values corresponding to the pixels in the reference image, black edge detection is performed on the current frame image to obtain a detection result.
3. The display device according to claim 2, characterized in that When the processor is used to determine the reference image corresponding to the current frame image, it is specifically used to: A preset number of images adjacent to the current frame image in the video to be displayed are used as the reference images.
4. The display device according to claim 3, characterized in that When the processor is used to perform black edge detection on the current frame image according to the brightness values corresponding to the pixels in the current frame image and the brightness values corresponding to the pixels in the reference image to obtain the detection result, it is specifically used to: Subtracting the brightness value corresponding to the pixel point in the current frame image from the brightness value corresponding to the pixel point in the reference image to obtain a first brightness difference value of the pixel point; Determine whether there is a first picture pixel point whose first brightness difference does not fall within a preset first brightness threshold range in the preset first black border area and the preset second black border area; The preset first black border area is located at the upper edge and the lower edge of the display screen, and the preset second black border area is located at the left edge and the right edge of the display screen; If the first picture pixel point exists in the preset first black border area and the preset second black border area, a detection result that no black border area exists is generated; If the first picture pixel does not exist in the preset first black border area or the preset second black border area, the black border area of the preset first black border area and the preset second black border area, whichever does not contain the first picture pixel, is used as the target black border area; A detection result is generated according to a relationship between the number of first picture pixel points outside the target black border area and a preset picture number threshold.
5. The display device according to claim 4, characterized in that When the processor is used to generate a detection result according to a magnitude relationship between the number of first picture pixel points outside the target black border area and a preset picture number threshold, the processor is specifically used to: Determine whether the number of first picture pixel points outside the target black border area reaches or exceeds a preset picture number threshold; If the number of first picture pixel points outside the target black border area reaches or exceeds a preset picture number threshold, a detection result of the existence of a black border area is generated; If the number of first picture pixel points outside the target black border area does not reach or exceed the preset picture number threshold, a detection result that no black border area exists is generated.
6. The display device according to claim 2, characterized in that When the processor is used to determine the reference image corresponding to the current frame image, it is specifically used to: Using a preset first black-bordered image and a preset second black-bordered image as the reference images; Among them, the brightness value corresponding to the pixel points in the preset first black-border area in the preset first black-border image is zero, and the brightness value corresponding to the pixel points in the preset second black-border area in the preset second black-border image is zero; the preset first black-border area is located at the upper edge and the lower edge of the display screen, and the preset second black-border area is located at the left edge and the right edge of the display screen.
7. The display device according to claim 6, characterized in that When the processor is used to perform black edge detection on the current frame image according to the brightness values corresponding to the pixels in the current frame image and the brightness values corresponding to the pixels in the reference image to obtain the detection result, it is specifically used to: Subtracting the brightness value corresponding to the pixel point in the current frame image from the brightness value corresponding to the pixel point in the preset first black-border image to obtain a second brightness difference value of the pixel point; Subtracting the brightness value corresponding to the pixel point in the current frame image from the brightness value corresponding to the pixel point in the preset second black-border image to obtain a third brightness difference value of the pixel point; Determine whether there is a second picture pixel point in the preset first black border area whose second brightness difference does not fall within the preset second brightness threshold range; If there is a second picture pixel point in the preset first black border area, determining whether there is a third picture pixel point in the preset second black border area whose third brightness difference does not fall within the preset second brightness threshold range; If there is a third picture pixel point in the preset second black border area, generating a detection result that no black border area exists; If there is no third picture pixel point in the preset second black border area, generating a detection result according to a magnitude relationship between the number of third picture pixel points outside the preset second black border area and a preset picture number threshold; If there is no second picture pixel point in the preset first black border area, a detection result is generated according to the relationship between the number of second picture pixel points outside the preset first black border area and a preset picture number threshold.
8. The display device according to claim 7, characterized in that When the processor is used to generate a detection result according to a magnitude relationship between the number of third picture pixel points outside the preset second black border area and a preset picture number threshold, it is specifically used to: The preset second black border area is used as the target black border area; Determine whether the number of third picture pixel points outside the target black border area reaches or exceeds a preset picture number threshold; If the number of third picture pixel points outside the target black border area reaches or exceeds a preset picture number threshold, a detection result indicating the existence of a black border area is generated; If the number of the third picture pixel points outside the target black border area does not reach or exceed the preset picture number threshold, a detection result indicating that there is no black border area is generated.
9. The display device according to claim 7, characterized in that: When the processor is used to generate a detection result according to a magnitude relationship between the number of second picture pixel points outside the preset first black border area and a preset picture number threshold, the processor is specifically used to: The preset first black border area is used as the target black border area; Determine whether the number of second picture pixel points outside the target black border area reaches or exceeds a preset picture number threshold; If the number of the second picture pixel points outside the target black border area reaches or exceeds the preset picture number threshold, a detection result of the existence of the black border area is generated; If the number of the second picture pixel points outside the target black border area does not reach or exceed the preset picture number threshold, a detection result that no black border area exists is generated.
10. The display device according to claim 1, characterized in that Before the processor is used to set the grayscale value of the pixel point in the target black border area to zero, the processor is further used to: Determine whether there is a pixel point with a non-zero grayscale value in the target black border area; Accordingly, when the processor is used to set the grayscale value of the pixel point in the existing target black border area to zero, it is specifically used to: If there are pixels with non-zero grayscale values in the target black border region, the grayscale values of the pixels in the target black border region are set to zero.
Citation Information
Patent Citations
Drive method, compensation processor and drive device of liquid crystal display device
CN101546537A
Method and device for detecting black edge
CN101841643A
Display method and display device
CN102243858A
Black edge detection method and device for video image
CN102547365A
Black edge detection method for image picture and image processing device
CN103079028A