Physical isolation internal and external network data automatic transmission system
1. The internal and external network data automatic transmission system of physical isolation, characterized by that, include: the system comprises a client (101), a transmission terminal (1), an infrared remote controller (4) and a relay subsystem, wherein the client is arranged on an internal network side and an external network side;
a transmission subsystem is arranged on the transmission terminal (1) and is connected with the client (101);
the relay subsystem comprises a photographic black box (3), a control terminal (2), two infrared receivers (5) and a gating connector (6), wherein the two infrared receivers (5) are electrically connected with the control terminal (2), a plurality of displays (8) are arranged in the photographic black box (3) in a surrounding mode around the center of an inner cavity of the photographic black box, and cameras (7) which are the same in number as the displays (8) and are opposite to each other one by one are arranged in the center of the photographic black box (3);
the infrared receiver (5) is respectively matched with the infrared remote controllers (4) on the inner network side and the outer network side; the gating connector (6) is used for controlling the starting and stopping of each camera (7) and each display (8) and the on-off connection with the transmission terminal (1), and each group of the opposite cameras (7) and the displays (8) are respectively connected with the transmission terminals (1) at different sides;
the transmission subsystem is used for decomposing and converting the transmission file into the two-dimension code and the picture and controlling the relay subsystem to transmit the file between the internal network and the external network in a picture shooting and two-dimension code identification mode.
2. The physically isolated intra-extranet data transfer system according to claim 1, wherein:
the transmission subsystem comprises a coordination control module (102), a storage module (103), a retrieval and comparison module (104), a segmentation and conversion module (105), a splicing and sorting module (106) and an image identification module (107) which are connected with each other;
the coordination control module (102) is used for coordinating and controlling the relay subsystem to adjust the connection quantity and connection on-off of the cameras (7), the display (8) and the transmission terminals (1) on the two sides;
the storage module (103) is used for establishing and updating a synchronous file library and a template library, the synchronous file library comprises the transmission file information of the current side and the received transmission file information of the opposite side, and the template library is used for storing template files;
the retrieval comparison module (104) is used for retrieving and comparing the transmission files according to the synchronous file library and the template library;
the segmentation conversion module (105) is used for carrying out duplication removal and segmentation processing on the transmission file according to the retrieval result of the retrieval comparison module (104), extracting the picture and generating the two-dimensional code, and respectively adding the picture set and the two-dimensional code set;
the splicing and sorting module (106) is used for arranging and displaying elements in the picture set and the two-dimensional code set on the display (8) according to a preset matrix rule;
the image recognition module (107) is used for carrying out image segmentation on a screenshot of the display (8) acquired by the camera (7) according to the preset matrix rule so as to acquire the two-dimensional code and the image, and respectively carrying out analysis processing on the two-dimensional code and the image so as to generate a transmission file.
3. The physically isolated intra-inter-extranet data transfer system according to claim 1, wherein:
the display (8) is a spliced screen and comprises a liquid crystal screen (81) and an electronic ink screen (82) which are arranged transversely or vertically at intervals.
4. The physically isolated intra-extranet data transfer system according to claim 1, wherein:
gating connector (6) include a plurality of telescopic machanisms of group (61), plug (62), socket (63), plug (62) with the pars contractilis of telescopic machanism (61) is connected, socket (63) fixed set up in on control terminal (2), plug (62) with camera (7) and display (8) are connected, socket (63) are connected with transmission terminal (1) and the power of intranet and extranet both sides respectively, plug (62) and socket (63) looks adaptation.
5. The physically isolated intra-inter-extranet data automatic transmission system according to any one of claims 1 or 4, characterized in that:
each group of cameras (7) and each group of displays (8) are integrally provided with a correlation type photoelectric sensor (9), an emitting part of each correlation type photoelectric sensor (9) is arranged on each camera (7), a receiving part of each correlation type photoelectric sensor is arranged on each display (8), and the gating connector (6) controls the correlation type photoelectric sensors (9) to be connected with the transmission terminal (1) in a switching mode;
the client (101) comprises a web client (101) and a mobile APP.
6. The method for automatically transmitting data between the physically isolated internal network and external network is characterized by comprising the following steps:
s1: the client (101) uploads the transmission file to the transmission subsystem;
s2: the retrieval comparison module (104) performs retrieval comparison on the transmission file according to the synchronous file library and the template library, judges whether the transmission file is a repeated file, and if so, sends repeated reminding information to the client (101) and ends the transmission process; if not, storing the transmission file into a synchronous file library and generating corresponding template association information;
s3: the segmentation conversion module (105) is used for converting the transmission file into a picture and a two-dimensional code according to the template correlation information and adding the picture set and the two-dimensional code set;
s4: the coordination control module (102) coordinates the connection between the display (8) in the relay subsystem and the transmission terminal (1) at the side in real time and the connection between the corresponding camera (7) and the transmission terminal (1) at the opposite side according to the number of elements in the picture set and the two-dimensional code set;
s5: the splicing and sorting module (106) displays the pictures and the two-dimensional codes on a display (8) connected with the transmission terminal (1) at the side according to a preset matrix rule until the elements in the picture set and the two-dimensional code set are cleared and the coordination control module (102) is notified; the side image recognition module (107) controls a corresponding camera (7) to shoot a screenshot of the display (8), the screenshot is decomposed into two-dimensional codes and pictures, the two-dimensional codes are recognized and combined with the pictures to generate a transmission file, and the transmission file is stored in a synchronous file set;
s6: and the coordination control module (102) coordinates the relay subsystem to close the display (8) and the corresponding camera (7) and sends completion information to the client (101).
7. The method for automatically transmitting data between physically separated internal and external networks according to claim 6, wherein:
the template correlation information comprises template identification information and file combination information;
the element attributes in the synchronous file library comprise transmission files, transmission time, file names and file acquisition information;
the repeated reminding information and the completion information comprise transmission time, file names and file acquisition information corresponding to the transmission files.
8. The physically isolated intra-inter-extranet data transfer method of claim 7, wherein:
in step S3, the specific method for converting the transmission file into the picture and the two-dimensional code by the segmentation conversion module (105) is as follows:
s301: removing duplicate of the transmission file according to the template associated information, and extracting non-duplicate file data;
s302: extracting pictures in non-repetitive file data, adding the pictures into a picture set, extracting attribute information of each picture to generate a picture identification two-dimensional code, extracting text data in the non-repetitive file data to generate a content two-dimensional code, converting template association information into a file combination two-dimensional code, converting preset file acquisition information into a parameter two-dimensional code, and adding the picture identification two-dimensional code, the content two-dimensional code, the file combination two-dimensional code and the parameter two-dimensional code into the two-dimensional code set;
in the step S5, the specific method for displaying the picture and the two-dimensional code on the display (8) connected to the local transmission terminal (1) by the splicing sorting module (106) according to the preset matrix rule is as follows:
s501: adjusting the width and height of elements in the picture set and the two-dimensional code set to be consistent according to preset parameters, and extracting the elements in the picture set and the corresponding picture identification two-dimensional codes to be arranged at intervals;
s502: arranging other elements in the two-dimensional code set in a matrix form;
the method for combining and transmitting the file by the contralateral image recognition module (107) according to the screenshot of the display (8) comprises the following specific steps:
s511: the method comprises the steps of carrying out image segmentation on a screenshot of a display (8), obtaining a picture and a two-dimensional code, marking the picture and the two-dimensional code which is arranged at intervals with the picture as a picture identification two-dimensional code, identifying the picture identification two-dimensional code to obtain attribute information of the picture, and reducing the original size of the picture according to the picture attribute information;
s512: scanning other elements in the two-dimensional code set to acquire text data, template associated information and file acquisition information;
s513: and calling the template file in the storage module (103) through the template identification information in the template associated information, combining the picture, the text data and the template file according to the file combination information in the template associated information, generating a transmission file, and storing the transmission file and the file acquisition information into a synchronous file set.
9. The method for automatically transmitting data between physically separated internal and external networks according to claim 8, wherein:
in the step S501, the pictures and the corresponding picture identification two-dimensional codes are respectively arranged on the liquid crystal screen (81) and the electronic ink screen (82) which are spaced apart from each other and are in one-to-one correspondence;
in the step S502, the electronic ink screen (82) is preferably selected to display the two-dimensional code;
in the step S5, when the opposite-side image recognition module (107) controls the corresponding camera (7) to shoot the screen shot of the display (8), the shooting of the camera (7) and the picture switching of the display (8) are synchronized through the correlation type photoelectric sensor (9).
10. The method for automatically transmitting data between physically separated internal and external networks according to claim 6, wherein:
in step S4, when the coordination control module (102) monitors that a new element is added to the picture set or the two-dimensional code set, or the number of cameras (7) connected to the current side is reduced, the coordination control module (102) coordinates the relay subsystem, and the specific steps are as follows:
s401: calculating the total number N of elements in the picture set and the two-dimensional code set, if the N is less than or equal to a preset value T, the required number F0 of the displays (8) is 1, and if the N is greater than the preset value T, and each time the N is increased by a multiple of T, adding 1 to F0 until F0 reaches a maximum value M;
s402: searching the number F1 of displays (8) and the number F2 of cameras (7) which are connected with the transmission terminal (1) at the side, if F1 is larger than or equal to F0, finishing the coordination process, if F1 is smaller than F0, judging whether the value of M- (F1+ F2) is equal to 0, if yes, finishing the coordination process, if not, adding the number F of the added displays (8) to be MIN [ (F0-F1), (M-F1-F2) ], and taking MIN as the minimum value;
s403: and sending a grading signal to an infrared receiver (5) through the infrared remote controller (4) according to the F, receiving the grading signal by the infrared receiver (5) and transmitting the grading signal to the control terminal (2), and controlling the F idle displays (8) to be connected with the transmission terminal (1) at the side and powered on by the control terminal (2) through the gating connector (6).
Background
The internet use regulations of the national confidential department are as follows according to the 'computer information system internet security management regulations' issued and implemented by the national security bureau: "computer information systems that involve national secrets must not be directly or indirectly connected to the internet or other public information networks and must be physically isolated. By "physically isolated" is meant that if there is no direct physical connection to the internet at any time within the intranet, the network security of the enterprise is truly protected. As a key enterprise for the national civilization, the national grid company is more important to physically isolate the internal and external networks. After the intranet and the internet are strictly physically isolated, data exchange between the intranet and the internet is the most outstanding problem, effective deployment of an application system is affected, but along with rapid development of informatization, a large amount of information exchange needs to be carried out between the intranet and the internet by each mechanism, and therefore efficiency is improved. The existing internal and external network data exchange means mostly transfer data through a mobile storage medium, in order to ensure the safety, complex antivirus, encryption and safety processing are required, and the data transfer effect is not in direct proportion to the complexity of operation.
Two-dimensional code technology is applied to various aspects of life as a brand-new automatic identification technology. The two-dimensional code technology is widely applied to the aspects of forms, business cards, information inquiry, tracking, stock inventory and the like, but the two-dimensional code technology is rarely applied to the field of data exchange of internal and external networks of a power grid, and the exchange efficiency is greatly influenced under the conditions of large data volume to be exchanged and high real-time requirement due to the limited storage capacity of the two-dimensional code technology. Aiming at the characteristics that data to be exchanged contains a large number of rich text files and the same-template file data generated by various intelligent operation and maintenance protection devices in a power grid company, transmission files are optimized, the total amount of transmission data is reduced, effective data is extracted, and the method is the key point of applying a two-dimensional code technology to data transmission of an internal network and an external network of a power grid.
Disclosure of Invention
The technical problem to be solved by the invention is as follows: the invention overcomes the defects of the prior art, provides a physically-isolated internal and external network data automatic transmission system, optimizes the transmission process of the transmission files and improves the transmission efficiency of the two-dimensional code.
The technical scheme adopted by the invention for solving the problems in the prior art is as follows:
the invention provides a physically isolated internal and external network data automatic transmission system, comprising: the system comprises clients, a transmission terminal, an infrared remote controller and a relay subsystem, wherein the clients, the transmission terminal and the infrared remote controller are arranged on an internal network side and an external network side; the transmission terminal is provided with a transmission subsystem, and the transmission subsystem is connected with the client; the relay subsystem comprises a photographic black box, a control terminal, two infrared receivers and a gating connector, wherein the two infrared receivers and the gating connector are electrically connected with the control terminal; the infrared receiver is respectively matched with the infrared remote controllers at the inner network side and the outer network side; the gating connector is used for controlling the starting and stopping of each camera and each display and the on-off connection with the transmission terminal, and each group of opposite cameras and displays are respectively connected with the transmission terminals on different sides; the transmission subsystem is used for decomposing and converting the transmission file into the two-dimension code and the picture and controlling the relay subsystem to transmit the file between the internal network and the external network in a picture shooting and two-dimension code identification mode.
Preferably, the transmission subsystem comprises a coordination control module, a storage module, a retrieval comparison module, a segmentation conversion module, a splicing sorting module and an image identification module which are connected with each other;
the coordination control module is used for coordinating and controlling the relay subsystem to adjust the connection quantity and connection on-off of the cameras and the display and the transmission terminals on the two sides;
the storage module is used for establishing and updating a synchronous file library and a template library, the synchronous file library comprises local side transmission file information and received opposite side transmission file information, and the template library is used for storing template files;
the retrieval comparison module is used for retrieving and comparing the transmission files according to the synchronous file library and the template library;
the segmentation conversion module is used for carrying out duplication removal and segmentation processing on the transmission file according to the retrieval result of the retrieval comparison module, extracting the picture, generating the two-dimensional code and respectively adding the picture set and the two-dimensional code set;
the splicing and sorting module is used for arranging and displaying elements in the picture set and the two-dimensional code set on a display according to a preset matrix rule;
the image identification module is used for carrying out image segmentation on the display screenshot acquired by the camera according to the preset matrix rule so as to acquire the two-dimensional code and the image, and respectively carrying out analysis processing on the two-dimensional code and the image so as to generate a transmission file.
Preferably, the display is a spliced screen and comprises a liquid crystal screen and an electronic ink screen which are arranged at intervals in the horizontal or vertical direction.
Preferably, the gating connector comprises a plurality of groups of telescopic mechanisms, a plug and a socket, the plug is connected with the telescopic parts of the telescopic mechanisms, the socket is fixedly arranged on the control terminal, the plug is connected with the camera and the display, the socket is respectively connected with the transmission terminals and the power supply on the two sides of the internal and external networks, and the plug is matched with the socket.
Preferably, each group of cameras and the display are integrally provided with a correlation type photoelectric sensor, an emitting part of the correlation type photoelectric sensor is arranged on the camera, a receiving part of the correlation type photoelectric sensor is arranged on the display, and the gating connector controls the correlation type photoelectric sensor to be connected with the transmission terminal in a switching mode;
the client comprises a webpage client and a mobile APP.
The invention also provides a physically isolated internal and external network data automatic transmission method, which comprises the following steps:
s1: the client uploads the transmission file to the transmission subsystem;
s2: the retrieval comparison module carries out retrieval comparison on the transmission file according to the synchronous file library and the template library, judges whether the transmission file is a repeated file or not, and if so, sends repeated reminding information to the client and ends the transmission process; if not, storing the transmission file into a synchronous file library and generating corresponding template association information;
s3: the segmentation conversion module is used for converting the transmission file into a picture and a two-dimensional code according to the template correlation information and adding the picture set and the two-dimensional code set;
s4: the coordination control module coordinates the connection between a display in the relay subsystem and the transmission terminal at the side and the connection between the corresponding camera and the transmission terminal at the opposite side in real time according to the number of elements in the picture set and the two-dimensional code set;
s5: the splicing and sorting module displays the pictures and the two-dimensional codes on a display connected with the transmission terminal at the side according to a preset matrix rule until the elements in the picture set and the two-dimensional codes are reset to inform the coordination control module; controlling a corresponding camera to shoot a screenshot of the display by the side image identification module, decomposing the screenshot into a two-dimensional code and a picture, identifying the two-dimensional code data, combining the two-dimensional code data with the picture to generate a transmission file, and storing the transmission file in a synchronous file set;
s6: and the coordination control module coordinates the relay subsystem to close the display and the corresponding camera and sends completion information to the client.
Preferably, in the step S2, the template association information includes template identification information and file combination information;
the element attributes in the synchronous file library comprise transmission files, transmission time, file names and file acquisition information;
the repeated reminding information and the completion information comprise transmission time, file names and file acquisition information corresponding to the transmission files.
Preferably, in step S3, the specific method for converting the transmission file into the picture and the two-dimensional code by the segmentation conversion module is as follows:
s301: removing duplicate of the transmission file according to the template associated information, and extracting non-duplicate file data;
s302: extracting pictures in non-repetitive file data, adding the pictures into a picture set, extracting attribute information of each picture to generate a picture identification two-dimensional code, extracting text data in the non-repetitive file data to generate a content two-dimensional code, converting template association information into a file combination two-dimensional code, converting preset file acquisition information into a parameter two-dimensional code, and adding the picture identification two-dimensional code, the content two-dimensional code and the file combination two-dimensional code into the two-dimensional code set;
in step S5, the specific method for displaying the picture and the two-dimensional code on the display connected to the local transmission terminal by the stitching and sorting module according to the preset matrix rule is as follows:
s501: adjusting the width and height of elements in the picture set and the two-dimensional code set to be consistent according to preset parameters, and extracting the elements in the picture set and the corresponding picture identification two-dimensional codes to be arranged at intervals;
s502: arranging other elements in the two-dimensional code set in a matrix form;
the method for transmitting the file by combining the opposite image recognition module according to the screenshot of the display comprises the following specific steps:
s511: the method comprises the steps of carrying out image segmentation on a screenshot of a display, obtaining a picture and a two-dimensional code, marking the picture and the two-dimensional code which is arranged at intervals with the picture as a picture identification two-dimensional code, identifying the picture identification two-dimensional code to obtain attribute information of the picture, and reducing the original size of the picture according to the picture attribute information;
s512: scanning other elements in the two-dimensional code set to acquire text data, template associated information and file acquisition information;
s513: and calling the template file in the storage module through the template identification information in the template associated information, combining the picture, the text data and the template file according to the file combination information in the template associated information, generating a transmission file, and storing the transmission file and the file acquisition information in a synchronous file set.
Preferably, in step S501, the pictures and the corresponding picture identification two-dimensional codes are respectively arranged on the liquid crystal screen and the electronic ink screen which are separated from each other and are in one-to-one correspondence;
in the step S502, the electronic ink screen is preferably selected to display the two-dimensional code;
in step S5, when the opposite-side image recognition module controls the corresponding camera to capture a screenshot of the display, the camera is synchronized to capture the screenshot and the display is switched by the opposite-type photoelectric sensor.
Preferably, in step S4, when the coordination control module monitors that a new element is added to the picture set or the two-dimensional code set, or the number of cameras connected to the current side is reduced, the coordination control module coordinates the relay subsystem, and the specific steps are as follows:
s401: calculating the total number N of elements in the picture set and the two-dimensional code set, if the N is less than or equal to a preset value T, the required number F0 of the displays is 1, and if the N is greater than the preset value T, and each time the N is increased by a multiple of T, adding 1 to F0 until F0 reaches a maximum value M;
s402: searching the number F1 of displays and the number F2 of cameras which are connected with the transmission terminal at the side, if F1 is larger than or equal to F0, ending the coordination process, if F1 is smaller than F0, judging whether the value of M-F1+ F2 is equal to 0, if yes, ending the coordination process, if no, adding the number F of the added displays as MIN [ F0-F1, M-F1-F2], and taking MIN as minimum value;
s403: and sending a grading signal to an infrared receiver through the infrared remote controller according to the F, receiving the grading signal by the infrared receiver and transmitting the grading signal to a control terminal, and controlling the F idle displays to be connected with the corresponding transmission terminals and powered on by the control terminal through the gating connector.
Compared with the prior art, the invention has the following beneficial effects:
the method reduces or avoids the transmission of invalid repeated data by comparing the input weight of the transmission file with the template, and optimizes and improves the transmission efficiency of the two-dimensional code; meanwhile, the picture and the text are separated, the picture is copied to be transmitted between an internal network and an external network, the text is converted into the two-dimensional code to be transmitted, the quality change when the picture is converted into the two-dimensional code is avoided, and the low efficiency that a large picture is converted into a plurality of two-dimensional codes and then converted into the picture is also avoided.
2 the invention flexibly configures the connection quantity and connection on-off of the internal and external network side transmission terminals, the cameras and the display through the relay subsystem, thereby improving the speed and flexibility of two-dimensional code and picture transfer and improving the safety of the transmission process.
3 the invention avoids the repetition or omission of screen capture of the display and improves the accuracy of the transmission process by the shooting of the correlation type photoelectric sensor synchronous camera and the switching of the display picture.
According to the invention, the two-dimensional code is preferentially displayed through the electronic ink screen by splicing the display with the liquid crystal screen, so that the contrast of the two-dimensional code image is improved, and the running power consumption of the display is reduced.
Drawings
The invention is further illustrated with reference to the following figures and examples.
FIG. 1 is a schematic system configuration according to an embodiment of the present invention,
FIG. 2 is a schematic structural diagram of an apparatus according to an embodiment of the present invention,
figure 3 is a schematic cut-away view of an apparatus according to an embodiment of the invention,
figure 4 is an enlarged partial schematic view of one embodiment of the present invention,
FIG. 5 is a schematic view of a display arrangement according to an embodiment of the present invention,
figure 6 is a schematic view of a display arrangement according to another embodiment of the invention,
FIG. 7 is a flowchart illustrating a method according to an embodiment of the present invention.
In the figure:
1. the system comprises a transmission terminal, 2, a control terminal, 3, a shooting black box, 4, an infrared remote controller, 5, an infrared receiver, 6, a gating connector, 7, a camera, 8, a display, 9, a correlation type photoelectric sensor, 10, an adjusting lamp, 101, a client, 61, a telescopic mechanism, 62, a plug, 63, a socket, 81, a liquid crystal screen, 82, an electronic ink screen, 102, a coordination control module, 103, a storage module, 104, a retrieval comparison module, 105, a segmentation conversion module, 106, a splicing sorting module, 107 and an image recognition module.
Detailed Description
In order to make the technical solution and the advantages of the present invention clearer, the following explains embodiments of the present invention in further detail.
As shown in fig. 1 to 4, the present invention provides a physically isolated internal and external network data automatic transmission system, which includes: client 101, transmission terminal 1, infrared remote controller 4 and relay subsystem between internal and external networks.
The transmission terminal 1 is provided with a transmission subsystem, the transmission subsystem is connected with the client 101, and the client 101 comprises a webpage client and a mobile APP.
The relay subsystem comprises a photographic black box 3, a control terminal 2, two infrared receivers 5 and a gating connector 6, wherein the two infrared receivers 5 and the gating connector 6 are electrically connected with the control terminal 2, a plurality of displays 8 are arranged in the photographic black box 3 in a surrounding mode around the center of an inner cavity of the photographic black box, and cameras 7 which are the same in number and are opposite to the displays 8 are arranged in the center of the photographic black box 3.
The infrared receiver 5 is respectively matched with the infrared remote controllers 4 on the inner network side and the outer network side; the gating connector 6 is used for controlling the start and stop of each camera 7 and each display 8 and the on-off connection with the transmission terminal 1, and each group of the opposite cameras 7 and the displays 8 are respectively connected with the transmission terminals 1 on different sides.
The transmission terminal 1 is a computer device, and the control terminal 2 is a single chip microcomputer or a PLC control device.
A user uploads a transmission file through a client 101, the transmission subsystem is used for decomposing and converting the transmission file into a two-dimensional code and a picture, if the transmission file does not contain the picture, only the two-dimensional code is generated, if the transmission file only contains the picture and does not contain a text, only the picture is generated, the coordination control relay subsystem connects a proper number of cameras 7 and displays 8 with the transmission terminals 1 on two sides, and displays the two-dimensional code and the picture on the display 8 connected with the transmission terminal 1 on the side according to a preset matrix rule so as to be acquired by the camera 7 on the opposite side; meanwhile, the camera 7 connected with the transmission terminal 1 at the side acquires the picture and the two-dimensional code on the display 8 at the opposite side, analyzes the two-dimensional code and combines the two-dimensional code with the picture to generate a transmission file, and the transmission of the transmission file between the two sides is completed.
The display 8 and the camera 7 are installed through the photographic black box 3, so that the illumination intensity in the box can be conveniently adjusted, and the influence of external light on the collection of pictures and two-dimensional codes is avoided; meanwhile, the display 8 and the camera 7 positioned in the center are arranged in a surrounding mode, so that the space utilization of the camera 7 and the display 8 is increased, and the situation that the size of the display 8 is increased for improving the transmission speed is avoided. Preferably, the photoblack box 3 is provided with an adjusting lamp 10 for adjusting the brightness of the photoblack box 3, and the adjusting lamp 10 is electrically connected with the control terminal 2.
The transmission subsystem comprises a coordination control module 102, a storage module 103, a retrieval and comparison module 104, a segmentation conversion module 105, a splicing and sorting module 106 and an image identification module 107 which are connected with each other.
The coordination control module 102 is used for coordinating the relay subsystem to control the connection and disconnection between the transmission terminals 1 on the two sides and the camera 7 and the display 8, and is also used for coordinating the operation and communication of other modules in the transmission subsystem.
The storage module 103 is configured to establish and update a synchronization file library and a template library, where the synchronization file library includes local side transmission file information and received opposite side transmission file information, and the template library is used to store template files; the file transmission information of the side and the opposite side comprises transmission files, transmission time, file names and file acquisition information, wherein the file acquisition information at least comprises storage addresses of the files on the two sides.
The retrieval comparison module 104 is configured to perform retrieval comparison on the transmission file according to the synchronous file library and the template library, send repeated reminding information to the client 101 for the repeated file, store the non-repeated file in the synchronous file library, and generate corresponding template association information; the repeated reminding information comprises transmission time, file name and file acquisition information of the corresponding transmitted file. The template associated information comprises template identification information and file combination information, and the file combination information is modification information of the transmission file on the basis of the template file.
The segmentation conversion module 105 is configured to perform deduplication and segmentation processing on the transmission file according to the template associated information, and generate a picture and a two-dimensional code which are respectively added to the picture set and the two-dimensional code set.
The splicing and sorting module 106 is configured to arrange and display elements in the picture set and the two-dimensional code set on the display 8 according to a preset matrix rule.
The image recognition module 107 is configured to perform image segmentation on the screenshot of the display 8 acquired by the camera 7 according to the preset matrix rule to acquire a two-dimensional code and an image, and perform analysis processing on the two-dimensional code and the image respectively to generate a transmission file.
The display 8 is a spliced screen, and comprises a liquid crystal screen 81 and an electronic ink screen 82 which are arranged horizontally or vertically at intervals.
The electronic ink screen is a screen using electronic ink. Electronic ink screens are also known as electronic paper display technology. Electronic ink is a new method and technology for revolutionizing the display of information. Like most conventional inks, electronic ink and the lines that change its color are printable on many surfaces, from curved plastic, polyester film, paper, to cloth. The difference with conventional paper is that electronic ink changes color when energized and can display changing images, such as a calculator or cell phone display. A plurality of microcapsules with small volume are attached to the surface of the electronic ink screen, black particles with negative electricity and white particles with positive electricity are encapsulated, and the particles with different colors are orderly arranged by changing the charges, so that a clearly black-white visual effect is presented. The electronic ink screen has the advantages that: the power consumption is low, the power is consumed only when the operation such as page turning is carried out, and if the display content is not refreshed, the picture on the display screen can still be kept even if the power supply is turned off; the electronic ink screen is visible under strong light, and the black-white contrast ratio of the electronic ink screen is very high, so that the electronic ink screen is still clearly visible under the strong light, looks like real paper, does not reflect light like a liquid crystal screen, and is more clearly seen in a place with strong light; no flicker, no radiation and large visual angle. The two-dimensional code is displayed through the electronic ink screen, the definition and the contrast of the two-dimensional code image are improved, the two-dimensional code is convenient to recognize, and meanwhile, the energy consumption of the display is greatly reduced, and the energy is saved. However, the color display of the electronic ink screen is immature at the present stage, and the display effect of the electronic ink screen on color pictures cannot be compared with that of a liquid crystal screen. Therefore, the liquid crystal screen 81 and the electronic ink screen 82 which are arranged transversely or vertically at intervals are combined into a display, pictures are displayed through the liquid crystal screen, the electronic ink screen is preferentially used for displaying the two-dimensional code, and the energy consumption is reduced on the premise of meeting the practicability of the invention.
Gating connector 6 includes a plurality of telescopic machanisms 61, plug 62, socket 63 of group, plug 62 with telescopic machanism 61's pars contractilis is are connected, socket 63 fixed set up in on control terminal 2, plug 62 with camera 7 and display 8 are connected, socket 63 is connected with transmission terminal 1 and the power of intranet and extranet both sides respectively, plug 62 and socket 63 looks adaptation. Every group camera 7 and display 8 correspond two sets of telescopic machanism 61 respectively, plug 62, socket 63, the stitch in two sets of plugs 62 is the same, socket 63 is opposite for the stitch of both sides transmission terminal, for example, wherein a set of stitch control corresponds camera 7 and connects intranet side transmission terminal 1, corresponds display 8 and connects intranet side transmission terminal 1, and that another set of stitch then control corresponds camera 7 and connects intranet side transmission terminal 1, corresponds display 8 and connects outer inboard transmission terminal 1. The telescopic part of the telescopic mechanism 61 is telescopic to drive the plug 62 to move, so that the plug 62 and the socket 63 are connected and disconnected. The control terminal 2 receives a control signal of the infrared remote controller 4 through the infrared receiver 5, controls the corresponding telescopic mechanism 61 of the gating connector 6 to act, and the control terminal 2 controls two groups of plugs 62 connected with the same group of cameras 7 and displays 8 to be connected with the corresponding sockets 63 at the same time. The telescopic mechanism 61 is an electric telescopic device.
Each group of cameras 7 and the display 8 are integrally provided with a correlation type photoelectric sensor 9, the transmitting part of the correlation type photoelectric sensor 9 is arranged on the camera 7, the receiving part of the correlation type photoelectric sensor 9 is arranged on the display 8, and the gate connector 6 controls the correlation type photoelectric sensor 9 to be connected with the transmission terminal 1 in a switching mode. The connecting line of the transmitting part and the receiving part of the correlation type photoelectric sensor 9 is connected with the plug 62, and is respectively connected with the transmission terminals 1 at two sides under the control of the gating connector 6, the receiving part and the display 8 are connected with the transmission terminal 1 at the same side, and the transmitting part and the camera 7 are connected with the transmission terminal 1 at the same side; after the camera 7 finishes one-time display picture shooting, the coordination control module 102 controls the transmitting part to transmit a switching signal, the corresponding receiving part receives the switching signal and feeds the switching signal back to the opposite side coordination control module 102, and the opposite side coordination control module 102 notifies the opposite side splicing and sorting module 106 to switch the display picture. Through the shooting of the synchronous camera 7 of correlation formula photoelectric sensor 9 and the switching of display 8 picture, avoided the repetition of display screenshot or omit, improved the accuracy of transmission process.
As shown in fig. 7, the present invention further provides a physically isolated method for automatically transmitting data between an internal network and an external network, which comprises the following steps:
s1: the client 101 uploads the transmission file to the transmission subsystem;
s2: the retrieval comparison module 104 performs retrieval comparison on the transmission file according to the synchronous file library and the template library, judges whether the transmission file is a duplicate file, and if so, sends duplicate reminding information to the client 101 and ends the transmission process; if not, storing the transmission file into a synchronous file library and generating corresponding template association information;
s3: the segmentation conversion module 105 is configured to convert the transmission file into a picture and a two-dimensional code according to the template association information, and add the picture set and the two-dimensional code set;
s4: the coordination control module 102 coordinates the connection between the display 8 and the transmission terminal 1 at the local side and the connection between the corresponding camera 7 and the transmission terminal 1 at the opposite side in real time according to the number of elements in the picture set and the two-dimensional code set;
s5: the splicing sorting module 106 displays the pictures and the two-dimensional codes on the display 8 connected with the transmission terminal 1 at the side according to a preset matrix rule until the elements in the picture set and the two-dimensional codes are cleared and the coordination control module 102 is notified; the side image identification module 107 controls the corresponding camera 7 to shoot the screenshot of the display 8, the screenshot is decomposed into two-dimensional codes and pictures, the two-dimensional code data is identified and combined with the pictures to generate a transmission file, and the transmission file is stored in a synchronous file set;
s6: the coordination control module 102 coordinates the relay subsystem to turn off the display 8 and the corresponding camera 7, and sends a completion message to the client 101.
The completion information includes transmission time of the transmission file, a file name, and file acquisition information.
In step S3, the specific method for converting the transmission file into the picture and the two-dimensional code by the segmentation conversion module 105 is as follows:
s301: removing duplicate of the transmission file according to the template associated information, and extracting non-duplicate file data;
s302: extracting pictures in non-repetitive file data, adding the pictures into a picture set, extracting attribute information of each picture to generate a picture identification two-dimensional code, extracting text data in the non-repetitive file data to generate a content two-dimensional code, converting template association information into a file combination two-dimensional code, converting preset file acquisition information into a parameter two-dimensional code, and adding the picture identification two-dimensional code, the content two-dimensional code and the file combination two-dimensional code into the two-dimensional code set.
The attribute information of the picture comprises an identification ID, a resolution, a width and a height of the picture, wherein the identification ID is used for being associated with a corresponding transmission file, and the resolution, the width and the height are used for restoring the size of the picture.
In step S5, the specific method for the splicing sorting module 106 to display the pictures and the two-dimensional codes on the display 8 connected to the local transmission terminal 1 according to the preset matrix rule is as follows:
s501: adjusting the width and height of elements in the picture set and the two-dimensional code set to be consistent according to preset parameters, and extracting the elements in the picture set and the corresponding picture identification two-dimensional codes to be arranged at intervals;
s502: arranging other elements in the two-dimensional code set in a matrix form;
the specific steps of the contralateral image recognition module 107 according to the screenshot of the display 8 for combining and transmitting the file are as follows:
s511: dividing an image of a screenshot of a display 8, obtaining a picture and a two-dimensional code, marking the picture and the two-dimensional code which is arranged at intervals with the picture as a picture identification two-dimensional code, identifying the picture identification two-dimensional code to obtain attribute information of the picture, and restoring the original size of the picture according to the picture attribute information;
s512: scanning other elements in the two-dimensional code set to acquire text data, template associated information and file acquisition information;
s513: the template file in the storage module 103 is called through the template identification information in the template associated information, the picture, the text data and the template file are combined according to the file combination information in the template associated information, a transmission file is generated, and the transmission file is combined with the file acquisition information and stored in the synchronous file set.
The width and height of the elements in the picture set and the two-dimensional code set are consistent, namely the sizes of the areas occupied by each picture element or two-dimensional code element on the screen are consistent, and other elements refer to non-picture identification two-dimensional codes in the two-dimensional code set.
In the step S501, the pictures and the corresponding picture identification two-dimensional codes are respectively arranged on the liquid crystal screen 81 and the electronic ink screen 82 which are spaced apart from each other and correspond to each other one by one.
As shown in fig. 5 and fig. 6, the display 8 is composed of a liquid crystal screen 81 and an electronic ink screen 82 which are vertically arranged at intervals, the 1 st and 3 rd screens from left to right are the electronic ink screen 82, the 2 nd and 4 th screens are the liquid crystal screen 81, and the widths of the electronic ink screen 82 and the liquid crystal screen 81 are consistent with the widths of the preset pictures and the two-dimensional codes. Assuming that a preset picture identification two-dimensional code is arranged on the left side of a corresponding picture, arranging a display screenshot shown in fig. 5 according to step S501 and step S502, wherein the 1 st, 3 rd and 4 th columns are two-dimensional codes, the 2 nd column is a picture, the 1 st column is an image identification two-dimensional code, the 1 st and 2 nd columns of image identification two-dimensional codes correspond to the picture one by one, and other two-dimensional codes except the image identification two-dimensional code are arranged in a matrix form such as the 3 rd and 4 th columns; in step S511, the display screenshot may be conveniently image-cut and the image recognition two-dimensional code may be distinguished according to the above rules. Assuming that the number of the non-displayed elements in the two-dimensional code set is less than the preset value, as shown in fig. 6, the electronic ink screen 82 is preferably used to display the two-dimensional code.
In step S5, when the opposite-side image recognition module 107 controls the corresponding camera 7 to capture a screenshot of the display 8, the camera 7 is synchronized to capture the screenshot and the display 8 is synchronized to switch the screenshot by the opposite-type photosensor 9.
In step S4, when the coordination control module 102 monitors that a new element is added to the picture set or the two-dimensional code set, or the number of cameras 7 connected to the current side is reduced, the coordination control module 102 coordinates the relay subsystem, and the specific steps are as follows:
s401: calculating the total number N of elements in the picture set and the two-dimensional code set, if the N is less than or equal to a preset value T, the required number F0 of the displays 8 is 1, and if the N is greater than the preset value T, and each time the N is increased by a multiple of T, adding 1 to F0 until F0 reaches a maximum value M;
s402: searching the number F1 of the displays 8 and the number F2 of the cameras 7 which are connected with the transmission terminal 1 at the side, if F1 is larger than or equal to F0, ending the coordination process, if F1 is smaller than F0, judging whether the value of M- (F1+ F2) is equal to 0, if yes, ending the coordination process, if no, adding the number F of the displays 8 to MIN [ F0-F1, M-F1-F2], and taking MIN as minimum value;
s403: and sending a grading signal to an infrared receiver 5 through the infrared remote controller 4 according to the F, receiving the grading signal by the infrared receiver 5 and transmitting the grading signal to the control terminal 2, and controlling the F idle displays 8 to be connected with the corresponding transmission terminal 1 and powered on by the control terminal 2 through the gating connector 6.
In step S401, M is the number of displays 8 included in the relay subsystem. In step S403, the classification signal is determined by the value of F, and when F idle displays 8 are connected to and powered on by the corresponding transmission terminal 1, F corresponding cameras are connected to and powered on by the opposite transmission terminal 1.
In the step S6, the coordination control module 102 sends an end signal to the infrared receiver 5 through the infrared remote controller 4, the infrared receiver 5 receives the end signal and transmits the end signal to the control terminal 2, and the control terminal 2 controls the display 8 and the camera 7 to be disconnected from the transmission terminals 1 on both sides and to be powered off through the gating connector 6.
Preferably, in the step S1, the client 101 uploads the corresponding user identification information while uploading the transmission file, in the step S3, the user identification information is also converted into a two-dimensional code, in the step S5, the opposite-side image recognition module 107 recognizes the user identification information, and in the step S6, the opposite-side coordination control module 102 sends completion information to the corresponding same-side client 101 according to the user identification information, so as to remind the user more conveniently.
Preferably, when a new template file is stored in the template library on any side, the coordination control module 101 automatically coordinates and controls the relay subsystem to allocate the camera 7 and the display 8 to transmit the new template file to the template library on the opposite side according to the method described above.
The embodiments of the present invention have been described in detail with reference to the drawings, but the present invention is not limited to the above embodiments, and various changes can be made within the knowledge of those skilled in the art without departing from the gist of the present invention.