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

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

Info

Publication number
CN110730311A
CN110730311A CN201910950137.6A CN201910950137A CN110730311A CN 110730311 A CN110730311 A CN 110730311A CN 201910950137 A CN201910950137 A CN 201910950137A CN 110730311 A CN110730311 A CN 110730311A
Authority
CN
China
Prior art keywords
image
host
single board
token
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.)
Granted
Application number
CN201910950137.6A
Other languages
Chinese (zh)
Other versions
CN110730311B (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

Images

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)
  • Facsimiles In General (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The present disclosure provides an image processing method, a single board, a host and a system, which relate 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 a host to send a corresponding image, and comprises acquisition content; collecting a corresponding image sent by the host; wherein the corresponding image is generated according to the acquisition 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 of the corresponding image and a preset image.

Description

Image processing method, host, single board and system
Technical Field
The present disclosure relates to the field of computer image technologies, and in particular, to an image processing method, a host, a board, and a system.
Background
At present, for the verification of the acquisition function of the acquisition card on the video input interface, the acquisition card needs 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 image acquired from the HDMI interface by the acquisition card. Wherein, the video input interface includes: HDMI interface, VGA interface, DVI interface, DP interface, etc. Because the work of image comparison is finished by the host, when a plurality of acquisition cards are simultaneously verified, the CPU occupancy rate of the host is large, and the operation efficiency of the host is influenced.
For a zero terminal device in a VDI (Virtual Desktop Infrastructure), the zero terminal device is characterized by a limited storage space, a flash is smaller than 64M, even 32M bytes, and for the zero terminal device, if the acquired image needs to be stored in the device first and then transmitted back to the host, the zero terminal device not only occupies the storage space, but also consumes more time. Especially, when 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 the embodiments 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 a display rule of an image source to the single board.
In one embodiment, the method further comprises:
receiving an image acquisition request of a single board; 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 state of the application token is set to busy.
In one embodiment, the method further comprises:
and 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 switching pattern of the image frames.
According to a first aspect of the embodiments 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 a host to send a corresponding image, and comprises acquisition content;
collecting a corresponding image sent by the host; wherein the corresponding image is generated according to the acquisition 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 of the corresponding image and a preset image.
In one embodiment, the display rule indicates that the display order of the image frames is: displaying red, green and blue in sequence;
the image frame switching mode is as follows: and each image frame is preset to keep N seconds, and is switched to the next image frame after a switching request is received, wherein N is a preset constant.
According to a third aspect of the embodiments of the present disclosure, there is provided a host, including:
a first receiving module, configured to receive a token request of a board, where the token request includes 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 application token is idle.
In one embodiment, the host further includes:
the second receiving module is used for acquiring the image acquisition request of the single board; 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 as 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 the embodiments of the present disclosure, there is provided a single board, including:
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 a host according to the display rule of the image source; the image acquisition request is used for indicating a host to send a corresponding image, and 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 acquisition content;
the calculating module is used for comparing the corresponding image with a preset image and calculating the similarity of the corresponding image and the preset image;
and the determining module is used for determining the working state of the veneer according to the similarity of 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, including:
any host and any single board.
According to a sixth aspect of an embodiment of the present disclosure, there is provided an image processing system including:
the host, the single board and the screen splitter are connected, wherein the input end of the screen splitter is connected with the output end of the host, and the output end of the screen splitter is connected with the input end of at least one single board.
The task of comparing the collected image with the original image is transferred from the host computer to the CPU of the single board where the collection card and the video input interface are located.
Therefore, each single board can complete the verification of the acquisition function of the acquisition card 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 simultaneously verifies a plurality of single boards. The scheme provides a solution which is low in cost, high in efficiency and capable of realizing multi-board parallel verification.
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 present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flowchart of an image processing method provided by an embodiment of the present disclosure;
fig. 2 is a flowchart of an image processing method provided by an embodiment of the present disclosure;
FIG. 3 is a diagram of a host structure provided by an embodiment of the present disclosure;
FIG. 4 is a diagram of a host structure provided by an embodiment of the present disclosure;
FIG. 5 is a diagram of a host structure provided by an embodiment of the present disclosure;
FIG. 6 is a diagram of a host structure provided in an embodiment of the present disclosure;
fig. 7 is a single board structure diagram provided in the embodiment of the present disclosure;
fig. 8 is a structural diagram of a single board according to an embodiment of the present disclosure;
FIG. 9 is an image processing system architecture diagram provided by an embodiment of the present disclosure;
FIG. 10 is an image processing system architecture diagram provided by an embodiment of the present disclosure;
fig. 11 is a flowchart of an image processing method according to an embodiment of the present disclosure.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
An embodiment of the present disclosure provides an image processing method, as shown in fig. 1, the image processing method including the steps of:
step 101, receiving a token request of a single board, wherein the token request includes an application token (token);
the token in the disclosed embodiments is used to indicate whether a resource of the host is occupied.
Step 102, judging whether the state of the application token is idle or not;
the states of the application token comprise idle and busy, the busy indicates that at least one single board in the single boards connected with the host computer occupies the token resource, namely if other equipment uses token, the state corresponding to the application token is busy; the idle representation does not occupy the token resource in the single board connected with the host; then, it is necessary to wait for the token to be released by other devices, and then allow the current board to use the token when the token applying state is idle, that is, send the token to the current board.
And 103, if the application token is idle, sending a display rule of an image source to the single board.
The display rule is 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 can be customized, for example, the image source can be defined as three frames of images of red, green and blue pure colors to be displayed in sequence, each image is preset and kept for 5s, and when a switching request is received, the next image is switched to.
Optionally, the image processing method disclosed in this embodiment further includes:
receiving an image acquisition request of a single board; 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 state of the application token is set to busy.
Optionally, the image processing method disclosed in this embodiment further includes:
and releasing the application token, and setting the state of the application token to be idle.
And setting the state of the application token to be idle so that other single boards can 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, the image processing method includes the following steps:
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: displaying red, green and blue in sequence;
the image frame switching mode is as follows: and each image frame is preset to keep N seconds, and is switched to the next image frame after a switching request is received, 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 a host to send a corresponding image, and comprises acquisition content;
for example, the capture content indicates that red, green, or blue is to be captured.
Step 203, collecting a corresponding image sent by the host; wherein the corresponding image is generated according to the acquisition content;
and the host side sends a 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 of the corresponding image and the preset image;
illustratively, a Peak Signal to noise ratio (PSNR) of the corresponding image and the preset image is calculated as a similarity between the corresponding image and the preset image.
And 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 following steps: the comparison results are consistent or the comparison results are inconsistent.
Specifically, when the PSNR is 100, it is determined that the corresponding image is consistent with a preset image; and when the PSNR is not equal to 100, determining that the corresponding image is inconsistent with a preset image.
The embodiment of the present disclosure provides a host, such as the host 30 shown in fig. 3, including a first receiving module 301, a determining 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; a sending module 303, configured to send, to the single board, the display rule of the image source if the state of the application token is idle.
The embodiment of the present disclosure provides a host, for example, a host 40 shown in fig. 4, where the host includes a first receiving module 401, a determining 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; 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 the single board according to the image acquisition request of the single board.
The embodiment of the present disclosure provides a host, such as the host 50 shown in fig. 5, which includes a first receiving module 501, a determining module 502, a first sending module 503, and a setting module 504, where the setting module 504 is configured to set a state of an application token to busy.
The embodiment of the present disclosure provides a host, such as the host 60 shown in fig. 6, which includes a first receiving module 601, a determining module 602, a sending module 603, and a releasing module 604, where the releasing module 604 is configured to set a state of an application token to busy.
The present disclosure provides a single board, such as the single board 70 shown in fig. 7, which includes a third receiving module 701, a second sending module 702, an acquiring 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 a host to send a corresponding image, and comprises acquisition content;
the acquisition module 703 is configured to acquire a corresponding image sent by the host; wherein the corresponding image is generated according to the acquisition 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 single board, and a single board 80 shown in fig. 8 includes:
the system comprises a video input interface 801, an acquisition card 802, a network interface 803 and a processor 804, wherein the network interface 803 is used for interaction between a single board and a host, and receives a display rule of an image source sent by the host through the video input interface 801; 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 a host to send a corresponding image, and 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 acquisition content; the processor 804 compares the corresponding image with a preset image, and calculates the similarity between the corresponding image and the preset image; the processor 804 determines the working state of the single board according to the similarity between the corresponding image and the preset image.
An embodiment of the present disclosure provides an image processing system, such as an image processing system 90 shown in fig. 9, including any one of the above hosts 901 and a single board 902 (only one single board is shown in the figure, and multiple boards may be used).
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 hosts 1001, at least one single 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 at least one single board.
In this embodiment, the host only needs to control to input the image source to the board to be verified, and specifically, the multiple boards to be verified share the same image source through one-to-many screen splitters (such as HDMI Splitter). The host manages the token request of each single board through token, so that the single board can be relieved from calculating the result after capturing the desired image source without waiting for the synchronous operation of other single boards. The HDMI Splitter is that one path of HDMI signal enters and can be divided into multiple paths of same HDMI signals to be output.
It should be noted that, since the image source on the host is shared, and there are one or more screen splitters in the foregoing, all the image sources received by the single board to be verified are the same. Only the single board with the token can be exclusively shared, and the equipment without the token can only wait until the single board with the token is used (completely captures a frame), sends a message to tell the host and returns the token to the host; then, the host assigns token to other single boards. After the veneer returns the token, PSNR (peak new signal to noise ratio) starts to be calculated, and the next veneer to the token starts to acquire images, which is completely parallel. It is possible that tokens may be assigned to multiple devices if the computation time is long.
The 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 hosts 1001, a single board 1002, and a screen splitter 1003.
From fig. 3 to 8 and the text description, it can be seen that: the module on the single board includes a video input interface, an internet access, an acquisition card and a CPU, wherein a single board resident verification service process is built in the CPU for controlling a verification process, referring to fig. 11: .
Step S1, the board resident check service process in the board CPU sends a token request to the host through the network card, where the token request includes a token (token) application.
Step S2, after receiving the token request, the host determines token scheduling according to the current token allocation condition, and if there is another device using the token, the host must wait for the other device to release the token before allowing the current board to use the token, that is, send the token to the current board.
Step S3, after the veneer receives the token, the host sends the display rule of the image source to the veneer resident check service process in the veneer CPU through the internet access, 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 three frames of images of red, green and blue pure colors, which are displayed in sequence, each image is preset and maintained for 5s, and when receiving a switching request, the next image is switched to.
The host only needs to control to input the image source to the single board to be verified, and specifically, the single boards to be verified share the same image source through one-to-many screen splitters (such as HDMI Splitter). The host manages the token request of each single board through token, so that the single board can be relieved from calculating the result after capturing the desired image source without waiting for the synchronous operation of other single boards. The HDMI Splitter is that one path of HDMI signal enters and can be divided into multiple paths of same HDMI signals to be output.
It should be noted that, since the image source on the host is shared, and there are one or more screen splitters in the foregoing, all the image sources received by the single board to be verified are the same. Only the single board with the token can be exclusively shared, and the equipment without the token can only wait until the single board with the token is used (completely captures a frame), sends a message to tell the host and returns the token to the host; then, the host assigns token to other single boards. After the veneer returns the token, the veneer starts to calculate PSNR (peak signal to noise ratio), and the next veneer taking the token starts to acquire images, which is completely parallel. It is possible that tokens may be assigned to multiple devices if the computation time is long.
In practical applications, a main board of the host usually has 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 to the display, and the display can display a normal operating system desktop, such as an interface for running a calibration tool; the other HDMI interface can be connected to an HDMI input interface of the single board, and the HDMI can be used for the host to output an image source to the single board.
Therefore, the scheme is designed to utilize the operating system of the host to expand the screen, the main screen displays the operating interface, and the expansion screen displays the image source. Therefore, under the conditions that an additional image source is not needed and the operation is not influenced, the controlled display of the image source is conveniently realized.
Step S4, the single board resident check service process in the single board CPU controls the collecting card to collect the image in the image source through the video input interface. After each frame is collected by the CPU, a switching request is sent to the host computer to prompt the host computer to switch an image source so as to collect the next frame. And the steps are alternately repeated until all the expected frames are acquired and the calculation result is obtained.
The expected frame is an image frame expected by the single board according to the display rule. For example, according to a display rule, the single board determines that an image source on the host can be shared independently after the single board applies for and takes a token from the host, 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 to request to acquire a red image frame (display rule), the host computer displays the red image frame after receiving the red image frame, and the interactive process of the request and the display is repeated until the single board returns to the token.
The image source may comprise at least three frames of images in total, which may be a red pure color map, a green pure color map, and a blue pure color map, respectively. The image source is similar to the PPT display mode, and one frame is fixed and stays for a few seconds for the device to acquire.
The image source can be in two ways:
1. arbitrary images, non-pure color maps.
The image in the image source needs to be added with the watermark so as to be identified by the CPU; furthermore, the original image needs to be saved in the single board in advance in a file form. Therefore, the CPU can find the corresponding original image from the file stored in advance according to the watermark of the collected image, and then compare the original image with the original image to generate a comparison result. Not recommended in a zero terminal environment.
2. Pure color chart.
Red, green and blue frames are used as main frames, and other pure color multi-frames can be added. If the environment is in the presence of noise, the pure color chart is better, and the comparison result is easier to obtain. Since the CPU can automatically generate the original image because of the solid color image, it is not necessary to store the original image in advance in the single board. In addition, the image type in the image source of the single board can be informed through the display rule, so that the image does not need to be identified by adding a watermark.
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 standard images of pure red, pure green and pure blue are sequentially displayed, and each frame is kept for 5s, the CPU may collect the pure red image first, and immediately start to calculate the PSNR corresponding to the red after collection; then, requiring the switching of an image source, continuously acquiring a pure green image, and immediately calculating a PSNR corresponding to green after acquisition; and then, requiring the switching of the image source, continuously acquiring the pure blue image, and immediately calculating the PSNR corresponding to the blue image after acquisition. Specifically, only three bytes of each pixel in the acquired image need to be fixedly compared with three constant values. Red is RGB (255,0, 0), green is RGB (0,255, 0), and blue is RGB (0,0, 255), the calculation is faster. And calculation is carried out immediately after collection, so that space can be saved, and caching is not carried out 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-pure color image, the original image frame must be buffered before PSNR calculation, and then comparison is performed. The intermediate process involves storing the original image frame in advance, reading the content of the original image frame into the memory, and finally comparing the acquired image and the original image frame pixel by pixel to generate a result, so that the process is complicated.
The collected image is slightly different from the original image, 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 the acquisition. When PSNR is 100, the captured image and the original image may be considered to be identical. According to the calculation formula of the standard PSNR, the completely lossless PSNR is infinite because the denominator is 0. Only one reference value is defined that can be engineered. The denominator is zero and the PSNR is defined as 100.
It should be noted that, because the non-solid color image occupies too much memory, the solid color image is used as the standard image in the present invention, and thus, each time the collected image is compared with the original image, only three values of the image are actually needed. The three bytes of each pixel are correspondingly equal and do not require much space inside the panel.
If noise is introduced into the HDMI interface due to physical reasons and interferes with the image, a large amount of noise will appear in the acquired image, which may result in a low PSNR value generated by the acquired image and the original image. Therefore, the quality of the acquisition function of the acquisition card on the HDMI interface can be determined according to the PSNR value generated by comparison.
When the host checks a plurality of single boards simultaneously, one image source can be simultaneously poured into the plurality of single boards through one-to-many HDMI splitter, reasonable mutual exclusion is realized by alternately acquiring the token between the single boards, only the single board acquiring the token can acquire the image source sent by the host, and the host is informed of switching the image source, so that the host checks a plurality of single boards simultaneously.
Specifically, in a scenario where the host checks multiple boards at the same time, the host switches control to respond to the token request of other boards while ensuring that the current image source is acquired by the board. If the acquired result needs to be calculated at the host side, the control right of other single boards can be influenced, 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 to other single boards for use, the scheduling is faster, and the efficiency is higher.
It should be noted that the image quality may be evaluated by using a Structural Similarity (SSIM) index, where the SSIM calculation time is longer than the PSNR.
Based on the image processing method described in the embodiment corresponding to fig. 1 and fig. 2, an embodiment of the present disclosure further provides a computer-readable storage medium, for example, the non-transitory computer-readable storage medium may be a Read Only Memory (ROM), a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like. The storage medium stores computer instructions for executing the image processing method described in the embodiment corresponding to fig. 1 and fig. 2, which is not described herein again.
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 variations, 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 (17)

1. An image processing method, characterized in that the method comprises:
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 a display rule of an image source to the single board.
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; 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 state of the application token is set to busy.
4. The image processing method according to claim 2, characterized in that the method further comprises:
and releasing the application token, and setting the state of the application token to be idle.
5. The 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 image frames, wherein the image source comprises at least three frames of images.
6. An image processing method, characterized in that the method comprises:
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 a host to send a corresponding image, and comprises acquisition content;
collecting a corresponding image sent by the host; wherein the corresponding image is generated according to the acquisition 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 of the corresponding image and a preset image.
7. The image processing method according to claim 6, wherein the display rule indicates that the display order of the image frames is: displaying red, green and blue in sequence;
the image frame switching mode is as follows: and each image frame is preset to keep N seconds, and is switched to the next image frame after a switching request is received, wherein N is a preset constant.
8. The image processing method according to claim 6,
comparing the corresponding image with a preset image, and calculating the similarity between the corresponding image and the preset image comprises:
if the image source is a non-pure color image, acquiring a watermark of the image source;
according to the acquired watermark of the image source, finding a corresponding original image from a prestored image file;
and comparing the image source with the corresponding original image to obtain a comparison result.
9. The image processing method according to claim 6,
if the image source is a pure color image, comparing the RGB components of each pixel in the collected corresponding image with the RGB components of three primary colors of red, green and blue respectively to obtain a comparison result.
10. A host, wherein the host:
a first receiving module, configured to receive a token request of a board, where the token request includes an application token;
the judging module is used for judging whether the state of the application token is idle or not;
and 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.
11. The host of claim 10, further comprising:
the second receiving module is used for acquiring the image acquisition request of the single board; 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.
12. The host of claim 10, further comprising:
and the setting module is used for setting the state of the application token as busy.
13. The host of claim 11, further comprising:
and the releasing module is used for releasing the application token and setting the state of the application token to be idle.
14. A single board, 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 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 a host to send a corresponding image, and 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 acquisition content;
the calculating module is used for comparing the corresponding image with a preset image and calculating the similarity of the corresponding image and the preset image;
and the determining module is used for determining the working state of the veneer according to the similarity of the corresponding image and the preset image.
15. A single board, comprising: 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 a display rule 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 a host to send a corresponding image, and comprises acquisition content;
acquiring a corresponding image sent by the host through an acquisition card; wherein the corresponding image is generated according to the acquisition 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 of the corresponding image and a preset image.
16. An image processing system, characterized in that the system comprises: the host of any one of claims 10 to 13, the board of any one of claims 14 to 15.
17. An image processing system, characterized in that the system comprises: the host computer of any one of claims 10 to 13, the single board of any one of claims 14 to 15, and the screen splitter, wherein an input terminal of the screen splitter is connected to an output terminal of the host computer, and an output terminal of the screen splitter is connected to an input terminal 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 true CN110730311A (en) 2020-01-24
CN110730311B 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 (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070177188A1 (en) * 2006-01-27 2007-08-02 Sbc Knowledge Ventures, L.P. Methods and systems to process an image
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

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070177188A1 (en) * 2006-01-27 2007-08-02 Sbc Knowledge Ventures, L.P. Methods and systems to process an image
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数据采集卡的实现", 重庆邮电大学学报(自然科学版), no. 01 *

Also Published As

Publication number Publication date
CN110730311B (en) 2024-02-20

Similar Documents

Publication Publication Date Title
CN108737482B (en) Document sharing method, device and system
US9473741B2 (en) Teleconference system and teleconference terminal
CN111552565A (en) Multithreading screen projection method and device
CN108886633B (en) Image receiving and reproducing method and device, and image generating and transmitting method and device
CN107155093B (en) Video preview method, device and equipment
CN113628304B (en) Image processing method, image processing device, electronic equipment and storage medium
JP2008152625A (en) Image display device, image data processing system and image data processing method
CN110262866B (en) Screen multi-picture layout switching method and device and readable storage medium
CN112752024B (en) Method and device for controlling multiple external cameras by intelligent terminal
CN110989952A (en) Multi-screen-based mouse sharing implementation method, device and system
CN112165577B (en) Light source control method and device of multi-light source camera equipment, medium and terminal
CN110730311B (en) Image processing method, host, single board and system
KR20180022500A (en) Triple decoder and decoding how to handle
CN113691815B (en) Video data processing method, device and computer readable storage medium
WO2016180251A1 (en) Method and device for processing plurality of video source of terminal
CN114339071A (en) Image processing circuit, image processing method and electronic device
CN113031895A (en) Screen projection control method and device and electronic equipment
CN111935521A (en) LED display synchronous control array and LED display system
WO2018066161A1 (en) Display device, control device, and multi-display system
CN111752513A (en) Image processing method and device
CN117475013B (en) Computer equipment and video data processing method
CN112099745A (en) Image display method, device and system
CN106375750B (en) A kind of image display method and display device
US8933950B2 (en) Image processing device
JP2001128194A (en) Stereoscopic video processor, method for processing stereoscopic video and storing medium

Legal Events

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