CN117459808A - Image dead pixel correction method, device, system and electronic device - Google Patents

Image dead pixel correction method, device, system and electronic device Download PDF

Info

Publication number
CN117459808A
CN117459808A CN202311196172.6A CN202311196172A CN117459808A CN 117459808 A CN117459808 A CN 117459808A CN 202311196172 A CN202311196172 A CN 202311196172A CN 117459808 A CN117459808 A CN 117459808A
Authority
CN
China
Prior art keywords
correction
image
dead
dead pixel
detected
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311196172.6A
Other languages
Chinese (zh)
Inventor
乔冠文
楼涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Huagan Technology Co ltd
Original Assignee
Zhejiang Huagan Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Huagan Technology Co ltd filed Critical Zhejiang Huagan Technology Co ltd
Priority to CN202311196172.6A priority Critical patent/CN117459808A/en
Publication of CN117459808A publication Critical patent/CN117459808A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/20Cameras or camera modules comprising electronic image sensors; Control thereof for generating image signals from infrared radiation only
    • H04N23/23Cameras or camera modules comprising electronic image sensors; Control thereof for generating image signals from infrared radiation only from thermal infrared radiation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N25/00Circuitry of solid-state image sensors [SSIS]; Control thereof
    • H04N25/60Noise processing, e.g. detecting, correcting, reducing or removing noise
    • H04N25/68Noise processing, e.g. detecting, correcting, reducing or removing noise applied to defects

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Toxicology (AREA)
  • Studio Devices (AREA)

Abstract

The application relates to an image dead point correction method, an image dead point correction device, an image dead point correction system and an electronic device, wherein the method comprises the following steps: acquiring an image to be detected acquired by the thermal imaging equipment; performing first dead pixel correction processing on the image to be detected to obtain an initial dead pixel correction result; and under the condition that the initial dead point correction result indicates that the dead point correction deviation exists in the image to be detected, performing second dead point correction processing on the image to be detected based on the dead point correction deviation to obtain a target dead point correction result of the image to be detected. According to the method and the device, the problem of low accuracy of image dead point correction of the thermal imaging equipment is solved, and an accurate image correction method is achieved.

Description

Image dead pixel correction method, device, system and electronic device
Technical Field
The present disclosure relates to the field of image dead pixel correction, and in particular, to a method, an apparatus, a system, and an electronic device for correcting an image dead pixel.
Background
The thermal imaging technology is to collect thermal radiation energy of a measured target by using a thermal imaging sensor, and convert the thermal radiation energy into a visual image by using a wavelength conversion technology. The image is damaged due to factors such as the immaturity of the manufacturing industry of the thermal imaging device or errors in the signal conversion process. The dynamic dead pixel is usually slowly emerging due to different use scenes and temperatures, and the dynamic dead pixel correction is required to be carried out on the image in real time. In the related art, in the process of correcting the dead pixel of the image of the thermal imaging device, especially the thermal imaging handheld device, since the visual interface and the operable interface of the handheld device are usually small to ensure the portability of the handheld device, the accuracy of correcting the dynamic dead pixel of the image of the thermal imaging handheld device is easily affected.
At present, no effective solution is proposed for the problem of low accuracy of image dead point correction of a thermal imaging device in the related art.
Disclosure of Invention
The embodiment of the application provides an image dead point correction method, device, system and electronic device, which are used for at least solving the problem of low accuracy of image dead point correction of thermal imaging equipment in the related technology.
In a first aspect, an embodiment of the present application provides an image dead point correction method, which is applied to a thermal imaging device, and includes:
acquiring an image to be detected acquired by the thermal imaging equipment;
performing first dead pixel correction processing on the image to be detected to obtain an initial dead pixel correction result;
and under the condition that the initial dead pixel correction result indicates that the dead pixel correction deviation exists in the image to be detected, performing second dead pixel correction processing on the image to be detected based on the dead pixel correction deviation to obtain a target dead pixel correction result of the image to be detected.
In some of these embodiments, the dead pixel correction mode of the thermal imaging device includes a program correction mode and a standard correction mode; the method further comprises the steps of:
under the program correction mode, performing first dead pixel correction processing on the image to be detected to obtain the initial dead pixel correction result;
Switching the program correction mode to the standard correction mode when the initial dead point correction result indicates that the dead point correction deviation exists; and in the standard correction mode, performing second dead point correction processing on the image to be detected based on the dead point correction deviation to obtain the target dead point correction result.
In some of these embodiments, the method further comprises:
respectively acquiring a first dead pixel correction result of the image to be detected in the program correction mode and a second dead pixel correction result of the image to be detected in the standard correction mode;
switching the program correction mode to the standard correction mode under the condition that the first dead pixel correction result and the second dead pixel correction result are detected to be consistent; or,
obtaining a plurality of dead pixel correction results of the image to be detected in the program correction mode; and switching the program correction mode to the standard correction mode in the case that the plurality of bad point correction results indicate that the detected bad points are the same.
In some embodiments, the performing a second dead point correction process on the image to be detected based on the dead point correction deviation to obtain a target dead point correction result of the image to be detected includes:
Obtaining dead pixel position information aiming at the dead pixel correction deviation, and determining a secondary detection area in the image to be detected according to the dead pixel position information;
and performing second dead point correction processing on the secondary detection area to obtain a dead point correction result.
In some embodiments, the performing a second dead point correction process on the secondary detection area to obtain the dead point correction result includes:
calculating an image gray value in the secondary detection area and a pixel gray value of each pixel in the secondary detection area, and determining whether to perform area reduction processing on the secondary detection area according to a comparison result of the image gray value and the pixel gray value;
under the condition that the secondary detection area is determined to be subjected to area reduction processing, carrying out area reduction processing on the secondary detection area based on the dead pixel position information, and obtaining a new secondary detection area;
and performing second dead point correction processing on the new secondary detection area to obtain a dead point correction result.
In some of these embodiments, the method further comprises:
generating a correction result to be stored according to the initial dead pixel correction result and the target dead pixel correction result;
The correction result to be stored is respectively sent to a first storage space and a second storage space for storage, and first bad point storage data in the first storage space and second bad point storage data in the second storage space are obtained;
the first bad point storage data are used for being provided for the thermal imaging equipment, the second bad point storage data are used for being provided for the terminal equipment, and the terminal equipment is connected with the thermal imaging equipment.
In some of these embodiments, the method further comprises:
obtaining error point identification information input by a user based on the first bad point storage data or the second bad point storage data;
and acquiring error point position information based on the error point identification information, and performing bad point data deletion processing on the first bad point storage data or the second bad point storage data based on the position of the error point to obtain new bad point storage data.
In a second aspect, an embodiment of the present application provides an image dead pixel correction apparatus, applied to a thermal imaging device, including: the device comprises an acquisition module, a first correction module and a second correction module;
the acquisition module is used for acquiring an image to be detected acquired by the thermal imaging equipment;
The first correction module is used for carrying out first dead pixel correction processing on the image to be detected to obtain an initial dead pixel correction result;
the second correction module is configured to perform a second dead point correction process on the image to be detected based on the dead point correction deviation when the initial dead point correction result indicates that the dead point correction deviation exists in the image to be detected, so as to obtain a target dead point correction result of the image to be detected.
In a third aspect, an embodiment of the present application provides an image dead pixel correction system, including: a thermal imaging apparatus and an image dead pixel correction device according to the second aspect; wherein the image dead pixel correction device is integrated with the thermal imaging equipment; and/or the image dead point correction device is integrated in a terminal device, and the terminal device is connected with the thermal imaging device.
In a fourth aspect, an embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor, where the processor executes the computer program to implement the image dead pixel correction method according to the first aspect.
Compared with the related art, the image dead pixel correction method, device, system and electronic device provided by the embodiment of the application are used for acquiring the image to be detected acquired by the thermal imaging equipment; performing first dead pixel correction processing on the image to be detected to obtain an initial dead pixel correction result; and under the condition that the initial dead point correction result indicates that the dead point correction deviation exists in the image to be detected, performing second dead point correction processing on the image to be detected based on the dead point correction deviation to obtain a target dead point correction result of the image to be detected, solving the problem of low accuracy of image dead point correction of the thermal imaging equipment and realizing an accurate image correction method.
The details of one or more embodiments of the application are set forth in the accompanying drawings and the description below to provide a more thorough understanding of the other features, objects, and advantages of the application.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute an undue limitation to the application. In the drawings:
FIG. 1 is an application environment diagram of an image dead pixel correction method according to an embodiment of the present application;
FIG. 2 is a flow chart of an image dead pixel correction method according to an embodiment of the present application;
FIG. 3 is a flow chart of an image dead pixel correction method according to a preferred embodiment of the present application;
fig. 4 is a block diagram of an image dead pixel correction apparatus according to an embodiment of the present application;
FIG. 5 is a block diagram of an image dead pixel correction system according to an embodiment of the present application;
fig. 6 is a block diagram of the interior of a computer device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described and illustrated below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden on the person of ordinary skill in the art based on the embodiments provided herein, are intended to be within the scope of the present application. Moreover, it should be appreciated that while such a development effort might be complex and lengthy, it would nevertheless be a routine undertaking of design, fabrication, or manufacture for those of ordinary skill having the benefit of this disclosure, and thus should not be construed as having the benefit of this disclosure.
Reference in the specification to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is to be expressly and implicitly understood by those of ordinary skill in the art that the embodiments described herein can be combined with other embodiments without conflict.
Unless defined otherwise, technical or scientific terms used herein should be given the ordinary meaning as understood by one of ordinary skill in the art to which this application belongs. Reference to "a," "an," "the," and similar terms herein do not denote a limitation of quantity, but rather denote the singular or plural. The terms "comprising," "including," "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, article, or apparatus that comprises a list of steps or modules (elements) is not limited to only those steps or elements but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus. The terms "connected," "coupled," and the like in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The term "plurality" as used herein means greater than or equal to two. "and/or" describes an association relationship of an association object, meaning that there may be three relationships, e.g., "a and/or B" may mean: a exists alone, A and B exist together, and B exists alone. The terms "first," "second," "third," and the like, as used herein, are merely distinguishing between similar objects and not representing a particular ordering of objects.
The image dead point correction method provided by the implementation can be applied to an application environment shown in fig. 1. The application environment may include a thermal imaging device 102 and a terminal device 104. Wherein the terminal device 104 communicates with the thermal imaging device 102 via a network. The data storage system may store data that the terminal device 104 needs to process. The data storage system may be integrated on the terminal device 104 or may be located on the cloud or other network server. In an alternative embodiment, the terminal device 104 acquires an image to be detected acquired by the thermal imaging device 102, and performs a first dead pixel correction process on the image to be detected to obtain an initial dead pixel correction result; if the initial dead pixel correction result indicates that the dead pixel correction deviation exists in the image to be detected, the terminal device 104 performs second dead pixel correction processing on the image to be detected based on the dead pixel correction deviation, so as to obtain a target dead pixel correction result of the image to be detected. The terminal device 104 may be, but is not limited to, various personal computers, notebook computers, and tablet computers.
It should be noted that, the execution body of the embodiment of the present application may be a thermal imaging device or a terminal device, or the like, that is, the execution body may be various, and the execution body may be set, used, or changed as needed. In addition, a third party application may also be provided to assist the executing entity in executing the embodiment.
The embodiment provides an image dead pixel correction method, and fig. 2 is a flowchart of an image dead pixel correction method according to an embodiment of the application, as shown in fig. 2, where the flowchart includes the following steps:
step S210, an image to be detected acquired by the thermal imaging device is acquired.
The image to be detected is a thermal imaging image which is acquired by thermal imaging equipment in real time and is subjected to dead pixel detection and dead pixel correction processing. In particular, the thermal imaging device may be a handheld device.
Step S220, performing first dead point correction processing on the image to be detected to obtain an initial dead point correction result.
The first dead pixel correction process can be performed on the image to be detected by an automatic correction algorithm or a manual correction algorithm, and the initial dead pixel correction result is obtained. Because the visual interface or the operable interface is smaller in the thermal imaging device, especially the thermal imaging handheld device, after the first dead pixel correction processing is performed through the steps, an uncorrected dead pixel may still exist in the image, or a new dead pixel may appear, that is, the initial dead pixel correction result may be determined according to the dead pixel data or the dead pixel coordinates in the image to be detected. The initial dead pixel correction result comprises corrected dead pixel data or dead pixel coordinates, the image to be detected after the first dead pixel correction processing and other data.
Step S230, when the initial dead point correction result indicates that the dead point correction deviation exists in the image to be detected, performing a second dead point correction process on the image to be detected based on the dead point correction deviation, so as to obtain a target dead point correction result of the image to be detected.
The dead pixel correction deviation refers to deviation data caused by dead pixel deviation caused by dead pixel identification errors during the first dead pixel correction processing, or new dead pixels in the image to be detected after the first dead pixel correction processing is completed. That is, after the first dead pixel correction processing is performed through the steps, if it is detected that an uncorrected dead pixel still exists in the image to be detected based on the initial dead pixel correction result, at this time, the second dead pixel correction processing may be performed on the image to be detected according to the dead pixel correction deviation corresponding to the uncorrected dead pixel. And the second dead pixel correction process may include at least one correction process flow until all dead pixels in the image to be detected are corrected, so as to obtain the target dead pixel correction result. The target dead pixel correction result comprises corrected dead pixel data or coordinates, the image to be detected after the second dead pixel correction processing and other data. It is understood that the dead point correction method in the second dead point correction process may be the same as or different from the dead point correction method in the first dead point correction process.
In the related art, in order to ensure portability of a thermal imaging device, particularly a thermal imaging handheld device, in a dynamic dead point correction process for the thermal imaging device, correction is generally performed through devices such as a key or a button of the thermal imaging device, and a visual interface and an operable interface of the thermal imaging device need to be very small, so that image dead point correction accuracy of the thermal imaging device is easily caused to be low; in the embodiment of the present application, after the first dead point correction processing is performed on the image to be detected through the steps S210 to S230, when the obtained initial dead point correction result indicates that the dead point correction deviation exists in the image to be detected, the second dead point correction processing is performed on the image to be detected based on the dead point correction deviation, so that the situation that the dead point is easily biased due to the small display screen in the thermal imaging device is avoided, the problem of low accuracy of image dead point correction of the thermal imaging device is solved, and an accurate and efficient image dead point correction method is realized.
In some of these embodiments, the dead pixel correction mode of the thermal imaging apparatus described above includes a program correction mode and a standard correction mode; the program correction mode refers to a mode of automatically detecting and correcting dead spots of an image to be detected by a software program deployed on thermal imaging equipment or terminal equipment; the standard correction mode is a mode in which a user sets the dead point coordinates through a device display interface and enters a dead point correction program based on the dead point coordinates to perform dead point correction.
The image dead pixel correction method comprises the following steps: and under the program correction mode, performing first dead point correction processing on the image to be detected to obtain the initial dead point correction result. When the automatic dead point correction is carried out on the image to be detected in the program correction mode, the gray value of the image collected by the handheld device can be influenced under different scenes due to the thermal imaging detection characteristics of the thermal imaging device, so that in the course of the program correction mode, a lens cover on the thermal imaging device or a uniform surface facing the object to be detected should be closed for operation, the false detection rate is reduced, and the pixel points with the gray value change caused by the scenes are prevented from being mistakenly identified as dead points for processing. Specifically, when the first dead pixel correction processing is performed on the image to be detected, a program correction mode can be preferentially adopted generally, so that the problem that dynamic dead pixels are difficult to find in time when a user manually searches dynamic dead pixels in the image at the beginning of dead pixel correction is avoided, and the efficiency of the first dead pixel correction processing process is improved. And then in the program correction mode, the software program deployed in the thermal imaging equipment or the terminal equipment carries out automatic dead point detection and identification on the image to be detected, and the initial dead point correction result is obtained.
Then, if the initial dead point correction result indicates that the dead point correction deviation exists, the program correction mode is switched to the standard correction mode; and in the standard correction mode, performing second dead point correction processing on the image to be detected based on the dead point correction deviation to obtain the target dead point correction result. In this embodiment, when it is detected that there is a dead point correction deviation in the initial dead point correction result through the above steps, the program correction mode may be automatically switched to the standard correction mode according to a preset priority setting in which the priority of the standard correction mode is higher than that of the program correction mode; then, in the standard correction mode, the dead point correction deviation can be displayed to a user in a visual form such as a prompt box through a display interface of the thermal imaging equipment or the terminal equipment, a point to be corrected manually input by the user based on the dead point correction deviation is received, and further, second dead point correction processing is performed on the image to be detected based on the input point to be corrected, so that the target processing result is obtained.
It is to be understood that, in another embodiment, when the foregoing initial dead point correction result indicates that there is a dead point correction deviation, the correction mode may not be switched first, that is, the second dead point correction process is still performed in the program correction mode, or in the case that a mode switching instruction input by the user is detected, the program correction mode is switched to the standard correction mode in response to the detected mode switching instruction, and the second dead point correction process is performed.
Through the embodiment, on the thermal imaging equipment, which is a visual interface and an equipment with a smaller operability interface, the image dead pixel correction is performed in a mode of comprehensively judging and correcting a plurality of dead pixel correction modes of a program correction mode and a standard correction mode, so that the dead pixel in the image can be timely corrected even if the dead pixel is biased, and the image dead pixel correction precision of the thermal imaging equipment is effectively improved on the premise of saving algorithm resources.
In some embodiments, the switching the program correction mode to the standard correction mode includes the following steps:
respectively acquiring a first dead pixel correction result of the image to be detected in the program correction mode and a second dead pixel correction result of the image to be detected in the standard correction mode; and switching the program correction mode to the standard correction mode under the condition that the first dead point correction result and the second dead point correction result are detected to be consistent.
Specifically, when the initial dead point correction result indicates that the dead point correction deviation exists, that is, the second dead point correction processing is detected to be needed, the dead point detection results of the image to be detected in the program correction mode and the standard correction mode are respectively obtained, if the first dead point correction result is detected to be consistent with the second dead point correction result, that is, the same dead point is detected in the program correction mode and the hand standard correction mode, the phenomenon that data overlap occurs in the dead point detection process at this time is indicated, and in order to avoid affecting the dead point correction efficiency, the program correction mode can be automatically switched to the standard correction mode in response to the detected dead point consistency result, and the second dead point correction processing can be continuously performed on the image to be detected in the standard correction mode.
Or, obtaining a plurality of dead pixel correction results of the image to be detected in the program correction mode; and switching the program correction mode to the standard correction mode in the case where the plurality of defective pixel correction results indicate that the detected defective pixels are identical.
If the same dead pixel is detected continuously and repeatedly in the program correction mode, it is indicated that the dead pixel cannot be corrected when only the program correction mode is used at this time. It can be understood that the threshold of the number of times of the dead pixel detection result of the image to be detected in the same program correction mode may be set in advance, for example, may be set 3 times, that is, when the same dead pixel is detected for the image to be detected in the program correction mode continuously 3 times, the standard correction mode is automatically switched.
Through the embodiment, when the same dead pixel is detected in different modes or is detected continuously for many times in the program correction mode, the dead pixel correction mode of thermal imaging is adaptively switched to the standard correction mode, so that the condition that the dead pixel correction cannot be carried out when the program correction mode is used for correction is effectively avoided, the problems of data overlapping and the like in the continuous dead pixel detection process are also prevented, and the accuracy and the efficiency of image dead pixel correction are improved.
In some embodiments, the performing a second dead point correction process on the image to be detected based on the dead point correction deviation to obtain a target dead point correction result of the image to be detected includes the following steps:
step S231, obtaining the dead pixel position information of the dead pixel correction deviation, and determining the secondary detection area in the image to be detected according to the dead pixel position information.
In this embodiment, when it is detected that there is a dead pixel correction deviation, a second dead pixel correction process may be performed on the image to be detected in the standard correction mode. Specifically, the user manually inputs coordinates of a new dead pixel or an uncorrected dead pixel in the image to be detected to the thermal imaging equipment based on the dead pixel correction deviation, so as to obtain the dead pixel position information. Then, based on the dead pixel position information, determining a secondary detection area containing new dead pixels or uncorrected dead pixels from the image to be detected; for example, a rectangular frame with a size of n×m may be established centering on the position information of the dead pixel in the image to be detected, and the rectangular frame may be used as the secondary detection area.
Step S232, performing second dead point correction processing on the secondary detection area to obtain the target dead point correction result.
After determining a secondary detection area in an image to be detected, calculating an average gray value in the secondary detection area, comparing all pixel points in the secondary detection area with the average gray value in sequence, if the current pixel point gray value is detected to be larger than the average gray value, considering the pixel point as a bad point, and correcting the identified bad point by using a bad point correction algorithm to obtain the target bad point correction result.
Through the steps, the secondary detection area in the image to be detected is determined according to the dead point position information, and the second dead point correction processing is carried out on the secondary detection area, so that the problems of low correction efficiency and large correction error caused by dead point correction on the whole image to be detected in the second dead point correction processing process can be avoided, and the image dead point correction efficiency and accuracy are effectively improved.
In some embodiments, the second dead point correction processing is performed on the secondary detection area to obtain the dead point correction result, including the following steps:
and calculating the image gray value in the secondary detection area and the pixel gray value of each pixel in the secondary detection area, and determining whether to perform area reduction processing on the secondary detection area according to the comparison result of the image gray value and the pixel gray value. The image gray value refers to an average value of gray values of all pixel points in the secondary detection area. Specifically, comparing all pixel gray values in the secondary detection area with the image gray values, if detecting that the difference between the pixel gray values and the image gray values is greater than the preset difference threshold, the secondary detection area is greatly affected by the scene, and in order to further improve the dead pixel correction precision, the secondary detection area can be further subjected to area reduction processing. It can be understood that the difference threshold may be preset by a worker, and the difference threshold does not open a modification function to the user, so as to prevent the user from arbitrarily modifying the bad point correction abnormality caused by the difference threshold, thereby causing the image abnormality.
Under the condition that the secondary detection area is determined to be subjected to area reduction processing, carrying out area reduction processing on the secondary detection area based on the dead pixel position information, and obtaining a new secondary detection area; wherein the new secondary detection area still contains dead pixels corresponding to the dead pixel position information. For example, when the secondary detection area is an n×m rectangular frame set up around the dead point position information, the size of the rectangular frame set up around the dead point position information may be (1/2) n× (1/2) M as the new secondary detection area by doubling the n×m rectangular frame around the dead point position information when performing area reduction processing on the secondary detection area.
And then, performing second dead point correction processing on the new secondary detection area to obtain a target dead point correction result. Further, in the second dead pixel correction process for the new secondary detection area, the image gray value and the pixel gray value may be calculated for the new secondary detection area through the above steps, so as to determine whether the secondary detection area needs to perform area reduction processing, until the current dead pixel correction result indicates that no uncorrected dead pixel exists in the image to be detected, or no new dead pixel exists, so as to obtain the target dead pixel correction result.
Through the embodiment, whether the secondary detection area needs to be subjected to area reduction processing is detected based on the image gray value and the pixel gray value in the secondary detection area, so that the influence of a scene on image bad point detection is effectively reduced, and the accuracy of image bad point correction is improved.
In some embodiments, the image dead pixel correction method further includes the following steps:
step S241, generating a correction result to be stored according to the initial dead point correction result and the target dead point correction result.
Wherein, the multiple dead point correction results can be stored as the correction results to be stored; further, the bad point correction results can be classified and stored according to different batches, so that the staff or the user can inquire.
Step S242, the correction result to be stored is sent to a first storage space and a second storage space for storage respectively, and first bad point storage data in the first storage space and second bad point storage data in the second storage space are obtained; the first bad point storage data is used for being provided for the thermal imaging equipment, the second bad point storage data is used for being provided for the terminal equipment, and the terminal equipment is connected with the thermal imaging equipment.
Specifically, through different command codes between the terminal equipment and the thermal imaging equipment, data such as dead pixel coordinates are stored in different spaces, so that the terminal equipment and the thermal imaging equipment can perform dead correction processing on an image to be detected, and the data processing between the terminal equipment and the thermal imaging equipment is ensured not to be affected. Further, the dead pixel data in the first storage space and the dead pixel data in the second storage space can be hidden and isolated for a user, so that the user does not need to know specific dead pixel data and only pays attention to the dead pixel condition in the image in the use process of the thermal imaging equipment, and the complexity of data interaction is saved and the operation complexity of the user can be reduced.
Through the steps S241 to S242, the data isolation storage mode on different devices in the dead point correction processing process is realized, the problem of low accuracy of image dead point correction caused by the data interaction influence among multiple devices is avoided, and the accuracy of image dead point correction is effectively improved.
In some embodiments, the image dead pixel correction method further includes the following steps: acquiring error point identification information input by a user based on the first bad point storage data or the second bad point storage data; and acquiring error point position information based on the error point identification information, and performing bad point data deletion processing on the first bad point storage data or the second bad point storage data based on the position of the error point to obtain new bad point storage data. Specifically, a user can mark a dead pixel in a misplaced position in an image to be detected through first dead pixel storage data or second dead pixel storage data displayed by thermal imaging equipment or terminal equipment, and the equipment obtains a dead pixel marking instruction input by the user to obtain the error pixel mark information, and then deletes the previous dead pixel storage data according to the correspondingly generated error pixel position information. Furthermore, the first storage space and the second storage space can both support the storage and the deletion of the bad points, so that the points marked with the wrong positions can be deleted in time in the use process of the thermal imaging equipment, the bad points marked in the production stage in the first storage space can not be influenced, and the problem that the processed bad points appear again in the use process is prevented.
The embodiments of the present application are described and illustrated below by means of preferred embodiments. Fig. 3 is a preferred flowchart of an image dead pixel correction method according to an embodiment of the present application, as shown in fig. 3, the flowchart includes the following steps:
step S301, the image dead point correction flow is started. Specifically, the dead point correction flow in this embodiment adds a standard correction mode and a program correction mode which can be applied to the thermal imaging device on the basis that dead point correction can be performed only by means of the terminal device, and the two modes can be used independently or alternatively.
Step S302, entering a standard correction mode, and carrying out coordinate selection on the image to be detected by a user through guidance on a display interface of the thermal imaging device.
Step S303, based on the coordinate point selected by the user in the step as the center, establishing a secondary detection area in the image to be detected, performing secondary detection on the secondary detection area, and determining whether to reduce the range of the secondary detection area according to the secondary detection result.
Step S304, performing dead point correction processing on the secondary detection area through a dead point correction algorithm to obtain a corrected image, and sending the corrected image to a display interface of the thermal imaging equipment for display so that a user can observe the image effect.
In step S305, if the image effect is determined to be that no dead pixel exists in the image in step S304, all dead pixel information is stored. If the step S304 determines that the image effect is still bad, automatically judging whether a real bad pixel exists in the secondary detection area; if the coordinates do not exist, prompting that no dead pixel exists in the area range, and not reserving the coordinates issued by the user at the moment; if so, the dead pixel information is reserved.
Step S306, entering a program correction mode, and prompting a user to close a lens cover of the thermal imaging device through a display interface of the thermal imaging device.
Step S307, triggering and enabling, and entering a dead point correction algorithm processing flow.
Step S308, after the dead point correction processing is finished, prompting the program to finish correction through a display interface, and sending the corrected image to the display interface for display so that a user can observe the image effect.
Step S309, if the image effect is determined to be no dead pixel in the image in step S308, all dead pixel information is stored. If it is determined in step S308 that the image effect is still bad, the current state is reset, and then the standard correction mode may be selected to perform correction, or the program correction threshold may be corrected and the program correction may be performed again by returning to step S307.
It should be noted that the steps illustrated in the above-described flow or flow diagrams of the figures may be performed in a computer system, such as a set of computer-executable instructions, and that, although a logical order is illustrated in the flow diagrams, in some cases, the steps illustrated or described may be performed in an order other than that illustrated herein.
The embodiment also provides an image dead point correction device, which is applied to a thermal imaging device, and the device is used for implementing the above embodiment and the preferred implementation, and is not described again. As used below, the terms "module," "unit," "sub-unit," and the like may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
Fig. 4 is a block diagram of an image dead pixel correction apparatus according to an embodiment of the present application, as shown in fig. 4, the apparatus includes: an acquisition module 42, a first correction module 44, and a second correction module 46; the acquiring module 42 is configured to acquire an image to be detected acquired by the thermal imaging device; the first correction module 44 is configured to perform a first dead pixel correction process on the image to be detected, so as to obtain an initial dead pixel correction result; the second correction module 46 is configured to perform a second dead point correction process on the image to be detected based on the dead point correction deviation to obtain a target dead point correction result of the image to be detected, when the initial dead point correction result indicates that the dead point correction deviation exists in the image to be detected.
Through the above embodiment, after the first correction module 44 performs the first dead point correction processing on the image to be detected, when the obtained initial dead point correction result indicates that there is a dead point correction deviation in the image to be detected, the second correction module 46 performs the second dead point correction processing on the image to be detected based on the dead point correction deviation, thereby avoiding the situation that the dead point is easily biased due to small display screen in the thermal imaging device, solving the problem of low accuracy of image dead point correction of the thermal imaging device, and realizing an accurate and efficient image dead point correction device.
In some embodiments, the image dead pixel correction device further includes a storage module; the storage module is used for generating a correction result to be stored according to the initial dead point correction result and the target dead point correction result; the correction result to be stored is respectively sent to a first storage space and a second storage space for storage, and first bad point storage data in the first storage space and second bad point storage data in the second storage space are obtained; the first bad point storage data is used for being provided for the thermal imaging equipment, the second bad point storage data is used for being provided for the terminal equipment, and the terminal equipment is connected with the thermal imaging equipment.
In some embodiments, the image dead pixel correction device further includes a data deletion module; the data deleting module is used for acquiring error point identification information input by a user based on the first bad point storage data or the second bad point storage data; the data deleting module acquires the error point position information based on the error point identification information, and performs the bad point data deleting process on the first bad point storage data or the second bad point storage data based on the position of the error point, so as to obtain new bad point storage data.
The above-described respective modules may be functional modules or program modules, and may be implemented by software or hardware. For modules implemented in hardware, the various modules described above may be located in the same processor; or the above modules may be located in different processors in any combination.
The present embodiment also provides an image dead-spot correction system, and fig. 5 is a block diagram of an image dead-spot correction system according to an embodiment of the present application, where the system includes a thermal imaging device 102, and an image dead-spot correction apparatus 52 according to any one of the embodiments above; wherein the image dead pixel correction device 52 is integrated with the thermal imaging apparatus 102; and/or the image dead pixel correction device 52 is integrated in a terminal device, which is connected to the thermal imaging device 52. That is, in the present embodiment, the image dead point correction flow in any of the above-described method embodiments may be performed by the terminal device, or the above-described image dead point correction flow may be performed by the thermal imaging device 52.
In some of these embodiments, a computer device is provided, which may be a server, and fig. 6 is a block diagram of an interior of the computer device according to an embodiment of the present application, as shown in fig. 6. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is used for storing the target dead pixel correction result. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program, when executed by a processor, implements the image dead point correction method described above.
It will be appreciated by those skilled in the art that the structure shown in fig. 6 is merely a block diagram of some of the structures associated with the present application and is not limiting of the computer device to which the present application may be applied, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
The present embodiment also provides an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, where the transmission device is connected to the processor, and the input/output device is connected to the processor.
Alternatively, in the present embodiment, the above-described processor may be configured to execute the following steps by a computer program:
s1, acquiring an image to be detected acquired by the thermal imaging equipment.
S2, performing first dead pixel correction processing on the image to be detected to obtain an initial dead pixel correction result.
And S3, under the condition that the initial dead point correction result indicates that the dead point correction deviation exists in the image to be detected, performing second dead point correction processing on the image to be detected based on the dead point correction deviation, and obtaining a target dead point correction result of the image to be detected.
It should be noted that, specific examples in this embodiment may refer to examples described in the foregoing embodiments and alternative implementations, and this embodiment is not repeated herein.
In addition, in combination with the image dead point correction method in the above embodiment, the embodiment of the application may provide a storage medium to be implemented. The storage medium has a computer program stored thereon; the computer program, when executed by a processor, implements any one of the image dead-spot correction methods of the above embodiments.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the various embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
It should be understood by those skilled in the art that the technical features of the above-described embodiments may be combined in any manner, and for brevity, all of the possible combinations of the technical features of the above-described embodiments are not described, however, they should be considered as being within the scope of the description provided herein, as long as there is no contradiction between the combinations of the technical features.
The above examples merely represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the invention. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application is to be determined by the claims appended hereto.

Claims (10)

1. An image dead pixel correction method, characterized by being applied to a thermal imaging apparatus, comprising:
acquiring an image to be detected acquired by the thermal imaging equipment;
performing first dead pixel correction processing on the image to be detected to obtain an initial dead pixel correction result;
and under the condition that the initial dead pixel correction result indicates that the dead pixel correction deviation exists in the image to be detected, performing second dead pixel correction processing on the image to be detected based on the dead pixel correction deviation to obtain a target dead pixel correction result of the image to be detected.
2. The image dead pixel correction method according to claim 1, wherein the dead pixel correction mode of the thermal imaging apparatus includes a program correction mode and a standard correction mode; the method further comprises the steps of:
under the program correction mode, performing first dead pixel correction processing on the image to be detected to obtain the initial dead pixel correction result;
switching the program correction mode to the standard correction mode when the initial dead point correction result indicates that the dead point correction deviation exists; and in the standard correction mode, performing second dead point correction processing on the image to be detected based on the dead point correction deviation to obtain the target dead point correction result.
3. The image dead pixel correction method according to claim 2, wherein said switching the program correction mode to the standard correction mode includes:
respectively acquiring a first dead pixel correction result of the image to be detected in the program correction mode and a second dead pixel correction result of the image to be detected in the standard correction mode;
switching the program correction mode to the standard correction mode under the condition that the first dead pixel correction result and the second dead pixel correction result are detected to be consistent; or,
Obtaining a plurality of dead pixel correction results of the image to be detected in the program correction mode; and switching the program correction mode to the standard correction mode in the case that the plurality of bad point correction results indicate that the detected bad points are the same.
4. The method for correcting a dead pixel of an image according to claim 1, wherein the performing a second dead pixel correction process on the image to be detected based on the dead pixel correction deviation to obtain a target dead pixel correction result of the image to be detected comprises:
obtaining dead pixel position information aiming at the dead pixel correction deviation, and determining a secondary detection area in the image to be detected according to the dead pixel position information;
and performing second dead point correction processing on the secondary detection area to obtain the target dead point correction result.
5. The method for correcting a dead pixel of an image according to claim 4, wherein said performing a second dead pixel correction process on said secondary detection area to obtain said target dead pixel correction result comprises:
calculating an image gray value in the secondary detection area and a pixel gray value of each pixel in the secondary detection area, and determining whether to perform area reduction processing on the secondary detection area according to a comparison result of the image gray value and the pixel gray value;
Under the condition that the secondary detection area is determined to be subjected to area reduction processing, carrying out area reduction processing on the secondary detection area based on the dead pixel position information, and obtaining a new secondary detection area;
and performing second dead point correction processing on the new secondary detection area to obtain the target dead point correction result.
6. The image dead pixel correction method according to any one of claims 1 to 5, characterized in that the method further comprises:
generating a correction result to be stored according to the initial dead pixel correction result and the target dead pixel correction result;
the correction result to be stored is respectively sent to a first storage space and a second storage space for storage, and first bad point storage data in the first storage space and second bad point storage data in the second storage space are obtained;
the first bad point storage data are used for being provided for the thermal imaging equipment, the second bad point storage data are used for being provided for the terminal equipment, and the terminal equipment is connected with the thermal imaging equipment.
7. The image dead pixel correction method of claim 6, wherein the method further comprises:
Obtaining error point identification information input by a user based on the first bad point storage data or the second bad point storage data;
and acquiring error point position information based on the error point identification information, and performing bad point data deletion processing on the first bad point storage data or the second bad point storage data based on the position of the error point to obtain new bad point storage data.
8. An image dead pixel correction apparatus, characterized by being applied to a thermal imaging device, comprising: the device comprises an acquisition module, a first correction module and a second correction module;
the acquisition module is used for acquiring an image to be detected acquired by the thermal imaging equipment;
the first correction module is used for carrying out first dead pixel correction processing on the image to be detected to obtain an initial dead pixel correction result;
the second correction module is configured to perform a second dead point correction process on the image to be detected based on the dead point correction deviation when the initial dead point correction result indicates that the dead point correction deviation exists in the image to be detected, so as to obtain a target dead point correction result of the image to be detected.
9. An image dead pixel correction system, the system comprising: a thermal imaging apparatus and the image dead point correction device according to claim 8; wherein the image dead pixel correction device is integrated with the thermal imaging equipment; and/or the image dead point correction device is integrated in a terminal device, and the terminal device is connected with the thermal imaging device.
10. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, the processor being arranged to run the computer program to perform the image shading correction method according to any of claims 1 to 7.
CN202311196172.6A 2023-09-15 2023-09-15 Image dead pixel correction method, device, system and electronic device Pending CN117459808A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311196172.6A CN117459808A (en) 2023-09-15 2023-09-15 Image dead pixel correction method, device, system and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311196172.6A CN117459808A (en) 2023-09-15 2023-09-15 Image dead pixel correction method, device, system and electronic device

Publications (1)

Publication Number Publication Date
CN117459808A true CN117459808A (en) 2024-01-26

Family

ID=89589957

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311196172.6A Pending CN117459808A (en) 2023-09-15 2023-09-15 Image dead pixel correction method, device, system and electronic device

Country Status (1)

Country Link
CN (1) CN117459808A (en)

Similar Documents

Publication Publication Date Title
JP5843000B2 (en) Color chart detection apparatus, color chart detection method, and computer program for color chart detection
CN103105234A (en) Thermal image device and thermal image standardized shooting method
CN111080571A (en) Camera shielding state detection method and device, terminal and storage medium
CN112055244A (en) Image acquisition method and device, server and electronic equipment
CN112418038A (en) Human body detection method, human body detection device, electronic equipment and medium
CN114078161A (en) Automatic deviation rectifying method and device for preset position of camera and computer equipment
CN109191530B (en) Panoramic camera calibration method, panoramic camera calibration system, computer equipment and storage medium
CN113537218A (en) Image recognition method and device
CN117459808A (en) Image dead pixel correction method, device, system and electronic device
CN103776543A (en) Thermal image analysis device and thermal image analysis method
CN113284127B (en) Image fusion display method and device, computer equipment and storage medium
CN115146603A (en) Method and device for generating infrared thermal image analysis report and manufacturing template
CN112580638B (en) Text detection method and device, storage medium and electronic equipment
CN113542073B (en) Product testing method, system, program product and storage medium based on P2P
CN113989477A (en) Infrared temperature measurement method, device, system, computer equipment and storage medium
CN103674269A (en) Thermal image measuring device and thermal image measuring method
US10573090B2 (en) Non-transitory computer-readable storage medium, display control method, and display control apparatus
CN117475076A (en) Three-dimensional scanning method, system, electronic device and storage medium
CN115661369B (en) Three-dimensional scanning method, three-dimensional scanning control system and electronic device
CN115830249B (en) Three-dimensional scanning method, three-dimensional measuring method, three-dimensional scanning system and electronic device
US20240054770A1 (en) Method and apparatus for debugging image detection algorithm, device, medium, and program product
CN103674254A (en) Thermal image display switching device and thermal image display switching method
CN103674272A (en) Thermal image analytical control device and thermal image analytical control method
JP7311099B2 (en) image display system
CN110443835B (en) Image registration method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination