CIRCUIT DEVICE, ELECTRONIC APPARATUS, AND ERROR DETECTION METHOD
The described method enhances display design flexibility by using histogram-based correlation calculations to detect errors in display images, allowing for accurate positioning and visibility assessment of icons or images without predefined areas, addressing limitations in existing technologies.
Patent Information
- Application Number
- JP2020142188
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-08-26
- Publication Date
- 2024-09-26
- Estimated Expiration
- 2040-08-26
AI Technical Summary
Existing display technologies limit the degree of freedom in display design by requiring predefined display areas for error detection, reducing flexibility in positioning icons and images, and lack comprehensive techniques for efficient object area detection and image error detection.
An image acquisition circuit acquires a display image and calculates a histogram, performs correlation calculations to determine the dissimilarity between foreground and background images, and uses a search circuit to detect errors based on a reference image, enabling error detection at any display position.
This approach allows for flexible display design by detecting errors in icons or images without predefined positions, improving visibility and accuracy by evaluating the degree of dissimilarity and shape matching between foreground and background images.
Smart Images

Figure 0007556234000040 
Figure 0007556234000027 
Figure 0007556234000036
Abstract
Description
[Technical field]
[0001] The present invention relates to a circuit device, an electronic device, an error detection method, and the like. [Background technology]
[0002] In display control in a display device, a processing device such as a CPU transmits image data and a control signal to a display controller, the display controller performs image processing and generates a timing signal, and the display driver drives the display panel using the image-processed image data and the timing signal. In such communication, data errors may occur in the image data received by the display controller due to communication errors or the like. For example, Patent Documents 1 to 3 disclose a technique for detecting errors in the image data received by the display controller from the processing device using CRC. CRC stands for Cyclic Redundancy Check. In addition, a method for searching for an object region from an image is known. Such a method is disclosed in Patent Document 4, for example. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2012-35677 A [Patent Document 2] JP 2007-101691 A [Patent Document 3] JP 2007-72394 A [Patent Document 4] JP 2008-15848 A Summary of the Invention [Problem to be solved by the invention]
[0004] When displaying an icon or the like in a display image and detecting a display error of the icon or the like, if an error detection is performed in a pre-specified display area, the display position of the icon or the like is limited to the pre-specified display area in order to detect a display error of the icon or the like, which reduces the freedom of display design. The technology disclosed in Patent Document 4 is a technology related only to how to efficiently search for an object area, and Patent Document 4 does not disclose any series of technologies related to the detection of an object area and the detection of an image error. [Means for solving the problem]
[0005] One aspect of the present disclosure relates to a circuit device that includes an image acquisition circuit that acquires a display image, an error detection circuit that calculates a histogram of pixel values of the display image, performs a correlation calculation using the histogram, and calculates an index representing the degree of dissimilarity between a foreground image, which is an image of a given area of the display image, and a background image of the display image that corresponds to the background of the foreground image, based on a result of the correlation calculation, and performs error detection on the display image based on the index, and a search circuit, wherein the search circuit searches for a display position of the foreground image in the display image based on a reference image that is a reference for the foreground image, and the error detection circuit performs the error detection based on the display position searched for by the search circuit.
[0006] Yet another aspect of the present disclosure relates to a circuit device that includes an image acquisition circuit that acquires a display image, an error detection circuit that determines an index representing a degree of match between the foreground image, which is an image of a given area of the display image, and the reference image, based on pixel values of the display image and pixel values of a reference image that is a reference for a foreground image, or based on pixel values of an edge image of the display image and pixel values of an edge image of the reference image, and performs error detection on the display image based on the index, and a search circuit, wherein the search circuit searches for a display position of the foreground image in the display image based on the reference image, and the error detection circuit performs the error detection based on the display position searched for by the search circuit.
[0007] Yet another aspect of the present disclosure relates to an electronic device including any of the circuit devices described above.
[0008] Yet another aspect of the present disclosure relates to an error detection method that searches for a display position of a foreground image in a display image based on a reference image that serves as a reference for the foreground image, which is an image of a given area of the display image, determines a histogram of pixel values of the display image based on the searched display position, performs a correlation calculation using the histogram, determines an index representing a degree of dissimilarity between the foreground image and a background image that corresponds to the background of the foreground image based on a result of the correlation calculation, and detects an error in the display image based on the index.
[0009] Yet another aspect of the present disclosure relates to an error detection method which searches for a display position of a foreground image in a display image based on a reference image that serves as a reference for the foreground image, which is an image of a given area of the display image, and determines an index representing a degree of match between the foreground image and the reference image based on the searched display position, pixel values of the display image, and pixel values of the reference image, or based on the searched display position, pixel values of an edge image of the display image, and pixel values of an edge image of the reference image, and detects an error in the display image based on the index. [Brief description of the drawings]
[0010] [Figure 1] 1 shows an example of the configuration of a circuit device. [Diagram 2] 13 shows a detailed configuration example of a search circuit. [Diagram 3] An example of a display image. [Figure 4] An example of a reference image. [Diagram 5] The flow of processing performed by the FFT processing unit. [Figure 6] An example of cross-correlation between a display image and a reference image. [Figure 7] FIG. 4 is a diagram for explaining the operation of the error detection circuit. [Figure 8] 3 shows a detailed configuration example of a circuit device. [Figure 9] 11 is a flowchart showing a processing flow of an error detection process. [Figure 10] Histograms of each YCbCr channel in the error detection area. [Figure 11] The autocorrelation value obtained by performing an autocorrelation calculation on a histogram. [Figure 12] First example of display image. [Figure 13] Example histogram for a multi-tone foreground. [Figure 14] Example of histogram cross-correlation values when the foreground is multi-tone. [Figure 15] An example of a reference image. [Figure 16] Averaged image of the reference image. [Figure 17] A second example of a display image. [Figure 18] A third example of a display image. [Figure 19] Fourth example of display image. [Figure 20] A first example of a reference image, a display image, and a mask image. [Figure 21] 13 is an example of edge values calculated from the reference image and the display image of the first example. [Figure 22] A second example of a reference image, a display image, and a mask image. [Figure 23] 13 is an example of edge values calculated from the reference image and the display image of the second example. [Figure 24] Example of electronic device configuration. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0011] A preferred embodiment of the present disclosure will be described in detail below. Note that the embodiment described below does not unduly limit the contents described in the claims, and all of the configurations described in the embodiment are not necessarily essential configurations.
[0012] 1.Circuit device 1 shows an example of the configuration of a circuit device 100 according to this embodiment. The circuit device 100 includes a search circuit 10 and an error detection circuit 150. The circuit device 100 is realized by, for example, an integrated circuit device in which circuit elements are integrated on a semiconductor substrate.
[0013] The image acquisition circuit 130 acquires a display image GIN and outputs the display image GIN to the search circuit 10 and the error detection circuit 150. The display image GIN is an image in which a foreground image is synthesized with a background image. The image acquisition circuit 130 also acquires a reference image GRF that serves as a reference for the foreground image, and outputs the reference image GRF to the search circuit 10 and the error detection circuit 150. For example, in the display image GIN shown in FIG. 3, a meter image is the background image, and an icon image is overlaid on the meter image as a foreground image GZN. This foreground image GZN is an image in which the icon portion is extracted from the reference image GRF shown in FIG. 4. Note that the entire reference image GRF may be overlaid on the meter image as the foreground image GZN.
[0014] The image acquisition circuit 130 may be, for example, an interface that receives the display image GIN and the reference image GRF from the outside of the circuit device 100, or may be a memory access circuit that reads out the display image GIN and the reference image GRF stored in a memory, or may be an overlay circuit that overlays a foreground image on a background image. Note that, in the detailed configuration example described later in FIG. 8, the image acquisition circuit 130 is an overlay circuit, but this is merely an example. In FIG. 1, the image acquisition circuit 130 acquires the display image GIN and the reference image GRF, but this is not limited thereto, and the reference image GRF may be input from a memory or the like to the search circuit 10 and the error detection circuit 150 without passing through the image acquisition circuit 130. In FIG. 1, the display image GIN and the reference image GRF are input to the error detection circuit 150, but if the error detection circuit 150 does not use the reference image GRF, the reference image GRF may not be input to the error detection circuit 150. For example, when the error detection circuit 150 obtains a visibility index described later, the reference image GRF may not be used.
[0015] The search circuit 10 searches for the display position of the foreground image in the display image GIN based on the reference image GRF. Specifically, the search circuit 10 calculates the product of the display image GIN and the reference image GRF in the frequency domain using a two-dimensional FFT, and performs IFFT on the result of the product to obtain the cross-correlation between the display image GIN and the reference image GRF. FFT stands for Fast Fourier Transform, and IFFT stands for Inverse Fast Fourier Transform. The search circuit 10 compares the cross-correlation with a detection threshold, and if there is a position where the correlation value is equal to or greater than the detection threshold, detects the position as the display position of the foreground image. If there is no position where the correlation value is equal to or greater than the detection threshold, the search circuit 10 determines that the foreground image is not displayed in the display image GIN. The detection threshold is a threshold for determining whether the foreground image is displayed in the display image GIN. The detection threshold may be stored in advance in a memory or a register, or may be set in a memory or a register from outside the circuit device 100. The search circuit 10 outputs the search result SEQ for the display position to the error detection circuit 150.
[0016] The error detection circuit 150 performs error detection on the display image GIN based on the display position searched by the search circuit 10, and outputs the error detection result ERQ. Specifically, the error detection circuit 150 sets an error detection area that includes the foreground image and is narrower than the display image GIN based on the display position searched by the search circuit 10, and performs image analysis of the error detection area to perform error detection. The error detection circuit 150 obtains an index indicating whether the foreground image is properly displayed in the error detection area, and performs error detection based on the index. The index is a visibility index for evaluating the visibility of the foreground image, or a shape index for evaluating the similarity between the shape of the foreground image and the reference image. These indices will be described later. As the error detection result ERQ, a result of comparing the index with a threshold value, or the index itself, etc., is output.
[0017] In the above embodiment, the circuit device 100 includes an image acquisition circuit 130 that acquires a display image GIN, an error detection circuit 150 that detects an error in the display image GIN, and a search circuit 10. The search circuit 10 searches for a display position of a foreground image in the display image GIN based on a reference image GRF that serves as a reference for the foreground image. The error detection circuit 150 performs error detection based on the display position searched for by the search circuit 10.
[0018] According to this embodiment, the error detection circuit 150 can detect an error based on the display position searched by the search circuit 10, so that an error can be detected even if the display position of the foreground image is not determined in advance. This makes it possible to display icons and the like at any position, improving the freedom of display design. The series of processes for performing such error detection is not disclosed at all in the above-mentioned Patent Document 1 and the like.
[0019] Furthermore, in this embodiment, the error detection circuit 150 performs error detection when the search circuit 10 detects the display position in the above search, and does not perform error detection when the search circuit 10 does not detect the display position in the above search. That is, the error detection circuit 150 performs error detection when the search circuit 10 can detect a position where the correlation value is equal to or greater than the detection threshold, and does not perform error detection when the search circuit 10 cannot detect a position where the correlation value is equal to or greater than the detection threshold.
[0020] According to this embodiment, when the display image GIN includes a foreground image, error detection is performed, and when the display image GIN does not include a foreground image, error detection is not performed. For example, when a frame image of a moving image is input as the display image GIN, it is assumed that an icon or the like is sometimes displayed in the display image GIN and sometimes not displayed. According to this embodiment, when an icon or the like is displayed in such a moving image, it is possible to check whether the icon or the like is displayed appropriately. Note that the above-mentioned Patent Document 1 and the like do not disclose any technology for performing such image search and error detection as a series of processes.
[0021] 2. Search circuit and error detection circuit 2 shows a detailed configuration example of the search circuit 10. The search circuit 10 includes a first edge detection unit 11, a division unit 12, an input line buffer 13, a second edge detection unit 14, an FFT processing unit 15, an output line buffer 16, and a position detection unit 17. Note that, in the following, an example will be described in which the cross-correlation between the edge image of the display image and the edge image of the reference image is calculated to indirectly obtain the cross-correlation between the display image and the reference image, but the present invention is not limited to this, and the cross-correlation between the display image and the reference image may be directly obtained.
[0022] The first edge detection unit 11 extracts an edge image of the display image GIN by performing a filter process on the display image GIN. The filter process is, for example, a Sobel filter process, but any filter process capable of extracting edges may be used. FIG. 3 shows an example of the display image GIN. In this example, an icon, which is a foreground image GZN, is overlaid on a meter image, which is a background image. The edge image extracted from this display image GIN contains the edge components of the background image and the edge components of the foreground image GZN.
[0023] The dividing unit 12 divides the edge image of the display image GIN into a plurality of individual regions CHK. FIG. 3 shows an example in which the display image GIN is divided into 3×8 individual regions CHK. Note that while FIG. 3 shows the individual regions CHK for the display image GIN, it is the edge image that is divided here. Specifically, the dividing unit 12 divides the edge image into a plurality of strip regions, and divides each strip region into an individual region. In FIG. 3, a three-row strip region is divided into eight columns, resulting in division into 3×8 individual regions CHK.
[0024] The second edge detection unit 14 extracts an edge image of the reference image GRF by performing a filter process on the reference image GRF. The filter process is, for example, a Sobel filter process, but any filter process capable of extracting edges may be used. FIG. 4 shows an example of the reference image GRF. The edge image extracted from the reference image GRF includes an edge image of the icon portion. If the foreground image GZN in the display image GIN is displayed correctly, the edge image of the foreground image GZN will be similar to the edge image of the reference image GRF.
[0025] The input line buffer 13 stores the edge image of the individual region CHK and the edge image of the reference image GRF. The FFT processing unit 15 uses FFT processing and IFFT processing to find the cross-correlation between the edge image of the individual region CHK and the edge image of the reference image GRF. The output line buffer 16 stores the cross-correlation found for each individual region CHK. The input line buffer 13 and the output line buffer 16 temporarily store intermediate data generated by the FFT processing unit 15.
[0026] FIG. 5 shows the flow of processing performed by the FFT processing unit 15. The FFT processing unit 15 performs the following row FFT on each of the edge image of the individual region CHK and the edge image of the reference image GRF. The FFT processing unit 15 reads the edge image row by row from the input line buffer 13, performs FFT processing on each row, and writes the results row by row to the output line buffer 16. The FFT results for each row are composed of data for the same number of points, and the result of the row FFT as a whole becomes data for points in a matrix. Note that the row FFT, which is a one-dimensional FFT, outputs multiple spatial frequency components corresponding to multiple spatial frequencies, and each of these spatial frequency components is referred to as a point here.
[0027] Next, the FFT processing unit 15 performs the following column FFT on the row FFT result for the edge image of the individual region CHK and the row FFT result for the edge image of the reference image GRF. The FFT processing unit 15 reads the row FFT result from the output line buffer 16 column by column, performs FFT processing on each column, and writes the result to the input line buffer 13 column by column. The FFT result for each column is composed of data of the same number of points, and the result of the two-dimensional FFT as a whole becomes data of points in a matrix. The above row FFT and column FFT are combined to form a two-dimensional FFT. The two-dimensional FFT result for the edge image of the individual region CHK and the two-dimensional FFT result for the edge image of the reference image GRF are data with the same number of rows and columns. For example, if the individual region CHK is L×L pixels, the reference image GRF is M×M pixels, and the two-dimensional FFT result has nc rows and nb columns, nc and nb are set so that nc≧L+M-1 and nb≧L+M-1. Usually, nc=nb, but nc and nb may be different. L, M, nc, and nb are integers of 2 or more.
[0028] Next, the FFT processing unit 15 calculates the product of the result of the two-dimensional FFT on the edge image of the individual region CHK and the result of the two-dimensional FFT on the edge image of the reference image GRF, and performs row IFFT on the product. Specifically, the FFT processing unit 15 reads the result of the two-dimensional FFT on the edge image of the individual region CHK and the result of the two-dimensional FFT on the edge image of the reference image GRF from the input line buffer 13 row by row, and multiplies them point by point. That is, when i is 1, 2, . . . , nc and j is 1, 2, . . . , nb, the data in the i-th row and j-th column in the result of the two-dimensional FFT on the edge image of the individual region CHK is multiplied by the data in the i-th row and j-th column in the result of the two-dimensional FFT on the edge image of the reference image GRF. The FFT processing unit 15 performs IFFT processing on the product row by row, and writes the result row by row to the output line buffer 16.
[0029] Next, the FFT processing unit 15 performs the following column IFFT on the result of the row IFFT. The FFT processing unit 15 reads the result of the row IFFT one column at a time from the output line buffer 16, performs IFFT processing on each column, and writes the results one column at a time to the input line buffer 13. The row IFFT and column IFFT described above are combined to form a two-dimensional IFFT. The result of this two-dimensional IFFT is the cross-correlation between the edge image of the individual region CHK and the edge image of the reference image GRF, and the cross-correlation is obtained for each individual region CHK. This cross-correlation for each individual region CHK is transferred from the input line buffer 13 to the output line buffer 16, and is output from the output line buffer 16 to the position detection unit 17.
[0030] The position detection unit 17 generates a cross-correlation between the display image GIN and the reference image GRF by synthesizing the cross-correlation for each individual region CHK. FIG. 6 shows an example of the cross-correlation fcor between the display image GIN and the reference image GRF. x is the horizontal coordinate in the display image GIN of FIG. 3, and y is the vertical coordinate in the display image GIN of FIG. 3. The cross-correlation fcor has a correlation value at each position (x, y). The position detection unit 17 compares the cross-correlation fcor with the detection threshold TH and judges whether or not a position (x, y) where fcor≧TH exists. In FIG. 6, fcor≧TH exists at the position (x', y'). The position detection unit 17 detects the position (x', y') where fcor≧TH as the display position of the foreground image GZN. When the position detection unit 17 judges that there is no position where fcor≧TH exists, it judges that the foreground image GZN is not displayed in the display image GIN.
[0031] FIG. 7 is a diagram for explaining the operation of the error detection circuit 150. HPS is the display position detected by the search circuit 10. Here, an example is shown in which the center of the icon corresponding to the center of the reference image GRF is detected as the display position. The error detection circuit 150 sets an error detection area SAR that includes the foreground image GZN based on the display position HPS. In the example of FIG. 7, the error detection circuit 150 sets a rectangular area that is centered on the display position HPS and can include the foreground image GZN as the error detection area SAR. However, the method of setting the error detection area SAR is not limited to this, and the error detection area SAR may be an area that includes the foreground image GZN and is narrower than the display image GIN. In addition, the display position HPS does not have to be the center of the icon. The error detection circuit 150 obtains a visibility index or a shape index, which will be described later, from the image of the set error detection area SAR, and uses the visibility index or the shape index to determine whether the foreground image GZN is properly displayed.
[0032] In the above embodiment, the search circuit 10 obtains the cross-correlation between the display image GIN and the reference image GRF, and searches for whether or not the cross-correlation has a correlation value exceeding the detection threshold TH. If a correlation value exceeding the detection threshold is present, the search circuit 10 detects the position (x', y') corresponding to the correlation value exceeding the detection threshold as the display position, and if no correlation value exceeding the detection threshold is present, the search circuit 10 does not detect the display position.
[0033] According to this embodiment, the search circuit 10 can detect a position where the correlation between the display image GIN and the reference image GRF is large as the display position of the foreground image GZN. Then, when the search circuit 10 can detect the display position, the error detection circuit 150 performs error detection, and when the search circuit 10 cannot detect the display position, the error detection circuit 150 does not perform error detection.
[0034] In this embodiment, the search circuit 10 divides the display image GIN into a plurality of strips, divides each of the plurality of strips into a plurality of individual areas CHK, and performs a search on each of the plurality of individual areas CHK. The search circuit 10 processes searches on the plurality of individual areas in parallel.
[0035] According to this embodiment, the display image GIN is divided into a plurality of individual regions CHK, and the cross-correlation between the display image GIN and the reference image GRF is calculated for each individual region CHK, and the cross-correlation calculated for each individual region CHK is synthesized to obtain the cross-correlation between the display image GIN and the reference image GRF. In addition, the processing speed can be improved by calculating the cross-correlation in parallel for each individual region CHK. For example, when performing error detection on a moving image, it is desirable to have a small delay until the error detection is completed, and the error detection can be speeded up by improving the processing speed of the cross-correlation.
[0036] In this embodiment, the search circuit 10 performs a search by calculating the cross-correlation between the display image GIN and the reference image GRF using a Fourier transform and an inverse Fourier transform. In this embodiment, the Fourier transform is performed using an FFT, and the inverse Fourier transform is performed using an IFFT, but the algorithms of the Fourier transform and the inverse Fourier transform are not limited to these.
[0037] According to this embodiment, the cross-correlation is obtained by multiplying the display image GIN after the Fourier transform and the reference image GRF in the frequency domain and then performing an inverse Fourier transform on the result. In addition, the processing speed of the Fourier transform and the inverse Fourier transform can be improved by performing the Fourier transform and the inverse Fourier transform for each individual region CHK.
[0038] 3. Detailed configuration example of circuit device 8 shows an example of the configuration of the circuit device of this embodiment. Here, the circuit device 100 is described as a display controller, but the application of the search circuit 10 and the error detection circuit 150 is not limited to the display controller. The display controller is also called TCON, i.e., Timing Controller.
[0039] The circuit device 100 includes an interface 110, a pre-processing circuit 120, an image acquisition circuit 130, an interface 140, an error detection circuit 150, a CRC circuit 160, a register circuit 170, an icon processing circuit 180, an interface 190, and a memory 195. In the following, the displayed image is also called an analysis image, and the error detection region is also called a region of interest or ROI. ROI is an abbreviation for Region Of Interest.
[0040] The interface 110 receives image data transmitted from, for example, the processing device 200 to the circuit device 100, and converts the received image data into a format used inside the circuit device 100. For example, the interface 110 is OpenLDI, and converts a serial signal received via LVDS into an RGB parallel signal. The processing device 200 is, for example, an MCU or a CPU. OpenLDI is an abbreviation for Open LVDS Display Interface, LVDS is an abbreviation for Low Voltage Differential Signaling, MCU is an abbreviation for Micro Control Unit, and CPU is an abbreviation for Central Processing Unit.
[0041] The pre-processing circuit 120 performs various image processing on the image data input from the interface 110. For example, the pre-processing circuit 120 performs gamma correction, FRC, white balance processing, etc. FRC is an abbreviation for Frame Rate Control. For example, a one-dimensional lookup table for each of the R channel, G channel, and B channel is stored in the memory 195, the register circuit 170, or a non-volatile memory (not shown), and gamma correction is performed for each channel using the lookup table. In FRC, a process of expressing pseudo intermediate gradations is performed by switching gradations between frames. In white balance processing, for example, a one-dimensional lookup table for adjusting white balance is stored in the memory 195, the register circuit 170, or a non-volatile memory (not shown), and the RGB channels are adjusted using the lookup table.
[0042] The icon processing circuit 180 generates or acquires an icon image. The icon image corresponds to the reference image GRF described above. For example, a mask image of an icon is stored in the memory 195, and the icon image is generated by converting the mask image into an RGB image. The mask image is a k-bit image in which each pixel has k-bit data. k is an integer equal to or greater than 1. 2 k The index color tables are stored in the memory 195, the register circuit 170, or a non-volatile memory (not shown), and k-bit data is converted into RGB data according to the color tables. For example, when k=2, the color table is a lookup table in which four colors correspond to two-bit indexes. Alternatively, when k=1, the color table is a lookup table in which two colors correspond to one-bit indexes, and a specific color is associated with "0" representing a pixel in the background, and another color is associated with "1" representing a pixel in the foreground. The other color is a specific color different from the background. The memory 195 is, for example, a RAM such as an SRAM.
[0043] An image input from the pre-processing circuit 120 to the image acquisition circuit 130 is called an input image. The image acquisition circuit 130 superimposes an icon image on the input image to synthesize the icon image on the input image, and outputs the synthesized image to the interface 140 as a display image. The icon image superimposed on the input image corresponds to the foreground image GZN described above. The portion of the input image where the icon image does not overlap and remains corresponds to the background image described above. For example, the image acquisition circuit 130 superimposes the icon image on the input image so that the icon image completely hides the background. Alternatively, the icon image and the background may be blended at a given blend ratio. The position where the icon image is superimposed on the input image is set, for example, in the register circuit 170, the memory 195, or a non-volatile memory (not shown).
[0044] In the above, a case has been described in which image acquisition circuit 130 overlays an icon image, which is a foreground image, on an input image, which is a background image, but this is not limiting. That is, an input image on which an icon image, which is a foreground image, has already been overlaid may be input to image acquisition circuit 130. For example, as described above, interface 110 receives image data from processing device 200 or the like, and the image data may be image data on which an icon image has already been overlaid. In any case, it is sufficient that the display image output by image acquisition circuit 130 is an image including an icon image, which is a foreground image.
[0045] The search circuit 10 searches the display position of the foreground image from the displayed image. The search method is as described above. The error detection circuit 150 judges from the image of the error detection area whether or not the icon image is properly displayed in the error detection area. The error detection method will be described in detail later.
[0046] The interface 140 outputs the display image to the outside of the circuit device 100. For example, the interface 140 outputs the display image to a display driver that drives a display panel. For example, the interface 140 is an LVDS interface, and converts the RGB parallel signal from the image acquisition circuit 130 into an LVDS serial signal. When an error is detected by the error detection circuit 150, the interface 140 stops outputting the display image. Alternatively, the interface 140 may output the display image together with error information detected by the error detection circuit 150, and the display driver that receives the error information may perform an operation based on the error information. The error information is, for example, an error determination flag or an index. The operation based on the error information is stopping the display, etc.
[0047] The interface 190 communicates setting information, control information, and the like between the circuit device 100 and the processing device 200. For example, the interface 190 is a serial communication interface such as an SPI or I2C interface. SPI is an abbreviation for Serial Peripheral Interface. The setting information and control information from the processing device 200 are written, for example, to the register circuit 170, and the circuit device 100 operates in accordance with the setting information and control information.
[0048] The CRC circuit 160 performs error detection using CRC on the image data received by the interface 110. That is, it compares a reference CRC value input from the processing device 200 via the interface 190 with a CRC value calculated from the image data received by the interface 110, and detects whether they match.
[0049] The pre-processing circuit 120, the image acquisition circuit 130, the error detection circuit 150, the CRC circuit 160, and the icon processing circuit 180 are logic circuits. These logic circuits may be configured as individual circuits, or may be configured as an integrated circuit by automatic placement and wiring, for example. Also, some or all of these logic circuits may be realized by a processor such as a DSP. DSP is an abbreviation for Digital Signal Processor. In this case, a program or an instruction set describing the function of each circuit is stored in memory, and the function of each circuit is realized by the processor executing the program or instruction set.
[0050] 4. Error detection process The error detection process performed by the error detection circuit 150 will now be described.
[0051] Image processing systems that display content on a display may need to check whether a certain region of an image matches the original intent. For example, consider a case where an important image is to be displayed on a cluster display in an automotive system. In this case, certain important information needs to be displayed via a visible image overlaid on the existing content displayed on the screen. In the following, several methods are described for detecting whether an image is displayed correctly. Detection is performed by analyzing the error detection region and deriving several key indicators that indicate the degree to which the region is displayed correctly.
[0052] Below, methods and concepts are used to verify a displayed image against a reference. This is accomplished by computing the match of a displayed image against a reference image. Although examples of the disclosed techniques are described below as being applied to color images, the disclosed techniques can also be applied to grayscale or binary images.
[0053] FIG. 9 is a flowchart showing the process flow of the error detection process. In steps S1 and S2, the error detection process involves overlaying an icon image on an input image to obtain a display image. Next, in step S4, the reference image obtained in step S3 is compared with the display image obtained in step S2 to perform the error detection process, and an index is obtained in step S5. Note that the reference image is not necessarily obtained. For example, when obtaining a visibility index, the index may be calculated using only the display image without using the reference image.
[0054] The error detection process verifies the validity of the displayed image in the error detection region by comparing the displayed image with a reference image, which does not detect color shifts, luminance changes, changes due to scaling or certain intentional image transformations as errors, but detects other important errors such as distortions due to unintentional rotation, and errors due to cropping or noise that make the image unrecognizable to the user.
[0055] To achieve this, we use two indices: a visibility index and a shape index. The visibility index is a value that specifies the degree to which the image of the error detection area can be seen without blending into the background. The visibility index is also called the first index, and the shape index is also called the second index.
[0056] As described above, the error detection process is applied to color images. It can also be applied to black and white or grayscale images by using one channel for gray or using only two values in one channel for binary images. To achieve this, the pixels in the error detection area in the displayed image are converted from RGB format to YCbCr format. However, the disclosed technique can also be applied to other color spaces such as Lab or Hsv.
[0057] 4.1. First calculation method for determining visibility index Fig. 10 shows histograms of each of the YCbCr channels in the error detection region, and Fig. 11 shows the autocorrelation values obtained by performing an autocorrelation calculation on the histograms.
[0058] For each channel of the YCbCr image, a histogram is calculated using n bins, as shown in Figure 10. For example, 256 bins can be used to generate histograms with different sets of bins.
[0059] The histogram counts the number of times a particular value occurs in the error detection region. That is, for each channel of the YCbCr image, the number of pixels having the value indicated by each bin is counted within the error detection region. The histogram is then normalized to a value between 0 and a. The value "a" can be selected considering ease of implementation, for example, 1 or 255. In FIG. 10, a=1. Next, the histogram of each channel is autocorrelated with itself, and the autocorrelation signal is used for subsequent analysis. As shown in FIG. 11, the autocorrelation signal is normalized so that the peak value at zero delay is 1 or a preset value.
[0060] The autocorrelation value is calculated by the following formula (1). f and g represent functions to be correlated, and in the case of autocorrelation, f=g. The function here is the histogram signal. f*g represents the correlation calculation between the functions f and g. * represents the complex conjugate of the function f, and in this embodiment, * = f. m represents the bin number of the histogram. n represents the delay, and in FIG. 11, n is an integer between -255 and +255. The delay is also called lag.
number
[0061] In the histogram in Fig. 10, the 256 bins are normalized between 0 and 1, so the horizontal axis ranges from 0 to 1. The correlation values in Fig. 11 are calculated by changing the delay for each bin, so the horizontal axis ranges from -(256-1) to +(256-1).
[0062] As shown in Figure 11, when a two-color image is present in the error detection region, the autocorrelation operation will produce sidebands. The delay distance from zero delay at which the peak occurs indicates the contrast between the colors. The contrast is luminance contrast and chromatic contrast. Since contrast allows the human eye to distinguish image features, the peaks of all three channels are checked. In Figure 11, the Y channel is shown by a dotted line, the Cb channel by a thin solid line, and the Cr channel by a thick solid line. The check is performed by setting a peak search threshold so as not to pick up noise in the autocorrelation signal. For example, the minimum peak threshold is set to 0.05. In the signal, peaks with peak values greater than the threshold are searched for to obtain local maxima.
[0063] Note that in order to avoid in-band signal peaks, the minimum distance between successive peaks can also be set to a predefined value. These thresholds are adjustable values and are selected according to the application.
[0064] To determine a first indication of whether a distinguishable image is shown on a background of two or more colors, all peaks in the autocorrelation signal that exceed a noise threshold are determined for all channels, and then the maximum distance at which the peaks occur is determined, which is the maximum delay. The maximum delay at which the peaks occur in the three channels is selected as an indication of visibility.
[0065] In the correlation plot shown in Figure 11, the peaks are shown as circles. In the example shown, the Cr channel shows the largest separation, with a distance of 184. The above values are normalized to the maximum possible delay. For example, the maximum possible delay is 256, which is the number of bins in the histogram. Therefore, the index value is 184 / 255=0.722. In the image shown in Figure 12, the index value is shown as the Vis parameter. The above calculation is shown for one example.
[0066] FIG. 12 is a first example of a display image. A1 is an error detection area, and A2 is an icon. Note that the dotted line indicating the error detection area is not actually drawn in the display image. For example, the inside of the icon A2 shown in black in FIG. 12 is red, and the background shown in white in FIG. 12 is green.
[0067] In the image of FIG. 12, since there are two groups of pixels of red and green in the error detection region, two peaks occur in each channel of YCbCr in the histogram shown in FIG. 10. For example, peaks occur in bins Ba and Bb in the Cr channel. The distance between these two peaks represents the contrast between the color of the icon in the foreground and the color of the background, and the greater the distance, the more different the colors of the foreground and the background are. The distance between the two peaks in the histogram is the delay distance at which a peak occurs in the autocorrelation value shown in FIG. 11. In the image of FIG. 12, since the foreground is red and the background is green, the distance between the two peaks in the Cr channel is the maximum distance in the histogram shown in FIG. 10, and the distance is |Ba-Bb|×255. This is detected as the maximum distance at which a peak occurs in the autocorrelation value shown in FIG. 11, and the normalized index value is |Ba-Bb|. Therefore, the greater the contrast between the color of the foreground and the color of the background, the greater the visibility index value.
[0068] The error detection circuit 150 performs error detection based on the visibility index obtained as described above. For example, the visibility index is compared with a given threshold, and if the visibility index is smaller than the given threshold, an error is determined. Alternatively, the visibility index may be output to the outside of the circuit device 100 as an error detection result.
[0069] 4.2. Second to fourth calculation methods for determining visibility index In the second calculation method, a visibility index is obtained by using a cross-correlation calculation.
[0070] The first calculation method uses autocorrelation calculation to check the visibility of the reference in the error detection area. The reference image in this case does not contain any information about the background image, such as color. Therefore, only the displayed image is analyzed to check whether the composite image contains two or more colors.
[0071] In the second calculation method, it is assumed that the reference image contains the entire information. For example, it is assumed that the source image is changed by the display process. In this case, the histogram of the reference image is created in the same manner as the histogram of the display image, and instead of the autocorrelation calculation, a cross-correlation calculation between the histogram signals of the reference image and the display image can be performed. Mathematically, the autocorrelation calculation is a cross-correlation calculation of the signals themselves. Therefore, the cross-correlation calculation or the autocorrelation calculation can be performed by changing only the input signal for the correlation calculation. That is, in the above formula (1), the histogram of the reference image is one of f and g, and the histogram of the display image is the other of f and g.
[0072] In the case of cross-correlation, instead of finding the distance of the peak from the center, it is checked whether the cross-correlation signal has a peak exceeding a certain threshold. If such a peak is present, the reference image and the displayed image are quite similar, as far as the pixel distribution is taken into account. This allows a first level of error detection for the displayed image. This parameter does not indicate spatial correlation, only pixel distribution correlation. The indicator in this case can be the peak value itself, instead of the distance of the peak from the center as in the case of auto-correlation.
[0073] Fig. 13 is an example of a histogram when the foreground of an icon or the like is a multitone of two or more colors. Fig. 14 is an example of the cross-correlation value of the histogram of Fig. 13. Here, one channel of a color image is described, but similar processing is performed for multiple channels. For example, the maximum peak value among the peaks of the cross-correlation values of multiple channels may be used.
[0074] As shown in Fig. 13, the histograms of the display image and the reference image have three or more peaks. Suppose that the peak of the histogram of the display image and the peak of the histogram of the reference image are shifted by Bn. In this case, as shown in Fig. 14, a large peak appears at the delay Bn in the cross-correlation value. If the peak value of this peak is larger than a threshold value Thr, for example, the peak value is adopted as the visibility index value.
[0075] The third calculation method calculates the contrast ratio between the foreground and background as an index of visibility.
[0076] In the first calculation method, the difference |Ba-Bb| between bins Ba and Bb at which a peak occurs in the histogram of the Cr channel is used as an index value of visibility.
[0077] In the third calculation method, the contrast ratio |Ba-Bb| / Ba or |Ba-Bb| / Bb is calculated and used as the index value of visibility. Alternatively, when using a reference image like the second calculation method, C1=|Ba-Bb| in the displayed image and C2=|Ba-Bb| in the reference image are calculated, and the contrast ratio C1 / C2 or C2 / C1 is calculated and used as the index value of visibility.
[0078] In the fourth calculation method, a multi-dimensional histogram is generated to obtain the visibility index.
[0079] The first calculation method uses one-dimensional histograms of each channel for visibility analysis.
[0080] In the fourth calculation method, a multi-dimensional histogram is generated from the signals of multiple channels, and a multi-dimensional autocorrelation or cross-correlation calculation is performed on the multi-dimensional histogram to obtain a visibility index. This may be able to better simulate the contrast detection of the human eye. Better performance may be obtained by using a 3D color histogram.
[0081] According to the above embodiment, the error detection circuit 150 obtains a histogram of pixel values of the display image, and performs a correlation calculation using the histogram. In this embodiment, the histogram of each channel of YCbCr shown in FIG. 10 corresponds to the histogram of pixel values, and the correlation calculation described in FIG. 11 is performed on the histogram. The error detection circuit 150 obtains an index representing the degree of dissimilarity between a foreground image, which is an image of a given area of the display image, and a background image, which is an image of the background of the foreground image of the display image, based on the result of the correlation calculation, and performs error detection based on the index. The index here is a visibility index.
[0082] In this way, it is possible to detect an error in a display image based on an index representing the degree of dissimilarity between a foreground image and a background image of a display image, rather than detecting an error in units of bits like CRC. When the foreground image has a high degree of dissimilarity with respect to the background image, it is highly likely that the foreground image is visually distinguished from the background image, and therefore the visibility of the foreground image is considered to be high. That is, according to this method, it is possible to determine an error when the visibility of the foreground image is low. For example, an icon or the like for warning a user is displayed on an in-vehicle meter panel. According to this embodiment, such an icon is not stopped from being displayed due to a 1-bit error or the like, and is displayed as much as possible when visibility is ensured, so that a warning can be given to the user.
[0083] Here, in FIG. 8, the image acquisition circuit 130 is an OSD, but is not limited thereto, and the image acquisition circuit 130 may be a circuit that acquires any display image. OSD is an abbreviation for On-Screen Display. Details will be explained in "5. Modifications." A display image is an image that is generated or the like to be displayed on a display. In the above embodiment, the display image is an image rendered by the OSD, but is not limited thereto, and may be, for example, an image generated by some kind of image processing, an image received by communication, or an image read from a memory.
[0084] Error detection means outputting an error detection result based on an index, for example, determining whether an error exists in the display image based on the index. Alternatively, it may be outputting the index as the error detection result. For example, the higher the dissimilarity between the foreground image and the background image, the larger the value of the index. In this case, it is determined that the display image contains an error if the index is smaller than a given value.
[0085] The foreground image is an image of a region of the display image for which the degree of dissimilarity with the background image is to be determined using an index. The region is a given region. For example, a mask image that specifies the foreground is stored in a memory or the like. For example, a pixel that is "1" in a 1-bit mask becomes a pixel that defines the foreground, and the pixel of the foreground image is identified by the pixel that defines the foreground. More specifically, a position on the display image to which the mask image that defines the foreground is applied is specified, and the foreground is identified from that position and the mask image.
[0086] The background image is the display image excluding the foreground image. That is, an error detection area including the foreground image is set in the display image, and the image of the error detection area excluding the foreground image is the background image. For example, a pixel of "0" in a 1-bit mask becomes a pixel that defines the background in the mask image, and the pixel of the background image is specified by the image that defines the background.
[0087] The dissimilarity degree is the degree of dissimilarity between each component of the color space. The components of the color space are also called channels. For example, in the YCbCr space, it is the degree to which the luminance of the foreground image differs from the luminance of the background image, or the degree to which the color of the foreground image differs from the color of the background image. Or, in the RGB space, it is the degree to which the color of the foreground image differs from the color of the background image.
[0088] In this embodiment, the error detection circuit 150 calculates a histogram of each of the components constituting the color space, as described in Fig. 10. As described in Fig. 11, the error detection circuit 150 performs an autocorrelation calculation on the histogram of each component, calculates the distance at which the autocorrelation peak occurs for each component, and calculates an index based on the maximum distance (|Ba-Bb|) among the calculated distances.
[0089] In this way, an index can be obtained from the component that is the largest difference between the foreground image and the background image among the components of the color space. The component that is the largest difference between the foreground image and the background image is considered to be the component that is visually most different, so by obtaining an index from that component, the visibility of the foreground can be appropriately evaluated. Visibility here refers to the degree of dissimilarity with the background.
[0090] Here, the index may be any value calculated based on the maximum distance |Ba-Bb|. For example, in the first calculation method, the index is the maximum distance |Ba-Bb| itself. In the second calculation method, the index is a contrast ratio based on the maximum distance |Ba-Bb|. The contrast ratio is |Ba-Bb| / Ba, etc.
[0091] In this embodiment, as described in Fig. 13, the error detection circuit 150 obtains a first histogram of each component of the color space from the display image as a histogram, and obtains a second histogram of each component from a reference image corresponding to the foreground image. As described in Fig. 14, the error detection circuit 150 performs a cross-correlation calculation between the first and second histograms for each component, and obtains an index based on the peak value of the cross-correlation peak.
[0092] In this way, even if the reference image contains two or more colors, it is possible to obtain an index that represents the degree of dissimilarity between the foreground image and the background image. In other words, if the histogram of the reference image has two or more peaks, and the histogram of the displayed image contains the same pattern as this histogram, it means that the displayed image contains an image that is similar to the reference image at least in terms of color or brightness pattern. In this case, a large peak should occur in the result of the cross-correlation calculation, so by obtaining an index from that peak value, the visibility of the foreground can be appropriately evaluated.
[0093] Here, the reference image is an image corresponding to the foreground image when it is assumed that the foreground image is correctly displayed in the display image. More specifically, it is an image in which at least the pattern of peaks in the histogram is the same as that of the foreground image. In this case, it is sufficient that the relative positional relationship between the peaks is the same as in FIG. 13, and it does not matter if the entire pattern is shifted.
[0094] In this embodiment, the error detection circuit 150 obtains a second index representing the degree of matching between the foreground image and the reference image based on the pixel values of the display image and the pixel values of a reference image serving as a reference for the foreground image, or based on the edges of the display image and the edges of the reference image. Error detection is performed based on the index and the second index. The index here is a visibility index, and the second index is a shape index.
[0095] In this way, it is possible to detect errors in a displayed image by combining two indices that evaluate different properties. That is, by combining an index that indicates the degree of dissimilarity in brightness or color between a foreground image and a reference image with a second index that indicates the degree of matching in shape between the foreground image and the reference image, it is possible to detect errors in a displayed image with higher accuracy. Details of the second index will be described later.
[0096] In this embodiment, the image acquisition circuit 130 generates a display image by overlaying a second image in a given area of the first image. The background image is an image that corresponds to the first image among the display images. In this embodiment, the input image corresponds to the first image, and the reference image corresponds to the second image.
[0097] In this way, a display image can be generated by overlaying, for example, icons or characters on an input image by the OSD. In this case, the overlaid characters or icons correspond to a foreground image, and the other parts of the original input image correspond to a background image. In this embodiment, by detecting an error in such a display image, it becomes possible to determine that an error has occurred when icons or characters are not properly overlaid in the OSD so that the user can see them. On the other hand, even if a processing error of about 1 bit has occurred in the overlay, it is not determined to be an error if visibility is ensured, and therefore the icons and characters can be presented to the user.
[0098] This embodiment can also be implemented as an error detection method as follows: That is, in this method, a histogram of pixel values of a display image is obtained, a correlation calculation is performed using the histogram, an index representing the degree of dissimilarity between a foreground image, which is an image of a given area of the display image, and a background image, which is an image of the foreground image of the display image, is obtained based on the result of the correlation calculation, and an error in the display image is detected based on the index.
[0099] The present invention can also be implemented as an error detection method, which involves analysing an error detection region of a displayed image and computing a metric describing the visibility of the foreground relative to the background, optionally using a reference image as a mask to identify the foreground. The metric is computed using either of the following techniques: (a) using a histogram of the displayed image to look for separation between foreground and background; and (b) calculating the contrast ratio between the foreground and background.
[0100] 4.3. First calculation method of shape index The shape index is an index that indicates whether the shape of the image included in the error detection region matches the reference image. A method for calculating the shape index will be described below.
[0101] First, pixel blocks in the error detection region of the display image are averaged so that the final averaged image is m×n pixels. This subsampling process is done so that a small number of pixel errors are not detected as significant errors, and these errors such as color shifts or small distortions are ignored to confirm the overall shape of the reference image and the display image. To obtain a perfect match, the resolution of the subsampled image can be increased. The value of m×n can be selected depending on the application. When used in conjunction with a reference image as described below, the value of m×n is selected based on sample data observations.
[0102] If the error detection region of the display image is u x v pixels, then the averaging block size is u / m x v / n pixels. If reference background information is not available, pixels of the display image where there are no reference pixels are deleted. This corresponds to reference foreground masking. This is done because it is necessary to baseline the background pixels between the reference image and the display image. Baselining means to align or make the conditions the same. Therefore, the values of the background pixels are set to the same value in both the display image and the reference image.
[0103] The reference image is also averaged to m×n pixels. Averaging is performed separately for each channel. FIG. 15 is an example of a reference image. The foreground F1 of the reference image RIA is an icon and is colored. The background is the area other than the icon and is colorless, for example, black. In FIG. 15, the size of the reference image RIA is 256×256 pixels. FIG. 16 is an averaged image of the reference images. In FIG. 16, m=n=16, and the size of the averaged image SRef is 16×16 pixels. Since this reference image and its averaged image have colorless backgrounds, the error detection area of the display image is also converted to have a colorless background, and an averaged image of the error detection area is obtained.
[0104] Next, the averaged image SRef of the reference image and the averaged image SAnz of the error detection region of the display image are compared pixel by pixel using a distance criterion to obtain the distance D according to the following formula (2). SRef and SAnz are m×n pixels. The distance D is a three-dimensional distance. In this embodiment, the distance criterion is the square of the Cartesian distance, but similar parameters can be obtained even if other distance criteria are used.
number
[0105] c represents the channel, x represents the horizontal pixel position in the averaged image, and y represents the vertical pixel position in the averaged image. The horizontal direction is the horizontal direction, and the vertical direction is the vertical direction. m and n are the size of the averaged image. R xyc R' represents the pixel value at position (x, y) of the averaged image of the reference image in channel c. c is R in channel c xy It represents the average value of the pixels. The average value is R xyc is averaged within the averaged image. A xyc A' represents the pixel value at position (x, y) of the averaged image of the displayed image in channel c. c is the A in channel c xy It represents the average value of the pixels. The average value is A xyc is averaged within the averaged image.
[0106] The reason for subtracting the average value in each channel is to ensure that small color shifts between the reference and display images are not treated as errors. If a perfect match is required, the average value can be set to 0. In this case, the distance criterion will check for shape and color match.
[0107] The displayed image is, for example, as shown in Fig. 12. The error detection area A1 is extracted around the area where the reference image is combined with the input image. In Fig. 12, the error detection area is indicated by a rectangle with dotted lines.
[0108] The shape index S is derived from the distance parameter by the following formulas (3) and (4). S is also called the shape parameter. T is a threshold value and can adopt any value. When D < T, then T / D = 1 and the shape index S does not change.
Number
Number
[0109] The function f is selected so that it is easy to implement on hardware. For example, the function f may be a scaling function K such that the range 0 to 1 is scaled to 0 to k. In the example described below, the function f is the identity function. That is, S = T / D. The shape index S indicates the degree of shape match between the reference image and the display image. When the images do not match, this value tends to decrease and become 0. An example thereof is described below.
[0110] In FIG. 12, the icon of the reference image is correctly displayed in the display image. In this case, the shape index is S = 1. In FIG. 12, it is shown as Shape: 1.000.
[0111] FIG. 17 is a second example of the display image. B1 indicates the error detection area. As shown in B2 of FIG. 17, the icon of the reference image is unclear in the display image. That is, some of the reference pixels do not exist in the display image, and when the function f is the identity function, the shape index S is less than 1. In such a case of an unclear foreground, both the visibility index and the shape index become small values.
[0112] FIG. 18 is a third example of a display image. E1 indicates an error detection area. As shown in E2 of FIG. 18, the icon of the reference image is rotated in the display image. In this example, since the shape is rotated from the reference, when the function f is a unit function, the shape index S is less than 1. When the foreground is rotated in this way, the visibility index has a relatively large value, and the shape index has a small value. In this way, by combining the visibility index and the shape index, it is possible to perform appropriate error detection in various foreground conditions, and the accuracy of error detection can be improved.
[0113] It should be noted that although the above discussion has focused on cases where the display image and the reference image are available as images, the application of this disclosure is not limited thereto, for example the same operations can be readily performed when images are streamed as lines, pixels or sub-images.
[0114] The shape index only checks the match of the base signal. In the case of an image with low visibility, the edge detection kernel is convolved with the error detection region of the displayed image and the reference image to generate a first-order gradient image, and then the parameters can be obtained by a shape calculation algorithm. The edge detection kernel is Laplacian or Sobel, etc. The obtained parameters can eliminate the false positives obtained by the shape index. In this way, a correct error detection result can be obtained even in the case of an image with low visibility.
[0115] 4.4. Second calculation method of shape index FIG. 19 is a fourth example of the display image. FIG. 19 shows an example in which an icon ICA is superimposed on a dashboard image DIM. The foreground and background of the icon image are separated and alpha-blended into the dashboard image. In the above case, the foreground of the icon image is partially blended, while the background of the icon image is completely blended. Here, the foreground of the icon image is the icon portion of the icon image. In FIG. 20, the icon portion is shown as a black portion, and is a pixel with a bit "1" of the MSB of the mask image. The background of the icon image is a portion other than the icon of the icon image. In FIG. 20, the portion other than the icon is shown as a white portion, and is a pixel with a bit "0" of the MSB of the mask image. In the background of the icon image, the icon image is blended at a ratio of 0 and the dashboard image DIM is blended at a ratio of α and (1-α) in the foreground of the icon image. 0<α<1. The icon blended at the ratio α becomes the foreground in the display image, and the other area becomes the background in the display image.
[0116] In this embodiment, the relationship between this icon and the original icon is analyzed to check whether the icon is displayed correctly. Specifically, an edge detection technique such as the Sobel edge detection convolution operator is used to detect edges in the error detection region as well as against the reference.
[0117] FIG. 20 is a first example of an error detection region and a mask image of a reference image and a display image. The mask image MSB is a mask showing the foreground and background of the reference image ICB, where black indicates foreground pixels and white indicates background pixels. The reference image ICB, which is a reference icon, is an image in which the foreground, which is an icon, is colored. The display image CIB, which is a display icon, is an image of an error detection region in which the reference image ICB is blended with the dashboard image DIM. In the icon portion, the dashboard image DIM is visible through the blend.
[0118] Figure 21 shows an example of edge values calculated from a reference image and a display image. EICB is the edge image of the reference image ICB, and ECIB is the edge image of the display image CIB. Due to the relationship shown in the figure, the edges are indicated by black lines and gray lines, but actually, the intensity of the edges can be shown in grayscale. White indicates a high-intensity edge, and black indicates no edge. This edge detection is performed on the luminance channel. Similarly, edge detection can also be performed on the color channels or in a color space such as YCbCr.
[0119] Edges in the foreground region and the background region are calculated for the reference image and the display image, and the shape index is calculated by calculating similar amounts as shown in the following formulas (5) to (16). Match in the following formula (16) is the shape index. Hereinafter, it is assumed that the reference image has a size of m×n pixels, and the error detection region of the display image is also m×n pixels.
[0120] The following formula (5) is the horizontal Sobel kernel. The horizontal Sobel kernel is an operator of the Sobel filter that detects horizontal edges. The following formula (6) is the vertical Sobel kernel. The vertical Sobel kernel is an operator of the Sobel filter that detects vertical edges.
Equation
Equation
[0121] As shown in the following formulas (7) to (12), edge values are calculated for each pixel position in the error detection regions of the reference image and the display image. "*" is the convolution operator. N is a normalization coefficient for keeping the value between 0 and 1, and here N = 4. IRef is the luminance channel of the reference image. IRef (x,y) is the pixel at positions x and y in the luminance channel of the reference image. x is an integer where 0 < x ≦ m, and y is an integer where 0 < y ≦ n. IRen is the luminance channel of the display image in the error detection region. IRen (x,y)is a 3×3 pixel region centered on position x, y of the luminance channel of the displayed image in the error detection region.
number
number
number
number
number
number
[0122] As shown in the following expressions (13) to (16), a shape index Match is calculated from the above edge values. The shape index Match is also called a matched value. "·" represents an inner product operator.
number
number
number
number
[0123] When the above calculation is applied to Figs. 20 and 21, Match=0.78 is obtained.
[0124] When it is required to calculate the fitness value without analyzing the background, the calculation shown in the following equations (17) to (22) is used.
number
number
number
number
number
number
[0125] M (x,y) denotes a pixel mask that defines which pixels belong to the background and which belong to the foreground. This mask can be a simple 1-bit mask, where background is defined by 0 and foreground by 1, or it can be a mask of 1 or more bits that supports anti-aliased edges, where values between 0 and 1 are treated as partial background and partial foreground. For example, a value of 0.25, which is "01" in 2-bit notation, means 25% foreground and 75% background.
[0126] FIG. 22 is a second example of the error detection region and mask image of the reference image and the display image. The reference image ICC, the display image CIC, and the mask image MSC are the same as the reference image ICB, the display image CIB, and the mask image MSB in FIG. 20. FIG. 23 is an example of edge values calculated from the reference image and the display image. EICC is the edge image of the reference image ICC, and ECIC is the edge image of the display image CIC. In the edge image ECIC of the display image, the edge component of the background of the icon is M (x,y) As shown in Figure 22, the above calculation increases the shape index Match to 0.82.
[0127] According to the above embodiment, the error detection circuit 150 calculates an index representing the degree of coincidence between a foreground image, which is an image of a given area of the display image, and the reference image, based on pixel values of the display image and pixel values of a reference image serving as a reference for the foreground image, or based on pixel values of an edge image of the display image and pixel values of an edge image of the reference image, and performs error detection of the display image based on the index. The pixel values of the edge image correspond to the edge amount. The index here is a shape index.
[0128] In this way, it is possible to detect an error in a display image based on an index that indicates the degree of match between a foreground image of the display image and a reference image, rather than bit-by-bit error detection such as CRC. When the foreground image has a high degree of match with the reference image, it is highly likely that the foreground image will visually look the same as the reference image. That is, according to this method, it is possible to determine that an error has occurred when the shape of the foreground image is not displayed correctly. For example, an icon or the like for warning the user is displayed on an in-vehicle meter panel. According to this embodiment, such an icon is displayed as much as possible when the display does not stop due to a 1-bit error or the like, and the shape can be correctly recognized, thereby warning the user.
[0129] Here, the first calculation method shown in the above formulas (3) to (5) corresponds to a case where the index S is calculated based on pixel values of the display image and pixel values of a reference image that serves as a reference for the foreground image. The second calculation method shown in the above formulas (5) to (22) corresponds to a case where the index Match is calculated based on pixel values of an edge image of the display image and pixel values of an edge image of the reference image. The pixel values of the edge image correspond to the edge amounts in the above formulas (7), (10), (17), and (18).
[0130] The degree of matching refers to the degree of matching of the shapes of icons, etc., for example. More specifically, it refers to the degree of matching of the outline and orientation of icons, etc. The icons, etc. may be icons, characters, figures, marks, etc. Furthermore, it may include the degree of matching of the state inside the outline of the icons, etc. The state may be, for example, whether it is filled in or not. For example, the index representing the degree of matching has a larger value as the degree of matching between the foreground image and the background image increases.
[0131] In this embodiment, as described in FIG. 16, the error detection circuit 150 performs subsampling to reduce the number of pixels or the resolution of the display image and the reference image. As described in the above formula (2), the error detection circuit 150 obtains distance information representing the distance in color space between the pixel values of the subsampled display image and the pixel values of the subsampled reference image. As described in the above formulas (3) and (4), the error detection circuit 150 obtains an index from the distance information.
[0132] Subsampling averages pixel values, reducing the effect of noise such as 1-bit errors when calculating the index. The noise here is a minor error that does not affect the shape. Also, the distance in color space between the pixel values of the display image and the pixel values of the reference image should be small if the shapes match. Therefore, the degree of shape match can be appropriately evaluated by using the distance in color space.
[0133] In this embodiment, the error detection circuit 150 calculates the index from a value obtained by dividing a given threshold by distance information. In the above expressions (3) and (4), the given threshold is T, the distance information is D, and the index is S.
[0134] The higher the degree of matching of shapes, the smaller the distance, so by dividing a given threshold by the distance information, it is possible to obtain an index whose value increases as the degree of matching of shapes increases.
[0135] Furthermore, in this embodiment, as described above in equations (13) and (16), the error detection circuit 150 performs a product-sum operation on the pixel values of the edge image of the display image and the pixel values of the edge image of the reference image, and obtains an index from the result of the product-sum operation.
[0136] An edge image is an image in which the edge amount is defined as the pixel value of each pixel. If the shapes match, the edge image of the display image and the edge image of the reference image should have approximately the same edge amount when compared at the same pixel. Conversely, if the shapes do not match, the edge positions do not match between the display image and the reference image, so that, for example, even if the edge image of the display image has a large edge amount, the edge amount at the same pixel of the edge image of the reference image may be zero. Therefore, when the edge amounts of the same pixels are multiplied and added, if the shapes match, the result of the multiplication and addition will be a large value, and if the shapes do not match, the result of the multiplication and addition will be a small value. Therefore, by using the product-sum operation of the edge amount, the degree of match of the shapes can be appropriately evaluated.
[0137] Here, in the above formula (13), the "product" of the sum of products is the inner product of vectors, but the "product" is not limited to this. For example, if the edge amount is defined as a scalar, the "product" is the product of two scalars.
[0138] Furthermore, in this embodiment, as described in the above equations (18) and (19), the error detection circuit 150 masks the area of the edge image of the display image that corresponds to the background image, and performs a product-sum operation using the masked edge image of the display image.
[0139] In this way, even if an edge is included in the background, the edge can be masked and the product-sum operation of the edge amount can be performed. In other words, the degree of match between the edges of the display image and the reference image can be evaluated without being affected by the edges of the background, thereby further improving the accuracy of error detection.
[0140] This embodiment can also be implemented as an error detection method as follows: In this method, an index is calculated based on pixel values of a display image and pixel values of a reference image serving as a reference for a foreground image, or based on pixel values of an edge image of the display image and pixel values of an edge image of the reference image, to indicate the degree of match between a foreground image, which is an image of a given area of the display image, and the reference image, and an error in the display image is detected based on the index.
[0141] The present invention may also be implemented as a method for error detection, which comprises analysing error detection regions of a display image and computing a metric describing the similarity with a reference image, the metric being computed using either of the following techniques: (a) comparing 3D distance errors of subsampled pixels of the display image and the reference image; or (b) comparing 3D distance errors of edges of the display image and the reference image.
[0142] 5. Variations An icon display status may be input to the circuit device 100 from a system such as the processing device 200 in Fig. 8. The icon display status is a status indicating whether an icon is displayed or not, or a status indicating which icon is displayed. This allows the circuit device 100 to detect that an icon of a different type from the icon that the system intended to display is being displayed, that an icon is not actually being displayed despite the system intended to display an icon, or that an icon is actually being displayed despite the system not intended to display an icon.
[0143] In the above embodiment, the error detection method of the present disclosure is applied to a display controller, but the application of the present disclosure is not limited to this. In other words, the present disclosure can be applied to any stage of a path for processing or transferring a display image.
[0144] For example, a display driver that drives a display panel may be a circuit device to which the present disclosure is applied. In this case, for example, an interface to which image data is input in the display driver corresponds to an image acquisition circuit, and an error detection circuit is provided between the interface and the driver circuit. For example, no overlay or the like is performed, and the error detection circuit performs the error detection of the present disclosure on a given area, such as an icon, in an image received by the interface.
[0145] In the above embodiment, the image acquisition circuit 130 generates a display image by overlaying an icon on an input image that has been input to a display controller and preprocessed, but the application of the present disclosure is not limited to this. That is, the image acquisition circuit 130 can acquire any image as a display image.
[0146] For example, the image acquisition circuit 130 may use the input image itself as the display image. In this case, the input image already includes, for example, an icon, and the area including the icon or the like is set as the error detection area.
[0147] Alternatively, the image acquisition circuit 130 may use an image obtained by scaling the input image as the display image. In this case, the input image includes, for example, an icon, and the icon is scaled, and a region including the scaled icon is set as the error detection region.
[0148] Alternatively, the image acquisition circuit 130 may use an image obtained by gamma-converting an input image as the display image. In this case, the input image includes, for example, an icon, and the icon is gamma-converted, and an area including the gamma-converted icon is set as the error detection area.
[0149] Alternatively, the image acquisition circuit 130 may use an image obtained by transforming an input image as a display image. In this case, the input image may include an icon, and the icon or the entire input image may be transformed, and the area including the transformed icon may be set as the error detection area. For example, an image may be transformed in order to be displayed on a head-mounted display or the like.
[0150] Alternatively, the image acquisition circuit 130 may read an image stored in a memory and display the image. In this case, the memory controller corresponds to the image acquisition circuit 130. Alternatively, the image acquisition circuit 130 may display an image received by an interface. In this case, the interface corresponds to the image acquisition circuit 130.
[0151] 6.Electronic equipment 24 is a configuration example of an electronic device including the circuit device of this embodiment. The electronic device 300 includes a processing device 310, a circuit device 320, a display driver 330, a display panel 340, a storage device 350, an operation device 360, and a communication device 370. The processing device 310 is, for example, an MCU. The circuit device 320 is, for example, a TCON.
[0152] The processing device 310 transfers image data stored in the storage device 350 or image data received by the communication device 370 to the circuit device 320. The circuit device 320 performs image processing on the image data, display timing control, error detection processing on the image data to be transferred to the display driver, and the like. The display driver 330 drives the display panel 340 to display an image based on the image data transferred from the circuit device 320 and the display timing control by the circuit device 320. The display panel 340 is, for example, a liquid crystal display panel or an EL display panel, etc. The storage device 350 is, for example, a memory, a hard disk drive, an optical disk drive, etc. The operation device 360 is a device for a user to operate the electronic device 300, and is, for example, a button, a touch panel, or a keyboard, etc. The communication device 370 is, for example, a device that performs wired communication or a device that performs wireless communication. The wired communication is, for example, a LAN or a USB, etc. The wireless communication is, for example, Wifi, Bluetooth (registered trademark), etc.
[0153] As an electronic device including the circuit device of this embodiment, various devices such as an electronic device for vehicle use, a display terminal of a factory facility, a display device mounted on a robot, an information processing device, and a mobile information processing terminal can be assumed. An example of an electronic device for vehicle use is a meter panel. The configuration of the electronic device is not limited to that shown in FIG. 24, and various configurations can be adopted depending on the application. For example, in an electronic device for vehicle use, the circuit device 320, the display driver 330, the display panel 340, and the operation device 360 are incorporated in the meter panel, and the processing device 310, the storage device 350, and the communication device 370 are incorporated in the ECU. In this case, the meter panel corresponds to an electronic device including the circuit device of this embodiment. ECU is an abbreviation of Electronic Control Unit.
[0154] The circuit device of the present embodiment described above includes an image acquisition circuit for acquiring a display image, an error detection circuit, and a search circuit. The error detection circuit obtains a histogram of pixel values of the display image, performs a correlation calculation using the histogram, obtains an index representing a degree of dissimilarity between a foreground image, which is an image of a given area of the display image, and a background image, which is an image of the foreground image of the display image, based on the result of the correlation calculation, and performs error detection on the display image based on the index. The search circuit searches for a display position of the foreground image in the display image based on a reference image that is a reference for the foreground image. The error detection circuit performs error detection based on the display position searched for by the search circuit.
[0155] According to this embodiment, it is possible to appropriately detect errors that may be misrecognized by the user. That is, when the foreground image has a high degree of dissimilarity to the background image, the foreground image is highly likely to be visually distinguished from the background image, so that by using the above-mentioned index, it is possible to determine an error when the visibility of the foreground image is low. At this time, the error detection circuit can detect an error based on the display position searched by the search circuit, so that an error can be detected even if the display position of the foreground image is not determined in advance. A series of processes for performing such error detection is not disclosed in the prior art such as Patent Document 1.
[0156] Furthermore, in this embodiment, the error detection circuit performs error detection when the search circuit detects the display position in the search, and does not need to perform error detection when the search circuit does not detect the display position in the search.
[0157] According to this embodiment, when the display image includes a foreground image, error detection is performed, and when the display image does not include a foreground image, error detection is not performed. For example, when a frame image of a moving image is input as a display image, the error detection circuit performs error detection of an icon, etc., when the icon, etc. is displayed in the moving image, and does not perform error detection when the icon, etc. is not displayed in the moving image. Such a technology of performing image search and error detection as a series of processes is not disclosed in the prior art such as Patent Document 1.
[0158] In this embodiment, the search circuit may obtain a cross-correlation between the display image and the reference image, and detect whether or not a correlation value exceeding a detection threshold exists in the cross-correlation. If a correlation value exceeding the detection threshold exists, the search circuit may detect a position corresponding to the correlation value exceeding the detection threshold as the display position, and if no correlation value exceeding the detection threshold exists, the search circuit may not need to detect the display position.
[0159] According to this embodiment, the search circuit can detect a position where the correlation between the display image and the reference image is high as the display position of the foreground image. Then, when the search circuit can detect the display position, the error detection circuit performs error detection, and when the search circuit cannot detect the display position, the error detection circuit does not perform error detection.
[0160] Furthermore, in this embodiment, the search circuit may divide the display image into a plurality of strips, divide each of the plurality of strips into a plurality of individual regions, and perform a search for each of the plurality of individual regions.
[0161] According to this embodiment, the cross-correlation between the display image and the reference image is calculated for each individual region, and the cross-correlation calculated for each individual region is synthesized to obtain the cross-correlation between the display image and the reference image. In addition, the speed of the search process can be improved by calculating the cross-correlation for each individual region in parallel as appropriate. For example, when detecting an error in a moving image, it is desirable to have a small delay until the error detection is completed, and the error detection can be speeded up by improving the processing speed of the cross-correlation.
[0162] In this embodiment, the search circuit may perform a search by calculating the cross-correlation between the display image and the reference image using a Fourier transform and an inverse Fourier transform.
[0163] According to this embodiment, the cross-correlation is obtained by multiplying the display image after the Fourier transform and the reference image in the frequency domain and then performing an inverse Fourier transform on the result. In addition, the processing speed of the Fourier transform and the inverse Fourier transform can be improved by performing the Fourier transform and the inverse Fourier transform for each individual region.
[0164] In addition, in this embodiment, the error detection circuit may obtain a histogram of each of the constituent components of the color space, perform an autocorrelation calculation on the histogram of each component, obtain the distance at which the autocorrelation peak occurs for each component, and obtain an index based on the maximum distance among the obtained distances.
[0165] In this way, it is possible to obtain an index based on the component that is the largest difference between the foreground and background images among the components of the color space. Since the component that is the largest difference between the foreground and background images is considered to be the component that also appears to be the largest difference visually, obtaining an index based on that component makes it possible to appropriately evaluate the degree of dissimilarity between the foreground and background.
[0166] In addition, in this embodiment, the error detection circuit may obtain a first histogram for each component of the constituent components of the color space from the displayed image as a histogram, obtain a second histogram for each component from the reference image, perform a cross-correlation calculation between the first histogram and the second histogram for each component, and obtain an index based on the peak value of the cross-correlation peak.
[0167] If the histogram of the displayed image contains the same pattern as the histogram of the reference image, then the displayed image contains an image similar to the reference image at least in terms of color or brightness pattern. In this case, a large peak should occur in the result of the cross-correlation calculation, and by calculating an index from that peak value, the degree of dissimilarity between the foreground and background can be appropriately evaluated.
[0168] In addition, in this embodiment, the error detection circuit may calculate a second index indicating the degree of match between a foreground image, which is an image of a given area of the display image, and the reference image, based on pixel values of the display image and pixel values of the reference image, or pixel values of an edge image of the display image and pixel values of the edge image of the reference image, and perform error detection based on the index and the second index.
[0169] In this way, by combining an index representing the degree of dissimilarity in brightness or color between the foreground image and the reference image with a second index representing the degree of similarity in shape between the foreground image and the reference image, errors in the displayed image can be detected with greater accuracy.
[0170] Also, in this embodiment, the image acquisition circuit may generate a display image by overlaying a second image in a given area on a first image, and the background image may be an image of the display image that corresponds to the first image.
[0171] In this way, for example, an icon, a character, or the like can be overlaid on the input image to generate a display image. In this case, the overlaid character or icon corresponds to a foreground image, and the other part of the original input image corresponds to a background image. According to one aspect of the present invention, by detecting an error in such a display image, it becomes possible to determine that an error has occurred when an icon or character is not properly overlaid so as to be recognizable by the user.
[0172] The circuit device of this embodiment also includes an image acquisition circuit for acquiring a display image, an error detection circuit, and a search circuit. The error detection circuit determines an index representing a degree of match between a foreground image, which is an image of a given area of the display image, and the reference image, based on pixel values of the display image and pixel values of a reference image serving as a reference for the foreground image, or based on pixel values of an edge image of the display image and pixel values of an edge image of the reference image, and performs error detection of the display image based on the index. The search circuit searches for a display position of the foreground image in the display image based on the reference image. The error detection circuit performs error detection based on the display position searched for by the search circuit.
[0173] According to this embodiment, it is possible to appropriately detect errors that may be misrecognized by the user. That is, when the foreground image has a high degree of coincidence with the reference image, it is highly likely that the foreground image will visually appear to have the same shape as the reference image. Therefore, by using the above-mentioned index, it is possible to determine that an error has occurred when the shape of the foreground image is not displayed correctly. At this time, the error detection circuit can detect an error based on the display position searched for by the search circuit, so that an error can be detected even if the display position of the foreground image is not determined in advance. A series of processes for performing such error detection is not disclosed in the prior art such as Patent Document 1.
[0174] Furthermore, in this embodiment, the error detection circuit performs error detection when the search circuit detects the display position in the search, and does not need to perform error detection when the search circuit does not detect the display position in the search.
[0175] According to this embodiment, when the display image includes a foreground image, error detection is performed, and when the display image does not include a foreground image, error detection is not performed. For example, when a frame image of a moving image is input as a display image, the error detection circuit performs error detection of an icon, etc., when the icon, etc. is displayed in the moving image, and does not perform error detection when the icon, etc. is not displayed in the moving image. Such a technology of performing image search and error detection as a series of processes is not disclosed in the prior art such as Patent Document 1.
[0176] In this embodiment, the search circuit may obtain a cross-correlation between the display image and the reference image, and detect whether or not a correlation value exceeding a detection threshold exists in the cross-correlation. If a correlation value exceeding the detection threshold exists, the search circuit may detect a position corresponding to the correlation value exceeding the detection threshold as the display position, and if no correlation value exceeding the detection threshold exists, the search circuit may not need to detect the display position.
[0177] According to this embodiment, the search circuit can detect a position where the correlation between the display image and the reference image is high as the display position of the foreground image. Then, when the search circuit can detect the display position, the error detection circuit performs error detection, and when the search circuit cannot detect the display position, the error detection circuit does not perform error detection.
[0178] Furthermore, in this embodiment, the search circuit may divide the display image into a plurality of strips, divide each of the plurality of strips into a plurality of individual regions, and perform a search for each of the plurality of individual regions.
[0179] According to this embodiment, the cross-correlation between the display image and the reference image is calculated for each individual region, and the cross-correlation calculated for each individual region is synthesized to obtain the cross-correlation between the display image and the reference image. The speed of the search process can be improved by calculating the cross-correlation for each individual region in parallel as appropriate. For example, when detecting an error in a moving image, it is desirable to have a small delay until the error detection is completed, and the error detection can be speeded up by improving the processing speed of the cross-correlation.
[0180] In this embodiment, the search circuit may perform a search by calculating the cross-correlation between the display image and the reference image using a Fourier transform and an inverse Fourier transform.
[0181] According to this embodiment, the cross-correlation is obtained by multiplying the display image after the Fourier transform and the reference image in the frequency domain and then performing an inverse Fourier transform on the result. In addition, the processing speed of the Fourier transform and the inverse Fourier transform can be improved by performing the Fourier transform and the inverse Fourier transform for each individual region.
[0182] In addition, in this embodiment, the error detection circuit may perform subsampling to reduce the number of pixels or resolution of the display image and the reference image, obtain distance information representing the distance in color space between the pixel values of the subsampled display image and the pixel values of the subsampled reference image, and obtain an index from the distance information.
[0183] The distance in color space between the pixel values of the subsampled display image and the pixel values of the subsampled reference image should be small if the shapes match, so the degree of shape match can be appropriately evaluated by using the distance in color space. In addition, subsampling averages pixel values, reducing the effect of minor errors that do not affect the shape.
[0184] In this embodiment, the error detection circuit may also obtain the index from a value obtained by dividing a given threshold by the distance information.
[0185] The distance represented by the distance information decreases as the degree of matching of the shapes increases, so by dividing a given threshold by the distance information, it is possible to obtain an index whose value increases as the degree of matching of the shapes increases.
[0186] Furthermore, in this embodiment, the error detection circuit may perform a product-sum operation on pixel values of an edge image of the display image and pixel values of an edge image of the reference image, and obtain an index from the result of the product-sum operation.
[0187] An edge image is an image in which the edge amount is defined as the pixel value of each pixel. If the shapes match, when the edge image of the display image and the edge image of the reference image are compared at the same pixel, the edge amounts should be approximately the same. Conversely, if the shapes do not match, the edge positions do not match in the display image and the reference image. For this reason, when the edge amounts of the same pixels are multiplied and added, the result of the multiplication and addition will be a large value if the shapes match. By using such a product-sum calculation of the edge amount, the degree of match in the shapes can be appropriately evaluated.
[0188] Furthermore, in this embodiment, the error detection circuit may mask a region of an edge image of a display image that corresponds to a background image, and perform a product-sum operation using the masked edge image of the display image.
[0189] In this way, even if an edge is included in the background, the edge can be masked and the product-sum operation of the edge amount can be performed. In other words, the degree of match between the edges of the display image and the reference image can be evaluated without being affected by the edges of the background, thereby further improving the accuracy of error detection.
[0190] In this embodiment, the image acquisition circuitry may also generate the display image by overlaying a second image in a given area on the first image.
[0191] In this way, for example, an icon, character, or the like can be overlaid on the input image to generate a display image. In this case, the overlaid character or icon corresponds to a foreground image, and the other part of the original input image corresponds to a background image. According to another aspect of the present invention, by detecting an error in such a display image, it becomes possible to determine that an error has occurred when an icon or character is not properly overlaid so as to be recognizable by the user.
[0192] Moreover, an electronic device according to the present embodiment includes any of the circuit devices described above.
[0193] Furthermore, the error detection method of this embodiment searches for a display position of a foreground image in a display image based on a reference image serving as a reference for the foreground image, which is an image of a given area of the display image. The error detection method obtains a histogram of pixel values of the display image based on the searched display position. The error detection method performs a correlation calculation using the histogram. The error detection method obtains an index representing the degree of dissimilarity between the foreground image and a background image corresponding to the background of the foreground image based on a result of the correlation calculation. The error detection method detects an error in the display image based on the index.
[0194] Furthermore, the error detection method of the present embodiment searches for a display position of the foreground image in the display image based on a reference image serving as a reference for the foreground image, which is an image of a given area of the display image. The error detection method finds an index representing a degree of match between the foreground image and the reference image based on the searched display position, pixel values of the display image, and pixel values of the reference image, or based on the searched display position, pixel values of an edge image of the display image, and pixel values of an edge image of the reference image. The error detection method detects an error in the display image based on the index.
[0195] Although the present embodiment has been described in detail as above, it will be easily understood by those skilled in the art that many modifications are possible that do not substantially deviate from the novel matters and effects of the present disclosure. Therefore, all such modifications are intended to be included in the scope of the present disclosure. For example, a term described at least once in the specification or drawings together with a different term having a broader meaning or synonymy can be replaced with that different term anywhere in the specification or drawings. In addition, all combinations of the present embodiment and modifications are also included in the scope of the present disclosure. In addition, the configurations and operations of the circuit device and electronic device are not limited to those described in the present embodiment, and various modifications are possible. [Explanation of symbols]
[0196] 10...search circuit, 11...first edge detection unit, 12...division unit, 13...input line buffer, 14...second edge detection unit, 15...FFT processing unit, 16...output line buffer, 17...position detection unit, 100...circuit device, 110...interface, 120...pre-processing circuit, 130...image acquisition circuit, 140...interface, 150...error detection circuit, 160...CRC circuit, 170...register circuit, 180...icon processing circuit, 190...interface, 195...memory, 200...processing device, 300...power Child device, 310...processing device, 320...circuit device, 330...display driver, 340...display panel, 350...storage device, 360...operation device, 370...communication device, A1...error detection area, A2...icon, CHK...individual area, ECIB...edge image, ERQ...error detection result, fcor...cross-correlation, GIN...display image, GRF...reference image, GZN...foreground image, HPS...display position, MSB...mask image, RIA...reference image, SAR...error detection area, SEQ...search result, SRef...averaged image, TH...detection threshold
Claims
1. an image acquisition circuit for acquiring a display image; a search circuit that searches for a display position of the foreground image in the display image based on a reference image that is a reference for the foreground image, which is an image of a given area in the display image; an error detection circuit that sets an error detection area including the foreground image in the display image based on the display position, obtains a histogram of pixel values of the error detection area, performs a correlation calculation using the histogram, obtains an index representing a degree of dissimilarity between the foreground image and a background image of the display image that corresponds to a background of the foreground image based on a result of the correlation calculation, and determines that an error has occurred in the display image when the index is smaller than a predetermined threshold; Including, The error detection circuit performs the error detection when the search circuit detects the display position in the search, and does not perform the error detection when the search circuit does not detect the display position in the search.
2. 2. The circuit device according to claim 1, the search circuit determines the cross-correlation between the display image and the reference image, searches for whether or not a correlation value exceeding a detection threshold exists in the cross-correlation, and if a correlation value exceeding the detection threshold exists, detects a position corresponding to the correlation value exceeding the detection threshold as the display position, and if no correlation value exceeding the detection threshold exists, does not detect the display position.
3. 3. The circuit device according to claim 1, The search circuit includes: A circuit device comprising: a display image divided into a plurality of strips; each of the strips divided into a plurality of individual regions; and the search is performed for each of the individual regions.
4. 4. The circuit device according to claim 1, The search circuit includes: A circuit device for performing the search by calculating a cross-correlation between the display image and the reference image using a Fourier transform and an inverse Fourier transform.
5. 5. The circuit device according to claim 1, The error detection circuit includes: A circuit device characterized in that a histogram of each component of a color space is obtained, an autocorrelation calculation is performed on the histogram of each component, a distance at which an autocorrelation peak occurs is obtained for each component, and the index is obtained based on the maximum distance among the obtained distances.
6. 5. The circuit device according to claim 1, The error detection circuit includes: a circuit device which calculates a first histogram of each of the constituent components of a color space from the display image as the histogram, calculates a second histogram of each of the components from the reference image, performs a cross-correlation calculation between the first histogram and the second histogram for each of the components, and calculates the index based on a peak value of the cross-correlation peak.
7. 7. The circuit device according to claim 1, The error detection circuit includes: a second index indicating a degree of match between the foreground image, which is an image of the given area of the display image, and the reference image, based on pixel values of the display image and pixel values of the reference image, or pixel values of an edge image of the display image and pixel values of the edge image of the reference image, and performing the error detection based on the index and the second index.
8. 8. The circuit device according to claim 1, the image acquisition circuitry overlays a second image over the given area of the first image to generate the displayed image; The circuit device according to claim 1, wherein the background image is an image corresponding to the first image among the display images.
9. an image acquisition circuit for acquiring a display image; a search circuit that searches for a display position of the foreground image in the display image based on a reference image that is a reference for the foreground image, which is an image of a given area in the display image; an error detection circuit that sets an error detection area including the foreground image in the display image based on the display position, calculates an index representing a degree of match between the foreground image and the reference image based on pixel values of the error detection area and pixel values of the reference image, or based on pixel values of an edge image of the error detection area and pixel values of an edge image of the reference image, and performs error detection by determining that an error has occurred in the display image when the index is smaller than a predetermined threshold value; Including, The error detection circuit performs the error detection when the search circuit detects the display position in the search, and does not perform the error detection when the search circuit does not detect the display position in the search.
10. 10. The circuit device according to claim 9, the search circuit determines the cross-correlation between the display image and the reference image, detects whether or not a correlation value exceeding a detection threshold exists in the cross-correlation, and if a correlation value exceeding the detection threshold exists, detects a position corresponding to the correlation value exceeding the detection threshold as the display position, and if a correlation value exceeding the detection threshold does not exist, does not detect the display position.
11. 11. The circuit arrangement according to claim 9, The search circuit includes: A circuit device comprising: a display image divided into a plurality of strips; each of the strips divided into a plurality of individual regions; and the search is performed for each of the individual regions.
12. 12. The circuit arrangement according to claim 9, The search circuit includes: A circuit device for performing the search by calculating a cross-correlation between the display image and the reference image using a Fourier transform and an inverse Fourier transform.
13. 13. The circuit arrangement according to claim 9, The error detection circuit includes: A circuit device characterized by performing subsampling to reduce the number of pixels or resolution of the display image and the reference image, determining distance information representing a distance in color space between pixel values of the subsampled display image and pixel values of the subsampled reference image, and determining the index from the distance information.
14. 14. The circuit arrangement according to claim 13, The error detection circuit includes: A circuit device which determines the index from a value obtained by dividing a given threshold by the distance information.
15. 13. The circuit arrangement according to claim 9, The error detection circuit includes: a circuit device performing a product-sum operation on pixel values of an edge image of said display image and pixel values of an edge image of said reference image, and determining said index from a result of said product-sum operation.
16. 16. The circuit arrangement according to claim 15, The error detection circuit includes: a circuit device for masking an area of an edge image of the display image that corresponds to a background image, and performing the product-sum operation using the masked edge image of the display image.
17. 17. The circuit arrangement according to claim 9, The image acquisition circuitry generates the display image by overlaying a second image on the given area of the first image.
18. 18. An electronic device comprising the circuit device according to claim 1.
19. searching for a display position of the foreground image in the display image based on a reference image serving as a reference for the foreground image, which is an image of a given area in the display image; setting an error detection area including the foreground image in the display image based on the searched display position; A histogram of pixel values of the error detection region is obtained; A correlation calculation is performed using the histogram. calculating an index representing a degree of dissimilarity between the foreground image and a background image corresponding to a background of the foreground image based on a result of the correlation calculation; an error detection method characterized in that, when the display position is detected in the search, an error detection is performed in which an error is determined to be in the display image if the index is smaller than a predetermined threshold, and, when the display position is not detected in the search, the error detection is not performed.
20. searching for a display position of the foreground image in the display image based on a reference image serving as a reference for the foreground image, which is an image of a given area in the display image; setting an error detection area including the foreground image in the display image based on the searched display position; determining an index representing a degree of match between the foreground image and the reference image based on pixel values of the error detection area and pixel values of the reference image, or based on pixel values of an edge image of the error detection area and pixel values of an edge image of the reference image; an error detection method characterized in that, when the display position is detected in the search, an error detection is performed in which an error is determined to be in the display image if the index is smaller than a predetermined threshold, and, when the display position is not detected in the search, the error detection is not performed.
Citation Information
Patent Citations
display device and method for checking display content
DE102015012889A1
Screen display controller, screen display control method, screen display device, screen display control system, and printer
JP2007072394A
Mark detector
JP2007078511A
Decision device and decision method
JP2007101691A
Object area search method, object area search program and object area search device
JP2008015848A
