CN115840828A - Image comparison display method, device, equipment and medium - Google Patents

Image comparison display method, device, equipment and medium Download PDF

Info

Publication number
CN115840828A
CN115840828A CN202310103349.7A CN202310103349A CN115840828A CN 115840828 A CN115840828 A CN 115840828A CN 202310103349 A CN202310103349 A CN 202310103349A CN 115840828 A CN115840828 A CN 115840828A
Authority
CN
China
Prior art keywords
image data
input image
memory
unit
input
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202310103349.7A
Other languages
Chinese (zh)
Other versions
CN115840828B (en
Inventor
喻健
曾碧薇
于宝东
胡涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hubei Xinqing Technology Co ltd
Original Assignee
Hubei Xinqing Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hubei Xinqing Technology Co ltd filed Critical Hubei Xinqing Technology Co ltd
Priority to CN202310103349.7A priority Critical patent/CN115840828B/en
Publication of CN115840828A publication Critical patent/CN115840828A/en
Application granted granted Critical
Publication of CN115840828B publication Critical patent/CN115840828B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Controls And Circuits For Display Device (AREA)

Abstract

The invention discloses an image comparison display method, device, equipment and medium, wherein the method comprises the following steps: the simulation unit sends self pre-stored input image data to the serial camera interface; the to-be-tested design unit processes the input image data received by the serial camera interface and stores the processed output image data in the memory; the storage logic unit derives output image data adapted to the input image data from the memory; the processing unit inputs the input image data and the output image data into a view file at the same time, calls the view file through a script to display the input image data and the output image data and outputs a final comparison result. The invention automatically completes the comparison and display of the input and output images and improves the verification simulation and debugging efficiency.

Description

Image comparison display method, device, equipment and medium
Technical Field
The invention relates to the technical field of data security, in particular to an image comparison display method, device, equipment and medium.
Background
When performing multimedia link simulation, not only the problems of input excitation and output reception but also the correctness of image output need to be concerned.
In the prior art, multimedia link verification based on simulation of a cadence palladium z1, namely a hardware simulation system (hereinafter abbreviated as PZ 1), namely a simulation platform, is generally completed by a VSB system provided by cadence corporation. As shown in fig. 1, when using the VSB system, a verilog block, i.e., a hardware description language block, must be instantiated in an emulator, i.e., a simulator, and this verilog block is referred to as VSB _ CSI _ TOP. VSB _ CSI _ TOP and DUT _ CSI (Design Under Test Camera Serial Interface, namely a Serial Camera Interface to be tested) are connected through a PPI Interface of MIPI DPHY protocol. When in use, the image data is written into an internal ROM (namely a read-only memory) for storage, and the data is sent to the DUT _ CSI through the internal logic of VSB.
When the VSB ROM storage mode based on PZ1 is used for simulation, data transmission can only be completed through a CSI PPI interface, and a standard format, namely, hex format input in a user manual provided for a user by cadence company must be used. However, output data processed by the DUT CSI is generally in a user-defined format, and accurate comparison and visual observation of image data input and output cannot be performed through the prior art.
Disclosure of Invention
Embodiments of the present invention provide an image comparison display method, apparatus, device and medium, which mainly solve the above-mentioned defect problems encountered in the simulation of multimedia links of an emulation platform based on PZ 1.
In a first aspect, to achieve the above object, an embodiment of the present invention provides an image comparison display method applied to an image comparison display device, where the image comparison display device includes a to-be-tested design unit, a storage logic unit, a simulation unit, and a processing unit, where the to-be-tested design unit includes a serial camera interface and a memory; the design unit to be tested is connected with the serial camera interface, and the storage logic unit is connected with the memory; the method comprises the following steps:
the simulation unit sends self pre-stored input image data to the serial camera interface;
the design unit to be tested processes the input image data received by the serial camera interface and stores the processed output image data in the memory;
the storage logic unit derives output image data adapted to the input image data from the memory;
the processing unit inputs the input image data and the output image data into a view file at the same time, calls the view file through a script to display the input image data and the output image data and outputs a final comparison result.
In a second aspect, to solve the same technical problem, an embodiment of the present invention provides an image verification apparatus, including: the device comprises a to-be-tested design unit, a storage logic unit, a simulation unit and a processing unit, wherein the to-be-tested design unit comprises a serial camera interface and a memory; the design unit to be tested is connected with the serial camera interface, and the storage logic unit is connected with the memory;
the simulation unit is used for sending self pre-stored input image data to the serial camera interface;
the to-be-tested design unit is used for processing the input image data received by the serial camera interface and storing the output image data obtained after processing in the memory;
the storage logic unit is used for exporting output image data matched with the input image data from the memory;
the processing unit is used for simultaneously inputting the input image data and the output image data into a view file, calling the view file through a script to display the input image data and the output image data and outputting a final comparison result.
In a third aspect, to solve the same technical problem, an embodiment of the present invention provides an electronic device, which includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, where the memory is coupled to the processor, and the processor executes the computer program to implement the steps in the image matching display method according to any one of the foregoing descriptions.
In a fourth aspect, in order to solve the same technical problem, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored, where when the computer program runs, a device in which the computer-readable storage medium is located is controlled to execute any one of the steps in the image comparison display method described above.
The embodiment of the invention provides an image comparison display method, device, equipment and medium, which use a python script to process input and output data to accurately compare data and display images, can automatically complete image data comparison and display by calling the python script through commands, accurately position the position and pixel value of an error, and improve verification simulation and debugging efficiency.
Drawings
FIG. 1 is a diagram illustrating prior art VSB ROM VSB _ CSI _ TOP and CSI connections based on PZ 1;
fig. 2 is a schematic flowchart of an image comparison display method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an image comparison display device according to an embodiment of the present invention;
FIG. 4 is a schematic flow chart illustrating an image comparison display method according to an embodiment of the present invention;
FIG. 5 is a schematic flow chart illustrating an image comparison display method according to an embodiment of the present invention;
fig. 6 is a schematic diagram illustrating a data processing flow of a view file view.py in an RGB888 image format with a resolution of 1280 × 720 according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of input image data being converted to an input sampled image via a data sampling format;
FIG. 8 is a schematic diagram of output image data being converted to an output sampled image via a data sampling format;
FIG. 9 is a schematic flowchart of another image comparison display method according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are intended to be open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
VSB: video Speedbridge, a PC-based system offered by cadence, is capable of extracting or capturing Video stream data at the time of simulation. The invention is mainly completed based on VSB _ CSI _ TOP.
VSB _ CSI _ TOP: connected to the verilog block of the dut through the MIPI D-PHY PPI interface. The present invention imports image data mainly through an internal ROM. MIPI is a Mobile Industry processor interface for short for Mobile Industry processor interface. MIPI is the most mainstream video transmission interface specification in the mobile field, and the two groups of protocol clusters of MIPI D-PHY and MIPI C-PHY are most widely applied at present.
The DUT: design Under Test, design to be tested.
CSI: camera Serial Interface, serial Camera Interface.
DDR: a Double Data Rate, a commonly used type of Data storage unit.
Memory: the memory unit, referred to herein as cadence, provides a memory logic unit that can derive data in the DDR via a memory dump command.
Python: a computer programming language.
MIPI: mobile Industry processor interface. I.e., the mobile industry processor interface, is a standard and specification established by the MIPI alliance for mobile application processors.
PPI: PHY Parallel interface. A description of PPI is found in Annex A of MIPI D-PHY specification.
Verilog: a hardware description language.
user guide: the invention particularly relates to a user manual Video-Audio SpeedBridgeuser's Guide provided by cadence for users, which is convenient for users to use and consult.
Cadence palladium z1 (PZ 1): a hardware emulation system provided by cadence corporation.
ROM: the invention particularly relates to a memory inside cadence VSB.
RGB888: is a color standard that produces a variety of colors by varying and superimposing the three color channels R (red), green (G), and blue (B). RGB888 may specifically refer to an 8bit R component, an 8bit green component, and an 8bit blue component.
RAW: an original image file.
Input _ img. Hex: the present invention refers to image data to be transmitted, i.e., input image data, stored in the VSB ROM, and is a binary file in a standard format in a user guide.
Output _ img _ xxx. Hex: and after the DUT processes the image data and outputs the image data to the DDR, outputting the image data derived through a memory dump command, and defining a format for a user. For a segment of storage space, multiple files need to be exported for splicing, so that xxx is used here for representing the files.
Dat: and inputting a data sampling result, namely inputting a sampled image.
Dat is Output _ sample: and outputting a data sampling result, namely outputting a sampled image.
cfg: the abbreviation of configure is a configuration file.
Referring to fig. 2 and fig. 3, fig. 2 is a schematic flow chart of an image comparison display method according to an embodiment of the present invention, and fig. 3 is a schematic structural diagram of an image comparison display device according to an embodiment of the present invention, where the image comparison display device includes a to-be-tested design unit, a storage logic unit, a simulation unit VSB _ CSI _ TOP, and a processing unit (not shown in the figure), where the to-be-tested design unit includes a serial camera interface and a memory (i.e., a double-rate synchronous random access memory in fig. 3); the simulation unit is connected with the serial camera interface, and the storage logic unit is connected with the memory; as shown in fig. 2, the image comparison display method according to the embodiment of the present invention includes steps S101 to S104.
S101, the simulation unit sends self pre-stored input image data to the serial camera interface;
in some embodiments of the present application, the emulation unit includes a read-only memory; before the simulation unit starts simulation to send self pre-stored input image data to the serial camera interface, the simulation unit comprises the following steps:
the simulation unit converts the imported image according to preset image related parameters to obtain the input image data and stores the input image data into the read-only memory;
the image-related parameters comprise a preset image size and a preset image format.
In some embodiments of the present application, the sending, by the emulation unit, input image data pre-stored by the emulation unit to the serial camera interface includes:
and after the simulation unit starts simulation, reading the input image data from the read-only memory, and sending the input image data to the serial camera interface according to a preset frame interval.
S102, the to-be-tested design unit processes the input image data received by the serial camera interface and stores the processed output image data in the memory;
s103, the storage logic unit derives output image data matched with the input image data from the memory;
s104, the processing unit inputs the input image data and the output image data into a view file at the same time, calls the view file through a script to display the input image data and the output image data and outputs a final comparison result.
Specifically, the present invention puts the Input image data Input _ img.hex file (i.e. the Input image data of the present invention) into a designated ROM (i.e. the read only memory of the emulation unit), and configures the relevant parameters (e.g. information such as image size, format, frame interval, line spacing, etc.). Then, the simulation is started, the VSB (i.e., the simulation unit of the present invention) sends the input image data to the PPI port of the CSI (i.e., the serial camera interface of the present invention), and the DUT (i.e., the design unit under test of the present invention) processes the input image data and outputs the processed input image data to the DDR (i.e., the memory of the present invention) for storage. The DDR is an english abbreviation of Double Data Rate, and the DDR is a Double Data Rate synchronous dynamic random access memory. When the transmission of one frame of input image data is completed, the storage logic unit derives complete Output image data Output _ img _ xxx, hex (Output _ img will be used to refer to all relevant files derived from Memory) corresponding to the current frame of input image data adapted to the input image data from the Memory. Finally, input image data Input _ img.hex and Output _ img, namely Input image data and Output image data, are simultaneously Input into a python script of view.
The invention inputs the input image data sent by VSB _ CSI _ TOP and the output image data processed by DUT into python script for automatic comparison and display, and outputs the comparison result. The method and the device automatically finish the display and comparison of the input image data and the output image data by calling the python script through the command, thereby accurately positioning the position and the pixel value of the error and improving the verification simulation and debugging efficiency.
Referring to fig. 4, fig. 4 is another schematic flow chart of the image comparison display method according to the embodiment of the present invention, and as shown in fig. 4, the image comparison display method according to the embodiment of the present invention includes steps S401 to S403.
S401, after the transmission of one frame of input image data is finished, the simulation unit transmits a finished signal to the memory;
s402, after receiving the completion signal, the memory allocates a corresponding start address and an end address to the input image data, and stores the input image data in a storage space corresponding to the start address and the end address;
s403, the storage logic unit derives complete output image data adapted to the input image data from the storage space using a memory dump command.
Specifically, the present invention puts an Input image data Input _ img.hex file (i.e., the Input image data of the present invention) into a designated ROM (i.e., a read only memory of a simulation unit), and configures related parameters (e.g., information such as image size, format, frame interval, line interval, etc.). Then, the simulation is started, the VSB (i.e., the simulation unit of the present invention) sends the input image data to the PPI port of the CSI (i.e., the serial camera interface of the present invention), and the DUT (i.e., the design unit under test of the present invention) processes the input image data and outputs the processed input image data to the DDR (i.e., the memory of the present invention) for storage. The DDR is English abbreviation of Double Data Rate, and the DDR is Double Data Rate synchronous dynamic random access memory. When the transmission of one frame of input image data is completed, a Memory-dump command is used to specify a start address and an end address of a storage space, and Output image data Output _ img _ xxx. And finally, simultaneously inputting the Input image data Input _ img.hex and Output _ img into a python script of view.
The input image data sent by VSB _ CSI _ TOP and the output image data processed by the DUT are input into the python script for automatic comparison and display, and the comparison result is output. The method and the device automatically finish the display and comparison of the input image data and the output image data by calling the python script through the command, thereby accurately positioning the position and the pixel value of the error and improving the verification simulation and debugging efficiency.
Referring to fig. 5, fig. 5 is another schematic flow chart of the image comparison display method according to the embodiment of the present invention, and as shown in fig. 5, the image comparison display method according to the embodiment of the present invention includes steps S501 to S504.
S501, the processing unit acquires the input image data and the output image data and performs initialization configuration according to configuration information;
py, the script interface provided by view includes:
1) Input _ file: the input image source file needs to be assigned to a specific image. The default value is Input _ none.
2) Output _ file: data read from the memory by the memory-dump. Since the read data needs to be spliced into multiple files, the read data needs to be assigned to a folder. The script reads the files in the folder for automatic splicing. The default value is Output _ none.
3) vact: the number of images per line of the input image. The default value is 1280.
4) hact: default value is 800.
5) mode: an image format is input. The default is rgb888 for raw format, the script can only compare, not display.
6) disOnly: when 1, only the image display is performed. Default value is 0
7) Match: and comparing 2 image texts when the image texts are 1. The default value is 0.
S502, the processing unit samples the input image data to extract corresponding first effective pixel components, and the first effective pixel components are spliced into an input sampled image in a preset format;
s503, the processing unit samples the output image data to extract corresponding second effective pixel components, and the second effective pixel components are spliced into an output sampled image with a preset format;
s504, the processing unit obtains corresponding effective pixel components according to the input sampled image and the output sampled image, and calls a display function of the script to display the input image data and the output image data corresponding to the first effective pixel component and the second effective pixel component in the view file.
Specifically, as shown in fig. 6, a data processing flow diagram of a view file view is illustrated in an RGB888 image format with a resolution 1280 × 720 according to an embodiment of the present invention.
1) Hex, input configuration information, input image data Input _ img, hex, output image data Output _ img.
The configuration information is as follows:
-Input_file Input_img.hex
-output_file output_img
-vact 1280
-hact 720
-mode rgb888
-disonly 1
-compare 1。
since vact defaults to 1280 and mode defaults to rgb888, these two parameters may not be configured.
2) Hex, after searching the image start position, the Input image data Input _ img, start sampling the Input data, extract the R/G/B components of the effective pixels and splice into { R [7:0], G [7:0], B [7:0],8 'b00', and the Input sample image Input _ sample. The data sample storage format changes as shown in fig. 7.
3) For the Output image data Output _ img _ xxx, since dump is started from the address of the first pixel in memory-dump, sampling processing of the Output data is directly performed, effective pixels are extracted, and the effective pixels are also spliced into { R [7:0], G [7:0], B [7:0],8 'by 00', and the Output sample image Output _ sample. The data sampling storage format thereof is changed as shown in fig. 8, and image data is output.
4) When the image is displayed, the files of the Input sampled image Input _ sample.dat and the Output sampled image Output _ sample.dat are respectively processed, the components of R, G and B are firstly split, and a python script language with a display function is called in view.
The display flow codes are as follows:
for y in range(0,thact):
for i in range(0,tvact):
data0 = rgb_in0.readline()
r_l.append(int(data0[0:2],16))
g_l.append(int(data0[2:4],16))
b_l.append(int(data0[4:6],16))
im =Image.new(“RGB”,thact,tvact),“white”)
for i in range(0,thact):
for j in range(0,tvact):
im.putpixel((j,i),(r_l[i*tvact+j],(g_l[i*tvact+j],(b_l[i*tvact+j]))
im.show()
referring to fig. 9, fig. 9 is a flowchart illustrating an image comparison display method according to an embodiment of the present invention, and as shown in fig. 9, the image comparison display method according to the embodiment of the present invention includes steps S801 to S803.
S801, the processing unit compares a first effective pixel component in the input sampled image with a second effective pixel component in the output sampled image one by one according to pixel points with the same pixel coordinate to judge whether the first effective pixel component and the second effective pixel component are consistent;
s802, if the inconsistency exists, the processing unit prints the pixel values and the pixel coordinates of the inconsistent pixel points into a log file;
if the input image data and the output image data are completely consistent with each other, the processing unit prints a character string indicating that the input image data and the output image data are identical to each other in a log file.
Specifically, 5) when comparing data, comparing effective pixels of the input sampled image with effective pixels of the Output sampled image one by one, and judging whether the pixel comparison is inconsistent. If there are inconsistent pixels, the current pixel value and coordinates are printed into log. If all the alignments agree, the key for the all pixel match pass is printed. Py, when the same data format but different data arrangement needs to be added, only the data sampling part of the step 2) or the step 3) can be added, and the data display and comparison parts in the steps 4) and 5) are kept unchanged. When a different format (such as yuv) needs to be added, a different format display process can be added in the step 4), and the data comparison in the step 5 is kept unchanged. The expandability of the whole script processing is improved. Py is a python script file for processing data and image display.
The simulation of the emulation platform based on pz1 is combined with the actual use, the defects of the existing scheme are summarized, and the following beneficial effects are obtained:
1. the problem of the image can be visually perceived from the naked eye by displaying the input/output image using the python script.
2. And each pixel point of input and output can be accurately compared, and specific error pixel point information is accurately printed.
3. If there are many kinds of input and output format arrangement, the invention has stronger expandability.
The image verifying device provided by the embodiment of the application comprises:
the device comprises a to-be-tested design unit, a storage logic unit, a simulation unit and a processing unit, wherein the to-be-tested design unit comprises a serial camera interface and a memory; the design unit to be tested is connected with the serial camera interface, and the storage logic unit is connected with the memory;
the simulation unit is used for sending self pre-stored input image data to the serial camera interface;
the to-be-tested design unit is used for processing the input image data received by the serial camera interface and storing the output image data obtained after processing in the memory;
the storage logic unit is used for deriving output image data matched with the input image data from the memory;
the processing unit is used for inputting the input image data and the output image data into a view file at the same time, calling the view file through a script to display the input image data and the output image data and outputting a final comparison result.
In specific implementation, each module and/or unit may be implemented as an independent entity, or may be implemented as one or multiple entities by any combination, where the specific implementation of each module and/or unit may refer to the foregoing method embodiment, and specific achievable beneficial effects also refer to the beneficial effects in the foregoing method embodiment, which are not described herein again.
In addition, according to the electronic device provided by the embodiment of the invention, the electronic device can be a mobile terminal such as a smart phone and a tablet computer. The electronic device comprises a processor and a memory. The processor is electrically connected with the memory.
The processor is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, executes various functions of the electronic device and processes data by running or loading application programs stored in the memory and calling data stored in the memory, thereby integrally monitoring the electronic device.
In this embodiment, a processor in the electronic device loads instructions corresponding to processes of one or more application programs into a memory according to the following steps, and the processor runs the application programs stored in the memory, thereby implementing various functions:
the simulation unit sends self pre-stored input image data to the serial camera interface;
the to-be-tested design unit processes the input image data received by the serial camera interface and stores the processed output image data in the memory;
the storage logic unit derives output image data adapted to the input image data from the memory;
the processing unit inputs the input image data and the output image data into a view file at the same time, calls the view file through a script to display the input image data and the output image data and outputs a final comparison result.
The electronic device can implement the steps in any embodiment of the image comparison display method provided by the embodiment of the present invention, and therefore, the beneficial effects that can be achieved by any image comparison display method provided by the embodiment of the present invention can be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
Referring to fig. 10, fig. 10 is another schematic structural diagram of the electronic device according to the embodiment of the present invention, and as shown in fig. 10, fig. 10 is a specific structural block diagram of the electronic device according to the embodiment of the present invention, where the electronic device may be used to implement the image comparison display method provided in the foregoing embodiment. The electronic device 900 may be a mobile terminal such as a smart phone or a notebook computer.
The RF circuit 910 is used for receiving and transmitting electromagnetic waves, and interconverting the electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices. RF circuit 910 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. The RF circuit 910 may communicate with various networks such as the internet, an intranet, a wireless network, or with other devices over a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network. The wireless network may use various communication standards, protocols and technologies, including but not limited to Global System for mobile communication (GSM), enhanced Data GSM communication (EDGE), wideband Code Division Multiple Access (WCDMA), code Division Multiple Access (CDMA), time Division Multiple Access (TDMA), wireless fidelity (Wi-Fi) (e.g., IEEE802.11 a, IEEE802.11 b, IEEE802.11g and/or IEEE802.11 n), voice over internet protocol (VoIP), worldwide interoperability for Microwave Access (wimax), and other suitable protocols for instant messaging, including any other protocols that may be developed.
The memory 920 may be used to store software programs and modules, such as program instructions/modules corresponding to the image comparison display method in the foregoing embodiments, and the processor 980 executes various functional applications and resource accesses by running the software programs and modules stored in the memory 920, that is, the following functions are implemented:
the memory 920 may include high speed memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 920 can further include memory located remotely from the processor 980, which can be connected to the electronic device 900 over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input unit 930 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 930 may include a touch-sensitive surface 931 as well as other input devices 932. Touch-sensitive surface 931, also referred to as a touch screen or touch pad, may collect user touch operations (e.g., user operations on or near touch-sensitive surface 931 using a finger, stylus, or any other suitable object or attachment) and drive the corresponding connecting device according to a predetermined program. Alternatively, the touch sensitive surface 931 may include both a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 980, and can receive and execute commands sent by the processor 980. In addition, the touch sensitive surface 931 may be implemented in various types, such as resistive, capacitive, infrared, and surface acoustic wave. The input unit 930 may also include other input devices 932 in addition to the touch-sensitive surface 931. In particular, other input devices 932 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 940 may be used to display information input by or provided to the user and various graphical user interfaces of the electronic device 900, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 940 may include a Display panel 941, and optionally, the Display panel 941 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (organic light-Emitting Diode), or the like. Further, touch-sensitive surface 931 can overlay display panel 941, and when touch operation is detected on or near touch-sensitive surface 931, the touch operation can be transmitted to processor 980 for determining the type of touch event, and processor 980 can then provide a corresponding visual output on display panel 941 according to the type of touch event. Although the touch-sensitive surface 931 and the display panel 941 are shown as two separate components to implement input and output functions, in some embodiments, the touch-sensitive surface 931 and the display panel 941 may be integrated to implement input and output functions.
The electronic device 900 may also include at least one sensor 950, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 941 according to the brightness of ambient light, and a proximity sensor that may generate an interrupt when the folder is closed or closed. As one of the motion sensors, the gravity acceleration sensor may detect the magnitude of acceleration in each direction (generally, three axes), detect the magnitude and direction of gravity when the mobile phone is stationary, and may be used for applications of recognizing gestures of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and tapping), and other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor that may be configured to the electronic device 900, which are not described herein again.
The audio circuitry 960, speaker 961, microphone 962 may provide an audio interface between a user and the electronic device 900. The audio circuit 960 may transmit the electrical signal converted from the received audio data to the speaker 961, and convert the electrical signal into a sound signal for output by the speaker 961; on the other hand, the microphone 962 converts the collected sound signal into an electrical signal, which is received by the audio circuit 960 and converted into audio data, which is then processed by the audio data output processor 980, and then passed through the RF circuit 910 to be transmitted to, for example, another terminal, or the audio data is output to the memory 920 for further processing. The audio circuit 960 may also include an earbud jack to provide communication of peripheral headphones with the electronic device 900.
The electronic device 900, via the transport module 970 (e.g., wi-Fi module), may assist the user in receiving requests, sending messages, etc., which provides the user with wireless broadband internet access. Although the transmission module 970 is shown in the drawings, it is understood that it does not belong to the essential constitution of the electronic device 900 and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 980 is a control center of the electronic device 900, connects various parts of the entire cellular phone using various interfaces and lines, performs various functions of the electronic device 900 and processes data by operating or executing software programs and/or modules stored in the memory 920 and calling data stored in the memory 920, thereby integrally monitoring the electronic device. Optionally, processor 980 may include one or more processing cores; in some embodiments, the processor 980 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 980.
The electronic device 900 also includes a power supply 990 (e.g., a battery) that provides power to the various components and, in some embodiments, may be logically coupled to the processor 980 via a power management system that provides management of charging, discharging, and power consumption. The power supply 990 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, and the like.
Although not shown, the electronic device 900 further includes a camera (e.g., a front camera, a rear camera), a bluetooth module, etc., which are not described in detail herein. Specifically, in this embodiment, the display unit of the electronic device is a touch screen display, the mobile terminal further includes a memory, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include instructions for:
the simulation unit sends self pre-stored input image data to the serial camera interface;
the to-be-tested design unit processes the input image data received by the serial camera interface and stores the processed output image data in the memory;
the storage logic unit derives output image data adapted to the input image data from the memory;
the processing unit inputs the input image data and the output image data into a view file at the same time, calls the view file through a script to display the input image data and the output image data and outputs a final comparison result.
In specific implementation, the above modules may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and specific implementation of the above modules may refer to the foregoing method embodiments, which are not described herein again.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor. To this end, an embodiment of the present invention provides a computer-readable storage medium, in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute the steps of any embodiment of the image comparison display method provided in the embodiment of the present invention.
Wherein the computer-readable storage medium may include: read Only Memory (ROM), random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the computer-readable storage medium can execute the steps in any embodiment of the image comparison display method provided in the embodiment of the present invention, the beneficial effects that can be achieved by any image comparison display method provided in the embodiment of the present invention can be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
The image comparison display method, the image comparison display device, the electronic device and the computer-readable storage medium according to the embodiments of the present invention are described in detail, a specific example is applied in the present invention to explain the principle and the implementation of the present invention, and the description of the embodiments is only used to help understanding the method and the core idea of the present invention; meanwhile, for those skilled in the art, according to the idea of the present invention, the specific embodiments and the application range may be changed, and in summary, the content of the present specification should not be construed as limiting the present invention. Moreover, it will be apparent to those skilled in the art that various modifications and adaptations can be made without departing from the principles of the invention, and such modifications and adaptations are intended to be within the scope of the invention.

Claims (10)

1. The image comparison display method is characterized by being applied to an image comparison display device, wherein the image comparison display device comprises a to-be-tested design unit, a storage logic unit, a simulation unit and a processing unit, and the to-be-tested design unit comprises a serial camera interface and a memory; the design unit to be tested is connected with the serial camera interface, and the storage logic unit is connected with the memory; the method comprises the following steps:
the simulation unit sends self pre-stored input image data to the serial camera interface;
the to-be-tested design unit processes the input image data received by the serial camera interface and stores the processed output image data in the memory;
the storage logic unit derives output image data adapted to the input image data from the memory;
the processing unit inputs the input image data and the output image data into a view file at the same time, calls the view file through a script to display the input image data and the output image data and outputs a final comparison result.
2. The image comparison display method according to claim 1, wherein the simulation unit includes a read-only memory; before the simulation unit starts simulation to send self pre-stored input image data to the serial camera interface, the simulation unit comprises the following steps:
the simulation unit converts the imported image according to preset image related parameters to obtain the input image data and stores the input image data into the read-only memory;
the image-related parameters comprise a preset image size and a preset image format.
3. The image comparison and display method according to claim 2, wherein the step of sending the pre-stored input image data to the serial camera interface by the simulation unit comprises the steps of:
and after the simulation unit starts simulation, reading the input image data from the read-only memory, and sending the input image data to the serial camera interface according to a preset frame interval.
4. The image comparison display method according to claim 3, wherein the storage logic unit derives the output image data adapted to the input image data from the memory, and comprises the steps of:
after the transmission of one frame of input image data is finished, the simulation unit transmits a finished signal to the memory;
after receiving the completion signal, the memory allocates a corresponding start address and an end address to the input image data, and stores the input image data in storage spaces corresponding to the start address and the end address;
the storage logic unit derives complete output image data adapted to the input image data from the storage space using a memory dump command.
5. The image comparison display method according to any one of claims 1 to 4, wherein the processing unit inputs the input image data and the output image data into a view file at the same time, calls the view file through a script to display the input image data and the output image data, and outputs a final comparison result, comprising the steps of:
the processing unit acquires the input image data and the output image data and performs initialization configuration according to configuration information;
the processing unit samples the input image data to extract corresponding first effective pixel components, and the first effective pixel components are spliced into an input sampled image in a preset format;
the processing unit samples the output image data to extract corresponding second effective pixel components, and the second effective pixel components are spliced into an output sampled image with a preset format;
and the processing unit obtains corresponding effective pixel components according to the input sampled image and the output sampled image, and calls a display function of the script to display the input image data and the output image data corresponding to the first effective pixel component and the second effective pixel component in the view file.
6. The image comparison display method according to claim 5, wherein the outputting the final comparison result comprises:
the processing unit compares a first effective pixel component in the input sampled image with a second effective pixel component in the output sampled image one by one according to pixel points with the same pixel coordinate to judge whether the first effective pixel component and the second effective pixel component are consistent;
and if the inconsistency exists, the processing unit prints the pixel values and the pixel coordinates of the inconsistent pixel points into a log file.
7. The image comparison and display method according to claim 6, further comprising the steps of:
if the input image data and the output image data are completely consistent, the processing unit prints the character string which represents that the input image data and the output image data are the same into a log file.
8. An image comparison display device, comprising: the device comprises a to-be-tested design unit, a storage logic unit, a simulation unit and a processing unit, wherein the to-be-tested design unit comprises a serial camera interface and a memory; the design unit to be tested is connected with the serial camera interface, and the storage logic unit is connected with the memory;
the simulation unit is used for sending self pre-stored input image data to the serial camera interface;
the to-be-tested design unit is used for processing the input image data received by the serial camera interface and storing the output image data obtained after processing in the memory;
the storage logic unit is used for deriving output image data matched with the input image data from the memory;
the processing unit is used for simultaneously inputting the input image data and the output image data into a view file, calling the view file through a script to display the input image data and the output image data and outputting a final comparison result.
9. An electronic device comprising a processor, a memory and a computer program stored in the memory and configured to be executed by the processor, wherein the memory is coupled to the processor, and the processor executes the computer program to implement the steps of the image comparison display method according to any one of claims 1 to 7.
10. A computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program runs, the computer-readable storage medium controls an apparatus to execute the steps in the image comparison display method according to any one of claims 1 to 7.
CN202310103349.7A 2023-02-13 2023-02-13 Image comparison display method, device, equipment and medium Active CN115840828B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310103349.7A CN115840828B (en) 2023-02-13 2023-02-13 Image comparison display method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310103349.7A CN115840828B (en) 2023-02-13 2023-02-13 Image comparison display method, device, equipment and medium

Publications (2)

Publication Number Publication Date
CN115840828A true CN115840828A (en) 2023-03-24
CN115840828B CN115840828B (en) 2023-06-06

Family

ID=85579631

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310103349.7A Active CN115840828B (en) 2023-02-13 2023-02-13 Image comparison display method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN115840828B (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003283718A (en) * 2002-03-25 2003-10-03 Ricoh Co Ltd Method for processing drawn image in terminal emulator for image forming apparatus, program for allowing computer to execute the method, and image forming apparatus
US20100174993A1 (en) * 2008-04-01 2010-07-08 Robert Sanford Havoc Pennington Method and apparatus for managing digital media content
CN102375677A (en) * 2010-08-11 2012-03-14 乐金显示有限公司 Method for simulating image quality improvement of image display device and device therefor
US20180052881A1 (en) * 2016-08-22 2018-02-22 American Megatrends, Inc. System and method to automate validating media redirection in testing process
US20180183988A1 (en) * 2016-12-27 2018-06-28 Canon Kabushiki Kaisha Image processing device, image processing method, imaging device, and storage medium
CN109885705A (en) * 2019-01-25 2019-06-14 杭州易明远科技有限公司 A kind of three-dimensional simulation environment protection geographic information system
CN111859630A (en) * 2020-06-30 2020-10-30 山东云海国创云计算装备产业创新中心有限公司 Image compression simulation verification method, device, equipment and readable storage medium
CN112818613A (en) * 2019-10-30 2021-05-18 深圳市中兴微电子技术有限公司 Automatic simulation method, device, equipment and storage medium
CN113032274A (en) * 2021-04-07 2021-06-25 北京电信易通信息技术股份有限公司 Method for verifying CABAC (context-based adaptive binary arithmetic coding) continuous image aiming at H.265
CN113628304A (en) * 2021-10-09 2021-11-09 湖北芯擎科技有限公司 Image processing method, image processing device, electronic equipment and storage medium
CN113989150A (en) * 2021-10-28 2022-01-28 西安微电子技术研究所 SV-DPI-based image dead pixel correction FPGA verification system and verification method
CN114067172A (en) * 2021-10-29 2022-02-18 深圳市优必选科技股份有限公司 Simulation image generation method, simulation image generation device and electronic equipment
WO2022100048A1 (en) * 2020-11-11 2022-05-19 海宁奕斯伟集成电路设计有限公司 Image processing method and apparatus, electronic device, and readable storage medium

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003283718A (en) * 2002-03-25 2003-10-03 Ricoh Co Ltd Method for processing drawn image in terminal emulator for image forming apparatus, program for allowing computer to execute the method, and image forming apparatus
US20100174993A1 (en) * 2008-04-01 2010-07-08 Robert Sanford Havoc Pennington Method and apparatus for managing digital media content
CN102375677A (en) * 2010-08-11 2012-03-14 乐金显示有限公司 Method for simulating image quality improvement of image display device and device therefor
US20180052881A1 (en) * 2016-08-22 2018-02-22 American Megatrends, Inc. System and method to automate validating media redirection in testing process
US20180183988A1 (en) * 2016-12-27 2018-06-28 Canon Kabushiki Kaisha Image processing device, image processing method, imaging device, and storage medium
CN109885705A (en) * 2019-01-25 2019-06-14 杭州易明远科技有限公司 A kind of three-dimensional simulation environment protection geographic information system
CN112818613A (en) * 2019-10-30 2021-05-18 深圳市中兴微电子技术有限公司 Automatic simulation method, device, equipment and storage medium
CN111859630A (en) * 2020-06-30 2020-10-30 山东云海国创云计算装备产业创新中心有限公司 Image compression simulation verification method, device, equipment and readable storage medium
WO2022100048A1 (en) * 2020-11-11 2022-05-19 海宁奕斯伟集成电路设计有限公司 Image processing method and apparatus, electronic device, and readable storage medium
CN113032274A (en) * 2021-04-07 2021-06-25 北京电信易通信息技术股份有限公司 Method for verifying CABAC (context-based adaptive binary arithmetic coding) continuous image aiming at H.265
CN113628304A (en) * 2021-10-09 2021-11-09 湖北芯擎科技有限公司 Image processing method, image processing device, electronic equipment and storage medium
CN113989150A (en) * 2021-10-28 2022-01-28 西安微电子技术研究所 SV-DPI-based image dead pixel correction FPGA verification system and verification method
CN114067172A (en) * 2021-10-29 2022-02-18 深圳市优必选科技股份有限公司 Simulation image generation method, simulation image generation device and electronic equipment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
周美丽: "基于逐一比对法的图像拼接系统设计" *
宋伟,贺伟: "遥感图像道路信息提取的仿真分析研究" *

Also Published As

Publication number Publication date
CN115840828B (en) 2023-06-06

Similar Documents

Publication Publication Date Title
CN107038112B (en) Application interface debugging method and device
US11740769B2 (en) Screenshot method and terminal device
CN104852885B (en) Method, device and system for verifying verification code
CN106371964B (en) Method and device for prompting message
WO2018161540A1 (en) Fingerprint registration method and related product
CN109451130B (en) Mobile terminal testing method and device, mobile terminal and storage medium
CN109413256B (en) Contact person information processing method and device, storage medium and electronic equipment
CN112415367B (en) Drive chip abnormality detection method, drive chip abnormality detection device, electronic device and readable storage medium
CN108520760B (en) Voice signal processing method and terminal
CN112199246B (en) Terminal test method and device, storage medium and mobile terminal
CN108027967B (en) Image stitching method and electronic equipment
CN111368238A (en) Status bar adjusting method and device, mobile terminal and storage medium
CN115840828B (en) Image comparison display method, device, equipment and medium
CN108304369B (en) File type identification method and device
CN112486350B (en) Detection method and device for touch screen of mobile terminal, storage medium and mobile terminal
CN111026457B (en) Hardware configuration method and device, storage medium and terminal equipment
CN111182153B (en) System language setting method and device, storage medium and mobile terminal
CN112667868B (en) Data detection method and device
CN104866287B (en) Method and device for generating function bar
CN105988801B (en) Method and device for displaying annotation information
CN111651310B (en) Radio frequency debugging method and device, storage medium and electronic equipment
CN111651313B (en) Conversion method and system of identification card, storage medium and terminal equipment
CN117806964A (en) Rendering engine compatibility testing method and device, electronic equipment and storage medium
CN114067345A (en) Television language verification method and device, television and storage medium
CN116521106A (en) Screen matching method, screen configuration method and screen matching device

Legal Events

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