CN110730311B - Image processing method, host, single board and system - Google Patents

Image processing method, host, single board and system Download PDF

Info

Publication number
CN110730311B
CN110730311B CN201910950137.6A CN201910950137A CN110730311B CN 110730311 B CN110730311 B CN 110730311B CN 201910950137 A CN201910950137 A CN 201910950137A CN 110730311 B CN110730311 B CN 110730311B
Authority
CN
China
Prior art keywords
image
host
token
single board
display rule
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
CN201910950137.6A
Other languages
Chinese (zh)
Other versions
CN110730311A (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.)
Xian Wanxiang Electronics Technology Co Ltd
Original Assignee
Xian Wanxiang Electronics 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 Xian Wanxiang Electronics Technology Co Ltd filed Critical Xian Wanxiang Electronics Technology Co Ltd
Priority to CN201910950137.6A priority Critical patent/CN110730311B/en
Publication of CN110730311A publication Critical patent/CN110730311A/en
Application granted granted Critical
Publication of CN110730311B publication Critical patent/CN110730311B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/268Signal distribution or switching
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • H04N5/765Interface circuits between an apparatus for recording and another apparatus
    • 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

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Processing Or Creating Images (AREA)
  • Facsimiles In General (AREA)

Abstract

The disclosure provides an image processing method, a single board, a host and a system, and relates to the technical field of computer images, wherein the method comprises the following steps: receiving a display rule of an image source sent by a host; the display rule is used for indicating the display sequence of the image frames and/or the switching mode of the image frames; sending an image acquisition request to a host according to the display rule of the image source; the image acquisition request is used for indicating the host to send a corresponding image, and the image acquisition request comprises acquisition content; collecting a corresponding image sent by the host; wherein the corresponding image is generated according to the acquired content; comparing the corresponding image with a preset image, and calculating the similarity of the corresponding image and the preset image; and determining the working state of the single board according to the similarity between the corresponding image and the preset image.

Description

Image processing method, host, single board and system
Technical Field
The present disclosure relates to the field of computer graphics, and in particular, to an image processing method, a host, a board, and a system.
Background
At present, aiming at the verification of the acquisition function of the acquisition card on the video input interface, the acquisition card is required to send the image acquired from the HDMI interface to the host, and the host compares the acquired image with the original image and generates a comparison result so as to determine the accuracy of the picture acquired by the acquisition card from the HDMI interface. Wherein, the video input interface includes: HDMI interface, VGA interface, DVI interface, DP interface, etc. Because the work of picture comparison is completed by the host, when a plurality of acquisition cards are checked simultaneously, the CPU occupancy rate of the host is larger, and the operation efficiency of the host is affected.
For the zero terminal equipment in the VDI (Virtual Desktop Infrastructure, namely the virtual desktop infrastructure), the zero terminal equipment is characterized by limited storage space, flash is smaller than 64M, even 32 Mbyte, and for the zero terminal equipment, if the acquired image needs to be stored in the equipment and then returned to the host, the storage space is occupied, and the time is more. Especially in the case that the host detects a plurality of boards simultaneously, the time cost is quite high.
Disclosure of Invention
The embodiment of the disclosure provides an image processing method, a host, a single board and a system, which can solve the problem of large occupied storage space in the existing verification process. The technical scheme is as follows:
according to a first aspect of an embodiment of the present disclosure, there is provided an image processing method, including:
receiving a token request of a single board, wherein the token request comprises an application token;
judging whether the state of the application token is idle or not;
and if the state of the application token is idle, sending the display rule of the image source to the single board.
In one embodiment, the method further comprises:
receiving an image acquisition request of a single board; wherein the image acquisition request is generated by a single board based on the display rule;
and inputting a corresponding image source to the single board according to the image acquisition request of the single board.
In one embodiment, the method further comprises:
the status of the application token is set to busy.
In one embodiment, the method further comprises:
releasing the application token and setting the state of the application token to be idle.
In one embodiment, the display rules are used to indicate the display order of the image frames and/or the manner in which the image frames are switched.
According to a first aspect of an embodiment of the present disclosure, there is provided an image processing method, including:
receiving a display rule of an image source sent by a host; the display rule is used for indicating the display sequence of the image frames and/or the switching mode of the image frames;
sending an image acquisition request to a host according to the display rule of the image source; the image acquisition request is used for indicating the host to send a corresponding image, and the image acquisition request comprises acquisition content;
collecting a corresponding image sent by the host; wherein the corresponding image is generated according to the acquired content;
comparing the corresponding image with a preset image, and calculating the similarity of the corresponding image and the preset image;
and determining the working state of the single board according to the similarity between the corresponding image and the preset image.
In one embodiment, the display order of the display rule indication image frames is: sequentially displaying red, green and blue;
the image frame switching mode is as follows: each image frame is preset to keep N min, and when a switching request is received, the next image frame is switched, wherein N is a preset constant.
According to a third aspect of the embodiments of the present disclosure, there is provided a host, including:
the first receiving module is used for receiving a token request of the single board, wherein the token request comprises an application token;
the judging module is used for judging whether the state of the application token is idle or not;
and the image source sending module is used for sending the display rule of the image source to the single board if the state of the application token is idle.
In one embodiment, the host further includes:
the second receiving module is used for image acquisition requests of the single board; wherein the image acquisition request is generated by a single board based on the display rule;
and the input module is used for inputting a corresponding image source to the single board according to the image acquisition request of the single board.
In one embodiment, the host further comprises:
and the setting module is used for setting the state of the application token to be busy.
In one embodiment, the host further comprises:
and the releasing module is used for releasing the application token and setting the state of the application token to be idle.
According to a fourth aspect of embodiments of the present disclosure, there is provided a veneer comprising:
the third receiving module is used for receiving the display rule of the image source sent by the host; the display rule is used for indicating the display sequence of the image frames and/or the switching mode of the image frames;
the sending module is used for sending an image acquisition request to the host according to the display rule of the image source; the image acquisition request is used for indicating the host to send a corresponding image, and the image acquisition request comprises acquisition content;
the acquisition module is used for acquiring the corresponding image sent by the host; wherein the corresponding image is generated according to the acquired content;
the computing module is used for comparing the corresponding image with a preset image and computing the similarity of the corresponding image and the preset image;
and the determining module is used for determining the working state of the single board according to the similarity between the corresponding image and the preset image.
According to a fifth aspect of embodiments of the present disclosure, there is provided an image processing system, the system comprising:
any one of the hosts and any one of the veneers.
According to a sixth aspect of embodiments of the present disclosure, there is provided an image processing system, the system comprising:
the host computer and any single board and the screen divider are arranged in the same way, wherein the input end of the screen divider is connected with the output end of the host computer, and the output end of the screen divider is connected with the input end of at least one single board.
The present disclosure transfers the task of comparing the captured image with the artwork from the host to the CPU of the board where the capture card and video input interface are located.
Therefore, each single board can complete the verification of the acquisition function of the acquisition card of the single board on the video input interface, and the workload of the host can be reduced and the working efficiency of the host can be improved under the scene that the host performs verification on a plurality of single boards at the same time. The scheme provides a solution method which is low in cost and efficient and can be used for checking multiple boards in parallel.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a flow chart of an image processing method provided by an embodiment of the present disclosure;
FIG. 2 is a flow chart of an image processing method provided by an embodiment of the present disclosure;
FIG. 3 is a host configuration diagram provided by an embodiment of the present disclosure;
FIG. 4 is a host configuration diagram provided by an embodiment of the present disclosure;
FIG. 5 is a host configuration diagram provided by an embodiment of the present disclosure;
FIG. 6 is a diagram of a host configuration provided by an embodiment of the present disclosure;
fig. 7 is a block diagram of a board provided by an embodiment of the present disclosure;
FIG. 8 is a block diagram of a single board provided by an embodiment of the present disclosure;
FIG. 9 is a block diagram of an image processing system according to an embodiment of the present disclosure;
FIG. 10 is a block diagram of an image processing system according to an embodiment of the present disclosure;
fig. 11 is a flowchart of an image processing method provided in an embodiment of the present disclosure.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in 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 disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
An embodiment of the present disclosure provides an image processing method, as shown in fig. 1, including the steps of:
step 101, receiving a token request of a single board, wherein the token request comprises a token application;
the token in the embodiments of the present disclosure is used to indicate whether the host's resources are occupied.
102, judging whether the state of the application token is idle;
the state of applying the token comprises free and busy, wherein the busy represents that at least one single board in the single boards connected with the host occupies the token resource, namely if other devices are using the token, the state corresponding to the application token is busy; the token resource is not occupied by the single board connected with the host computer in the idle representation; the token must be allowed to be used by the current board after the other device releases the token and when the state of the application token is idle, that is, the token is sent to the current board.
Step 103, if the state of the application token is idle, sending the display rule of the image source to the single board.
The display rules are used for indicating the display sequence of the image frames and/or the switching mode of the image frames.
The content of the display rule may be customized, for example, the image source may be defined as sequentially displaying red, green and blue pure color three frames of images, each preset for 5s, and when a switching request is received, the next image is switched.
Optionally, the image processing method disclosed in this embodiment further includes:
receiving an image acquisition request of a single board; wherein the image acquisition request is generated by a single board based on the display rule;
and inputting a corresponding image source to the single board according to the image acquisition request of the single board.
Optionally, the image processing method disclosed in this embodiment further includes:
the status of the application token is set to busy.
Optionally, the image processing method disclosed in this embodiment further includes:
releasing the application token and setting the state of the application token to be idle.
The state of the application token is set to idle so that other boards use the token.
The display rule is used to indicate the display order of the image frames and/or the switching manner of the image frames.
An embodiment of the present disclosure provides an image processing method, as shown in fig. 2, including the steps of:
step 201, receiving a display rule of an image source sent by a host; the display rule is used for indicating the display sequence of the image frames and/or the switching mode of the image frames;
illustratively, the display rule indicates that the display order of the image frames is: sequentially displaying red, green and blue;
the image frame switching mode is as follows: each image frame is preset to keep N min, and when a switching request is received, the next image frame is switched, wherein N is a preset constant.
Step 202, sending an image acquisition request to a host according to the display rule of the image source; the image acquisition request is used for indicating the host to send a corresponding image, and the image acquisition request comprises acquisition content;
for example, the acquisition content indicates that red, green, or blue is to be acquired.
Step 203, collecting a corresponding image sent by the host; wherein the corresponding image is generated according to the acquired content;
and the host side sends the corresponding image to the single board according to the image acquisition request.
Step 204, comparing the corresponding image with a preset image, and calculating the similarity between the corresponding image and the preset image;
illustratively, a peak signal-to-noise ratio (Peak Signal to Noise Ratio, PSNR) of the corresponding image and the preset image is calculated as a similarity of the corresponding image and the preset image.
Step 205, determining the working state of the single board according to the similarity between the corresponding image and the preset image.
The working state comprises: the comparison results are consistent or inconsistent.
Specifically, when the psnr=100 is, it is determined that the corresponding image is identical to the preset image; and when the PSNR is not equal to 100, determining that the corresponding image is inconsistent with the preset image.
The embodiment of the present disclosure provides a host, such as the host 30 shown in fig. 3, which includes a first receiving module 301, a judging module 302, and a sending module 303, where: a first receiving module 301, configured to receive a token request of a board, where the token request includes an application token; a judging module 302, configured to judge whether the state of the application token is idle; and a sending module 303, configured to send a display rule of the image source to the board if the state of the application token is idle.
The embodiment of the disclosure provides a host, such as host 40 shown in fig. 4, which includes a first receiving module 401, a judging module 402, a sending module 403, a second receiving module 404, and an input module 405, where the second receiving module 404 is used for an image acquisition request of a single board; wherein the image acquisition request is generated by a single board based on the display rule;
the input module 405 is configured to input a corresponding image source to a board according to an image acquisition request of the board.
The embodiment of the disclosure provides a host, such as a host 50 shown in fig. 5, which includes a first receiving module 501, a judging module 502, a first sending module 503, and a setting module 504, where the setting module 504 is configured to set a status of an application token to be busy.
The embodiment of the present disclosure provides a host, such as host 60 shown in fig. 6, which includes a first receiving module 601, a judging module 602, a sending module 603, and a releasing module 604, where the releasing module 604 is configured to set the state of the application token to be busy.
The disclosed embodiment provides a board, such as board 70 shown in fig. 7, which includes a third receiving module 701, a second sending module 702, an acquisition module 703, a calculating module 704 and a determining module 705, where,
the third receiving module 701 is configured to receive a display rule of an image source sent by a host; the display rule is used for indicating the display sequence of the image frames and/or the switching mode of the image frames;
the second sending module 702 is configured to send an image acquisition request to a host according to a display rule of the image source; the image acquisition request is used for indicating the host to send a corresponding image, and the image acquisition request comprises acquisition content;
the acquisition module 703 is used for acquiring a corresponding image sent by the host; wherein the corresponding image is generated according to the acquired content;
the calculating module 704 is configured to compare the corresponding image with a preset image, and calculate a similarity between the corresponding image and the preset image;
the determining module 705 is configured to determine a working state of the board according to the similarity between the corresponding image and the preset image.
The embodiment of the present disclosure provides a board, such as board 80 shown in fig. 8, including:
the system comprises a video input interface 801, a collection card 802, a network port 803 and a processor 804, wherein the network port 803 is used for interaction between a single board and a host, and the video input interface 801 is used for receiving display rules of an image source sent by the host; the display rule is used for indicating the display sequence of the image frames and/or the switching mode of the image frames; the processor 804 sends an image acquisition request to the host according to the display rule of the image source; the image acquisition request is used for indicating the host to send a corresponding image, and the image acquisition request comprises acquisition content; acquiring a corresponding image sent by the host through an acquisition card 802; wherein the corresponding image is generated according to the acquired content; the processor 804 compares the corresponding image with a preset image, and calculates the similarity between the corresponding image and the preset image; processor 804 determines the working state of the single board according to the similarity between the corresponding image and the preset image.
The embodiment of the present disclosure provides an image processing system, such as image processing system 90 shown in fig. 9, including any of host 901 and single board 902 (only one single board, or a plurality of single boards are shown in the figure).
An embodiment of the present disclosure provides an image processing system, as shown in fig. 10, where the image processing system 100 includes any one of the above-mentioned hosts 1001, at least one board 1002, and a screen splitter 1003, where an input end of the screen splitter is connected to an output end of the host, and an output end of the screen splitter is connected to an input end of the at least one board.
In this embodiment, the host only needs to control the input of the image source to the single board to be verified, and specifically, the single boards to be verified share the same image source through a one-to-many Splitter (such as HDMI Splitter). The host manages the token request of each single board through the token, so that the single board can be relieved to calculate the result after capturing the wanted image source, and the synchronous operation of other single boards is not needed. The HDMI Splitter is an HDMI signal input path, and may be divided into multiple paths of same HDMI outputs.
It should be noted that, because the image sources on the host are shared, the foregoing has been described as having a plurality of split-screen devices, and therefore, all the image sources received by the single boards to be verified are the same. Only the single board with the token can be shared, and the device without the token can only wait until the single board with the token is used (a frame is completely grasped), send a message to tell the host, and return the token to the host; the host then assigns the token to other boards. After returning the token, the board starts to calculate PSNR (peak new signal to noise ratio), and the next board that takes the token starts to collect images, which is completely parallel. It is possible that the token may be assigned to multiple devices if the computation time is long.
An embodiment of the present disclosure provides an image processing system, such as the image processing system 100 shown in fig. 10, including any one of the above-mentioned hosts 1001, a single board 1002, and a split screen 1003.
From fig. 3 to 8 and the text, it can be seen that: the modules on the single board comprise a video input interface, a network port, an acquisition card and a processor CPU, wherein the CPU is internally provided with a single board resident checking service process for controlling a checking flow, and referring to FIG. 11: .
Step S1, a single board resident checking service process in a single board CPU sends a token request to a host computer through a network card, wherein the token request comprises a token application (token).
Step S2, after receiving the token request, the host determines token scheduling according to the current token allocation situation, if other devices are using the token, the host must wait for the other devices to release the token before allowing the current single board to use the token, that is, sending the token to the current single board.
Step S3, after the host computer receives the token, the host computer sends the display rule of the image source to the single board resident check service process in the single board CPU through the network port, and inputs the image source to the video input interface.
The display rule may be customized, for example, the image source may be defined as displaying red, green and blue pure color three frames of images sequentially, each image is preset to be kept for 5s, and when a switching request is received, the next image is switched.
The host computer only needs to control the input of the image source to the single board to be checked, and specifically, a plurality of single boards to be checked share the same image source through a one-to-many screen divider (such as HDMI Splitter). The host manages the token request of each single board through the token, so that the single board can be relieved to calculate the result after capturing the wanted image source, and the synchronous operation of other single boards is not needed. The HDMI Splitter is an HDMI signal input path, and may be divided into multiple paths of same HDMI outputs.
It should be noted that, because the image sources on the host are shared, the foregoing has been described as having a plurality of split-screen devices, and therefore, all the image sources received by the single boards to be verified are the same. Only the single board with the token can be shared, and the device without the token can only wait until the single board with the token is used (a frame is completely grasped), send a message to tell the host, and return the token to the host; the host then assigns the token to other boards. After returning the token, the board starts to calculate PSNR (peak signal to noise ratio), and the next board that takes the token starts to collect images, which is completely parallel. It is possible that the token may be assigned to multiple devices if the computation time is long.
In practical application, the main board of the host is usually provided with two video output ports, one VGA port and one HDMI port (or high definition video output ports such as DVI and DP), the VGA port is connected with a display, and the display can display a normal operating system desktop, such as a running verification tool interface; the other HDMI port may be connected to an HDMI input interface of the board, and the HDMI may be used for the host to output an image source to the board.
Therefore, the scheme designs the expansion screen of the operating system of the host, the operation interface is displayed on the main screen, and the image source is displayed on the expansion screen. Therefore, the controlled display of the image source is conveniently realized under the condition that no additional image source is needed and the operation is not influenced.
And S4, controlling the acquisition card to acquire the image in the image source through the video input interface by the single board resident checking service process in the single board CPU. After each frame is collected by the CPU, a switching request is sent to the host computer, and the host computer is prompted to switch the image source so as to collect the next frame. And alternately reciprocating the steps until all expected frames are acquired and a calculation result is obtained.
The expected frame is an image frame expected to be obtained by the single board according to the display rule. For example, according to the display rule, the single board determines that the image source on the host computer can be shared independently after applying for the host computer and taking the token, and the image source which needs to be acquired currently is a red image frame; at this time, the single board sends a message to the host computer, and requests to acquire a red image frame (display rule), and the host computer will display the red image frame after receiving the message, and repeat the interaction process of the request and display until the single board returns to the token.
The image sources may include at least three frames of images in total, and the three frames of images may be red pure color image, green pure color image and blue pure color image, respectively. The image source stays fixed for several seconds for a frame for device acquisition, similar to PPT display.
The image source can have two ways:
1. arbitrary image, non-pure color map.
The images in the image source need to be watermarked so that the processor CPU can recognize them; and the original image needs to be stored in the single board in advance in the form of a file. In this way, the CPU can find out the corresponding original image from the file stored in advance according to the watermark of the acquired image, and then compare the original image to generate a comparison result. And not recommended in a zero terminal environment.
2. Pure color map.
Other solid-color multi-frames can be added by taking red, green and blue frames as main materials. If the environment is in the presence of noise, the pure color image is better, and the comparison result is easier to obtain. Because the original image is a solid-color image, the CPU can automatically generate the original image, so that the original image does not need to be stored in the single board in advance. Furthermore, the image type in the single-panel image source can be informed by the display rule, and therefore, the image does not need to be identified by watermarking.
And 5, comparing the acquired image with the original image by the CPU according to the display rule.
For example, if the display rule is that three frames of standard images of pure red, pure green and pure blue are sequentially displayed, and each frame is kept for 5s, then the CPU may collect the pure red image first, and immediately start to calculate the PSNR corresponding to red after collection; then, image source switching is required, the pure green image is continuously collected, and the PSNR corresponding to green is calculated immediately after the pure green image is collected; then, image source switching is required, pure blue images are continuously acquired, and PSNR corresponding to blue is calculated immediately after acquisition. Specifically, only three bytes of each pixel in the acquired image need to be fixed and compared with three constant values. Red is RGB (255, 0), green is RGB (0,255,0), and blue is RGB (0, 255), which is faster to calculate. And the calculation is performed immediately after the collection, so that the space can be saved, and the buffer memory is not needed as much as possible.
For another example, assume that the input resolution is 1920×1080, and the size of one frame image is 1920×1080×3= 6220800 bytes. If the image source is a non-solid color image, the original image frames must be buffered before the PSNR is calculated and then compared. The intermediate process involves storing the original image frame in advance, then reading the content of the original image frame into the memory, and finally comparing the acquired image with the original image frame pixel by pixel to generate a result, so that the process is complicated.
The acquired image is slightly different from the original image, and even if one byte of one pixel point is different, the calculated PSNR result is completely different. Thus, it is easy to know whether information is lost before and after acquisition. When psnr=100, the acquired image and the original can be considered to be identical. According to the calculation formula of the standard PSNR, the full lossless PSNR is infinite because the denominator is 0. Only a reference value is defined which can be operated on in engineering. The denominator is zero and PSNR is defined as 100.
It should be noted that, because the non-solid-color image occupies too much memory, the invention takes the solid-color image as the standard image, so that only the image is actually compared with three values every time the collected image is compared with the original image. The three bytes of each pixel are correspondingly equal, and no much space is needed inside the panel.
If the HDMI interface introduces noise due to physical reasons and interferes with the image, a large number of noise points will appear in the acquired image, which will result in a low PSNR value for the acquired image and the original image. Therefore, the advantages and disadvantages of the acquisition card on the acquisition function of the HDMI interface can be determined according to the PSNR value generated by comparison.
When the host checks a plurality of single boards at the same time, an image source can be simultaneously poured into the plurality of single boards through a plurality of HDMI connectors, reasonable mutual exclusion is realized among the single boards through alternately acquiring the token, and only the single board acquiring the token can acquire the image source sent by the host and inform the host to switch the image source so that the host checks the plurality of single boards at the same time.
Specifically, in the scenario that the host checks multiple veneers at the same time, the host can switch control to respond to token requests of other veneers when ensuring that the current image source is acquired by the veneers. If the acquired result needs to be calculated at the host side, other single boards can be influenced to acquire control rights, and the overall efficiency is low. The calculation is processed by the single board, so that when the single board calculates the result, the host can cut the picture away for other single boards to use, the dispatching is faster, and the efficiency is higher.
Note that, the evaluation of image quality may also use a structural similarity (structural similarity index, SSIM) index, and the SSIM calculation time is longer than the PSNR.
Based on the image processing method described in the above-described embodiments corresponding to fig. 1 and 2, the embodiments of the present disclosure also provide a computer-readable storage medium, for example, a non-transitory computer-readable storage medium may be a Read Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, or the like. The storage medium stores computer instructions for executing the image processing method described in the above-described embodiments corresponding to fig. 1 and fig. 2, which are not described herein.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

Claims (15)

1. An image processing method, the method comprising:
the method comprises the steps that a host receives a token request of a single board, wherein the token request comprises an application token;
judging whether the state of the application token is idle or not, wherein the state of the application token comprises idle and busy, the busy represents that at least one single board connected with a host occupies the token resource, and the idle represents that the single board connected with the host does not occupy the token resource; after a frame is completely grasped by a single board with token resources, returning the token resources to a host, and then assigning the token resources to other single boards by the host;
if the state of the application token is idle, sending a display rule of an image source to a single board;
the single board receives the display rule of the image source sent by the host; the display rule is used for indicating the display sequence of the image frames and/or the switching mode of the image frames;
sending an image acquisition request to a host according to the display rule of the image source; the image acquisition request is used for indicating the host to send a corresponding image, and the image acquisition request comprises acquisition content;
collecting a corresponding image sent by the host; wherein the corresponding image is generated according to the acquired content;
comparing the corresponding image with a preset image, and calculating the similarity of the corresponding image and the preset image;
and determining the working state of the single board according to the similarity between the corresponding image and the preset image.
2. The image processing method according to claim 1, characterized in that the method further comprises:
receiving an image acquisition request of a single board; wherein the image acquisition request is generated by a single board based on the display rule;
and inputting a corresponding image source to the single board according to the image acquisition request of the single board.
3. The image processing method according to claim 1, characterized in that the method further comprises:
the status of the application token is set to busy.
4. The image processing method according to claim 2, characterized in that the method further comprises:
releasing the application token and setting the state of the application token to be idle.
5. The image processing method according to claim 1, wherein the display rule is used to indicate a display order of image frames and/or a switching manner of the image frames, and wherein the image source includes at least three images.
6. The image processing method according to claim 1, wherein the display rule indicates a display order of image frames as follows: sequentially displaying red, green and blue;
the image frame switching mode is as follows: each image frame is preset to keep N min, and when a switching request is received, the next image frame is switched, wherein N is a preset constant.
7. The image processing method according to claim 1, wherein the comparing the corresponding image with a preset image, and calculating the similarity of the corresponding image and the preset image comprises:
if the image source is a non-pure color chart, acquiring the watermark of the image source;
finding out a corresponding original image from a pre-stored image file according to the acquired watermark of the image source;
and comparing the image source with the corresponding original image to obtain a comparison result.
8. The image processing method according to claim 1, wherein,
if the image source is a solid-color image, each pixel RGB component in the acquired corresponding image is respectively compared with RGB components of three primary colors of red, green and blue, and a comparison result is obtained.
9. An image processing system comprising a host and a board, the host comprising:
the first receiving module is used for receiving a token request of the single board, wherein the token request comprises an application token;
the judging module is used for judging whether the state of the application token is idle or not;
the first sending module is used for sending the display rule of the image source to the single board if the state of the application token is idle;
the veneer comprises:
the third receiving module is used for receiving the display rule of the image source sent by the host; the display rule is used for indicating the display sequence of the image frames and/or the switching mode of the image frames;
the second sending module is used for sending an image acquisition request to the host according to the display rule of the image source; the image acquisition request is used for indicating the host to send a corresponding image, and the image acquisition request comprises acquisition content;
the acquisition module is used for acquiring the corresponding image sent by the host; wherein the corresponding image is generated according to the acquired content;
the computing module is used for comparing the corresponding image with a preset image and computing the similarity of the corresponding image and the preset image;
the determining module is used for determining the working state of the single board according to the similarity between the corresponding image and the preset image;
after the single board with the token resource completely catches one frame, the token resource is returned to the host, and the host allocates the token resource to other single boards.
10. The image processing system of claim 9, wherein the host further comprises:
the second receiving module is used for image acquisition requests of the single board; wherein the image acquisition request is generated by a single board based on the display rule;
and the input module is used for inputting a corresponding image source to the single board according to the image acquisition request of the single board.
11. The image processing system of claim 9, wherein the host further comprises:
and the setting module is used for setting the state of the application token to be busy.
12. The image processing system of claim 10, wherein the host further comprises:
and the releasing module is used for releasing the application token and setting the state of the application token to be idle.
13. The image processing system of claim 9, wherein the image processing system further comprises: the input end of the screen divider is connected with the output end of the host, and the output end of the screen divider is connected with the input end of at least one single board.
14. An image processing system is characterized by comprising a host and a single board; the host includes:
the first receiving module is used for receiving a token request of the single board, wherein the token request comprises an application token;
the judging module is used for judging whether the state of the application token is idle or not;
the first sending module is used for sending the display rule of the image source to the single board if the state of the application token is idle;
the veneer comprises: the system comprises a video input interface, an acquisition card, a network port and a processor, wherein the network port is used for interaction between a single board and a host, and the processor is used for executing the following steps:
receiving display rules of an image source sent by a host through a video input interface; the display rule is used for indicating the display sequence of the image frames and/or the switching mode of the image frames;
sending an image acquisition request to a host according to the display rule of the image source; the image acquisition request is used for indicating the host to send a corresponding image, and the image acquisition request comprises acquisition content;
the corresponding image sent by the host is collected through the collection card; wherein the corresponding image is generated according to the acquired content;
comparing the corresponding image with a preset image, and calculating the similarity of the corresponding image and the preset image;
determining the working state of the single board according to the similarity between the corresponding image and the preset image;
after the single board with the token resource completely catches one frame, the token resource is returned to the host, and the host allocates the token resource to other single boards.
15. The image processing system of claim 14, wherein the image processing system further comprises: the input end of the screen divider is connected with the output end of the host, and the output end of the screen divider is connected with the input end of at least one single board.
CN201910950137.6A 2019-10-08 2019-10-08 Image processing method, host, single board and system Active CN110730311B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910950137.6A CN110730311B (en) 2019-10-08 2019-10-08 Image processing method, host, single board and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910950137.6A CN110730311B (en) 2019-10-08 2019-10-08 Image processing method, host, single board and system

Publications (2)

Publication Number Publication Date
CN110730311A CN110730311A (en) 2020-01-24
CN110730311B true CN110730311B (en) 2024-02-20

Family

ID=69220763

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910950137.6A Active CN110730311B (en) 2019-10-08 2019-10-08 Image processing method, host, single board and system

Country Status (1)

Country Link
CN (1) CN110730311B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101291206A (en) * 2008-06-20 2008-10-22 中兴通讯股份有限公司 Test device and method for single-board host-slave switching
CN101521834A (en) * 2009-04-02 2009-09-02 深圳市茁壮网络技术有限公司 Automatic testing method, device and system
CN101594192A (en) * 2009-06-19 2009-12-02 中兴通讯股份有限公司 The online fault detection method and the device of a kind of signal handling equipment and Optical Fiber Interface Board
WO2016078312A1 (en) * 2014-11-19 2016-05-26 中兴通讯股份有限公司 Single board testing method and device
CN106251279A (en) * 2016-08-18 2016-12-21 深圳市金立通信设备有限公司 A kind of image processing method and terminal
CN106899846A (en) * 2017-02-23 2017-06-27 广州视源电子科技股份有限公司 Board method of testing, apparatus and system
WO2018049786A1 (en) * 2016-09-18 2018-03-22 中兴通讯股份有限公司 Testing device and testing method
CN109168071A (en) * 2018-09-21 2019-01-08 西安万像电子科技有限公司 Image processing method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8661348B2 (en) * 2006-01-27 2014-02-25 At&T Intellectual Property I, L.P. Methods and systems to process an image

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101291206A (en) * 2008-06-20 2008-10-22 中兴通讯股份有限公司 Test device and method for single-board host-slave switching
CN101521834A (en) * 2009-04-02 2009-09-02 深圳市茁壮网络技术有限公司 Automatic testing method, device and system
CN101594192A (en) * 2009-06-19 2009-12-02 中兴通讯股份有限公司 The online fault detection method and the device of a kind of signal handling equipment and Optical Fiber Interface Board
WO2016078312A1 (en) * 2014-11-19 2016-05-26 中兴通讯股份有限公司 Single board testing method and device
CN106251279A (en) * 2016-08-18 2016-12-21 深圳市金立通信设备有限公司 A kind of image processing method and terminal
WO2018049786A1 (en) * 2016-09-18 2018-03-22 中兴通讯股份有限公司 Testing device and testing method
CN106899846A (en) * 2017-02-23 2017-06-27 广州视源电子科技股份有限公司 Board method of testing, apparatus and system
CN109168071A (en) * 2018-09-21 2019-01-08 西安万像电子科技有限公司 Image processing method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
TD-SCDMA网络测试仪STM-1数据采集卡的实现;裴二荣;雒江涛;张治中;;重庆邮电大学学报(自然科学版)(第01期);全文 *

Also Published As

Publication number Publication date
CN110730311A (en) 2020-01-24

Similar Documents

Publication Publication Date Title
CN108737482B (en) Document sharing method, device and system
RU2534951C2 (en) Device, method and system for sharing of plotted image at multiple workplaces, programme and recordable media
CN111552565A (en) Multithreading screen projection method and device
CN107155093B (en) Video preview method, device and equipment
CN111741246B (en) Video storage method, device, SOC system and medium
CN110989952B (en) Multi-screen-based mouse sharing implementation method, device and system
US11671678B2 (en) Method and device, equipment, and storage medium for data processing
CN113628304A (en) Image processing method, image processing device, electronic equipment and storage medium
CN114327318A (en) Display method and system of cloud desktop
CN112269628A (en) Resource scheduling system and method
CN110730311B (en) Image processing method, host, single board and system
US20090189999A1 (en) Image processing device for providing image quality information and method thereof
KR20180022500A (en) Triple decoder and decoding how to handle
JP5818050B1 (en) Status judgment system
CN108289165B (en) Method and device for realizing camera control based on mobile phone and terminal equipment
CN110889880A (en) Map processing method, device, equipment and storage medium
CN111654702B (en) Data transmission method and system
KR101526490B1 (en) Visual data processing apparatus and method for Efficient resource management in Cloud Computing
CN113691815A (en) Video data processing method, device and computer readable storage medium
CN113489791A (en) Image uploading method, image processing method and related device
CN114339131A (en) Conference room screen projection method, device and system
CN111147910A (en) Image display method and device
CN111930326A (en) Image processing method, device and system
US8537232B2 (en) Image processing apparatus, image processing system and computer readable medium
CN117475013B (en) Computer equipment and video data processing method

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