CN113395489A - Video switching method and video switching system suitable for network camera - Google Patents

Video switching method and video switching system suitable for network camera Download PDF

Info

Publication number
CN113395489A
CN113395489A CN202110644081.9A CN202110644081A CN113395489A CN 113395489 A CN113395489 A CN 113395489A CN 202110644081 A CN202110644081 A CN 202110644081A CN 113395489 A CN113395489 A CN 113395489A
Authority
CN
China
Prior art keywords
network
video
sub
thread
video image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110644081.9A
Other languages
Chinese (zh)
Other versions
CN113395489B (en
Inventor
李传龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Harbin Low Altitude Exploration Intelligent Technology Co ltd
Original Assignee
Harbin Low Altitude Exploration Intelligent Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Harbin Low Altitude Exploration Intelligent Technology Co ltd filed Critical Harbin Low Altitude Exploration Intelligent Technology Co ltd
Priority to CN202110644081.9A priority Critical patent/CN113395489B/en
Publication of CN113395489A publication Critical patent/CN113395489A/en
Application granted granted Critical
Publication of CN113395489B publication Critical patent/CN113395489B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
    • H04N7/181Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast for receiving images from a plurality of remote sources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/268Signal distribution or switching

Abstract

The invention relates to the technical field of video switching, and discloses a video switching method and a video switching system suitable for a network camera.

Description

Video switching method and video switching system suitable for network camera
Technical Field
The invention relates to the technical field of video switching, in particular to a video switching method and a video switching system suitable for a network camera.
Background
In a railway system, a work machine section is mainly responsible for maintenance, repair, overhaul and other work of a railway line, in the working process, an operator can work by using a rail flaw detection vehicle, a rail welding vehicle and other train types, a camera needs to be installed outside the vehicle, and a video reading device and a display are installed inside the vehicle, so that the operator in the vehicle can directly observe the condition of an operation end. In order to facilitate viewing of video pictures in a plurality of environments, a plurality of cameras are generally installed, and a video switcher is equipped in a vehicle, wherein the video switcher generally has a plurality of keys corresponding to the cameras in different positions, and when an operator presses different keys, the camera pictures with corresponding numbers are displayed on a display. However, the circuits and programs in the existing video switcher can only acquire and switch the video pictures of the analog signal camera, and cannot be applied to the network camera, and compared with the analog signal camera, the network camera has higher definition of the obtained video pictures, is more beneficial to observing by operators, and reduces the probability of railway faults, so that a set of video switching method suitable for the network camera is urgently needed.
Disclosure of Invention
In view of the above technical problems in the prior art, the present invention provides a video switching method and a video switching system suitable for a network camera, which can acquire video images of a plurality of network cameras and can arbitrarily switch the video images of the network cameras to be displayed.
The invention relates to a video switching method suitable for a network camera, which adopts the technical scheme that the video switching method is used for solving the technical problem that: a video switching method for a webcam, the method comprising: establishing a main program and a plurality of sub-threads, wherein data interaction can be realized among the plurality of sub-threads; starting a main program, reading a configuration file and establishing network connection with a switching network of the network camera, wherein the configuration file comprises an IP address of the network camera; and starting a plurality of the sub-threads, and extracting and displaying the required video image from the switching network of the network camera.
The video switching method suitable for the network cameras comprises a video image acquisition sub-thread, a picture display sub-thread and a video image channel reading sub-thread, wherein the video image acquisition sub-thread can acquire video images of a plurality of network cameras from a switching network and store the video images into a data packet, the video image channel reading sub-thread can read the network cameras needing to display the video images and send instructions to the picture display sub-thread, and the picture display sub-thread can extract and display the required video images from the data packet.
According to the video switching method suitable for the network camera, the sub-thread further comprises a target detection sub-thread, the image display sub-thread can send the video image required to be displayed to the target detection sub-thread, the target detection sub-thread can receive and detect the video image required to be displayed, and the detection result and the video image are merged and then displayed.
In the above video switching method for the network camera, the configuration file further includes an equipment serial number and a display resolution.
According to the video switching method suitable for the network camera, data interaction is realized among the multiple sub-threads in a global variable sharing mode.
The video switching method applicable to the network camera at least has the following beneficial effects: the method comprises the steps of establishing a main program and a plurality of sub-programs, reading the IP address of the network camera through the main program and establishing network connection with a switching network of the network camera aiming at the situation of monitoring by using the network camera, obtaining video images of the network camera from the switching network by mutually matching the sub-programs, and randomly switching the video images of the network camera to be displayed according to the selection of a user.
The video switching system of the invention adopts the technical scheme that the technical problem is solved as follows: a video switching system, comprising: reading a configuration file module; the reading network connection module is used for establishing network connection with a switching network of the network camera; the video image acquisition module is used for acquiring video images of a plurality of network cameras from a switching network of the network cameras and storing the video images into a data packet; the video image channel selection module is used for reading and sending a video image channel required to be displayed by a user; and the picture display module is used for extracting and displaying the video image required to be displayed from the data packet.
In the video switching system, the configuration file reading module, the network reading connecting module and the video image acquiring module are all arranged in an embedded microcomputer, and the embedded microcomputer can establish telecommunication connection with a switching network of a network camera.
In the video switching system, the video image channel selection module comprises a plurality of keys and a single chip microcomputer, and the single chip microcomputer is used for identifying the pressed keys and sending key information to the embedded microcomputer.
In the video switching system, the image display module includes a display, and the display is electrically connected to the embedded microcomputer.
In the video switching system, the embedded microcomputer is provided with the ethernet interface and the HDMI interface, the embedded microcomputer is connected to the switching network of the network camera through the ethernet interface, and the embedded microcomputer is connected to the picture display module through the HDMI interface.
The video switching system of the invention at least has the following beneficial effects: the system identifies the IP addresses of the network cameras and establishes network connection with the switching network of the network cameras by reading the configuration file module and the network connection module, the video image acquisition module acquires the video images of a plurality of network cameras from the switching network and stores the video images into a data packet, the video image channel selection module identifies the video image channel selected by a user, the picture display module extracts and displays the video image required to be displayed by the user from the data packet, and the system can realize the random switching of the video images aiming at the network cameras.
Drawings
The invention will be further described with reference to the following figures and examples, in which:
fig. 1 is a schematic flowchart of a video switching method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a video switching system according to an embodiment of the present invention.
Detailed Description
An embodiment of the present invention is described in detail below, and referring to fig. 1, an embodiment of the present invention provides a video switching method suitable for a network camera, the method including: establishing a main program and a plurality of sub-threads, wherein data interaction can be realized among the plurality of sub-threads; starting a main program, finishing IO port initialization and variable initialization, reading a configuration file by the main program and establishing network connection with a switching network of the network camera, specifically, reading a network connection state by the main program, judging whether the network connection is established or not, re-reading the network connection state if the network connection state is not, starting a plurality of sub-threads if the network connection state is judged to be yes, and extracting and displaying a required video image from the switching network of the network camera. The method comprises the steps of establishing a main program and a plurality of sub-programs, reading the IP address of the network camera through the main program and establishing network connection with a switching network of the network camera aiming at the situation of monitoring by using the network camera, obtaining video images of the network camera from the switching network by mutually matching the sub-programs, and randomly switching the video images of the network camera to be displayed according to the selection of a user.
Furthermore, the sub-thread comprises a video image acquisition sub-thread, a picture display sub-thread and a video image channel reading sub-thread, the video image acquisition sub-thread can acquire video images of a plurality of network cameras from a switching network and store the video images into a data packet, the video image channel reading sub-thread can read the network cameras needing to display the video images and send instructions to the picture display sub-thread, and the picture display sub-thread can extract and display the required video images from the data packet.
Specifically, a plurality of video image acquisition sub-threads are arranged, each video image acquisition sub-thread corresponds to one network camera, after network connection is established, the plurality of video image acquisition sub-threads are started according to the IP address of the network camera in the configuration file, the network camera is opened, whether a camera of the network camera is opened or not is judged, if not, the network camera is opened again, if yes, the video image of the network camera is acquired, then, whether errors exist or not is judged, namely, whether the opened network camera is the appointed network camera or not is judged, if yes, namely, when errors are judged, the opened network camera is released, and the step of opening the network camera is returned again, and if not, namely, when no errors are judged, the video image is transferred to a data packet which can be accessed by other sub-threads.
Furthermore, the sub-thread also comprises a target detection sub-thread, the image display sub-thread can send the video image required to be displayed to the target detection sub-thread, and the target detection sub-thread can receive and detect the video image required to be displayed, and display the detection result and the video image after merging. Specifically, the target detection is to detect whether a safety helmet is worn, whether smoke, open fire, or the like is present, and can warn safety factors harmful to a human body, equipment, or the like without manually observing a display screen. Specifically, when a target detection sub-thread is started, a depth learning network weight file is loaded, a detector is built, after a video channel reading sub-thread is started to read a network camera which needs to display a video image by a user, the video channel reading sub-thread can share information to a picture display sub-thread, the picture display sub-thread extracts the video image which needs to be displayed from a data packet according to related information and judges whether the target needs to be automatically detected, if not, the extracted video image is displayed, if yes, the video image is sent to the detector, and after the detection result is obtained, the detection result and the video image are displayed together.
Further, the configuration file further comprises an equipment serial number and a display resolution, and the main program simultaneously starts a plurality of video image acquisition sub-threads according to the number of the network cameras in the configuration file. Furthermore, data interaction is realized among the multiple sub-threads in a mode of sharing global variables.
Referring to fig. 2, an embodiment of the present invention further provides a video switching system, including a configuration file reading module, a network connection reading module, a video image obtaining module, a video image channel selecting module, and a picture displaying module, where the network connection reading module is configured to establish network connection with a switching network of network cameras, the video image obtaining module is configured to obtain video images of multiple network cameras from the switching network of the network cameras and store the video images into a data packet, the video image channel selecting module is configured to read and send a video image channel that a user needs to display, and the picture displaying module is configured to extract and display a video image that needs to be displayed from the data packet.
The system identifies the IP addresses of the network cameras and establishes network connection with the switching network of the network cameras by reading the configuration file module and the network connection module, the video image acquisition module acquires the video images of a plurality of network cameras from the switching network and stores the video images into a data packet, the video image channel selection module identifies the video image channel selected by a user, the picture display module extracts and displays the video image required to be displayed by the user from the data packet, and the system can realize the random switching of the video images aiming at the network cameras.
Furthermore, the configuration file reading module, the network reading connection module and the video image acquisition module are all arranged in an embedded microcomputer, and the embedded microcomputer can be in telecommunication connection with a switching network of a network camera. Furthermore, the video image channel selection module comprises a plurality of keys and a single chip microcomputer, the single chip microcomputer is used for identifying the pressed keys and sending key information to the embedded microcomputer, and the video image acquisition module extracts the required video image from the data packet according to the key information after receiving the key information. Furthermore, the image display module comprises a display, and the display is electrically connected with the embedded microcomputer. Furthermore, the embedded microcomputer is provided with an Ethernet interface and an HDMI interface, the embedded microcomputer is connected with a switching network of the network camera through the Ethernet interface, and the embedded microcomputer is connected with the picture display module through the HDMI interface.
Further, referring to fig. 2, the system further includes a wide voltage input type dc regulated power supply module, where the wide voltage input type dc regulated power supply module is responsible for reducing the input dc voltage to the working voltage required by the embedded microcomputer, and further includes a heat dissipation management unit, where the heat dissipation management unit includes a heat dissipation fan, and the heat dissipation management unit can adjust the rotation speed of the heat dissipation fan according to the core temperature of the embedded microcomputer, so that the core temperature of the embedded microcomputer is adjusted within a controllable range. Further, still be equipped with USB interface and temperature smoke sensor interface on embedded microcomputer, the USB interface can be conveniently inserted peripheral hardware such as mouse or keyboard when debugging system, and temperature smoke sensor interface can connect temperature sensor and smoke transducer to monitor the temperature and the smog condition.
In the description of the present invention, the meaning of a plurality of means is one or more, the meaning of a plurality of means is two or more, and larger, smaller, larger, etc. are understood as excluding the number, and larger, smaller, inner, etc. are understood as including the number. If the first and second are described for the purpose of distinguishing technical features, they are not to be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated or implicitly indicating the precedence of the technical features indicated.
In the description of the present invention, unless otherwise explicitly limited, terms such as arrangement, installation, connection and the like should be understood in a broad sense, and those skilled in the art can reasonably determine the specific meanings of the above terms in the present invention in combination with the specific contents of the technical solutions.
The embodiments of the present invention have been described in detail with reference to the accompanying 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.

Claims (10)

1. A video switching method applicable to a network camera, the method comprising:
establishing a main program and a plurality of sub-threads, wherein data interaction can be realized among the plurality of sub-threads;
starting a main program, reading a configuration file and establishing network connection with a switching network of the network camera, wherein the configuration file comprises an IP address of the network camera;
and starting a plurality of the sub-threads, and extracting and displaying the required video image from the switching network of the network camera.
2. The video switching method applicable to the network cameras as claimed in claim 1, wherein the sub-thread comprises a video image acquisition sub-thread, a picture display sub-thread and a video image channel reading sub-thread, the video image acquisition sub-thread can acquire video images of a plurality of network cameras from a switching network and store the video images into a data packet, the video image channel reading sub-thread can read the network cameras required to display the video images and send instructions to the picture display sub-thread, and the picture display sub-thread can extract and display the required video images from the data packet.
3. The video switching method applicable to the network camera as claimed in claim 2, wherein the sub-thread further comprises a target detection sub-thread, the image display sub-thread can send the video image to be displayed to the target detection sub-thread, and the target detection sub-thread can receive and detect the video image to be displayed, and display the detection result after being merged with the video image.
4. The video switching method for network cameras according to claim 1, wherein the configuration file further comprises a device serial number and a display resolution.
5. The video switching method suitable for the network camera according to claim 1, wherein data interaction is realized among the plurality of sub threads by sharing a global variable.
6. A video switching system, comprising:
reading a configuration file module;
the reading network connection module is used for establishing network connection with a switching network of the network camera;
the video image acquisition module is used for acquiring video images of a plurality of network cameras from a switching network of the network cameras and storing the video images into a data packet;
the video image channel selection module is used for reading and sending a video image channel required to be displayed by a user;
and the picture display module is used for extracting and displaying the video image required to be displayed from the data packet.
7. The video switching system according to claim 6, wherein said profile reading module, said network connection reading module and said video image capturing module are disposed in an embedded microcomputer, and said embedded microcomputer is capable of establishing telecommunication connection with a switching network of the network camera.
8. The video switching system according to claim 7, wherein the video image channel selection module includes a plurality of keys and a single chip microcomputer for recognizing the pressed key and transmitting key information to the embedded microcomputer.
9. The video switching system according to claim 7, wherein the image display module comprises a display electrically connected to the embedded microcomputer.
10. The video switching system according to claim 7, wherein said embedded microcomputer is provided with an ethernet interface and an HDMI interface, said embedded microcomputer is connected to a switching network of a network camera through said ethernet interface, and said embedded microcomputer is connected to said screen display module through said HDMI interface.
CN202110644081.9A 2021-06-09 2021-06-09 Video switching method and video switching system suitable for network camera Active CN113395489B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110644081.9A CN113395489B (en) 2021-06-09 2021-06-09 Video switching method and video switching system suitable for network camera

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110644081.9A CN113395489B (en) 2021-06-09 2021-06-09 Video switching method and video switching system suitable for network camera

Publications (2)

Publication Number Publication Date
CN113395489A true CN113395489A (en) 2021-09-14
CN113395489B CN113395489B (en) 2023-03-24

Family

ID=77620083

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110644081.9A Active CN113395489B (en) 2021-06-09 2021-06-09 Video switching method and video switching system suitable for network camera

Country Status (1)

Country Link
CN (1) CN113395489B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101102302A (en) * 2006-07-04 2008-01-09 北京江南天安科技有限公司 Multi-channel audio and video signal output switcher and audio and video monitoring system and its switching method
CN101483761A (en) * 2008-01-10 2009-07-15 上海诚丰数码科技有限公司 Intelligent video monitoring system based on complete IP network
CN102196244A (en) * 2011-04-06 2011-09-21 大道计算机技术(上海)有限公司 Service-based video signal calling system and implementation method thereof
CN102307295A (en) * 2011-03-15 2012-01-04 陈建国 Remote video monitoring system and method based on public switched telephone network-Internet protocol (PSTN-IP) double-network cooperation
EP2555517A1 (en) * 2011-08-01 2013-02-06 Hunt Electronic Co., Ltd. Network video server and video control method thereof
CN103023809A (en) * 2012-12-28 2013-04-03 中国船舶重工集团公司第七0九研究所 Information system synchronous data processing method utilizing secondary buffer technology
CN103067690A (en) * 2012-11-14 2013-04-24 广东中钰科技有限公司 Method and device of equalized audio-video data transmission based on intelligent monitoring platform
CN110381322A (en) * 2019-07-15 2019-10-25 腾讯科技(深圳)有限公司 Method for decoding video stream, device, terminal device and storage medium
CN111783744A (en) * 2020-07-31 2020-10-16 上海仁童电子科技有限公司 Operation site safety protection detection method and device
CN112702576A (en) * 2020-12-24 2021-04-23 浙江赫千电子科技有限公司 Data acquisition plug-flow display method for vehicle-mounted video
CN112788282A (en) * 2019-11-08 2021-05-11 株洲中车时代电气股份有限公司 Video information acquisition method and application thereof

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101102302A (en) * 2006-07-04 2008-01-09 北京江南天安科技有限公司 Multi-channel audio and video signal output switcher and audio and video monitoring system and its switching method
CN101483761A (en) * 2008-01-10 2009-07-15 上海诚丰数码科技有限公司 Intelligent video monitoring system based on complete IP network
CN102307295A (en) * 2011-03-15 2012-01-04 陈建国 Remote video monitoring system and method based on public switched telephone network-Internet protocol (PSTN-IP) double-network cooperation
CN102196244A (en) * 2011-04-06 2011-09-21 大道计算机技术(上海)有限公司 Service-based video signal calling system and implementation method thereof
EP2555517A1 (en) * 2011-08-01 2013-02-06 Hunt Electronic Co., Ltd. Network video server and video control method thereof
CN103067690A (en) * 2012-11-14 2013-04-24 广东中钰科技有限公司 Method and device of equalized audio-video data transmission based on intelligent monitoring platform
CN103023809A (en) * 2012-12-28 2013-04-03 中国船舶重工集团公司第七0九研究所 Information system synchronous data processing method utilizing secondary buffer technology
CN110381322A (en) * 2019-07-15 2019-10-25 腾讯科技(深圳)有限公司 Method for decoding video stream, device, terminal device and storage medium
CN112788282A (en) * 2019-11-08 2021-05-11 株洲中车时代电气股份有限公司 Video information acquisition method and application thereof
CN111783744A (en) * 2020-07-31 2020-10-16 上海仁童电子科技有限公司 Operation site safety protection detection method and device
CN112702576A (en) * 2020-12-24 2021-04-23 浙江赫千电子科技有限公司 Data acquisition plug-flow display method for vehicle-mounted video

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
尹雷 等: "《基于异构多核嵌入式平台的视频监控系统》", 《微电子学与计算机》 *

Also Published As

Publication number Publication date
CN113395489B (en) 2023-03-24

Similar Documents

Publication Publication Date Title
US10235574B2 (en) Image-capturing device, recording device, and video output control device
US20090167527A1 (en) Video monitoring system and method
WO2021020866A1 (en) Image analysis system and method for remote monitoring
CN106851408A (en) A kind of television set throws screen monitoring device and method
KR101568074B1 (en) Multi managing apparatus interlocking sensor of image data
CN209088626U (en) Intelligent substation patrol monitoring system
KR101685950B1 (en) CCTV recording system having self-diagnosis function
JP6359376B2 (en) Apparatus, system and program
CN113395489B (en) Video switching method and video switching system suitable for network camera
CN113496661A (en) LED display control system detection method, device and system
KR101268977B1 (en) Surveillance camera apparatus for real time check input voltage
KR102165276B1 (en) Integrated server for remote controlling and method thereof
CN111583732A (en) Evaluation state monitoring method, device and equipment based on head-mounted display equipment
CN108873777B (en) Ground test launch control system monitoring platform and monitoring method
CN106713904A (en) VGA interface test method, apparatus and system
JP2001006071A (en) Remote monitoring device for elevator
US8279284B2 (en) Video display apparatus
CN108551579A (en) A kind of hardware detection method and system of set-top box
JP6541847B2 (en) Device, system and program
CN104349123B (en) The embedded main mouth automatic detection of video recording equipment and the method for switching
JP2019193283A (en) System and program
JP2001359086A (en) Supervisory camera system
CN112181772A (en) Intelligent test system of equipment
CN213338759U (en) High-altitude parabolic capturing system
KR101122524B1 (en) Method and system for collectiong driver's chracteristic information using synchronized data

Legal Events

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