A KVM switch based on video preview and control method thereof

By designing a KVM switch based on video preview, it realizes the functions of previewing and independent control of multiple video screens, solves the problems of equipment complexity and high cost in the existing technology, simplifies operations and improves intelligent monitoring capabilities.

CN117742550BActive Publication Date: 2024-09-27GUANGDONG MT-VIKI ELECTRONICS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311761129.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-20
Publication Date
2024-09-27
Estimated Expiration
2043-12-20

AI Technical Summary

Technical Problem

Existing KVM switches cannot preview and individually control the video screens of multiple computers and require additional screen splitters for splitting and switching, which increases equipment cost and complexity.

Method used

Design a KVM switch based on video preview, including a multi-video picture preview module, a single-picture control module and a single-picture switching module. It displays multiple video pictures through the display screen, realizes synchronous keyboard and mouse control, and supports the preview interface and control interface. Video screen switching, using image recognition and convolutional neural network to identify pop-up information.

Benefits of technology

It realizes the functions of multi-video screen preview and independent control, solves the problem of being unable to realize multi-screen preview in the existing technology, simplifies equipment configuration, improves operating efficiency, and improves system intelligence by automatically identifying and processing pop-up information. monitoring capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117742550B
    Figure CN117742550B
Patent Text Reader

Abstract

The present invention discloses a KVM switch based on video preview and a control method thereof, wherein the KVM switch comprises: a multi-video screen preview module, which is used to display and preview the connected multi-video screens through a display screen; a single-screen control module, which is used to perform keyboard and mouse synchronous control on the connected single screen; and a single-screen switching module, which is used to switch a certain screen in the multi-video screens to a control screen, and perform keyboard and mouse synchronous control on the switched screen. The scheme sets a preview interface in a way that can display the video screens of all host computers on the preview interface through one signal access, thereby forming a multi-video screen preview function, and can also realize a single screen control method on the control interface by using keyboard and mouse synchronous control method through another signal access. The problem that multi-screen preview cannot be performed in the prior art is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of switches, and in particular to a KVM switch based on video preview and a control method thereof. Background Art

[0002] KVM is the abbreviation of Keyboard, Video, Mouse. The official name of KVM switch is multi-computer switch or KVM SWITCH. Simply put, KVM switch allows system administrators to control the computer peripherals of multiple servers or computer hosts through a set of keyboards, monitors and mice, which means that only one person can interact with all computers, of course, only one at a time. In addition to saving the cost of multiple keyboards and monitors, the switch can also free up more desktop space. KVM switches are often used in networks and other server locations with multiple computers. In these cases, there are usually multiple computers but only one administrator or network manager. The price of the switch ranges from $200 for a switch that controls an eight-computer ring system to $2000 for a switch that controls 10 Sun workstations. The larger the configuration, the greater the cost.

[0003] Now, in order to realize the functions of previewing multiple computer screens on one monitor and switching control individually and synchronously, a screen splitter and a KVM switch are needed. First, use the screen splitter to split the screens of multiple computers, and then control multiple computers through the KVM switch to achieve the purpose of multi-computer screen splitting and KVM switching. Summary of the invention

[0004] The present invention provides a KVM switch based on video preview and a control method thereof to solve the above problems existing in the prior art.

[0005] The present invention provides a KVM switch based on video preview, and the KVM switch comprises:

[0006] A multi-video screen preview module is used to display and preview the connected multi-video screens through the display screen;

[0007] Single screen control module, used for keyboard and mouse synchronous control of the connected single screen;

[0008] The single-screen switching module is used to switch a certain screen among multiple video screens to the control screen, and to perform keyboard and mouse synchronous control on the switched screen.

[0009] Preferably, it also includes: a multi-video screen switching module, used to switch the multi-video screens on the preview interface;

[0010] The multi-video screen switching module comprises:

[0011] A preview interface screen quantity setting unit is used to set the number of preview interface video screens;

[0012] The switching mode setting unit is used to set the video screen switching mode of the preview interface. The switching modes include: scrolling loop preview, timed batch switching preview, random loop preview and weight setting loop preview;

[0013] The preview interface setting unit is used to set the size and display position of the preview interface.

[0014] Preferably, it also includes:

[0015] A multi-video screen information acquisition module is used to acquire prompt information and image information on the multi-video screen;

[0016] An information processing module, used to match the acquired prompt information to the corresponding event through a matching model;

[0017] A solution configuration module is used to configure corresponding solutions according to the corresponding events matched;

[0018] The prompt information solving module is used to solve the prompt information of the existing multi-video screen based on the corresponding solution.

[0019] Preferably, the multi-video picture information acquisition module includes:

[0020] A determination unit, used to determine whether there is a prompt pop-up window for all the pictures in the multi-video pictures;

[0021] An automatic capture unit, used to automatically capture the prompt information and the current screen, and obtain the screenshot information and the current image information;

[0022] An image translation unit is used to translate the image information to obtain the image information; and extract the screenshot information to obtain the prompt information;

[0023] The prompt information acquisition unit collects all prompt information of all pictures into a prompt information set, collects image information of all pictures into an image information set, and forms prompt information and image information of multiple video pictures based on the prompt information set and the image information set.

[0024] Preferably, the judging unit comprises:

[0025] The frame extraction subunit is used to extract one frame of the video. For one frame, R-CNN uses a selective search method to generate a set number of candidate regions.

[0026] The input subunit is used to transform each candidate region to the same size and serve as the input of the trained CNN network;

[0027] The feature scoring subunit is used to score the extracted features for each category using the SVM classifier that has been trained for this category;

[0028] The candidate region subunit is used to eliminate several candidate regions with relatively high repetition rates by using non-maximum suppression to obtain several candidate regions with the highest scores in each column;

[0029] The polling subunit is used to find the candidate area with the highest score from the remaining candidate areas after a round of elimination, and determine whether the IOU with the highest score exceeds the threshold. If it exceeds the threshold, continue to eliminate it until there are no candidate areas left;

[0030] The subunit for obtaining the selected candidate regions is used to perform the above operation on each column, and finally obtain a number of selected candidate regions for each column;

[0031] The bounding box obtaining subunit is used to train a bounding box regression model to correct the exact position of the pop-up box and obtain the corrected bounding box for each category;

[0032] The judgment condition subunit is used to judge whether there is a prompt pop-up window according to whether the bounding box exists.

[0033] Preferably, the image translation unit comprises: a screenshot information text recognition subunit, for recognizing text in the screenshot information;

[0034] The screenshot information text recognition subunit includes:

[0035] The text segmentation subunit is used to perform a horizontal projection operation on the screen pop-up picture, and use the horizontal projection method to find the upper and lower boundaries of each line of text; a vertical projection operation is performed on each segmented line of text, and after the vertical projection, the left and right boundaries of each character can be found. At this time, the screen pop-up picture can be segmented into individual characters;

[0036] The text positioning subunit is used to record the positions of horizontal and vertical projections. According to the horizontal projection map, the starting and ending points of each raised hill are used as the starting and ending points of the text line to determine the position of each line. Some constraints are made on these raised hills to obtain the position information of each text line. Then, each text line is cut out using the obtained position information for the subsequent segmentation of each character.

[0037] Preferably, the image translation unit further comprises: a convolutional neural network character recognition subunit, for recognizing characters based on a convolutional neural network;

[0038] The convolutional neural network character recognition subunit includes:

[0039] The model building subunit is used to set the neural network model with the optimizer being Adam and the learning rate being 0.1;

[0040] A model training subunit, used to train the model based on the constructed neural network model to obtain a convolutional neural network model;

[0041] The recognition subunit is used to recognize text based on the convolutional neural network model to obtain prompt information.

[0042] Preferably, the model building subunit includes:

[0043] A convolutional neural network parameter setting subunit, used to set the convolutional neural network parameters;

[0044] A convolutional neural network feature map parameter setting subunit, used to set the feature map parameters of the convolutional layer in the convolutional neural network;

[0045] The parameter optimization subunit is used to optimize all parameters of the convolutional neural network;

[0046] The convolutional neural network model building subunit is used to build a convolutional neural network model based on the optimized parameters.

[0047] Optionally, the model building subunit includes:

[0048] In the input layer, the size of the input image is uniformly normalized to 32×32;

[0049] The first layer: C1 layer is a convolution layer with 6 feature maps and a 5×5 convolution kernel. Through convolution operation, the original image features are enhanced and the noise is reduced. Different convolution kernels can extract different features in the image.

[0050] The second layer: The S2 layer is a downsampling layer that downsamples the C1 layer. It has 6 14×14 feature maps. The neurons in each feature map are connected to the 2×2 area in the feature map corresponding to the C1 layer. Each neuron in the S2 layer is obtained by adding these 4 inputs, multiplying them by a training parameter, and adding the bias parameter of this feature map. The result is calculated by the Sigmoid function.

[0051] The third layer: C3 is a convolution layer, which uses a 5×5 convolution kernel to process the S2 layer;

[0052] The fourth layer: The S4 layer is a downsampling layer consisting of 16 5×5 feature maps, and each neuron is connected to the 2×2 region of the corresponding feature map in C3;

[0053] The fifth layer: C5 layer is a convolution layer, which is suitable for 5×5 convolution kernel;

[0054] Layer 6: The F6 fully connected layer has 84 feature maps, each of which has only one neuron fully connected to the C5 layer; the F6 layer calculates the dot product and bias between the input vector and the weight vector, and then passes it to the Sigmoid function to calculate the neuron;

[0055] Seventh layer: The output layer is a fully connected layer with 10 nodes, representing the numbers 0 to 9.

[0056] Preferably, the model training subunit includes:

[0057] Create a subunit to create a data flow graph. The data flow graph consists of some pipeline stages, and the stages are connected by queues.

[0058] The first stage subunit is used to generate file names in the first stage, read these file names and put them into the file name queue;

[0059] The second stage subunit is used to read data from the file using Reader in the second stage, generate samples, and put the samples in a sample queue;

[0060] The enqueue and dequeue loop subunit is used for a queuing operation at the end of the second stage, which is to enqueue the samples in the queue and dequeue them in the next stage. During the training process, the training loop makes the samples in the sample queue dequeue continuously.

[0061] The training setting subunit is used to train the network and read data asynchronously. The main thread is training the network, and another thread is reading data from the hard disk into the memory; the maximum number of iterations is set to 16002, verification is performed every 100 steps, and the model is stored every 500 steps.

[0062] The present invention also provides a control method of a KVM switch based on video preview, comprising: using the KVM switch based on video preview to perform the following steps:

[0063] Receiving a first single screen of a video input by a single screen control, and controlling the first single screen by using a keyboard and mouse synchronous control method;

[0064] For the multiple video images displayed on the preview interface, select one of the images through keyboard and mouse synchronous control and set it as the second single image to be controlled;

[0065] The second single screen is controlled by keyboard and mouse synchronization control, and the first single screen is switched to the multi-video screen of the preview interface.

[0066] Compared with the prior art, the present invention has the following advantages:

[0067] The present invention provides a KVM switch based on video preview and a control method thereof, wherein the KVM switch comprises: a multi-video screen preview module, which is used to display and preview the connected multi-video screens through a display screen; a single screen control module, which is used to perform keyboard and mouse synchronous control on the connected single screen; and a single screen switching module, which is used to switch a certain screen in the multi-video screen to a control screen, and perform keyboard and mouse synchronous control on the switched screen. The scheme sets the preview interface in a way that can display the video screens of all host computers on the preview interface through one signal access, forming a multi-video screen preview function, and can also realize the single screen control method of using keyboard and mouse synchronous control on the control interface through another signal access. The problem that multiple screens cannot be previewed in the prior art is solved, and the scheme can freely switch the video screens of the control interface and the preview interface. If switching is required, the video screen of the preview interface can be switched to the control screen, and it can be controlled in the corresponding control interface. Correspondingly, the original controlled screen can automatically enter the numerous video screens in the preview interface.

[0068] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the written description, claims, and drawings.

[0069] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0070] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:

[0071] Figure 1 It is a structural schematic diagram of a KVM switch based on video preview in an embodiment of the present invention;

[0072] Figure 2 Another structural schematic diagram of a KVM switch based on video preview in an embodiment of the present invention;

[0073] Figure 3 The present invention is a flowchart of a method for controlling a KVM switch based on video preview in an embodiment of the present invention. DETAILED DESCRIPTION

[0074] The preferred embodiments of the present invention are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.

[0075] The embodiment of the present invention provides a KVM switch based on video preview, please refer to Figure 1 , the video preview based KVM switch includes:

[0076] A multi-video screen preview module is used to display and preview the connected multi-video screens through the display screen;

[0077] Single screen control module, used for keyboard and mouse synchronous control of the connected single screen;

[0078] The single-screen switching module is used to switch a certain screen among multiple video screens to the control screen, and to perform keyboard and mouse synchronous control on the switched screen.

[0079] The working principle and beneficial effects of the above technical solution are as follows: the solution adopted in this embodiment is a multi-video screen preview module, which is used to display and preview the connected multi-video screens through the display screen; a single screen control module, which is used to perform keyboard and mouse synchronous control on the connected single screen; a single screen switching module, which is used to switch a certain screen in the multi-video screen to the control screen, and perform keyboard and mouse synchronous control on the switched screen. The way in which the preview interface is set in this solution can display the video screens of all host computers on the preview interface through one signal access, forming a multi-video screen preview function, and can also realize the way of controlling the single screen on the control interface by keyboard and mouse synchronous control through another signal access. The problem that multiple screens cannot be previewed in the prior art is solved, and the video screens of the control interface and the preview interface can be freely switched in this solution. If switching is required, the video screen of the preview interface can be switched to the control screen, and it can be controlled in the corresponding control interface. Correspondingly, the original controlled screen can automatically enter the numerous video screens in the preview interface.

[0080] In another embodiment, it also includes: a multi-video screen switching module, which is used to switch the multi-video screens in the preview interface;

[0081] The multi-video screen switching module comprises:

[0082] A preview interface screen quantity setting unit is used to set the number of preview interface video screens;

[0083] The switching mode setting unit is used to set the video screen switching mode of the preview interface. The switching modes include: scrolling loop preview, timed batch switching preview, random loop preview and weight setting loop preview;

[0084] The preview interface setting unit is used to set the size and display position of the preview interface.

[0085] The working principle and beneficial effects of the above technical solution are as follows: the solution adopted in this embodiment also includes: a multi-video screen switching module, which is used to switch the multi-video screens on the preview interface; the multi-video screen switching module includes: a preview interface screen number setting unit, which is used to set the number of video screens on the preview interface; a switching mode setting unit, which is used to set the video screen switching mode of the preview interface, and the switching mode includes: rolling loop preview, timed batch switching preview, random loop preview and weight setting loop preview; a preview interface setting unit, which is used to set the size and display position of the preview interface. The single screen in this embodiment can be from one host, and the multi-video screen can be from multiple hosts. The scheme provided by this embodiment further ensures the corresponding setting of the preview interface, that is, the previewed multi-video screen can be fully displayed on the preview interface, or partially displayed, that is, a set number of preview screens can be displayed in a random display mode, and the corresponding weight value can also be set. The video screen with a specific weight value can be displayed in a loop on the preview interface, or it can be replaced in batches by a timing method. The above setting ensures that no matter how many videos there are, that is, how many hosts are connected, the corresponding video screen can be displayed on the preview interface.

[0086] In another embodiment, please refer to Figure 2 , the KVM switch also includes:

[0087] A multi-video screen information acquisition module is used to acquire prompt information and image information on the multi-video screen;

[0088] An information processing module, used to match the acquired prompt information to the corresponding event through a matching model;

[0089] A solution configuration module is used to configure corresponding solutions according to the corresponding events matched;

[0090] The prompt information solving module is used to solve the prompt information of the existing multi-video screen based on the corresponding solution.

[0091] The working principle and beneficial effects of the above technical solution are as follows: the solution adopted in this embodiment also includes: a multi-video screen information acquisition module, which is used to acquire prompt information and image information on the multi-video screen; an information processing module, which is used to match the acquired prompt information to the corresponding event through a matching model; a solution configuration module, which is used to configure a corresponding solution according to the matched corresponding event; a prompt information solution module, which is used to solve the prompt information of the existing multi-video screen based on the corresponding solution. The solution of this embodiment further performs unified intelligent monitoring of the previewed multi-video screen displayed on the preview interface. If a pop-up window such as a prompt box appears on a video screen in the preview interface, it can be switched to the control interface for display and control, or the corresponding information can be extracted through further information extraction and identification, and the relevant content of the pop-up window can be obtained, and the corresponding solution strategy can be further executed for different situations.

[0092] At the same time, the solution provided in this embodiment can switch between the control interface and the preview interface, switch the pop-up window that needs to be manually processed to the control interface, and use the keyboard and mouse synchronous control method to further process the pop-up window and other information.

[0093] In another embodiment, the multi-video picture information acquisition module includes:

[0094] A determination unit, used to determine whether there is a prompt pop-up window for all the pictures in the multi-video pictures;

[0095] An automatic capture unit, used to automatically capture the prompt information and the current screen, and obtain the screenshot information and the current image information;

[0096] An image translation unit is used to translate the image information to obtain the image information; and extract the screenshot information to obtain the prompt information;

[0097] The prompt information acquisition unit collects all prompt information of all pictures into a prompt information set, collects image information of all pictures into an image information set, and forms prompt information and image information of multiple video pictures based on the prompt information set and the image information set.

[0098] The working principle and beneficial effects of the above technical solution are as follows: the solution adopted in this embodiment is that the multi-video screen information acquisition module includes: a judgment unit, which is used to judge whether there are prompt pop-ups in all the screens in the multi-video screen; an automatic capture unit, which is used to automatically capture the prompt information and the current screen, and obtain the screenshot information and the current image information; an image translation unit, which is used to translate the image information to obtain the image information; and extract the screenshot information to obtain the prompt information; a prompt information acquisition unit, which collects all the prompt information of all the screens into a prompt information set, collects the image information of all the screens into an image information set, and forms the prompt information and image information of the multi-video screen based on the prompt information set and the image information set. The solution provided in this embodiment can automatically identify and detect pop-ups, and further obtain the prompt information of the pop-up window and the corresponding image information.

[0099] In another embodiment, the determining unit includes:

[0100] The frame extraction subunit is used to extract one frame of the video. For one frame, R-CNN uses a selective search method to generate a set number of candidate regions.

[0101] The input subunit is used to transform each candidate region to the same size and serve as the input of the trained CNN network;

[0102] The feature scoring subunit is used to score the extracted features for each category using the SVM classifier that has been trained for this category;

[0103] The candidate region subunit is used to eliminate several candidate regions with relatively high repetition rates by using non-maximum suppression to obtain several candidate regions with the highest scores in each column;

[0104] The polling subunit is used to find the candidate area with the highest score from the remaining candidate areas after a round of elimination, and determine whether the IOU with the highest score exceeds the threshold. If it exceeds the threshold, continue to eliminate it until there are no candidate areas left;

[0105] The subunit for obtaining the selected candidate regions is used to perform the above operation on each column, and finally obtain a number of selected candidate regions for each column;

[0106] The bounding box obtaining subunit is used to train a bounding box regression model to correct the exact position of the pop-up box and obtain the corrected bounding box for each category;

[0107] The judgment condition subunit is used to judge whether there is a prompt pop-up window according to whether the bounding box exists.

[0108] The working principle and beneficial effects of the above technical solution are as follows: the solution adopted in this embodiment is that the judgment unit includes: a frame extraction subunit, which is used to extract one frame of the video screen. For one frame, R-CNN uses a selective search method to generate a set number of candidate regions; an input subunit, which is used to transform each candidate region to the same size and use it as the input of the trained CNN network; a feature scoring subunit, which is used to score the extracted features for each category using the SVM classifier that has been trained for this category; a candidate region subunit, which is used to use non-maximum suppression to eliminate several candidate regions with a relatively high repetition rate, and obtain each The candidate regions with the highest scores in the column; the polling subunit is used to find the highest score from the remaining candidate regions after a round of elimination, and determine whether the IOU with the highest score exceeds the threshold. If it exceeds the threshold, continue to eliminate until there are no candidate regions left; the subunit for obtaining the filtered candidate regions is used to operate in the above manner for each column, and finally each column obtains several filtered candidate regions; the bounding box obtaining subunit is used to train a bounding box regression model to correct the accurate position of the pop-up box and obtain the corrected bounding box for each category; the judgment condition subunit is used to determine whether there is a prompt pop-up window based on whether the bounding box exists. Effectively and automatically identify whether there is a pop-up window to improve recognition efficiency.

[0109] In another embodiment, the image translation unit includes: a screenshot information text recognition subunit, which is used to recognize text in the screenshot information;

[0110] The screenshot information text recognition subunit includes:

[0111] The text segmentation subunit is used to perform a horizontal projection operation on the screen pop-up picture, and use the horizontal projection method to find the upper and lower boundaries of each line of text; a vertical projection operation is performed on each segmented line of text, and after the vertical projection, the left and right boundaries of each character can be found. At this time, the screen pop-up picture can be segmented into individual characters;

[0112] The text positioning subunit is used to record the positions of horizontal and vertical projections. According to the horizontal projection map, the starting and ending points of each raised hill are used as the starting and ending points of the text line to determine the position of each line. Some constraints are made on these raised hills to obtain the position information of each text line. Then, each text line is cut out using the obtained position information for the subsequent segmentation of each character.

[0113] The working principle and beneficial effects of the above technical solution are as follows: the solution adopted in this embodiment is that the image translation unit includes: a screenshot information text recognition subunit, which is used to recognize the text in the screenshot information; the screenshot information text recognition subunit includes: a text cutting subunit, which is used to perform a horizontal projection operation on the screen pop-up box image, and use the horizontal projection method to find the upper and lower limits of each line of text; a vertical projection operation is performed on each line of text segmented out, and after the vertical projection, the left and right boundaries of each character can be found, and at this time, the screen pop-up box image can be segmented into a single text; a text positioning subunit, which is used to record the positions of the horizontal projection and the vertical projection, and according to the horizontal projection map, let the starting point and the end point of each raised small peak be used as the starting point and the end point of the text line to determine the position of each line, make some constraints on these raised peaks, obtain the position information of each text line, and then use the obtained position information to cut each text line for the next segmentation of each text. Text recognition on the image ensures that the corresponding solution is further matched according to the recognized information.

[0114] In another embodiment, the image translation unit further includes: a convolutional neural network text recognition subunit, for recognizing text based on a convolutional neural network;

[0115] The convolutional neural network character recognition subunit includes:

[0116] The model building subunit is used to set the neural network model with the optimizer being Adam and the learning rate being 0.1;

[0117] A model training subunit, used to train the model based on the constructed neural network model to obtain a convolutional neural network model;

[0118] The recognition subunit is used to recognize text based on the convolutional neural network model to obtain prompt information.

[0119] The working principle and beneficial effects of the above technical solution are as follows: the solution adopted in this embodiment is that the image translation unit also includes: a convolutional neural network text recognition subunit, which is used to recognize text based on a convolutional neural network; the convolutional neural network text recognition subunit includes: a model construction subunit, which is used to set the optimizer to be Adam and the learning rate to be set to a neural network model of 0.1; a model training subunit, which is used to train the model based on the constructed neural network model to obtain a convolutional neural network model; a recognition subunit, which is used to recognize text based on the convolutional neural network model to obtain prompt information.

[0120] In another embodiment, the model building subunit includes:

[0121] A convolutional neural network parameter setting subunit, used to set the convolutional neural network parameters;

[0122] A convolutional neural network feature map parameter setting subunit, used to set the feature map parameters of the convolutional layer in the convolutional neural network;

[0123] The parameter optimization subunit is used to optimize all parameters of the convolutional neural network;

[0124] The convolutional neural network model building subunit is used to build a convolutional neural network model based on the optimized parameters.

[0125] Specifically, the model building subunit includes:

[0126] In the input layer, the size of the input image is uniformly normalized to 32×32;

[0127] The first layer: C1 layer is a convolution layer with 6 feature maps and a 5×5 convolution kernel. Through convolution operation, the original image features are enhanced and the noise is reduced. Different convolution kernels can extract different features in the image.

[0128] The second layer: The S2 layer is a downsampling layer that downsamples the C1 layer. It has 6 14×14 feature maps. The neurons in each feature map are connected to the 2×2 area in the feature map corresponding to the C1 layer. Each neuron in the S2 layer is obtained by adding these 4 inputs, multiplying them by a training parameter, and adding the bias parameter of this feature map. The result is calculated by the Sigmoid function.

[0129] The third layer: C3 is a convolution layer, which uses a 5×5 convolution kernel to process the S2 layer;

[0130] The fourth layer: The S4 layer is a downsampling layer consisting of 16 5×5 feature maps, and each neuron is connected to the 2×2 region of the corresponding feature map in C3;

[0131] The fifth layer: C5 layer is a convolution layer, which is suitable for 5×5 convolution kernel;

[0132] Layer 6: The F6 fully connected layer has 84 feature maps, each of which has only one neuron fully connected to the C5 layer; the F6 layer calculates the dot product and bias between the input vector and the weight vector, and then passes it to the Sigmoid function to calculate the neuron;

[0133] Seventh layer: The output layer is a fully connected layer with 10 nodes, representing the numbers 0 to 9.

[0134] The working principle and beneficial effects of the above technical solution are as follows: the solution adopted in this embodiment is that the model construction subunit includes: an input layer, the size of the input image is uniformly normalized to 32×32; the first layer: the C1 layer is a convolution layer, with 6 feature maps, a 5×5 convolution kernel, through the convolution operation, the original image features are enhanced and the noise is reduced, and different convolution kernels can extract different features in the image; the second layer: the S2 layer is a downsampling layer, which downsamples the C1 layer, has 6 14×14 feature maps, and the neurons in each feature map are connected to the 2×2 area in the feature map corresponding to the C1 layer; each neuron in the S2 layer is composed of the addition of these 4 inputs, multiplied by a training parameter, and the addition of this feature map. The bias parameters are calculated by the Sigmoid function; the third layer: C3 is a convolution layer, which uses a 5×5 convolution kernel to process the S2 layer; the fourth layer: the S4 layer is a downsampling layer, which consists of 16 5×5 feature maps, and each neuron is connected to the 2×2 area of ​​the corresponding feature map in C3; the fifth layer: the C5 layer is a convolution layer, which uses a 5×5 convolution kernel; the sixth layer: the F6 fully connected layer has 84 feature maps, and each feature map has only one neuron fully connected to the C5 layer; the F6 layer calculates the dot product and bias between the input vector and the weight vector, and then transfers it to the Sigmoid function to calculate the neuron; the seventh layer: the output layer is a fully connected layer with a total of 10 nodes, representing the numbers 0 to 9.

[0135] In another embodiment, the model training subunit includes:

[0136] Create a subunit to create a data flow graph. The data flow graph consists of some pipeline stages, and the stages are connected by queues.

[0137] The first stage subunit is used to generate file names in the first stage, read these file names and put them into the file name queue;

[0138] The second stage subunit is used to read data from the file using Reader in the second stage, generate samples, and put the samples in a sample queue;

[0139] The enqueue and dequeue loop subunit is used for a queuing operation at the end of the second stage, which is to enqueue the samples in the queue and dequeue them in the next stage. During the training process, the training loop makes the samples in the sample queue dequeue continuously.

[0140] The training setting subunit is used to train the network and read data asynchronously. The main thread is training the network, and another thread is reading data from the hard disk into the memory; the maximum number of iterations is set to 16002, verification is performed every 100 steps, and the model is stored every 500 steps.

[0141] The working principle and beneficial effects of the above technical solution are as follows: the solution adopted in this embodiment is that the model training subunit includes: a creation subunit, which is used to create a data flow graph, and the data flow graph is composed of some pipeline stages, and the stages are connected by queues; a first stage subunit, which is used to generate file names in the first stage, read these file names and put them into the file name queue; a second stage subunit, which is used to read data from the file using Reader in the second stage, generate samples, and put the samples in a sample queue; an enqueue and dequeue loop subunit, which is used for a queuing operation at the end of the second stage, to enqueue into the queue and dequeue in the next stage; during the training process, the training loop makes the samples in the sample queue continuously dequeue; a training setting subunit, which is used to train the network and read data asynchronously, the main thread is training the network, and another thread is reading data from the hard disk into the memory; the maximum number of iteration steps is set to 16002, verification is performed every 100 steps, and the model is stored every 500 steps.

[0142] In another embodiment, this embodiment also provides a control method of a KVM switch based on video preview, please refer to Figure 3 The control method includes: the above-mentioned KVM switch based on video preview, using the above-mentioned KVM switch based on video preview to perform the following steps:

[0143] S100, receiving a first single picture of a video input for single-picture control, and controlling the first single picture by keyboard and mouse synchronous control;

[0144] S200, selecting one of the multiple video images displayed on the preview interface through keyboard and mouse synchronous control to set it as the second single image to be controlled;

[0145] S300: Control the second single screen by using keyboard and mouse synchronous control, and switch the first single screen to the multi-video screen in the preview interface.

[0146] The working principle and beneficial effects of the above technical solution are as follows: the solution adopted in this embodiment is a control method of a KVM switch based on video preview, including: using the KVM switch based on video preview to perform the following steps: receiving the first single screen of the video controlled by a single screen input, and controlling the first single screen by keyboard and mouse synchronization control; selecting one of the multiple video screens displayed on the preview interface by keyboard and mouse synchronization control, and setting it as the second single screen to be controlled; controlling the second single screen by keyboard and mouse synchronization control, and then switching the first single screen to the multiple video screens in the preview interface. The method of setting the preview interface in this scheme can display the video screens of all host computers on the preview interface through a signal access, forming a function of previewing multiple video screens, and can also realize the method of controlling the single screen by keyboard and mouse synchronization control on the control interface through another signal access. The problem that multiple screens cannot be previewed in the prior art is solved, and the video screens of the control interface and the preview interface can be freely switched in this scheme. If switching is required, the video screen of the preview interface can be switched to the control screen, and it can be controlled in the corresponding control interface. Correspondingly, the original controlled screen can automatically enter the numerous video screens in the preview interface.

[0147] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A KVM switch based on video preview, characterized in that: include: A multi-video screen preview module is used to display and preview the connected multi-video screens through the display screen; Single screen control module, used for keyboard and mouse synchronous control of the connected single screen; A single-screen switching module is used to switch a certain screen among multiple video screens to a control screen, and to perform keyboard and mouse synchronous control on the switched screen; It also includes: a multi-video screen switching module, which is used to switch the multi-video screens in the preview interface; The multi-video screen switching module includes: A preview interface screen quantity setting unit is used to set the number of preview interface video screens; The switching mode setting unit is used to set the video screen switching mode of the preview interface. The switching modes include: scrolling loop preview, timed batch switching preview, random loop preview and weight setting loop preview; A preview interface setting unit, used to set the size and display position of the preview interface; Also includes: A multi-video screen information acquisition module is used to acquire prompt information and image information on the multi-video screen; An information processing module, used to match the acquired prompt information to the corresponding event through a matching model; A solution configuration module is used to configure corresponding solutions according to the corresponding events matched; A prompt information solving module is used to solve the prompt information of the existing multi-video screen based on the corresponding solution; The multi-video picture information acquisition module includes: A determination unit, used to determine whether there is a prompt pop-up window for all the pictures in the multi-video pictures; An automatic capture unit, used to automatically capture the prompt information and the current screen, and obtain the screenshot information and the current image information; An image translation unit is used to translate the image information to obtain the image information; and extract the screenshot information to obtain the prompt information; A prompt information acquisition unit collects all prompt information of all pictures into a prompt information set, collects image information of all pictures into an image information set, and forms prompt information and image information of multiple video pictures based on the prompt information set and the image information set; The judging unit comprises: The frame extraction subunit is used to extract one frame of the video. For one frame, R-CNN uses a selective search method to generate a set number of candidate regions. The input subunit is used to transform each candidate region to the same size and serve as the input of the trained CNN network; The feature scoring subunit is used to score the extracted features for each category using the SVM classifier that has been trained for this category; The candidate region subunit is used to eliminate several candidate regions with relatively high repetition rates by using non-maximum suppression to obtain several candidate regions with the highest scores in each column; The polling subunit is used to find the candidate area with the highest score from the remaining candidate areas after a round of elimination, and determine whether the IOU with the highest score exceeds the threshold. If it exceeds the threshold, continue to eliminate it until there are no candidate areas left; The subunit for obtaining the selected candidate regions is used to perform the above operation on each column, and finally obtain a number of selected candidate regions for each column; The bounding box obtaining subunit is used to train a bounding box regression model to correct the exact position of the pop-up box and obtain the corrected bounding box for each category; A judgment condition subunit is used to judge whether a prompt pop-up window exists according to whether a bounding box exists; The image translation unit includes: a screenshot information text recognition subunit, which is used to recognize the text in the screenshot information; The screenshot information text recognition subunit includes: The text segmentation subunit is used to perform a horizontal projection operation on the screen pop-up picture, and use the horizontal projection method to find the upper and lower boundaries of each line of text; a vertical projection operation is performed on each segmented line of text, and the left and right boundaries of each character are found after vertical projection, and the screen pop-up picture is segmented into individual characters; The text positioning subunit is used to record the positions of the horizontal projection and the vertical projection. According to the horizontal projection map, the starting point and the ending point of each raised small peak are used as the starting point and the ending point of the text line to determine the position of each line. Some constraints are made on these raised peaks to obtain the position information of each text line. Then, each text line is cut off using the obtained position information for the next segmentation of each character. The image translation unit further includes: a convolutional neural network character recognition subunit, which is used to recognize characters based on a convolutional neural network; The convolutional neural network character recognition subunit includes: The model building subunit is used to set the neural network model with the optimizer being Adam and the learning rate being 0.1; A model training subunit, used to train the model based on the constructed neural network model to obtain a convolutional neural network model; A recognition subunit, used to recognize text based on the convolutional neural network model to obtain prompt information; The model building subunit includes: A convolutional neural network parameter setting subunit, used to set the convolutional neural network parameters; A convolutional neural network feature map parameter setting subunit is used to set the feature map parameters of the convolutional layer in the convolutional neural network; The parameter optimization subunit is used to optimize all parameters of the convolutional neural network; A convolutional neural network model building subunit, used to build a convolutional neural network model based on the optimized parameters; The model training subunit comprises: Create a subunit to create a data flow graph. The data flow graph consists of multiple pipeline processes, and the processes are connected by queues. A first process subunit, used for the first process to generate a file name, read the file name and place the file name into a file name queue; The second process subunit is used for the second process to read data from the file, generate samples, and store the samples in a sample queue; The enqueue and dequeue loop subunit is used to perform queuing operations after the second process, enqueue into the queue, and dequeue in the next stage; during the training process, the training loop makes the samples in the sample queue continuously dequeue; The training setting subunit is used to train the network and read data asynchronously. The main thread is training the network, and a thread is reading data from the hard disk into the memory. The maximum number of iterations is set to 16002, verification is performed every 100 steps, and the model is stored every 500 steps.

2. A control method for a KVM switch based on video preview, characterized in that: include: The video preview-based KVM switch of claim 1, wherein the video preview-based KVM switch is used to perform the following steps: Receiving a first single screen of a video input by a single screen control, and controlling the first single screen by using a keyboard and mouse synchronous control method; For the multiple video images displayed on the preview interface, select one of the images through keyboard and mouse synchronous control and set it as the second single image to be controlled; The second single screen is controlled by keyboard and mouse synchronous control, and the first single screen is switched to the multi-video screen of the preview interface.