CN110865911B - Image testing method, device, storage medium, image acquisition card and upper computer - Google Patents

Image testing method, device, storage medium, image acquisition card and upper computer Download PDF

Info

Publication number
CN110865911B
CN110865911B CN201911009408.4A CN201911009408A CN110865911B CN 110865911 B CN110865911 B CN 110865911B CN 201911009408 A CN201911009408 A CN 201911009408A CN 110865911 B CN110865911 B CN 110865911B
Authority
CN
China
Prior art keywords
image
test
pixel
upper computer
similarity
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911009408.4A
Other languages
Chinese (zh)
Other versions
CN110865911A (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.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology 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 Guangzhou Shiyuan Electronics Thecnology Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN201911009408.4A priority Critical patent/CN110865911B/en
Publication of CN110865911A publication Critical patent/CN110865911A/en
Application granted granted Critical
Publication of CN110865911B publication Critical patent/CN110865911B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/22Matching criteria, e.g. proximity measures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • G06T7/0004Industrial image inspection
    • G06T7/001Industrial image inspection using an image reference approach
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/25Determination of region of interest [ROI] or a volume of interest [VOI]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Quality & Reliability (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Multimedia (AREA)
  • Computer Hardware Design (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Evolutionary Biology (AREA)
  • Evolutionary Computation (AREA)
  • Image Analysis (AREA)

Abstract

The embodiment of the application discloses an image testing method, an image testing device, a storage medium, an image acquisition card and an upper computer, wherein the method comprises the following steps: the image acquisition card acquires a test image and a template image sent by the upper computer; the image acquisition card calculates the similarity of the test image and the template image; and the image acquisition card sends the similarity and the test image to the upper computer so that the upper computer determines whether the test image is abnormal or not based on the similarity. Therefore, by adopting the embodiment of the application, the image is acquired through the image acquisition card and the similarity calculation is carried out, the calculation result is only required to be uploaded to the upper computer, the upper computer only displays the image simply, the image is judged to be normal or abnormal according to the similarity, the calculation amount of the upper computer is greatly reduced, the calculation resource of the upper computer is released, the board test time can be saved, and the test speed of the board card is improved.

Description

Image testing method, device, storage medium, image acquisition card and upper computer
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to an image testing method, an image testing device, a storage medium, an image acquisition card, and an upper computer.
Background
In the production of the traditional display driving board card, the testing process of the display screen interface generally collects images by the image collecting card, and the images are transmitted to the upper computer for analysis and judgment to give out the normal/abnormal signals of the board card.
Through automatic production line transformation, generally a robot can operate and test 6 display drive boards to can measure the polylith display drive board simultaneously. The upper computer receives the multipath image data and performs comparison analysis, a large amount of calculation time is required, and the CPU occupancy rate of i3 is usually close to 100%, and the upper computer runs at full load, so that the analysis of the multipath data becomes a bottleneck of test speed.
Disclosure of Invention
The embodiment of the application provides an image testing method, an image testing device, a storage medium, an image acquisition card and an upper computer, which can save the testing time of a board card and improve the testing speed of the board card. The technical scheme is as follows;
in a first aspect, an embodiment of the present application provides an image testing method, where the method includes:
the image acquisition card acquires a test image and a template image sent by the upper computer;
the image acquisition card calculates the similarity of the test image and the template image;
And the image acquisition card sends the similarity and the test image to the upper computer so that the upper computer determines whether the test image is abnormal or not based on the similarity.
In a second aspect, an embodiment of the present application provides an image testing method, including:
the upper computer acquires a test image sent by the image acquisition card and the similarity between the test image and the template image;
when the similarity is larger than a similarity threshold, the upper computer determines that the test image is normal;
and when the similarity is smaller than or equal to the similarity threshold, the upper computer determines that the test image is abnormal.
In a third aspect, an embodiment of the present application provides an image testing apparatus, including:
the image acquisition module is used for acquiring a test image and acquiring a template image sent by the upper computer;
the similarity calculation module is used for calculating the similarity of the test image and the template image;
and the similarity sending module is used for sending the similarity and the test image to the upper computer so that the upper computer can determine whether the test image is abnormal or not based on the similarity.
In a fourth aspect, embodiments of the present application provide an image testing apparatus, including:
the similarity acquisition module is used for acquiring the test image sent by the image acquisition card and the similarity between the test image and the template image;
the image normal determining module is used for determining that the test image is normal when the similarity is larger than a similarity threshold value;
and the image anomaly determination module is used for determining that the test image is abnormal when the similarity is smaller than or equal to the similarity threshold value.
In a fifth aspect, embodiments of the present application provide a computer storage medium storing a plurality of instructions adapted to be loaded by a processor and to perform the above-described method steps.
In a sixth aspect, an embodiment of the present application provides an image capturing card, which may include: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the above-mentioned method steps of the first aspect.
In a sixth aspect, an embodiment of the present application provides a host computer, which may include: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the above-mentioned method steps of the second aspect.
The technical scheme provided by some embodiments of the present application has the beneficial effects that at least includes:
in the embodiment of the application, the image acquisition card acquires the test image, acquires the template image sent by the upper computer, calculates the similarity between the test image and the template image, and sends the similarity and the test image to the upper computer so that the upper computer determines whether the test image is abnormal or not based on the similarity. The image acquisition card is used for acquiring the image and carrying out similarity calculation, the calculation result is only required to be uploaded to the upper computer, the upper computer only displays the image simply, the image is judged to be normal or abnormal according to the similarity, the calculation amount of the upper computer is greatly reduced, the calculation resource of the upper computer is released, the board card test time can be saved, and the test speed of the board card is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of an image testing method according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a connection relationship between an upper computer and an image acquisition card according to an embodiment of the present application;
FIG. 3 is a schematic flow chart of invoking test images and template images by an image acquisition card according to an embodiment of the present application;
fig. 4 is a schematic flow chart of determining image coordinates by an image acquisition card according to an embodiment of the present application;
fig. 5 is a schematic diagram of a process of calculating and outputting similarity and an image by an image acquisition card according to an embodiment of the present application;
fig. 6 is a schematic flow chart of an image testing method according to an embodiment of the present application;
fig. 7 is a schematic flow chart of an image testing method according to an embodiment of the present application;
FIG. 8 is an exemplary schematic diagram of a template image provided in an embodiment of the present application;
fig. 9 is a schematic structural diagram of an image testing apparatus according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of a similarity calculation model according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of an image testing apparatus according to an embodiment of the present application;
fig. 12 is a schematic structural diagram of an image testing apparatus according to an embodiment of the present application;
Fig. 13 is a schematic structural diagram of an image testing apparatus according to an embodiment of the present application;
fig. 14 is a schematic structural diagram of an image capturing card according to an embodiment of the present application.
Fig. 15 is a schematic structural diagram of an upper computer according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the following detailed description of the embodiments of the present application will be given with reference to the accompanying drawings.
When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present application as detailed in the accompanying claims.
In the description of the present application, it should be understood that the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. The specific meaning of the terms in this application will be understood by those of ordinary skill in the art in a specific context. Furthermore, in the description of the present application, unless otherwise indicated, "a plurality" means two or more. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship.
In the present application, unless explicitly specified and limited otherwise, the terms "coupled," "secured," and the like are to be construed broadly, and for example, "secured" may be either permanently attached or removably attached, or integrally formed; can be mechanically or electrically connected; either directly or indirectly, through intermediaries, or both, may be in communication with each other or in interaction with each other, unless expressly defined otherwise. The specific meaning of the terms in this application will be understood by those of ordinary skill in the art as the case may be.
In addition, the technical solutions of the embodiments of the present application may be combined with each other, but it is necessary to be based on the fact that those skilled in the art can implement the technical solutions, and when the technical solutions are contradictory or cannot be implemented, the combination of the technical solutions should be considered to be absent, and is not within the scope of protection claimed in the present application.
The image testing method provided in the embodiment of the present application will be described in detail with reference to fig. 1 to 8.
Fig. 1 is a schematic flow chart of an image testing method according to an embodiment of the present application. The embodiment is described by taking an image acquisition card side as an example, and the method of the embodiment of the application may include the following steps:
S101, an image acquisition card acquires a test image and a template image sent by an upper computer;
the image acquisition card is a hardware device capable of acquiring, storing and playing digital video image information, and is an interface of an image acquisition part and an image processing part.
Image capture cards were developed based on FPGA (Field Programmable Gate Array) to replace the equipment used by display screens in mass production of drive boards in factories.
FPGAs are a further development product based on programmable devices such as PAL, GAL, etc. The programmable device is used as a semi-custom circuit in the field of Application Specific Integrated Circuits (ASICs), which not only solves the defect of custom circuits, but also overcomes the defect of limited gate circuits of the original programmable device. The basic structure of the FPGA comprises a programmable input-output unit, a configurable logic block, a digital clock management module, an embedded block RAM, wiring resources, an embedded special hard core, a bottom layer embedded functional unit and the like.
In an embodiment of the present application, the image capturing card may include a plurality of image capturing cards. Each image acquisition card is connected with a display driving board card and is used for acquiring test images on the board card. Meanwhile, a plurality of image acquisition cards are commonly connected with an upper computer, as shown in fig. 2.
The board card is a printed circuit board, called PCB for short, and has a core insert when being manufactured, and can be inserted into a slot of a main circuit board (main board) of a computer to control the operation of hardware, such as a display, a collection card and other devices, and after a driver is installed, the corresponding hardware function can be realized.
The test image may be an image collected by the image collection card from the display drive board card for testing whether the display drive board card is normal or abnormal. The acquisition is the process that the image is converted into a digital image after being sampled and quantized and then is input into a frame memory and stored.
Before the method, the image acquisition card continuously acquires a plurality of frames of sample images, each frame of sample image is transmitted to the upper computer, and the upper computer displays the images in a video animation mode after receiving the plurality of frames of images. The user can select one frame of image as a template image, and for the upper computer, after receiving a selection instruction of the user, the template image is respectively sent to each image acquisition card, and the image acquisition cards receive and download the template image and store the template image in the memory.
The upper computer can comprise terminal equipment such as a tablet Personal Computer (PC), a smart phone, a palm computer, a Mobile Internet Device (MID) and the like.
After the image acquisition card acquires the test image, firstly judging whether the test image is the first test, if so, requesting the template image to the upper computer, and otherwise, directly calling the template image in the memory. And marking a key area on the template image, and acquiring coordinate information of each pixel of the key area after the image acquisition card downloads the template image.
The key region is a region of interest (region of interest, ROI), which is a region to be processed selected by a frame of image in a rectangular, circular, elliptical, irregular polygonal or other mode. Various operators and functions are commonly used in machine vision software such as Halcon, openCV, matlab to obtain a key region, and only images in the key region participate in image operation. Of course, a plurality of key regions may be selected in the frame image, and the key regions do not overlap each other.
S102, the image acquisition card calculates the similarity of the test image and the template image;
it can be understood that the test image collected by the image collection card also uses the memory as the frame buffer. The image acquisition card extracts the test image and the template image in the memory, and the acquired image and the template image are synchronously output to the image operation unit by using DMA (direct memory access) respectively under the control of the time sequence signal, as shown in fig. 3.
The image operation is mainly to perform real-time comparison operation on a plurality of key areas by the test image and the template image. And comparing each pixel of the test image with each pixel of the key area in sequence mainly through an icon coordinate counter of an image acquisition card, determining whether the current pixel is in the key area, if so, performing image operation, otherwise, continuing to judge the next pixel, and sequentially finding out each pixel in the key area in the test image in the same manner, as shown in fig. 4.
In the embodiment of the application, the squares of the two image differences in the key region are calculated pixel by pixel and then summed to obtain diff=Σ (Csample-Ctemplate) 2 Csample is the pixel color value corresponding to the acquired image, the range is 0-255, csample is the pixel color value corresponding to the template image, the range is 0-255, then the ratio S=100-sqrt (DIFF/WIDTH/HEIGHT/3) is calculated as the similarity and output, WIDTH is the sum of the WIDTHs of all the key areas, and HEIGHT is the sum of the HEIGHTs of all the key areas.
Wherein, inside the FPGA, there is a DSP unit, which can perform multiplication and addition operations. For square root operation, each frame of image only needs to be operated once, the operation can be carried out during the field synchronization, a soft core processor can be built by using an FPGA, and the square root and similarity result can be calculated by software. And after calculating the similarity of the N frames, uploading the result to an upper computer. N is the number of image frames, which is determined by the upper computer. Of course, the comparison operation may be calculated by other operation methods capable of calculating the similarity.
S103, the image acquisition card sends the similarity and the test image to the upper computer, so that the upper computer determines whether the test image is abnormal or not based on the similarity.
Specifically, the image acquisition card outputs the at least one calculated similarity and the test image corresponding to each similarity to the upper computer, as shown in fig. 5. When the similarity is larger than a similarity threshold, the upper computer determines that the test image is normal; and when the similarity is smaller than or equal to the similarity threshold, the upper computer determines that the test image is abnormal.
When the image acquisition cards comprise a plurality of image acquisition cards, each image acquisition card respectively sends the calculated similarity and the corresponding test image to the upper computer for judgment.
In the embodiment of the application, the image acquisition card acquires the test image, acquires the template image sent by the upper computer, calculates the similarity between the test image and the template image, and sends the similarity and the test image to the upper computer so that the upper computer determines whether the test image is abnormal or not based on the similarity. The image acquisition card is used for acquiring the image and carrying out similarity calculation, the calculation result is only required to be uploaded to the upper computer, the upper computer only displays the image simply, the image is judged to be normal or abnormal according to the similarity, the calculation amount of the upper computer is greatly reduced, the calculation resource of the upper computer is released, the board card test time can be saved, and the test speed of the board card is improved.
Referring to fig. 6, a flowchart of an image testing method is provided in an embodiment of the present application. The embodiment is described by taking the upper computer side as an example, and the image testing method may include the following steps:
s201, an upper computer acquires a test image sent by an image acquisition card and the similarity between the test image and a template image;
the upper computer can comprise terminal equipment such as a tablet Personal Computer (PC), a smart phone, a palm computer, a Mobile Internet Device (MID) and the like.
The image acquisition card is a hardware device capable of acquiring, storing and playing digital video image information, and is an interface of the image acquisition part and the image processing part. Image capture cards were developed based on FPGA (Field Programmable Gate Array) to replace the equipment used by display screens in mass production of drive boards in factories.
The upper computer receives the similarity between the calculated test image and the template image and the test image corresponding to the similarity. The similarity can be sent by the same image acquisition card or different image acquisition cards, and each image acquisition card can send the similarity of at least one frame of test image.
S202, when the similarity is larger than a similarity threshold, the upper computer determines that the test image is normal;
and the upper computer compares the received similarity with a set similarity threshold value, and if the similarity is larger than the similarity threshold value, the upper computer determines that the test image corresponding to the similarity is normal, namely the display driving board card corresponding to the test image is normal.
And S203, when the similarity is smaller than or equal to the similarity threshold, the upper computer determines that the test image is abnormal.
And the upper computer compares the received similarity with a set similarity threshold value, and if the similarity is smaller than the similarity threshold value, the upper computer determines that the test image corresponding to the similarity is abnormal, namely the display driving board card corresponding to the test image is abnormal.
In the embodiment of the application, the image acquisition card acquires the test image, acquires the template image sent by the upper computer, calculates the similarity between the test image and the template image, and sends the similarity and the test image to the upper computer so that the upper computer determines whether the test image is abnormal or not based on the similarity. The image acquisition card is used for acquiring the image and carrying out similarity calculation, the calculation result is only required to be uploaded to the upper computer, the upper computer only displays the image simply, the image is judged to be normal or abnormal according to the similarity, the calculation amount of the upper computer is greatly reduced, the calculation resource of the upper computer is released, the board card test time can be saved, and the test speed of the board card is improved.
Fig. 7 is a schematic flow chart of an image testing method according to an embodiment of the present application. The embodiment is described by taking two sides of an image acquisition card and an upper computer as an example. The image testing method may include the steps of:
s301, the upper computer receives at least one frame of sample image continuously sent by the image acquisition card;
the image acquisition card is a hardware device capable of acquiring, storing and playing digital video image information, and is an interface of an image acquisition part and an image processing part.
The image acquisition card is developed based on an FPGA and is used for replacing equipment used when the display screen is used for mass production of the drive board in a factory.
In an embodiment of the present application, the image capturing card may include a plurality of image capturing cards. Each image acquisition card is connected with a display driving board card and is used for acquiring test images on the board card.
For an image acquisition card, multiple frames of sample images can be continuously acquired and sequentially sent to an upper computer, and the upper computer receives the sample images and dynamically displays the sample images.
The upper computer can comprise terminal equipment such as a tablet Personal Computer (PC), a smart phone, a palm computer, a Mobile Internet Device (MID) and the like.
S302, the upper computer receives a selection instruction for a template image in the at least one frame of sample image, and receives a key area setting instruction and a set test frame number for the template image;
the user can select the displayed sample image, and the upper computer determines the selected image as a template image after receiving the selection instruction.
After determining the template image, the template image is displayed on the host computer, and the user can set the template image to select the key area in the template image. Meanwhile, the number of test frames of the image to be tested can be set.
The key region is a region of interest (region of interest, ROI), which is a region to be processed selected by a frame of image in a rectangular, circular, elliptical, irregular polygonal or other mode. Various operators and functions are commonly used in machine vision software such as Halcon, openCV, matlab to obtain a key region, and only images in the key region participate in image operation. Of course, a plurality of key regions may be selected in the frame image, and the key regions do not overlap each other.
For example, the template image is shown in fig. 8, in which the area a selected by the rectangular frame is a key area.
It should be noted that different template images are set for different test channels.
S303, the upper computer sends the template image provided with the key area and the test frame number to the image acquisition card.
Correspondingly, the display driving board cards connected with the image acquisition card through different channels are different in corresponding template images.
For example, one has 6 image acquisition cards to connect with the same host computer, 4 of the 6 image acquisition cards connect with the display drive board card through the first channel, 2 connect with the display drive board card through the second channel. Each image acquisition card is connected with one display driving board card.
S304, an image acquisition card acquires a test image, acquires a template image sent by the upper computer, and acquires a key area of the template image;
and after the image acquisition card receives the template image, the coordinate information of each pixel of the key area of the template image is read.
S305, the image acquisition card sequentially traverses all pixels of the test image, and judges whether the first traversed pixel is in the key area or not;
the image acquisition card sequentially traverses each pixel of the test image, acquires the coordinates of the first pixel traversed currently, searches for whether the coordinates exist in the coordinate information of each pixel of the read key area, determines that the first pixel is in the key area if the coordinates exist, and determines that the first pixel is not in the key area if the coordinates do not exist.
S306, if yes, the image acquisition card acquires a first color value of the first pixel and a second color value of a second pixel corresponding to the first pixel in the key area, and calculates the square of the difference value between the first color value and the second color value;
specifically, the first color value is Csample and the second color value is Ctemplate, then the first color value is equal toThe square of the difference in the second color value is (Csample-Ctest plate) 2
S307, the image acquisition card continues to traverse the next pixel of the first pixel, takes the next pixel as the first pixel and executes the step of judging whether the first pixel traversed currently is in the key area;
the squares of the differences between the next pixel located in the key region and the template pixel are sequentially determined and calculated in the same manner.
S308, when the image acquisition card determines that the next pixel does not exist, generating a square set comprising the squares;
when it is determined that there is no next pixel, it is indicated that all the pixels are all calculated, resulting in the square of the difference for each pixel.
S309, the image acquisition card calculates the sum of the square sets and acquires the width and the height of the key area;
The squares of these differences are summed to give diff=Σ (Csample-Ctemplate) 2
The critical area has WIDTH of WIDTH and HEIGHT of HEIGHT.
It should be noted that, when the key area (taking the key area as a rectangle as an example) includes only one key area, the width and the height are the width and the height of the rectangle; when the key area includes a plurality of the key areas, the width and the height are the sum of the widths and the sum of the heights of all the rectangles.
S310, the image acquisition card acquires a first preset value, a second preset value and a third preset value, and calculates the similarity of the test image and the template image based on the sum value, the width, the height, the first preset value, the second preset value and the third preset value;
for example, taking the first preset value as 100, the second preset value as 3, and the third preset value as 255, and combining WIDTH and heighting, thereby obtaining the similarity s=100-sqrt (DIFF/WIDTH/heighting/3) of the test image and the template image, which is 100/255.
S311, the image acquisition card sends the similarity and the test image to the upper computer;
the image acquisition card reads the test image from the memory and simultaneously sends the similarity S and the test image to the upper computer.
S312, the upper computer acquires a test image sent by the image acquisition card and the similarity between the test image and the template image;
s313, when the similarity is larger than a similarity threshold, the upper computer determines that the test image is normal;
and the upper computer compares the received similarity with a set similarity threshold value, and if the similarity is larger than the similarity threshold value, the upper computer determines that the test image corresponding to the similarity is normal, namely the display driving board card corresponding to the test image is normal.
And S314, when the similarity is smaller than or equal to the similarity threshold, the upper computer determines that the test image is abnormal.
And the upper computer compares the received similarity with a set similarity threshold value, and if the similarity is smaller than the similarity threshold value, the upper computer determines that the test image corresponding to the similarity is abnormal, namely the display driving board card corresponding to the test image is abnormal.
S315, the image acquisition card acquires the test frame number sent by the upper computer;
the test frame number is the frame number of the test image to be tested, the test frame number is greater than or equal to 1, and when the test frame number is greater than 1, the accuracy of the test result can be improved through the test of the multi-frame image.
S316, when the test frame number is greater than 1, the image acquisition card acquires a next frame of test image and executes the step of acquiring the template image sent by the upper computer;
When the test frame number is greater than 1, the next frame image is processed in the same way and sent to the upper computer for judgment.
And S317, when the number of image frames acquired by the image acquisition card is equal to the number of test frames, ending the test.
And stopping the test until the number of test frames is reached.
Optionally, for an image acquisition card, when the number of images belonging to abnormality in the tested multi-frame images is greater than a preset value, determining that the corresponding display driving board card is abnormal, or when the number of images belonging to normal in the tested multi-frame images is greater than a preset value, determining that the corresponding display driving board card is normal.
Optionally, for an image acquisition card, a first number of normal test images is acquired, a second number of abnormal test images is acquired, if the first number is greater than the second number, the corresponding display driving board card is determined to be normal, and if the first number is less than or equal to the second number, the corresponding display driving board card is determined to be abnormal.
In the embodiment of the application, the image acquisition card acquires the test image, acquires the template image sent by the upper computer, calculates the similarity between the test image and the template image, and sends the similarity and the test image to the upper computer so that the upper computer determines whether the test image is abnormal or not based on the similarity. The image acquisition card is used for acquiring the image and carrying out similarity calculation, the calculation result is only required to be uploaded to the upper computer, the upper computer only displays the image simply, the image is judged to be normal or abnormal according to the similarity, the calculation amount of the upper computer is greatly reduced, the calculation resource of the upper computer is released, the board card test time can be saved, and the test speed of the board card is improved.
The following are device embodiments of the present application, which may be used to perform method embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the method embodiments of the present application.
Referring to fig. 9, a schematic structural diagram of an image testing apparatus according to an exemplary embodiment of the present application is shown. The image testing apparatus may be implemented as all or part of the terminal by software, hardware or a combination of both. The apparatus 10 includes an image acquisition module 101, a similarity calculation module 102, and a similarity transmission module 103.
The image acquisition module 101 is used for acquiring a test image and acquiring a template image sent by the upper computer;
a similarity calculation module 102, configured to calculate a similarity of the test image and the template image;
and the similarity sending module 103 is configured to send the similarity and the test image to the upper computer, so that the upper computer determines whether the test image is abnormal based on the similarity.
Optionally, the image acquisition module 101 is specifically configured to:
acquiring a template image sent by the upper computer, and acquiring a key area of the template image;
the similarity calculation module 102 is specifically configured to:
And comparing each pixel of the test image with each pixel of the key area in sequence to obtain the similarity of the test image and the template image.
Optionally, as shown in fig. 10, the similarity calculating module 102 includes:
a pixel judging unit 1021, configured to sequentially traverse each pixel of the test image, and judge whether the first pixel currently traversed is in the key area;
a color value calculating unit 1022, configured to obtain a first color value of the first pixel and a second color value of a second pixel corresponding to the first pixel in the key area if yes, and calculate a square of a difference between the first color value and the second color value;
a pixel circulation unit 1023, configured to continue traversing a next pixel of the first pixel, take the next pixel as a first pixel, and trigger the pixel judgment unit to judge whether the first pixel traversed currently is in the key area;
a set generation unit 1024 for generating a square set including the square when it is determined that there is no next pixel;
and a similarity obtaining unit 1025, configured to obtain the similarity of the test image and the template image based on the square set.
Optionally, the similarity obtaining unit 1025 is specifically configured to:
calculating the sum of the square sets, and acquiring the width and the height of the key area;
and acquiring a first preset value, a second preset value and a third preset value, and calculating the similarity of the test image and the template image based on the sum value, the width, the height, the first preset value, the second preset value and the third preset value.
Optionally, as shown in fig. 11, further includes:
the frame number acquisition module 104 is configured to acquire a test frame number sent by the upper computer;
the image acquisition module 101 is further configured to acquire a next frame of test image and acquire a template image sent by the upper computer when the test frame number is greater than 1;
and the test ending module 105 is used for ending the test when the acquired image frame number is equal to the test frame number.
It should be noted that, in the image testing apparatus provided in the above embodiment, when the image testing method is executed, only the division of the above functional modules is used for illustration, in practical application, the above functional allocation may be performed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the image testing apparatus and the image testing method provided in the foregoing embodiments belong to the same concept, which represents a detailed implementation process in the method embodiment, and are not described herein again.
The foregoing embodiment numbers of the present application are merely for describing, and do not represent advantages or disadvantages of the embodiments.
In the embodiment of the application, the image acquisition card acquires the test image, acquires the template image sent by the upper computer, calculates the similarity between the test image and the template image, and sends the similarity and the test image to the upper computer so that the upper computer determines whether the test image is abnormal or not based on the similarity. The image acquisition card is used for acquiring the image and carrying out similarity calculation, the calculation result is only required to be uploaded to the upper computer, the upper computer only displays the image simply, the image is judged to be normal or abnormal according to the similarity, the calculation amount of the upper computer is greatly reduced, the calculation resource of the upper computer is released, the board card test time can be saved, and the test speed of the board card is improved.
The following are device embodiments of the present application, which may be used to perform method embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the method embodiments of the present application.
Referring to fig. 12, a schematic structural diagram of an image testing apparatus according to an exemplary embodiment of the present application is shown. The image testing apparatus may be implemented as all or part of the terminal by software, hardware or a combination of both. The apparatus 20 includes a similarity acquisition module 201, an image normal determination module 202, and an image anomaly determination module 203.
The similarity obtaining module 201 is configured to obtain a test image sent by the image acquisition card and a similarity between the test image and a template image;
an image normal determining module 202, configured to determine that the test image is normal when the similarity is greater than a similarity threshold;
an image anomaly determination module 203, configured to determine that the test image is anomalous when the similarity is less than or equal to the similarity threshold.
Optionally, as shown in fig. 13, the apparatus further includes:
the sample receiving module 204 is configured to receive at least one frame of sample image continuously sent by the image acquisition card;
and the template sending module 205 is configured to receive a selection instruction for a template image in the at least one frame of sample image, and send the template image to the image acquisition card.
Optionally, as shown in fig. 13, the apparatus further includes:
an instruction receiving module 206, configured to receive a key area setting instruction for the template image and a set test frame number;
the template sending module 205 is specifically configured to:
and sending the template image provided with the key area and the test frame number to the image acquisition card.
It should be noted that, in the image testing apparatus provided in the above embodiment, when the image testing method is executed, only the division of the above functional modules is used for illustration, in practical application, the above functional allocation may be performed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the image testing apparatus and the image testing method provided in the foregoing embodiments belong to the same concept, which represents a detailed implementation process in the method embodiment, and are not described herein again.
The foregoing embodiment numbers of the present application are merely for describing, and do not represent advantages or disadvantages of the embodiments.
In the embodiment of the application, the image acquisition card acquires the test image, acquires the template image sent by the upper computer, calculates the similarity between the test image and the template image, and sends the similarity and the test image to the upper computer so that the upper computer determines whether the test image is abnormal or not based on the similarity. The image acquisition card is used for acquiring the image and carrying out similarity calculation, the calculation result is only required to be uploaded to the upper computer, the upper computer only displays the image simply, the image is judged to be normal or abnormal according to the similarity, the calculation amount of the upper computer is greatly reduced, the calculation resource of the upper computer is released, the board card test time can be saved, and the test speed of the board card is improved.
The embodiments of the present application further provide a computer storage medium, where a plurality of instructions may be stored, where the instructions are adapted to be loaded by a processor and execute the method steps of the embodiments shown in fig. 1 to 8, and the specific execution process may refer to the specific description of the embodiments shown in fig. 1 to 8, which is not repeated herein.
The present application also provides a computer program product storing at least one instruction that is loaded and executed by the processor to implement the method as described in the various embodiments above.
Referring to fig. 14, a schematic structural diagram of an image capturing card is provided in an embodiment of the present application. As shown in fig. 14, the image capture card 1000 may include: at least one processor 1001, at least one network interface 1004, a user interface 1003, a memory 1005, at least one communication bus 1002.
Wherein the communication bus 1002 is used to enable connected communication between these components.
The user interface 1003 may include a Display screen (Display), a video input interface, which may include an LVDS input interface, a V-BY-ONE input interface, an HDMI input interface, etc., and the optional user interface 1003 may further include a standard wired interface, a wireless interface, etc.
The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface), among others.
Wherein the processor 1001 may include one or more processing cores. The processor 1001 connects various parts within the entire image pickup card 1000 using various interfaces and lines, performs various functions of the image pickup card 1000 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 1005, and calling data stored in the memory 1005. Alternatively, the processor 1001 may be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), programmable logic array (Programmable Logic Array, PLA). The processor 1001 may integrate one or a combination of several of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), and a modem, etc. The CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content required to be displayed by the display screen; the modem is used to handle wireless communications. It will be appreciated that the modem may not be integrated into the processor 1001 and may be implemented by a single chip.
The Memory 1005 may include a random access Memory (Random Access Memory, RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 1005 includes a non-transitory computer readable medium (non-transitory computer-readable storage medium). The memory 1005 may be used to store instructions, programs, code, sets of codes, or sets of instructions. The memory 1005 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the above-described respective method embodiments, etc.; the storage data area may store data or the like referred to in the above respective method embodiments. The memory 1005 may also optionally be at least one storage device located remotely from the processor 1001. As shown in fig. 14, an operating system, a network communication module, a user interface module, and an image test application program may be included in the memory 1005, which is one type of computer storage medium.
In the terminal 1000 shown in fig. 14, a user interface 1003 is mainly used for providing an input interface for a user, and acquiring data input by the user; and the processor 1001 may be configured to call an image test application program stored in the memory 1005, and specifically perform the following operations:
Collecting a test image and acquiring a template image sent by an upper computer;
calculating the similarity of the test image and the template image;
and sending the similarity and the test image to the upper computer so that the upper computer determines whether the test image is abnormal or not based on the similarity.
In one embodiment, the processor 1001, when executing the acquisition of the template image sent by the host computer, specifically performs the following operations:
acquiring a template image sent by the upper computer, and acquiring a key area of the template image;
the processor 1001, when executing calculation of the similarity between the test image and the template image, specifically executes the following operations:
and comparing each pixel of the test image with each pixel of the key area in sequence to obtain the similarity of the test image and the template image.
In one embodiment, the processor 1001, when performing the comparison between each pixel of the test image and each pixel of the critical area in turn, obtains the similarity between the test image and the template image, specifically performs the following operations:
sequentially traversing each pixel of the test image, and judging whether the first pixel traversed currently is in the key area or not;
If yes, acquiring a first color value of the first pixel and a second color value of a second pixel corresponding to the first pixel in the key area, and calculating the square of the difference value between the first color value and the second color value;
continuing to traverse the next pixel of the first pixel, taking the next pixel as the first pixel and executing the step of judging whether the first pixel traversed currently is in the key area;
when it is determined that there is no next pixel, generating a square set including the squares;
and acquiring the similarity of the test image and the template image based on the square set.
In one embodiment, the processor 1001, when executing the obtaining the similarity of the test image and the template image based on the square set, specifically performs the following operations:
calculating the sum of the square sets, and acquiring the width and the height of the key area;
and acquiring a first preset value, a second preset value and a third preset value, and calculating the similarity of the test image and the template image based on the sum value, the width, the height, the first preset value, the second preset value and the third preset value.
In one embodiment, the processor 1001 further performs the following:
acquiring a test frame number sent by the upper computer;
when the number of test frames is greater than 1, the method further comprises the steps of after the similarity and the test image are sent to the upper computer so that the upper computer determines whether the test image is abnormal or not based on the similarity, and the method further comprises the steps of:
collecting a next frame of test image, and executing the step of obtaining the template image sent by the upper computer;
and when the acquired image frame number is equal to the test frame number, ending the test.
In the embodiment of the application, the image acquisition card acquires the test image, acquires the template image sent by the upper computer, calculates the similarity between the test image and the template image, and sends the similarity and the test image to the upper computer so that the upper computer determines whether the test image is abnormal or not based on the similarity. The image acquisition card is used for acquiring the image and carrying out similarity calculation, the calculation result is only required to be uploaded to the upper computer, the upper computer only displays the image simply, the image is judged to be normal or abnormal according to the similarity, the calculation amount of the upper computer is greatly reduced, the calculation resource of the upper computer is released, the board card test time can be saved, and the test speed of the board card is improved.
Referring to fig. 15, a schematic structural diagram of an upper computer is provided in an embodiment of the present application. As shown in fig. 15, the upper computer 2000 may include: at least one processor 2001, at least one network interface 2004, a user interface 2003, a memory 2005, at least one communication bus 2002.
Wherein a communication bus 2002 is used to enable connected communications between these components.
The user interface 2003 may include a Display screen (Display) and a Camera (Camera), and the optional user interface 2003 may further include a standard wired interface and a standard wireless interface.
The network interface 2004 may optionally include standard wired interfaces, wireless interfaces (e.g., WI-FI interfaces), among others.
Wherein the processor 2001 may include one or more processing cores. The processor 2001 connects various parts within the overall host computer 2000 using various interfaces and lines, and performs various functions of the host computer 2000 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 2005, and calling data stored in the memory 2005. Alternatively, the processor 2001 may be implemented in hardware in at least one of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), programmable logic array (Programmable Logic Array, PLA). The processor 2001 may integrate one or a combination of several of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), a modem, and the like. The CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content required to be displayed by the display screen; the modem is used to handle wireless communications. It will be appreciated that the modem may not be integrated into the processor 2001 and may be implemented by a single chip.
The Memory 2005 may include a random access Memory (Random Access Memory, RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 2005 includes a non-transitory computer readable medium (non-transitory computer-readable storage medium). The memory 2005 may be used to store instructions, programs, code, sets of codes, or instruction sets. The memory 2005 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the above-described respective method embodiments, etc.; the storage data area may store data or the like referred to in the above respective method embodiments. The memory 2005 may also optionally be at least one storage device located remotely from the aforementioned processor 2001. As shown in fig. 15, an operating system, a network communication module, a user interface module, and an image test application program may be included in the memory 2005 as one type of computer storage medium.
In the terminal 2000 shown in fig. 15, a user interface 2003 is mainly used as an interface for providing input for a user, acquiring data input by the user; and processor 2001 may be operative to invoke the image testing application stored in memory 2005 and to specifically perform the following operations:
The upper computer acquires a test image sent by the image acquisition card and the similarity between the test image and the template image;
when the similarity is larger than a similarity threshold, determining that the test image is normal;
and when the similarity is smaller than or equal to the similarity threshold, determining that the test image is abnormal.
In one embodiment, before executing the acquisition of the test image sent by the image acquisition card and the similarity between the test image and the template image, the processor 2001 further executes the following operations:
receiving at least one frame of sample image continuously sent by an image acquisition card;
receiving a selection instruction for a template image in the at least one frame of sample image, and sending the template image to the image acquisition card.
In one embodiment, the processor 2001, prior to performing the sending of the template image to the image capture card, further performs the following:
receiving a key area setting instruction aiming at the template image and a set test frame number;
the processor 2001, when executing the transmission of the template image to the image capture card, specifically executes the following operations:
and sending the template image provided with the key area and the test frame number to the image acquisition card.
In the embodiment of the application, the image acquisition card acquires the test image, acquires the template image sent by the upper computer, calculates the similarity between the test image and the template image, and sends the similarity and the test image to the upper computer so that the upper computer determines whether the test image is abnormal or not based on the similarity. The image acquisition card is used for acquiring the image and carrying out similarity calculation, the calculation result is only required to be uploaded to the upper computer, the upper computer only displays the image simply, the image is judged to be normal or abnormal according to the similarity, the calculation amount of the upper computer is greatly reduced, the calculation resource of the upper computer is released, the board card test time can be saved, and the test speed of the board card is improved.
Those skilled in the art will appreciate that implementing all or part of the above-described methods in accordance with the embodiments may be accomplished by way of a computer program stored on a computer readable storage medium, which when executed may comprise the steps of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a read-only memory, a random access memory, or the like.
The foregoing disclosure is only illustrative of the preferred embodiments of the present application and is not intended to limit the scope of the claims herein, as the equivalent of the claims herein shall be construed to fall within the scope of the claims herein.

Claims (9)

1. An image testing method, comprising:
the method comprises the steps that an image acquisition card acquires a test image, acquires a template image sent by an upper computer and acquires a key area of the template image, wherein the test image is an image acquired by the image acquisition card from a display driving board card and is used for testing whether the display driving board card is normal or abnormal, and the image acquisition card is any one of a plurality of image acquisition cards connected with the upper computer;
the image acquisition card sequentially traverses all pixels of the test image and judges whether a first pixel traversed currently is in the key area or not;
if yes, the image acquisition card acquires a first color value of the first pixel and a second color value of a second pixel corresponding to the first pixel in the key area, and calculates the square of the difference value between the first color value and the second color value;
the image acquisition card continues to traverse the next pixel of the first pixel, takes the next pixel as the first pixel and executes the step of judging whether the first pixel traversed currently is in the key area;
When the image acquisition card determines that the next pixel does not exist, generating a square set comprising the squares;
the image acquisition card calculates the sum of the square sets and acquires the width and the height of the key area;
the image acquisition card acquires a first preset value, a second preset value and a third preset value, and calculates the similarity of the test image and the template image based on the sum value, the width, the height, the first preset value, the second preset value and the third preset value;
and the image acquisition card sends the similarity and the test image to the upper computer so that the upper computer determines whether the display driving board card corresponding to the test image is abnormal or not based on the similarity.
2. The method as recited in claim 1, further comprising:
the image acquisition card acquires the test frame number sent by the upper computer;
when the number of test frames is greater than 1, the image acquisition card sends the similarity and the test image to the upper computer, so that the upper computer determines whether the display driving board card corresponding to the test image is abnormal or not based on the similarity, and then the method further comprises the following steps:
The image acquisition card acquires a next frame of test image and executes the step of acquiring the template image sent by the upper computer;
and when the number of the image frames acquired by the image acquisition card is equal to the number of the test frames, ending the test.
3. An image testing method, comprising:
the method comprises the steps that an upper computer receives at least one frame of sample image continuously sent by a plurality of image acquisition cards, and the image acquisition cards are connected with the upper computer through different test channels;
the upper computer receives a selection instruction for a template image in at least one frame of sample image, and receives a key area setting instruction for the template image and a set test frame number, and different template images are set for different test channels;
the upper computer sends the template image provided with the key area and the test frame number to the image acquisition cards;
the upper computer acquires a test image sent by the image acquisition card and the similarity between the test image and the template image, wherein the test image is an image acquired by the image acquisition card from a display drive board card and is used for testing whether the display drive board card is normal or abnormal, and the similarity is that the image acquisition card sequentially traverses each pixel of the test image and judges whether a first pixel traversed currently is in the key area; if yes, acquiring a first color value of the first pixel and a second color value of a second pixel corresponding to the first pixel in the key area, and calculating the square of the difference value between the first color value and the second color value; then continuing to traverse the next pixel of the first pixel, taking the next pixel as the first pixel and executing the step of judging whether the first pixel traversed currently is in the key area; when the image acquisition card determines that the next pixel does not exist, generating a square set comprising the square, calculating the sum of the square set, and acquiring the width and the height of the key area; acquiring a first preset value, a second preset value and a third preset value, and calculating based on the sum value, the width, the height, the first preset value, the second preset value and the third preset value;
When the similarity is larger than a similarity threshold, the upper computer determines that the display driving board card corresponding to the test image is normal;
and when the similarity is smaller than or equal to the similarity threshold, the upper computer determines that the display driving board card corresponding to the test image is abnormal.
4. An image testing apparatus, comprising:
the image acquisition module is used for acquiring a test image, acquiring a template image sent by the upper computer and acquiring a key area of the template image, wherein the test image is an image acquired by an image acquisition card from a display driving board card and is used for testing whether the display driving board card is normal or abnormal, and the image acquisition card is any one of a plurality of image acquisition cards connected with the upper computer;
the similarity calculation module is used for traversing each pixel of the test image in sequence and judging whether the first pixel traversed currently is in the key area or not; if yes, acquiring a first color value of the first pixel and a second color value of a second pixel corresponding to the first pixel in the key area, and calculating the square of the difference value between the first color value and the second color value; continuing to traverse the next pixel of the first pixel, taking the next pixel as the first pixel and executing the step of judging whether the first pixel traversed currently is in the key area; when it is determined that there is no next pixel, generating a square set including the squares; calculating the sum of the square sets, and acquiring the width and the height of the key area; acquiring a first preset value, a second preset value and a third preset value, and calculating the similarity of the test image and the template image based on the sum value, the width, the height, the first preset value, the second preset value and the third preset value;
And the similarity sending module is used for sending the similarity and the test image to the upper computer so that the upper computer can determine whether the display driving board card corresponding to the test image is abnormal or not based on the similarity.
5. The apparatus as recited in claim 4, further comprising:
the frame number acquisition module is used for acquiring the test frame number sent by the upper computer;
the image acquisition module is also used for acquiring a next frame of test image and acquiring a template image sent by the upper computer when the test frame number is greater than 1;
and the test ending module is used for ending the test when the number of the acquired image frames is equal to the number of the test frames.
6. An image testing apparatus, comprising:
the similarity acquisition module is used for receiving at least one frame of sample image continuously sent by a plurality of image acquisition cards, and the image acquisition cards are connected with the upper computer through different test channels; receiving a selection instruction for a template image in the at least one frame of sample image, and receiving a key area setting instruction for the template image and a set test frame number, wherein different template images are set for different test channels; the template image with the key area and the test frame number are sent to the image acquisition cards, a test image sent by the image acquisition cards and the similarity between the test image and the template image are obtained, wherein the test image is an image acquired by the image acquisition cards from a display drive board card and is used for testing whether the display drive board card is normal or abnormal, the similarity is that the image acquisition cards sequentially traverse each pixel of the test image, and whether a first pixel traversed currently is in the key area is judged; if yes, acquiring a first color value of the first pixel and a second color value of a second pixel corresponding to the first pixel in the key area, and calculating the square of the difference value between the first color value and the second color value; then continuing to traverse the next pixel of the first pixel, taking the next pixel as the first pixel and executing the step of judging whether the first pixel traversed currently is in the key area; when the image acquisition card determines that the next pixel does not exist, generating a square set comprising the square, calculating the sum of the square set, and acquiring the width and the height of the key area; acquiring a first preset value, a second preset value and a third preset value, and calculating based on the sum value, the width, the height, the first preset value, the second preset value and the third preset value;
The image normal determining module is used for determining that the display driving board card corresponding to the test image is normal when the similarity is larger than a similarity threshold value;
and the image anomaly determination module is used for determining that the display driving board card corresponding to the test image is abnormal when the similarity is smaller than or equal to the similarity threshold value.
7. A computer storage medium storing a plurality of instructions adapted to be loaded by a processor and to perform the method steps of any one of claims 1-2 or the method steps of claim 3.
8. An image acquisition card, comprising: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the method steps of any of claims 1-2.
9. An upper computer, characterized by comprising: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the method steps of claim 3.
CN201911009408.4A 2019-10-23 2019-10-23 Image testing method, device, storage medium, image acquisition card and upper computer Active CN110865911B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911009408.4A CN110865911B (en) 2019-10-23 2019-10-23 Image testing method, device, storage medium, image acquisition card and upper computer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911009408.4A CN110865911B (en) 2019-10-23 2019-10-23 Image testing method, device, storage medium, image acquisition card and upper computer

Publications (2)

Publication Number Publication Date
CN110865911A CN110865911A (en) 2020-03-06
CN110865911B true CN110865911B (en) 2024-03-05

Family

ID=69653064

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911009408.4A Active CN110865911B (en) 2019-10-23 2019-10-23 Image testing method, device, storage medium, image acquisition card and upper computer

Country Status (1)

Country Link
CN (1) CN110865911B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113433932A (en) * 2021-08-27 2021-09-24 广州朗国电子科技股份有限公司 Method and device for detecting TCON board video image

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6757428B1 (en) * 1999-08-17 2004-06-29 National Instruments Corporation System and method for color characterization with applications in color measurement and color matching
CN101521834A (en) * 2009-04-02 2009-09-02 深圳市茁壮网络技术有限公司 Automatic testing method, device and system
JP2009211455A (en) * 2008-03-05 2009-09-17 Tokyo Electron Ltd Image processor, image processing method and program
CN106899846A (en) * 2017-02-23 2017-06-27 广州视源电子科技股份有限公司 Board card testing method, device and system
WO2018010391A1 (en) * 2016-07-13 2018-01-18 广州视源电子科技股份有限公司 Board inspection method and device
CN108564521A (en) * 2018-04-16 2018-09-21 河南牧业经济学院 A kind of Computerized image processing system
CN109102514A (en) * 2018-08-16 2018-12-28 广东工业大学 A kind of image partition method, device, equipment and computer readable storage medium
CN109459873A (en) * 2018-11-12 2019-03-12 广州小鹏汽车科技有限公司 A kind of test method, device, Auto-Test System and storage medium
WO2019140880A1 (en) * 2018-01-22 2019-07-25 深圳壹账通智能科技有限公司 Screen recording method, computer readable storage medium, terminal apparatus, and device
CN110346704A (en) * 2019-07-02 2019-10-18 广州视源电子科技股份有限公司 Method, device and equipment for determining test file in board test and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6757428B1 (en) * 1999-08-17 2004-06-29 National Instruments Corporation System and method for color characterization with applications in color measurement and color matching
JP2009211455A (en) * 2008-03-05 2009-09-17 Tokyo Electron Ltd Image processor, image processing method and program
CN101521834A (en) * 2009-04-02 2009-09-02 深圳市茁壮网络技术有限公司 Automatic testing method, device and system
WO2018010391A1 (en) * 2016-07-13 2018-01-18 广州视源电子科技股份有限公司 Board inspection method and device
CN106899846A (en) * 2017-02-23 2017-06-27 广州视源电子科技股份有限公司 Board card testing method, device and system
WO2019140880A1 (en) * 2018-01-22 2019-07-25 深圳壹账通智能科技有限公司 Screen recording method, computer readable storage medium, terminal apparatus, and device
CN108564521A (en) * 2018-04-16 2018-09-21 河南牧业经济学院 A kind of Computerized image processing system
CN109102514A (en) * 2018-08-16 2018-12-28 广东工业大学 A kind of image partition method, device, equipment and computer readable storage medium
CN109459873A (en) * 2018-11-12 2019-03-12 广州小鹏汽车科技有限公司 A kind of test method, device, Auto-Test System and storage medium
CN110346704A (en) * 2019-07-02 2019-10-18 广州视源电子科技股份有限公司 Method, device and equipment for determining test file in board test and storage medium

Also Published As

Publication number Publication date
CN110865911A (en) 2020-03-06

Similar Documents

Publication Publication Date Title
EP3687161B1 (en) Method for image shooting, apparatus, and storage medium
CN107621932B (en) Local amplification method and device for display image
CN109801342B (en) Method and device for dynamically identifying mapping fit degree in running process on mobile equipment
CN108665510B (en) Rendering method and device of continuous shooting image, storage medium and terminal
CN110865911B (en) Image testing method, device, storage medium, image acquisition card and upper computer
CN105303143B (en) Information scanning processing method, system and terminal
CN103543916A (en) Information processing method and electronic equipment
CN107179181B (en) Display screen uniformity testing method, terminal and computer readable storage medium
CN111277724B (en) Detection method and device for abnormal operation application, electronic equipment and storage medium
KR20120127067A (en) Apparatus and method for determining screen equivalency to test compatibility
CN112269886B (en) Shared image acquisition method, window sharing method and shared image acquisition device
CN106982389B (en) Video type identification method and device
CN111290894B (en) Method, device, terminal and storage medium for detecting splash screen
CN108540726B (en) Method and device for processing continuous shooting image, storage medium and terminal
CN105122305B (en) Mechanism for benefiting the dynamic phasing detection to the high-jitter-tolerance of the image of Media Stream
CN110572641B (en) Display equipment testing method and device and computer readable storage medium
CN111813741A (en) File sharing method and electronic equipment
CN115049698B (en) Cloud picture display method and device of handheld acoustic imaging equipment
KR102316969B1 (en) Electronic apparatus capable of recognizing text included in an image captured by a camera and the method thereof
CN114173194B (en) Page smoothness detection method and device, server and storage medium
CN109005308B (en) Image acquisition method, test device and storage medium
CN110662023B (en) Method and device for detecting video data loss and storage medium
CN110830723B (en) Shooting method, shooting device, storage medium and mobile terminal
CN115767078A (en) Screen projection time delay testing method and device and storage medium
CN113139144A (en) Method, device and equipment for acquiring resource picture

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