Image ghosting detection method and device, electronic equipment and storage medium
By preprocessing and detecting area analysis of the image of AR glasses, calculating ghost distance and brightness deviation information, and generating detection results, the problem of low reliability of image ghost detection in the prior art is solved, and the accuracy of detection is improved and reliability.
Patent Information
- Application Number
- CN202411034391.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-30
- Publication Date
- 2024-11-26
AI Technical Summary
In the prior art, optical waveguide lenses of AR glasses are prone to ghosting problems during the production process, resulting in ghosting images and affecting user experience. The existing detection methods are not reliable, and it is necessary to improve the reliability of ghosting images detection.
By pre-processing the first image, a second image is obtained, a ghost detection area is determined, ghost distance and brightness deviation information is calculated, ghost detection results are generated, and detection reliability is improved.
It improves the reliability of image ghost detection, can detect ghosting problems more accurately, and ensures that the optical performance of the head-mounted display device meets the requirements.
Smart Images

Figure CN119027440A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of optical display technology, and in particular to an image ghosting detection method, device, electronic device and storage medium. Background Art
[0002] Nowadays, head-mounted display devices such as AR (Augmented Reality) glasses and VR (Virtual Reality) glasses have been applied to navigation, gaming, education, medical treatment and other fields. Taking AR glasses as an example, in the process of making the optical waveguide lenses of AR glasses, due to various factors such as uneven mold stress distribution and non-parallel surfaces, the optical waveguide lenses may have ghosting problems, which will cause the images projected by AR glasses to have ghosting problems, thus affecting the user experience. Therefore, it is particularly important to perform ghosting detection. At present, it is generally detected manually, and the reliability is not high.
[0003] Therefore, how to improve the reliability of image ghosting detection becomes an urgent problem to be solved. Summary of the invention
[0004] The present application provides an image ghosting detection method, device, electronic device and storage medium, aiming to improve the reliability of image ghosting detection.
[0005] To achieve the above object, the present application provides an image ghosting detection method, the image ghosting detection method comprising:
[0006] Performing image preprocessing on the first image to obtain a corresponding second image;
[0007] Determine at least one ghost detection area in the second image, and obtain a ghost distance corresponding to each of the ghost detection areas;
[0008] Determining brightness deviation information corresponding to each of the ghosting detection areas;
[0009] A ghosting detection result is generated according to the ghosting distance and the brightness deviation information.
[0010] In addition, to achieve the above-mentioned purpose, the present application also provides an image ghosting detection device, the image ghosting detection device comprising a memory and a processor;
[0011] The memory is used to store computer programs;
[0012] The processor is used to execute the computer program and implement the steps of the above-mentioned image ghosting detection method when executing the computer program.
[0013] In addition, to achieve the above-mentioned purpose, the present application also provides an electronic device, which includes the image ghosting detection device as described above.
[0014] In addition, to achieve the above-mentioned purpose, the present application also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above-mentioned image ghosting detection method are implemented.
[0015] The present application discloses an image ghosting detection method, device, electronic device and storage medium. The method performs image preprocessing on a first image to obtain a corresponding second image, determines at least one ghosting detection area in the second image, obtains a ghosting distance corresponding to each ghosting detection area, determines brightness deviation information corresponding to each ghosting detection area, and then generates a ghosting detection result based on the ghosting distance and the brightness deviation information, thereby improving the reliability of image ghosting detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0017] Figure 1 is a schematic flow chart of the steps of an image ghosting detection method provided in an embodiment of the present application;
[0018] Figure 2 This is a schematic flow chart of the steps of performing image preprocessing on a first image to obtain a corresponding second image, provided in an embodiment of the present application;
[0019] Figure 3 is a schematic diagram of the first image;
[0020] Figure 4 yes Figure 3 A schematic diagram of a grayscale image obtained after a nonlinear grayscale transformation of the first image in ;
[0021] Figure 5 yes Figure 4 A schematic diagram of a second image obtained after normalizing the grayscale image in;
[0022] Figure 6 is a schematic diagram of a ghosting detection area in a lateral direction provided by an embodiment of the present application;
[0023] Figure 7 is a schematic diagram of a ghosting detection area in a vertical direction provided by an embodiment of the present application;
[0024] Figure 8 is a schematic flow chart of the steps of obtaining the ghosting distance corresponding to each of the ghosting detection areas provided by an embodiment of the present application;
[0025] Fig. 9 is a schematic diagram of a target comparison area provided in an embodiment of the present application;
[0026] Fig.10 is a schematic diagram of a ghost edge position provided in an embodiment of the present application;
[0027] Fig.11 is a schematic flow chart of the steps of determining the brightness deviation information corresponding to each of the ghosting detection areas provided by an embodiment of the present application;
[0028] Fig.12 is a schematic diagram of a center position and a ghost position of a ghost detection area provided in an embodiment of the present application;
[0029] Fig.13 It is a schematic block diagram of an image ghosting detection device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0030] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0031] The flowcharts shown in the accompanying drawings are only examples and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may also be decomposed, combined or partially merged, so the actual execution order may change according to actual conditions.
[0032] It should be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in this application specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0033] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0034] The embodiments of the present application provide an image ghosting detection method, device, electronic device and storage medium, which are used to achieve the effect of improving the reliability of image ghosting detection.
[0035] See also Figure 1 , Figure 1 1 is a flow chart of an image ghosting detection method provided in an embodiment of the present application. The method can be applied to an image ghosting detection device, or to an electronic device including an image ghosting detection device. The application scenario of the method is not limited in the present application.
[0036] like Figure 1 As shown, the image ghosting detection method specifically includes steps S101 to S104.
[0037] S101. Perform image preprocessing on a first image to obtain a corresponding second image.
[0038] The first image is an image projected by a head mounted display device. In actual scenes, the ghost position in the image is generally darker than the main position. Usually, the main grayscale value can reach 30 times the ghost grayscale value. In order to reflect the ghost on the image, the first image is exemplarily a 16-bit image, and each pixel can display 65536 colors (0-65535). For example, assuming that the original image is an 8-bit image, the original image is enhanced to obtain a 16-bit first image.
[0039] In order to better perform ghost detection, the first image is preprocessed to obtain a corresponding second image. The image preprocessing includes but is not limited to grayscale transformation processing, normalization processing, etc.
[0040] In some embodiments, Figure 2 As shown, step S101 may include sub-step S1011 and sub-step S1012.
[0041] S1011, performing nonlinear grayscale transformation on the first image to obtain a grayscale image;
[0042] S1012: Normalize the grayscale image to obtain the second image.
[0043] Exemplarily, a nonlinear grayscale transformation is performed on the first image according to the following formula (1):
[0044] G = g Exponen t (1)
[0045] Among them, g is the grayscale value of the first image, G is the grayscale value of the grayscale image after the nonlinear grayscale transformation, Exponent is the exponent, and the specific value can be flexibly set according to the actual situation. There is no specific restriction in this application. For example, Exponent can take the value of 0.25, 0.5, 2, 3, 4, etc.
[0046] For example, Figure 3 As shown, Figure 3 is the first image before processing. After the first image is subjected to nonlinear grayscale transformation, the obtained grayscale image is as follows Figure 4 shown.
[0047] After obtaining the grayscale image, the grayscale image is normalized, for example, the grayscale image is normalized to 0-255 to achieve contrast stretching, so that ghosting detection can be performed more accurately.
[0048] Exemplarily, the grayscale image is normalized according to the following formula (2):
[0049]
[0050] Among them, Q is the gray value of the normalized second image, G Max is the maximum grayscale value in the grayscale image; G Min is the minimum grayscale value in the grayscale image.
[0051] For example, Figure 4 Taking the grayscale image shown in FIG. 1 as an example, after normalizing the grayscale image, the second image obtained is as follows: Figure 5 shown.
[0052] contrast Figure 3 and Figure 5 It can be clearly seen that the ghost and the subject are more clearly distinguished in the second image than in the first image, so that ghost detection can be performed more accurately.
[0053] S102: Determine at least one ghost detection area in the second image, and obtain a ghost distance corresponding to each of the ghost detection areas.
[0054] Exemplarily, at least one area of the image is pre-set as a ghost detection area and a corresponding positioning area.
[0055] For example, ghosting detection needs to detect both horizontal and vertical directions. For the horizontal direction, Figure 6 As shown, Figure 6 The two circle areas are the positioning areas, which are used for image positioning, and the five horizontal line areas are the ghost detection areas, which are used for ghost detection. Figure 7 As shown, Figure 7The two circle areas in the middle are the positioning areas, which are used for positioning, and the five vertical line areas are the ghost detection areas, which are used for ghost detection.
[0056] Based on the set positioning area, the second image can be positioned, and then based on the set ghost detection area, at least one ghost detection area at a corresponding position of the second image can be determined.
[0057] For each ghost detection area, a ghost distance corresponding to each ghost detection area is obtained through analysis and processing.
[0058] In some embodiments, Figure 8 As shown, step S102 may include sub-steps S1021 to S1023.
[0059] S1021, determining at least one target comparison area corresponding to each of the ghost detection areas;
[0060] S1022, determining a ghost edge position corresponding to each of the ghost detection areas based on the target comparison area;
[0061] S1023. Determine the ghost distance according to the ghost edge position and the center position of the ghost detection area.
[0062] Taking the processing of any ghost detection area in the second image as an example, the following describes how to determine the ghost distance corresponding to the ghost detection area. The processing of other ghost detection areas is the same and will not be described in detail.
[0063] Exemplarily, for the ghost detection area in the horizontal direction, it includes two target comparison areas at the upper side and the lower side. For the ghost detection area in the vertical direction, it includes two target comparison areas at the left side and the right side.
[0064] For example, taking the ghost detection area in the vertical direction as an example, Fig. 9 As shown, Fig. 9 The red line in Figure 9(a) is the target comparison area on the left side of the ghost detection area. Fig. 9 The red line portion in Figure 9(b) is the target comparison area on the right.
[0065] For each target comparison region, a ghost edge position corresponding to a ghost detection region within the target comparison region is determined.
[0066] In some embodiments, determining the ghost edge position corresponding to each of the ghost detection areas based on the target contrast area includes: determining a plurality of ghost edge points corresponding to the target contrast area according to the grayscale value of the target contrast area; performing straight line fitting on the plurality of ghost edge points to generate a fitting line, and using the fitting line position as the ghost edge position.
[0067] Taking any target comparison area as an example, the determination of the ghost edge position is introduced below. The processing of other target comparison areas is the same, so it will not be repeated.
[0068] For example, Fig. 9 Taking the target contrast area shown in Figure 9(a) as an example, the target contrast area is divided into multiple small rectangles with a certain width, the horizontal line is the length of the small rectangle, and the vertical line is the width of the small rectangle. The grayscale mean of each small rectangle is calculated in the vertical direction, and the mean grayscale curve corresponding to the multiple grayscale means of each small rectangle is generated. Then, the position where the first-order derivative of the mean grayscale curve is the maximum and the second-order derivative is 0 is used as the ghost edge point corresponding to each small rectangle. The same operation is performed on the next small rectangle in a loop, thereby determining a series of ghost edge points corresponding to multiple small rectangles, such as Fig. 9 The multiple red dots in the target comparison area shown in Figure 9(a) are ghost edge points.
[0069] Then, a straight line fitting is performed on the determined multiple ghost edge points, for example, a least square method is used to perform a straight line fitting on the multiple ghost edge points to generate a fitting line, and the position of the fitting line is used as the ghost edge position. Fig.10 As shown, Fig.10 The white vertical line in the target contrast area is the ghost edge position.
[0070] The distance between the determined ghost edge position and the center position of the ghost detection area is calculated, and the calculated distance is determined as the ghost distance. Fig.10 As shown, Fig.10 The distance between the middle white vertical line and the red vertical line in the white area (i.e. the center of the ghosting detection area) is the ghosting distance. The larger the ghosting distance, the more serious the ghosting is.
[0071] S103: Determine brightness deviation information corresponding to each of the ghost detection areas.
[0072] The brightness deviation information includes but is not limited to brightness ratio and brightness difference.
[0073] Exemplarily, brightness is collected by a brightness meter, and brightness deviation information corresponding to the ghosting detection area is determined based on the collected brightness.
[0074] In some embodiments, Fig.11 As shown, step S103 may include sub-steps S1031 to S1033.
[0075] S1031, obtaining a first brightness mean value corresponding to the center position of each of the ghost detection areas;
[0076] S1032, obtaining a second brightness average value corresponding to the ghost position;
[0077] S1033. Determine the brightness deviation information according to the first brightness mean value and the second brightness mean value.
[0078] The brightness is collected by a brightness meter to obtain the brightness information of the center position and the ghost position of the ghost detection area. Fig.12 As shown, Fig.12 The white area in the middle is the center of the ghost detection area, and the red rectangular area is the ghost position. Based on the brightness information of these two positions, the brightness mean corresponding to the center of the ghost detection area and the brightness mean corresponding to the ghost position are calculated. For the convenience of distinguishing descriptions, the brightness mean corresponding to the center of the ghost detection area is referred to as the first brightness mean, and the brightness mean corresponding to the ghost position is referred to as the second brightness mean.
[0079] Then, according to the first brightness average value and the second brightness average value, the brightness deviation information can be determined.
[0080] In some embodiments, determining the brightness deviation information according to the first brightness mean value and the second brightness mean value includes: calculating a ratio of the second brightness mean value to the first brightness mean value, and using the ratio as the brightness deviation information.
[0081] After obtaining the first brightness mean value and the second brightness mean value, the ratio of the second brightness mean value to the first brightness mean value is calculated, and the obtained ratio is used as brightness deviation information.
[0082] In some other embodiments, the absolute difference between the second brightness mean value and the first brightness mean value may also be calculated, and the absolute difference may be used as the brightness deviation information.
[0083] It should be noted that the determination of brightness deviation information is not limited to the above-listed methods, and no specific limitation is made in this application.
[0084] S104: Generate a ghosting detection result according to the ghosting distance and the brightness deviation information.
[0085] Through the previous steps, at least one set of ghosting distance and brightness deviation information corresponding to at least one ghosting detection area is obtained, at least one set of ghosting distance and brightness deviation information is used as a ghosting control value, and a ghosting detection result is generated according to at least one set of ghosting distance and brightness deviation information. Exemplarily, after the ghosting detection result is generated, the ghosting detection result is output, for example, the ghosting detection result is displayed on a display interface.
[0086] In some embodiments, the ghosting detection result is generated based on the ghosting distance and the brightness deviation information, including: if the ghosting distance exceeds a preset distance range, or the brightness deviation information exceeds a preset brightness deviation range, then the ghosting detection result is determined to be unqualified; if the ghosting distance is within the preset distance range, and the brightness deviation information is within the preset brightness deviation range, then the ghosting detection result is determined to be qualified.
[0087] Among them, the specific values of the preset distance range and the preset brightness deviation range can be flexibly set according to actual conditions, and are not specifically limited in this application.
[0088] For example, taking the brightness deviation information as the brightness ratio of the second brightness average to the first brightness average as an example, the preset distance range is 25-30 pixels, and the preset brightness deviation range is 3%-5%. In at least one set of ghosting distances and brightness ratios obtained, if there is a ghosting distance exceeding the range of 25-30 pixels, or there is a brightness ratio exceeding the range of 3%-5%, then the ghosting detection result is determined to be unqualified; if the ghosting distances are all within the range of 25-30 pixels, and the brightness ratios are all within the range of 3%-5%, then the ghosting detection result is determined to be qualified.
[0089] Taking the quality inspection of the head-mounted display device as an example, the first image is the image projected by the head-mounted display device. If the ghosting inspection result based on the first image is qualified, it is determined that the head-mounted display device meets the optical performance requirements, the quality inspection is qualified, and the head-mounted display device is a good product. On the contrary, if the ghosting inspection result based on the first image is unqualified, it is determined that the head-mounted display device does not meet the optical performance requirements, the quality inspection is unqualified, and the head-mounted display device is a defective product.
[0090] In the above embodiment, by performing image preprocessing on the first image, a corresponding second image is obtained, at least one ghost detection area in the second image is determined, the ghost distance corresponding to each ghost detection area is obtained, the brightness deviation information corresponding to each ghost detection area is determined, and then a ghost detection result is generated based on the ghost distance and the brightness deviation information, thereby improving the reliability of image ghost detection.
[0091] See also Fig.13 , Fig.13 It is a schematic block diagram of an image ghosting detection device provided in an embodiment of the present application. The image ghosting detection device can be configured in a head-mounted display device to execute the aforementioned image ghosting detection method.
[0092] like Fig.13As shown, the image ghosting detection device 200 may include a processor 210 and a memory 220, wherein the processor 210 and the memory 220 are connected via a bus, such as an I2C (Inter-integrated Circuit) bus.
[0093] Specifically, the processor 210 may be a micro-controller unit (MCU), a central processing unit (CPU), or a digital signal processor (DSP).
[0094] Specifically, the memory 220 may be a Flash chip, a read-only memory (ROM) disk, an optical disk, a USB flash drive, or a mobile hard disk, etc. The memory 220 stores various computer programs for the processor 210 to execute.
[0095] The processor 210 is used to run a computer program stored in the memory, and implements the following steps when executing the computer program:
[0096] Performing image preprocessing on the first image to obtain a corresponding second image;
[0097] Determine at least one ghost detection area in the second image, and obtain a ghost distance corresponding to each of the ghost detection areas;
[0098] Determining brightness deviation information corresponding to each of the ghosting detection areas;
[0099] A ghosting detection result is generated according to the ghosting distance and the brightness deviation information.
[0100] In some embodiments, when the processor 210 implements the obtaining of the ghosting distance corresponding to each of the ghosting detection areas, it is configured to implement:
[0101] Determine at least one target comparison area corresponding to each of the ghost detection areas;
[0102] Based on the target comparison area, determining a ghost edge position corresponding to each of the ghost detection areas;
[0103] The ghost distance is determined according to the ghost edge position and the center position of the ghost detection area.
[0104] In some embodiments, when the processor 210 determines the ghost edge position corresponding to each of the ghost detection areas based on the target comparison area, it is configured to implement:
[0105] Determining a plurality of ghost edge points corresponding to the target contrast area according to the grayscale value of the target contrast area;
[0106] A straight line fitting is performed on the plurality of ghost edge points to generate a fitting line, and a position of the fitting line is used as the ghost edge position.
[0107] In some embodiments, when implementing the determination of the brightness deviation information corresponding to each of the ghosting detection areas, the processor 210 is used to implement:
[0108] Obtaining a first brightness mean value corresponding to the center position of each of the ghosting detection areas;
[0109] Obtaining a second brightness mean value corresponding to the ghost position;
[0110] The brightness deviation information is determined according to the first brightness mean value and the second brightness mean value.
[0111] In some embodiments, when the processor 210 determines the brightness deviation information according to the first brightness mean value and the second brightness mean value, it is configured to implement:
[0112] A ratio of the second brightness average value to the first brightness average value is calculated, and the ratio is used as the brightness deviation information.
[0113] In some embodiments, when implementing the image preprocessing of the first image to obtain the corresponding second image, the processor 210 is used to implement:
[0114] Performing a nonlinear grayscale transformation on the first image to obtain a grayscale image;
[0115] The grayscale image is normalized to obtain the second image.
[0116] In some embodiments, when the processor 210 generates a ghosting detection result according to the ghosting distance and the brightness deviation information, it is configured to implement:
[0117] If the ghosting distance exceeds a preset distance range, or the brightness deviation information exceeds a preset brightness deviation range, determining that the ghosting detection result is unqualified;
[0118] If the ghosting distance is within the preset distance range, and the brightness deviation information is within the preset brightness deviation range, it is determined that the ghosting detection result is qualified.
[0119] The image ghosting detection device 200 can execute the image ghosting detection method provided in the embodiment of the present application, and therefore can achieve the beneficial effects that can be achieved by the image ghosting detection method provided in the embodiment of the present application. Please refer to the previous embodiment for details, which will not be repeated here.
[0120] An embodiment of the present application also provides an electronic device, the electronic device includes an image ghosting detection device, the image ghosting detection device can be Fig.13 The image ghosting detection device 200 shown in FIG. Therefore, the electronic device can achieve the beneficial effects that can be achieved by the image ghosting detection method provided in the embodiment of the present application, which are detailed in the previous embodiment and will not be repeated here.
[0121] An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the image ghosting detection method as described above are implemented.
[0122] Wherein, the computer-readable storage medium may be an internal storage unit of the image ghosting detection device or the head-mounted display device described in the aforementioned embodiment, such as a hard disk or memory of the image ghosting detection device or the head-mounted display device. The computer-readable storage medium may also be an external storage device of the image ghosting detection device or the head-mounted display device, such as a plug-in hard disk, a smart memory card (SmartMedia Card, SMC), a secure digital card (Secure Digital Card, SD Card), a flash card (Flash Card), etc. equipped on the image ghosting detection device or the head-mounted display device.
[0123] Since the computer program stored in the storage medium can execute any one of the image ghosting detection methods provided in the embodiments of the present application, the beneficial effects that can be achieved by any one of the image ghosting detection methods provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0124] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including 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 system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0125] The above description is only a specific implementation mode of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or substitutions within the technical scope disclosed in the present application, and these modifications or substitutions should be included in the protection scope of the present application.
Claims
1. A method for detecting image ghosting, It is characterized in that The image ghosting detection method comprises: Performing image preprocessing on the first image to obtain a corresponding second image; Determine at least one ghost detection area in the second image, and obtain a ghost distance corresponding to each of the ghost detection areas; Determining brightness deviation information corresponding to each of the ghosting detection areas; A ghosting detection result is generated according to the ghosting distance and the brightness deviation information.
2. The image ghosting detection method according to claim 1, It is characterized in that The obtaining of the ghosting distance corresponding to each of the ghosting detection areas comprises: Determine at least one target comparison area corresponding to each of the ghost detection areas; Based on the target comparison area, determining a ghost edge position corresponding to each of the ghost detection areas; The ghost distance is determined according to the ghost edge position and the center position of the ghost detection area.
3. The image ghosting detection method according to claim 2, It is characterized in that The determining, based on the target comparison area, a ghost edge position corresponding to each of the ghost detection areas comprises: Determining a plurality of ghost edge points corresponding to the target contrast area according to the grayscale value of the target contrast area; A straight line fitting is performed on the plurality of ghost edge points to generate a fitting line, and a position of the fitting line is used as the ghost edge position.
4. The image ghosting detection method according to claim 1, It is characterized in that The determining of brightness deviation information corresponding to each of the ghosting detection areas includes: Obtaining a first brightness mean value corresponding to the center position of each of the ghosting detection areas; Obtaining a second brightness mean value corresponding to the ghost position; The brightness deviation information is determined according to the first brightness mean value and the second brightness mean value.
5. The image ghosting detection method according to claim 4, It is characterized in that The determining the brightness deviation information according to the first brightness mean value and the second brightness mean value includes: A ratio of the second brightness average value to the first brightness average value is calculated, and the ratio is used as the brightness deviation information.
6. The image ghosting detection method according to claim 1, It is characterized in that The performing image preprocessing on the first image to obtain a corresponding second image includes: Performing a nonlinear grayscale transformation on the first image to obtain a grayscale image; The grayscale image is normalized to obtain the second image.
7. The image ghosting detection method according to any one of claims 1 to 6, It is characterized in that The generating a ghosting detection result according to the ghosting distance and the brightness deviation information includes: If the ghosting distance exceeds a preset distance range, or the brightness deviation information exceeds a preset brightness deviation range, determining that the ghosting detection result is unqualified; If the ghosting distance is within the preset distance range, and the brightness deviation information is within the preset brightness deviation range, it is determined that the ghosting detection result is qualified.
8. An image ghosting detection device, It is characterized in that The image ghosting detection device comprises a memory and a processor; The memory is used to store computer programs; The processor is used to execute the computer program and implement the steps of the image ghosting detection method according to any one of claims 1 to 7 when executing the computer program.
9. An electronic device, It is characterized in that The electronic device comprises the image ghosting detection device according to claim 8.
10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the image ghost detection method according to any one of claims 1 to 7 are implemented.
