CN114071099B - Smear measurement method and device, electronic equipment and readable storage medium - Google Patents

Smear measurement method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN114071099B
CN114071099B CN202010783316.8A CN202010783316A CN114071099B CN 114071099 B CN114071099 B CN 114071099B CN 202010783316 A CN202010783316 A CN 202010783316A CN 114071099 B CN114071099 B CN 114071099B
Authority
CN
China
Prior art keywords
image
lines
correction
test image
acquiring
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.)
Active
Application number
CN202010783316.8A
Other languages
Chinese (zh)
Other versions
CN114071099A (en
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.)
Chengdu Jimi Technology Co Ltd
Original Assignee
Chengdu Jimi 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 Chengdu Jimi Technology Co Ltd filed Critical Chengdu Jimi Technology Co Ltd
Priority to CN202010783316.8A priority Critical patent/CN114071099B/en
Publication of CN114071099A publication Critical patent/CN114071099A/en
Application granted granted Critical
Publication of CN114071099B publication Critical patent/CN114071099B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/12Picture reproducers
    • H04N9/31Projection devices for colour picture display, e.g. using electronic spatial light modulators [ESLM]
    • H04N9/3191Testing thereof
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/10Energy storage using batteries

Abstract

The application provides a smear measurement method, a smear measurement device, an electronic device and a computer readable storage medium, wherein the smear measurement method comprises the following steps: acquiring a test image acquired by a camera device; converting the test image into an XYZ space, and acquiring a single-channel image by utilizing Y-channel data; correcting by using a preset gamma value according to the single-channel image to obtain a correction chart; and positioning all lines on the correction chart to obtain line widths corresponding to two adjacent lines. Therefore, the test image is acquired through the image pickup device, the single-channel image, namely the brightness image, is obtained according to the Y channel data in the XYZ space corresponding to the test image, and the human eye feeling and the brightness are nonlinear, so that the correction is performed by adopting the preset gamma value, the consistency with the human eye feeling is realized, the line width is determined according to the correction chart, and the problem of low efficiency caused by the fact that the related technology adopts manpower to measure the smear is avoided.

Description

Smear measurement method and device, electronic equipment and readable storage medium
Technical Field
The present disclosure relates to the field of projector technologies, and in particular, to a smear measurement method, apparatus, electronic device, and computer readable storage medium.
Background
The core imaging device of the projector is a DMD chip, which is a controller with a plurality of small mirrors, is used for reflecting light to form an image, and is a very precise product. One pixel point on the DMD chip generates smear after imaging by the lens, and the better the lens smear is, the smaller the evaluation index is the smear width. The typical measurement method is to play a test chart, then manually measure the chart by using a scale, and the measurement method has two directions of horizontal and vertical, and is generally 3-6mm. The measuring method comprises the following steps: and adjusting the projection size to 80 inches, playing the test chart, and finding out the minimum scale capable of wrapping the line width, wherein the corresponding reading of the scale is the fire. But using manual measurements is inefficient.
Therefore, how to provide a solution to the above technical problem is a problem that a person skilled in the art needs to solve at present.
Disclosure of Invention
The purpose of the application is to provide a smear measurement method, a smear measurement device, an electronic device and a computer readable storage medium, which can improve measurement efficiency. The specific scheme is as follows:
the application provides a smear measurement method, which comprises the following steps:
acquiring a test image acquired by a camera device;
converting the test image into an XYZ space, and acquiring a single-channel image by utilizing Y-channel data;
correcting by using a preset gamma value according to the single-channel image to obtain a correction chart;
and positioning all lines on the correction chart to obtain line widths corresponding to all two adjacent lines.
Preferably, before the test image acquired by the image capturing device is acquired, the method further includes:
and carrying out distortion correction, flat field correction and position correction on the image pickup device in sequence.
Preferably, the positioning all lines on the correction chart to obtain line widths corresponding to all two adjacent lines includes:
when the test image is a grid test image, rectangular areas corresponding to two adjacent black squares are obtained from the correction chart, wherein the rectangular areas comprise the lines;
acquiring the centroid of the two rectangular areas;
performing linear fitting according to all the centroids of each row or each column to obtain line information of the lines;
and acquiring the line width according to the adjacent two line information.
Preferably, the linear fitting according to all the centroids of each row or each column to obtain line information of the line includes:
performing linear fitting on all the centroids of each row or each column to obtain a slope and an intercept;
judging whether the slopes of two adjacent lines are consistent;
and if the slopes of two adjacent lines are identical, obtaining the line width according to the slopes and the intercept.
Preferably, if the slopes of two adjacent lines are not identical, taking the average value of the two slopes as a new slope of the two adjacent lines;
and obtaining the line width according to the new slope and the intercept.
Preferably, the positioning all lines on the correction chart to obtain line widths corresponding to all two adjacent lines includes:
inputting the correction chart into a pre-established network model, and outputting the line widths corresponding to two adjacent lines.
The application provides a smear measuring device, include:
the test image acquisition module is used for acquiring a test image acquired by the camera device;
the single-channel image acquisition module is used for converting the test image into an XYZ space and acquiring a single-channel image by utilizing Y-channel data;
the correction chart obtaining module is used for correcting by utilizing a preset gamma value according to the single-channel image to obtain a correction chart;
and the line width determining module is used for positioning all the lines of the correction chart to obtain line widths corresponding to all two adjacent lines.
Preferably, the method further comprises:
and the image pickup device correction module is used for sequentially carrying out distortion correction, flat field correction and position correction on the image pickup device.
The application provides an electronic device, comprising:
a memory for storing a computer program;
and a processor for implementing the steps of the smear measurement method as described above when executing the computer program.
The present application provides a computer readable storage medium having stored thereon a computer program which when executed by a processor implements the steps of the smear measurement method as described above.
The application provides a smear measurement method, which comprises the following steps: acquiring a test image acquired by a camera device; converting the test image into an XYZ space, and acquiring a single-channel image by utilizing Y-channel data; correcting by using a preset gamma value according to the single-channel image to obtain a correction chart; and positioning all lines on the correction chart to obtain line widths corresponding to two adjacent lines.
Therefore, the test image is acquired through the image pickup device, the single-channel image, namely the brightness image, is obtained according to the Y channel data in the XYZ space corresponding to the test image, and the human eye feeling and the brightness are nonlinear, so that the correction is performed by adopting the preset gamma value, the consistency with the human eye feeling is realized, the line width is determined according to the correction chart, and the problem of low efficiency caused by the fact that the related technology adopts manpower to measure the smear is avoided.
The application also provides a smear measurement device, an electronic device and a computer readable storage medium, which have the above beneficial effects and are not described herein.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present application, and that other drawings may be obtained according to the provided drawings without inventive effort to a person skilled in the art.
Fig. 1 is a schematic structural diagram of a smear measurement system according to an embodiment of the present application;
fig. 2 is a flowchart of a smear measurement method according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a partial line width of a dot image according to an embodiment of the present disclosure;
fig. 4 is a schematic flow chart of line width determination according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a smear measurement apparatus according to an embodiment of the present disclosure;
fig. 6 is a block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present application in light of the embodiments herein.
The general smear measurement method is to play a test chart, and then manually measure the smear by using a scale, wherein the smear is in two directions of horizontal and vertical, and is generally 3-6mm. The measuring method comprises the following steps: and adjusting the projection size to 80 inches, playing the test chart, and finding out the minimum scale capable of wrapping the line width, wherein the corresponding reading of the scale is the fire. But using manual measurements is inefficient.
The embodiment provides a smear measurement system, which can improve smear measurement efficiency. Referring to fig. 1, fig. 1 is a schematic structural diagram of a smear measurement system according to an embodiment of the present application.
The smear measurement system of this application includes: an electronic apparatus 101 and an imaging device 102.
The electronic device 101 may include a processor, a memory, etc., which may be communicatively connected to the camera 102 through a communication interface using a communication network to implement data interaction. The electronic equipment 101 acquires a test image acquired by the camera 102; converting the test image into an XYZ space, and acquiring a single-channel image by utilizing Y-channel data; correcting by using a preset gamma value according to the single-channel image to obtain a correction chart; and positioning all lines on the correction chart to obtain line widths corresponding to two adjacent lines.
The image pickup device 102 provides an input interface for acquiring instructions and a trigger unit for acquiring instructions to a user on a user interaction interface. Various display and reminder information may also be included in the user interface. When the acquisition instruction is triggered by the outside, the camera 102 acquires a test image; the image pickup apparatus 102 can transmit the test image to the electronic device 101 using the communication network. It should be noted that, the above communication network in the application may be determined according to the network condition and the application requirement in the practical application process, which may be a wireless communication network, such as a mobile communication network or a WIFI network, or a wired communication network, or may be a wide area network, or may be a local area network when the situation allows, which is not limited specifically herein.
The present embodiment provides a smear measurement method with high measurement efficiency, and referring to fig. 2, fig. 2 is a flowchart of the smear measurement method provided in the embodiment of the present application, which specifically includes:
s101, acquiring a test image acquired by a camera device;
the smear for this embodiment may be a projector smear, a computer smear, or a television smear.
The present embodiment is not limited to the image pickup apparatus, and may be one of a wide-angle camera, an ultra-wide-angle camera, and a conventional camera. When the projector is aimed at, the test image is projected onto a projection curtain or a projection wall, and the test image is acquired by using a camera device; when aiming at a computer or a television, after the test image is displayed on a screen, the test image is acquired by using a camera device. The test image is generally a grid image, but may be a dot image, and the present embodiment is not limited to various sizes in the grid, and the user may set the test image according to actual needs, so long as the purpose of the present embodiment can be achieved.
It will be appreciated that the reason for the difference from the image perceived by the human eye is mainly due to the difference caused by the image capturing apparatus on the first hand, and the difference between the image viewed by the human eye and the image actually captured by the image capturing apparatus on the second hand, mainly due to the gamma characteristic of the human eye. Therefore, in this embodiment, the test image is an unprocessed image, and it can be understood that taking a picture and taking a raw format test image, where the raw image is an unprocessed image directly obtained by the camera sensor, and a general industrial camera will provide a corresponding interface for obtaining. In general, the processed pictures output by the cameras use the rgb color space, which is a device-related color space, that is, when the rgb values output by the two cameras are the same, the colors are not necessarily the same, or the same picture is displayed by two displays, and the colors are also different, so that the obtained unprocessed test image is converted into the XYZ space, which is a device-independent color space in this embodiment.
Further, in order to improve accuracy of smear measurement, in this embodiment, errors caused by the image capturing device are solved through camera calibration, specifically, before a test image captured by the image capturing device is obtained, the method further includes: and (3) carrying out distortion correction, flat field correction and position correction on the image pickup device in sequence.
Distortion correction is further described. Since the lens parameters may cause image distortion, for example, the original image is square, the resulting image is truly circular. In this embodiment, the distortion correction may specifically be performed according to auxiliary checkerboard correction, displaying and collecting a checkerboard image to obtain a distorted checkerboard image, and obtaining a mapping relationship through a distortion model, where a relationship between a real checkerboard image imgR and a distorted checkerboard image imgD is: imgR (U, V) =imgd (Ud, vd). From this relationship, all imgR (U, V) are found. Of course, other manners are possible, please refer to the related art, and the description of this embodiment is omitted. After distortion correction is adopted, the image cannot be distorted, and the accuracy of smear measurement is improved.
Further explanation is made for flat field correction. Ideally, when the imaging device images a uniform target, the luminance values of all pixels in the resulting image should be theoretically the same. However, in practice, there is often a large difference in brightness values of pixels in the image, and this feature may reduce the accuracy of smear measurement. The flat field correction method may be a two-point correction method or an improved two-point correction method, but may be any other method as long as the object of the present embodiment can be achieved. The precondition of the two-point correction method is that the detector pixels respond linearly. Firstly, the camera device exposes the dark field once to obtain the offset of each pixel; then, imaging the gray level uniform object under the uniform illumination condition for one time to obtain a uniform field image, and preferably enabling all points in the image to approach the maximum gray level value; and finally subtracting the dark field image from the uniform light field image, and correcting the image gain by a relative calibration method. The present embodiment will not be described in detail. After the flat field correction is adopted, the brightness values of the pixel points in the obtained image are all real brightness values, and no deviation exists.
Further explanation is made with respect to position correction. The position correction in this embodiment is mainly because the pixel dot size of the image capturing device needs to be correlated with the actual screen size, for example, 1 image capturing device pixel corresponds to how many mm of the actual size. The calibration method is simple: the camera device is kept parallel to the wall surface, an object with a known size, such as a calibration plate or a steel ruler, is placed on the wall surface in the visual field of the camera device, and the pixel size can be obtained by dividing the actual size by the pixel number of the calibration object.
Therefore, by sequentially carrying out distortion correction, flat field correction and position correction on the image pickup device, errors caused by the image pickup device can be reduced, and the accuracy of smear measurement can be improved.
S102, converting a test image into an XYZ space, and acquiring a single-channel image by utilizing Y-channel data;
the test image in raw format is converted to XYZ space. The XYZ space is a device independent color space, only the Y channel data is reserved, and the Y channel data is used to convert into a single-channel image. Wherein, Y channel data is brightness, which is different from gray scale.
S103, correcting by using a preset gamma value according to the single-channel image to obtain a correction chart;
the purpose of this step is to convert the captured test image into an image that is consistent with the human eye experience in order to perform human eye correction. Since the gamma characteristic of the human eye, that is, the human eye feeling and brightness relationship are not linear, the data obtained by the image capturing device are linear, and therefore, a measurement error is finally caused.
In this embodiment, the predetermined gamma value is selected to be a gamma value of 2.2gamma or a value close to the gamma value of human eyes. The formula can thus be used: output value = input value gamma The brightness value of each pixel point in the single-channel image is changed into a corresponding value taking 1/2.2 as an index, so that the picture correction is completed, and the picture correction is consistent with human eyes.
S104, positioning all lines of the correction chart to obtain line widths corresponding to all two adjacent lines.
The purpose of this embodiment is to obtain the line widths corresponding to all the lines. It can be understood that when the test image is a grid image, the line width of the obtained line refers to the line width of the grid line; when the test image is a dot image, the line width of the obtained line refers to the line width adjacent to the line formed by connecting the corresponding points in the dots of each column or each row, please refer to fig. 3, and fig. 3 is a schematic diagram of the line width of the dot image according to the embodiment of the present application. The line width can be automatically output based on a network model during positioning, two lines can be determined based on the difference value of the pixel points, and a linear formula simulation mode can be adopted.
Based on the above technical scheme, the embodiment collects the test image through the image pickup device, and obtains the single-channel image, namely the brightness image, according to the Y channel data in the XYZ space corresponding to the test image, because the human eye feeling and brightness are nonlinear, the correction is performed by adopting the preset gamma value, the consistency with the human eye feeling is realized, and then the line width is determined again according to the correction chart, so that the problem of low efficiency caused by the manual smear measurement in the related technology is avoided.
In an implementation manner, in order to improve the accuracy of line width determination, the embodiment provides a specific line width determination method, please refer to fig. 4, fig. 4 is a schematic flow chart of line width determination provided in the embodiment of the present application, which includes:
s1041, when the test image is a grid test image, rectangular areas corresponding to two adjacent black squares are obtained from the correction chart, wherein the rectangular areas comprise lines;
in this embodiment, the grid test image may include a plurality of black squares and corresponding lines. The purpose of this embodiment is to obtain the line widths of all lines. Firstly, all black squares can be obtained, two adjacent black squares in the horizontal direction or the vertical direction are found, and then, the edge area, namely the rectangular area comprising lines, is cut out according to the black squares obtained through positioning.
S1042, acquiring the moments of two rectangular areas;
calculating the centroid of two rectangular areas, wherein the calculation formula of the centroid is as follows: d1= Σ (Im g (i+1) -Im g (i)), dt= Σ (Im g (i+1) -Im g (i) ×i), centroid position=dt/dt 1; where i denotes the number of pixels, img (i) denotes the luminance value of the i-th pixel, and Img (i+1) denotes the luminance value of the i+1-th pixel.
S1043, performing linear fitting according to all moments of each row or each column to obtain line information of the lines;
the purpose of this step is to perform a linear fit to each row/column centroid to obtain an accurate location of the line edge, i.e. to obtain line information for the line. Wherein the line information includes a line formula, slope, intercept, and constant of the line.
Further, the slopes of the two edges should be consistent, there may be a slight difference in actual calculation, if the slopes are not equal, the slope may be manually changed to be consistent, the value is the average value of the two slopes, specifically, linear fitting is performed according to all the centroids of each row or each column to obtain line information of the line, including:
performing linear fitting on all the centroids of each row or each column to obtain a slope and an intercept;
judging whether slopes of two adjacent lines are consistent;
and if the slopes of the two adjacent lines are consistent, obtaining the line width according to the slopes and the intercept.
Specifically, taking the horizontal direction as an example, after all centroid points are obtained, a least square method is used for fitting, and a slope and intercept formula is obtained;
wherein, the liquid crystal display device comprises a liquid crystal display device,
Figure BDA0002620995100000081
where x (i) is the x coordinate of the ith point, y (i) is the y coordinate of the ith point, len is the number of points, and A is the intercept. B is the slope. And obtaining line information of the two lines, obtaining a corresponding linear equation, and obtaining the line width according to the linear equation. The obtained line width unit is pixel, and the line width unit is converted into an actual unit according to the pixel size calibrated before.
In an implementation manner, if the slopes of two adjacent lines are not identical, the step of linearly fitting all the centroids of each row or each column to obtain the slopes and the intercepts is re-performed until the slopes and the intercepts are identical, or the errors are within a preset range, and at this time, the average value of the slopes and the intercepts of the two corresponding lines is obtained.
In another implementation manner, if the slopes of the two adjacent lines are not identical, taking the average value of the two slopes as the new slope of the two adjacent lines; the linewidth is obtained from the new slope and intercept.
S1044, acquiring line width according to the adjacent two line information.
Therefore, the line width obtained by the linear fitting method in this embodiment can avoid the problem of low efficiency caused by the manual measurement in the related art.
In another implementation manner, in order to improve measurement efficiency, specifically, positioning all lines on the calibration chart to obtain line widths corresponding to all two adjacent lines, including:
inputting the correction chart into a pre-established network model, and outputting line widths corresponding to two adjacent lines.
The present embodiment is not limited to the network model, as long as the object of the present embodiment can be achieved. Specifically, inputting a label corresponding to the training diagram into a preset model, then performing image training to obtain a network model, inputting the correction diagram into the network model, and outputting the line width. The efficiency of the measurement is greatly improved.
The following describes a smear measurement device provided in the embodiments of the present application, and the smear measurement device described below and the smear measurement method described above may be referred to correspondingly, and referring to fig. 5, fig. 5 is a schematic structural diagram of the smear measurement device provided in the embodiments of the present application, including:
a test image acquisition module 501, configured to acquire a test image acquired by a camera device;
the single-channel image acquisition module 502 is used for converting the test image into an XYZ space and acquiring a single-channel image by utilizing Y-channel data;
a correction chart obtaining module 503, configured to perform correction according to the single-channel image by using a preset gamma value, so as to obtain a correction chart;
and the line width determining module 504 is configured to locate all lines of the calibration chart, and obtain line widths corresponding to all two adjacent lines.
Preferably, the method further comprises:
and the image pickup device correction module is used for sequentially carrying out distortion correction, flat field correction and position correction on the image pickup device.
Preferably, the line width determining module 504 includes:
the rectangular region selecting unit is used for acquiring rectangular regions corresponding to two adjacent black squares from the correction chart when the test image is a grid test image, wherein the rectangular regions comprise lines;
the centroid determining unit is used for obtaining the centroids of the two rectangular areas;
the fitting unit is used for carrying out linear fitting according to all the moments of each row or each column to obtain line information of the lines;
and the line width determining unit is used for acquiring line widths according to the adjacent two line information.
Preferably, the fitting unit comprises:
the fitting subunit is used for performing linear fitting on all the centroids of each row or each column to obtain a slope and an intercept;
the judging subunit is used for judging whether the slopes of two adjacent lines are consistent;
and the first line width acquisition subunit is used for acquiring the line width according to the slope and the intercept if the slopes of the two adjacent lines are consistent.
Preferably, the fitting unit further comprises:
a new slope determining subunit, configured to take an average value of two slopes as a new slope of two adjacent lines if the slopes of the two adjacent lines are inconsistent;
and the second line width acquisition subunit is used for obtaining the line width according to the new slope and the intercept.
Preferably, the line width determining module 504 includes:
and the line width determining unit is used for inputting the correction chart into a pre-established network model and outputting line widths corresponding to two adjacent lines.
Since the embodiments of the apparatus portion and the embodiments of the method portion correspond to each other, the embodiments of the apparatus portion are referred to the description of the embodiments of the method portion, and are not repeated herein.
The following describes an electronic device provided in an embodiment of the present application, where the electronic device described below and the method described above may be referred to correspondingly with each other, referring to fig. 6, and fig. 6 is a block diagram of an electronic device provided in an embodiment of the present application, where the block diagram includes:
a memory 601 for storing a computer program;
the processor 602, when executing the computer program, may implement the steps provided in the above embodiments.
Specifically, the memory 601 includes a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and computer readable instructions, and the internal memory provides an environment for the operating system and the execution of the computer readable instructions in the non-volatile storage medium. The processor 602 provides computing and control capabilities for the electronic device, and when executing the computer program stored in the memory 601, can implement the following steps: acquiring a test image acquired by a camera device; converting the test image into an XYZ space, and acquiring a single-channel image by utilizing Y-channel data; correcting by using a preset gamma value according to the single-channel image to obtain a correction chart; and positioning all lines on the correction chart to obtain line widths corresponding to two adjacent lines.
Since the embodiments of the electronic device portion and the embodiments of the method portion correspond to each other, the embodiments of the electronic device portion refer to the description of the embodiments of the method portion, which is omitted herein for brevity.
In another implementable embodiment, the electronic device may include: memory 601, processor 602, input/output interface 603, network port 604.
The memory 601 includes a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and computer readable instructions, and the internal memory provides an environment for the operating system and the execution of the computer readable instructions in the non-volatile storage medium. The processor 602 may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The processor 602 provides computing and control capabilities for the electronic device and executes the computer program stored in the memory 601 to implement the steps of the smear measurement method. An input/output interface 603 for acquiring externally imported computer programs, parameters and instructions, and storing them in the memory 601 under the control of the processor 602. The input/output interface 603 may be coupled to an input device for receiving parameters or instructions manually entered by a user. The input device may be a touch screen, a keyboard, a touch pad, a mouse, or the like. The user may initiate the smear measurement method through the input output interface 603. A network port 604 for communication connection with external terminal devices. The communication technology adopted by the communication connection can be a wired communication technology or a wireless communication technology, such as a mobile high definition link technology (MHL), a Universal Serial Bus (USB), a High Definition Multimedia Interface (HDMI), a wireless fidelity technology (WiFi), a Bluetooth communication technology with low power consumption, a communication technology according to IEEE802.11s, and the like. Specifically, in this embodiment, in the case of normal networking, authentication may be implemented by interaction with the client device through the network port 604.
A computer-readable storage medium provided in embodiments of the present application is described below, and the computer-readable storage medium described below and the method described above may be referred to correspondingly,
the present embodiment provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps of the smear measurement method as described above.
The storage medium may include: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes. The storage medium has stored thereon a computer program which, when executed by a processor, performs the steps of: acquiring a test image acquired by a camera device; converting the test image into an XYZ space, and acquiring a single-channel image by utilizing Y-channel data; correcting by using a preset gamma value according to the single-channel image to obtain a correction chart; and positioning all lines on the correction chart to obtain line widths corresponding to two adjacent lines.
Since the embodiments of the computer readable storage medium portion and the embodiments of the method portion correspond to each other, the embodiments of the computer readable storage medium portion are referred to the description of the embodiments of the method portion, and are not repeated herein.
In the description, each embodiment is described in a progressive manner, and each embodiment is mainly described by the differences from other embodiments, so that the same similar parts among the embodiments are mutually referred. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative elements and steps are described above generally in terms of functionality in order to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. The software modules may be disposed in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The foregoing describes in detail a smear measurement method, apparatus, electronic device, and computer readable storage medium provided by the present application. Specific examples are set forth herein to illustrate the principles and embodiments of the present application, and the description of the examples above is only intended to assist in understanding the methods of the present application and their core ideas. It should be noted that it would be obvious to those skilled in the art that various improvements and modifications can be made to the present application without departing from the principles of the present application, and such improvements and modifications fall within the scope of the claims of the present application.

Claims (9)

1. A smear measurement method, comprising:
acquiring a test image acquired by a camera device;
converting the test image into an XYZ space, and acquiring a single-channel image by utilizing Y-channel data;
correcting by using a preset gamma value according to the single-channel image to obtain a correction chart;
positioning all lines on the correction chart to obtain line widths corresponding to all two adjacent lines;
and positioning all lines of the correction chart to obtain line widths corresponding to all two adjacent lines, wherein the line widths comprise:
when the test image is a grid test image, rectangular areas corresponding to two adjacent black squares are obtained from the correction chart, wherein the rectangular areas comprise the lines;
acquiring the centroid of the two rectangular areas;
performing linear fitting according to all the centroids of each row or each column to obtain line information of the lines;
and acquiring the line width according to the adjacent two line information.
2. The smear measurement method according to claim 1, wherein before the test image acquired by the image capturing device is acquired, further comprising:
and carrying out distortion correction, flat field correction and position correction on the image pickup device in sequence.
3. The smear measurement method according to claim 1, wherein the linear fitting according to all the centroids of each row or each column to obtain line information of the line comprises:
performing linear fitting on all the centroids of each row or each column to obtain a slope and an intercept;
judging whether the slopes of two adjacent lines are consistent;
and if the slopes of two adjacent lines are identical, obtaining the line width according to the slopes and the intercept.
4. A smear measurement method according to claim 3, wherein if the slopes of two adjacent lines are not identical, taking the average value of the two slopes as the new slope of the two adjacent lines;
and obtaining the line width according to the new slope and the intercept.
5. The smear measurement method according to claim 1, wherein the positioning all lines on the calibration chart to obtain line widths corresponding to all two adjacent lines comprises:
inputting the correction chart into a pre-established network model, and outputting the line widths corresponding to two adjacent lines.
6. A smear measurement apparatus, comprising:
the test image acquisition module is used for acquiring a test image acquired by the camera device;
the single-channel image acquisition module is used for converting the test image into an XYZ space and acquiring a single-channel image by utilizing Y-channel data;
the correction chart obtaining module is used for correcting by utilizing a preset gamma value according to the single-channel image to obtain a correction chart;
the line width determining module is used for positioning all lines on the correction chart to obtain line widths corresponding to all two adjacent lines;
the line width determining module comprises:
the rectangular region selecting unit is used for acquiring rectangular regions corresponding to two adjacent black squares from the correction chart when the test image is a grid test image, wherein the rectangular regions comprise lines;
the centroid determining unit is used for obtaining the centroids of the two rectangular areas;
the fitting unit is used for carrying out linear fitting according to all the moments of each row or each column to obtain line information of the lines;
and the line width determining unit is used for acquiring line widths according to the adjacent two line information.
7. The smear measurement apparatus of claim 6, further comprising:
and the image pickup device correction module is used for sequentially carrying out distortion correction, flat field correction and position correction on the image pickup device.
8. An electronic device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the smear measurement method according to any of claims 1 to 5 when executing the computer program.
9. A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, implements the steps of the smear measurement method according to any of claims 1 to 5.
CN202010783316.8A 2020-08-06 2020-08-06 Smear measurement method and device, electronic equipment and readable storage medium Active CN114071099B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010783316.8A CN114071099B (en) 2020-08-06 2020-08-06 Smear measurement method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010783316.8A CN114071099B (en) 2020-08-06 2020-08-06 Smear measurement method and device, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN114071099A CN114071099A (en) 2022-02-18
CN114071099B true CN114071099B (en) 2023-05-16

Family

ID=80232535

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010783316.8A Active CN114071099B (en) 2020-08-06 2020-08-06 Smear measurement method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN114071099B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101478692A (en) * 2008-12-25 2009-07-08 昆山锐芯微电子有限公司 Test method and system for image sensor dynamic resolution

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000350032A (en) * 1999-06-08 2000-12-15 Canon Inc Image reading method and device and storage medium
US7443535B2 (en) * 2002-03-25 2008-10-28 Ricoh Company, Limited Misalignment correction pattern formation method and misalignment correction method
KR100810344B1 (en) * 2006-10-10 2008-03-04 삼성전자주식회사 Apparatus for digital photographing and method for smear appearance correction and detecting using the same
CN102509531B (en) * 2011-11-21 2015-05-20 深圳市华星光电技术有限公司 Method and device for measuring streaks of display device
JP6049437B2 (en) * 2012-12-14 2016-12-21 キヤノン株式会社 Image processing apparatus, image processing method, and computer program
WO2019106636A1 (en) * 2017-12-03 2019-06-06 Lumus Ltd. Optical device testing method and apparatus
CN108108293B (en) * 2017-12-28 2020-12-29 北京牡丹视源电子有限责任公司 Method and system for testing tail time
CN209899325U (en) * 2019-02-27 2020-01-07 西安道志智能机器人有限公司 Resolution measuring plate for medical endoscope detector

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101478692A (en) * 2008-12-25 2009-07-08 昆山锐芯微电子有限公司 Test method and system for image sensor dynamic resolution

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王志军 ; 肖欢畅 ; 吴简.高速成像拖尾畸变校正方法研究.《激光杂志》.2020,全文. *

Also Published As

Publication number Publication date
CN114071099A (en) 2022-02-18

Similar Documents

Publication Publication Date Title
EP3419285B1 (en) Projection system and method for calibrating display image
JP3497805B2 (en) Image projection display device
CN107507558B (en) Correction method of LED display screen
JP7372199B2 (en) Projection system, projection device, and calibration method for its displayed image
WO2008148291A1 (en) Device and method for calibrating multi-screen wall
WO2022206527A1 (en) Method for projection image correction and laser projection device
CN111083458B (en) Brightness correction method, system, equipment and computer readable storage medium
KR101941801B1 (en) Image processing method and device for led display screen
KR20140035349A (en) Colour calibration method for an image capture device
CN112272292B (en) Projection correction method, apparatus and storage medium
CN117378196A (en) Image correction method and shooting device
CN112102387B (en) Test method and test system based on depth estimation performance of depth camera
CN113542709B (en) Projection image brightness adjusting method and device, storage medium and projection equipment
JP2005189542A (en) Display system, display program and display method
CN114302121A (en) Image correction inspection method, device, electronic equipment and storage medium
CN109785390B (en) Method and device for image correction
CN114071099B (en) Smear measurement method and device, electronic equipment and readable storage medium
JP5561503B2 (en) Projector, program, information storage medium, and trapezoidal distortion correction method
US11902504B2 (en) Method and system for mapping the non-uniformity of an image sensor
EP3139598B1 (en) Wearable projection device and projection method
CN113542708B (en) Projection surface parameter confirmation method and device, storage medium and projection equipment
CN110300291B (en) Apparatus and method for determining color value, digital camera, application, and computer device
CN114359055A (en) Image splicing method and related device for multi-camera shooting screen body
KR20150054452A (en) compensation device for compensating a non uniformity of a display device and method thereof
CN109379521B (en) Camera calibration method and device, computer 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
GR01 Patent grant
GR01 Patent grant