Detection picture switching method and device, electronic equipment and storage medium

By negotiating video streams and switching screen windows of the shooting device of the next detection scene during the detection scene switching, the flashing or stuttering of the detection screen during the scene switching is solved, and fast image production and efficient network resource utilization are achieved.

CN119996611APending Publication Date: 2025-05-13ZHEJIANG UNIVIEW TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311508105.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-13
Publication Date
2025-05-13

AI Technical Summary

Technical Problem

When switching detection scenes, the detection screen is prone to flash black or stuttering, resulting in poor visual effects.

Method used

By negotiating the video stream for the shooting device corresponding to the next detection scene, and deactivating the current video stream in sequence during switching, closing the current screen window, opening the next screen window, and then processing the next video stream.

Benefits of technology

It improves the switching efficiency of video streams in the detection scene, realizes the rapid image production of detection scene switching, saves network negotiation time, and improves the image production speed of scene switching.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119996611A_ABST
    Figure CN119996611A_ABST
Patent Text Reader

Abstract

The invention discloses a detection picture switching method and device, electronic equipment and a storage medium. The method comprises the following steps: carrying out video stream negotiation on shooting equipment corresponding to a next detection scene; and after the video stream negotiation of the shooting device corresponding to the next detection scene is completed, executing a switching operation of the next detection scene corresponding to the next detection picture window. The switching operation of the next detection picture window comprises the following actions which are executed in sequence: stopping a video stream of the shooting equipment corresponding to the current detection scene, closing the current detection picture window corresponding to the current detection scene and opening the next detection picture window; and processing the video stream of the shooting equipment corresponding to the next detection scene by adopting the next detection picture window. According to the scheme, the video stream is received in advance by completing network negotiation in advance, the switching efficiency of the video stream in the detection scene is improved, the time consumed by network negotiation in the scene switching process is saved, and the scene switching display speed is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method, device, electronic device and storage medium for detecting screen switching. Background Art

[0002] With the continuous advancement of technology, the coverage of network detection is becoming more and more extensive. For example, shopping malls, hotels, subways, stations, etc. are all covered by video detection, and these network cameras need to be detected. Due to the large number of cameras, it takes a lot of manpower and material resources to achieve simultaneous observation, which has derived the concept of scene, and then derived the concept of scene plan. Each scene is arranged with a certain number of camera monitoring screens, and the cyclic detection of all camera screens is achieved by continuously switching scenes. However, in actual applications, it is found that problems such as black screen flashing or screen freezes will occur during scene switching, resulting in poor visual effects of the detection process. Summary of the invention

[0003] The present invention provides a method and device for detecting screen switching, an electronic device and a storage medium, so as to solve the problem that a detection screen flashes black or freezes when detecting scene switching.

[0004] According to one aspect of the present invention, there is provided a method for detecting screen switching, comprising:

[0005] Perform video stream negotiation on the shooting device corresponding to the next detection scene;

[0006] After completing the video stream negotiation of the shooting device corresponding to the next detection scene, performing a switching operation of the next detection screen window corresponding to the next detection scene, wherein the switching operation of the next detection screen window includes sequentially performing the following actions: deactivating the video stream of the shooting device corresponding to the current detection scene, closing the current detection screen window corresponding to the current detection scene, and opening the next detection screen window;

[0007] The next detection picture window is used to process the video stream of the shooting device corresponding to the next detection scene.

[0008] According to another aspect of the present invention, there is provided a device for detecting screen switching, comprising:

[0009] A negotiation module, used to negotiate the video stream of the shooting device corresponding to the next detection scene;

[0010] A switching module is used to perform a switching operation of the next detection scene corresponding to the next detection screen window after completing the video stream negotiation of the shooting device corresponding to the next detection scene, wherein the switching operation of the next detection screen window includes sequentially performing the following actions: deactivating the video stream of the shooting device corresponding to the current detection scene, closing the current detection screen window corresponding to the current detection scene, and opening the next detection screen window;

[0011] The processing module is used to process the video stream of the shooting device corresponding to the next detection scene using the next detection picture window.

[0012] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0013] at least one processor; and

[0014] a memory communicatively connected to the at least one processor; wherein,

[0015] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the method for detecting screen switching according to any embodiment of the present invention.

[0016] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method for detecting screen switching according to any embodiment of the present invention when executed.

[0017] The technical solution of the embodiment of the present invention is to negotiate the video stream of the shooting device corresponding to the next detection scene. After completing the video stream negotiation of the shooting device corresponding to the next detection scene, the switching operation of the next detection screen window corresponding to the next detection scene is executed. The switching operation of the next detection screen window includes executing the following actions in sequence: deactivating the video stream of the shooting device corresponding to the current detection scene, closing the current detection screen window corresponding to the current detection scene, and opening the next detection screen window, and then using the next detection screen window to process the video stream of the shooting device corresponding to the next detection scene. By occupying more optimal network link resources, completing network negotiation with the camera in advance to receive the video stream in advance, and improving the switching efficiency of the video stream in the detection scene, the detection scene switching can be quickly output, saving the time consumed by the network negotiation during the scene switching process, and improving the scene switching output speed.

[0018] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0020] Figure 1 is a flow chart of a method for detecting screen switching provided according to an embodiment of the present invention;

[0021] Figure 2 is a schematic diagram of a detection scenario planning process applicable to an embodiment of the present invention;

[0022] Figure 3 is a schematic diagram of a scene service of a shooting device corresponding to a detection scene in a detection scene plan applicable to an embodiment of the present invention;

[0023] Figure 4 is a schematic diagram of a process for detecting scene switching provided by an embodiment of the present invention;

[0024] Figure 5 is a schematic diagram of another process for detecting scene switching provided by an embodiment of the present invention;

[0025] Figure 6 is a structural schematic diagram of a device for detecting screen switching provided according to an embodiment of the present invention;

[0026] Figure 7 The invention is a schematic diagram of the structure of an electronic device for implementing the method for detecting screen switching according to an embodiment of the present invention. DETAILED DESCRIPTION

[0027] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0028] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0029] Figure 1 A flow chart of a detection screen switching method is provided for an embodiment of the present invention. This embodiment can be applied to the situation where detection screens corresponding to different detection scenes are quickly switched and displayed when the detection scene is switched. The method can be executed by a detection screen switching device. The detection screen switching device can be implemented in the form of hardware and / or software. The detection screen switching device can be configured in any electronic device with network communication function.

[0030] like Figure 1 As shown, the method for detecting screen switching in this embodiment may include the following process:

[0031] S110: Perform video stream negotiation on a shooting device corresponding to a next detection scene.

[0032] S120. After completing the negotiation of the video stream of the shooting device corresponding to the next detection scene, execute the switching operation of the next detection screen window corresponding to the next detection scene. The switching operation of the next detection screen window includes executing the following actions in sequence: deactivating the video stream of the shooting device corresponding to the current detection scene, closing the current detection screen window corresponding to the current detection scene, and opening the next detection screen window.

[0033] As the number of inspection targets continues to increase, more shooting equipment (such as gun cameras, hemispherical cameras, integrated cameras, infrared day and night cameras, high-speed ball cameras, network cameras, etc.) needs to be deployed for all-round coverage inspection. At the same time, in order to better manage the inspection process of each shooting device, the inspection images of batch shooting devices need to be presented in the same display screen. However, due to the large number of deployed shooting devices, it takes a lot of manpower and material resources to realize simultaneous presentation for inspection, which derives the concept of inspection scene planning.

[0034] See also Figure 2, the detection scene plan can refer to multiple detection scenes switching at set time intervals, and each detection scene is used to display the detection screen of the camera associated with the detection scene. The switching time interval between the detection scenes corresponding to detection scene 1 and detection scene 2 is set to 60s, and the detection scene is switched every 60s through the timer, and the camera associated with the detection scene is stored in the cache. Figure 3 As shown, the shooting devices associated with detection scene one include camera 1, camera 2, ..., camera 9, and the shooting devices associated with detection scene two include camera 1, camera 2, ..., camera 16.

[0035] See also Figure 4 , take detection scene 1 as the current detection scene and detection scene 2 as the next detection scene as an example, when starting to switch from the current detection scene to the next detection scene, if the video stream negotiation with the shooting device associated with the current detection scene in the current detection scene is closed in sequence, all the detection screen windows corresponding to the current detection scene are closed, and then all the detection screen windows corresponding to the next detection scene are opened, and the video stream negotiation with the shooting device associated with the next detection scene in the next detection scene is established. In the above detection scene switching process, the switching time determines the time when the picture is still during the detection scene switching process, which will cause the picture to freeze or flash black, and the longer the detection scene switching time is, the worse the visual effect is.

[0036] See also Figure 5 , since the video stream negotiation with the shooting device corresponding to the detection scene is the most time-consuming process during the detection scene switching process, the present application solution negotiates the video stream of the shooting device corresponding to the next detection scene in advance when switching from the current detection scene to the next detection scene, and still uses the video stream of the shooting device corresponding to the current detection scene to display the detection screen during the negotiation. After closing the video stream negotiation of the shooting device associated with the current detection scene in the current detection scene in turn, closing all the detection screen windows corresponding to the current detection scene, and then opening all the detection screen windows corresponding to the next detection scene, since the video stream negotiation with the shooting device corresponding to the next detection scene has been performed in advance, the video stream of the shooting device corresponding to the next detection scene can be quickly provided, so that the detection screen can be quickly switched and displayed as the detection scene switches.

[0037] S130: Use the next detection picture window to process the video stream of the shooting device corresponding to the next detection scene.

[0038] As an optional but non-limiting implementation, performing video stream negotiation on a shooting device corresponding to the next detection scene includes the following steps:

[0039] When the detected duration of the current detection scene reaches a first reference duration, video stream negotiation is performed on the shooting device corresponding to the next detection scene, and the first reference duration is less than a pre-configured detection scene switching time interval between the current detection scene and the next detection scene.

[0040] Although the efficiency of switching detection scenes can be improved by negotiating the video stream of the shooting device corresponding to the next detection scene in advance, negotiating the video stream of the shooting device corresponding to the next detection scene in advance will occupy more network negotiation resources. Since the number of network links is limited by the system, it is necessary to consider how to use network negotiation resources efficiently while achieving fast switching of detection scenes.

[0041] To this end, in the application of the detection scene plan, the present application sets a first reference duration according to the detection scene switching time interval between the current detection scene and the next detection scene, and configures the first reference duration to be less than the pre-configured detection scene switching time interval between the current detection scene and the next detection scene. When switching to the current detection scene, the detected duration of the current detection scene will be timed, and when the detected duration of the current detection scene reaches the first reference duration, the video stream negotiation for the shooting device corresponding to the next detection scene will be started, so that the video stream negotiation can be performed by occupying part of the network connection resources in the current detection scene, and the video stream of the shooting device corresponding to the next detection scene is negotiated in advance in the current detection scene, so that the detection screen can be quickly switched to display the detection screen after the detection scene is switched.

[0042] Optionally, the first reference duration can enable video stream negotiation for a shooting device corresponding to a next detection scene to be completed no later than before switching from a current detection scene to a next detection scene is initiated.

[0043] Optionally, the completion time of the video stream negotiation for the shooting device corresponding to the next detection scene is no later than the start time of switching from the current detection scene to the next detection scene.

[0044] As an optional but non-limiting implementation method, the first reference duration is determined based on a pre-configured detection scene switching time interval between the current detection scene and the next detection scene, the number of video streams of the shooting device corresponding to the next detection scene, and the time consumed for video stream negotiation with each shooting device corresponding to the next detection scene.

[0045] Since the video stream of the shooting device corresponding to the next detection scene will be negotiated in advance in the current detection scene, the network connection resources of the current detection scene will be occupied to a certain extent, affecting the video stream transmission of the current detection scene. For this reason, this application will fully consider the number of video streams of the shooting device corresponding to the next detection scene and the time consumed for the video stream negotiation of each shooting device corresponding to the next detection scene in the application of the detection scene plan, so that the start time of the video stream negotiation of the shooting device corresponding to the next detection scene can be dynamically allocated according to the minimum time consumed for the video stream negotiation of the shooting device corresponding to the next detection scene, and the video stream negotiation is performed according to the dynamically allocated time setting, so as to reduce the image of the video stream transmission corresponding to the current detection scene as much as possible. Due to the limited network link resources of the system, the above method can not only effectively improve the scene switching effect, but also improve the utilization rate of network connection resources.

[0046] As an optional but non-limiting implementation, before performing video stream negotiation on a shooting device corresponding to the next detection scene, the following steps are also included:

[0047] When switching to the current detection scene and starting detection, the first timer is started, and the first timer is used to detect whether the detection time of the current detection scene reaches the first reference time.

[0048] See also Figure 5 The video stream negotiation time M of the shooting device corresponding to the next detection scene can be determined in advance based on the number of video streams of the shooting device corresponding to the next detection scene and the time consumed for video stream negotiation with each shooting device corresponding to the next detection scene. Then, the difference between the detection scene switching time interval between the current detection scene and the next detection scene based on the pre-configured detection scene and the video stream negotiation time M of the shooting device corresponding to the next detection scene is used as the first reference duration.

[0049] See also Figure 5 , configure and start the first timer a when starting to switch to the current detection scene, the timing duration is the first reference duration, and the first timer is used to detect whether the detected duration of the current detection scene reaches the first reference duration, so that when the first timer a detects that the detected duration of the current detection scene reaches the first reference duration, start video stream negotiation for the shooting device corresponding to the next detection scene.

[0050] As an optional but non-limiting implementation, executing the switching operation of the next detection scene corresponding to the next detection picture window includes the following steps:

[0051] When the startup duration of the video stream negotiation for the shooting device corresponding to the next detection scene reaches the second reference duration, the switching operation of the next detection screen window corresponding to the next detection scene is executed, and the first reference duration plus the second reference duration is equal to the pre-configured detection scene switching time interval between the current detection scene and the next detection scene.

[0052] The above switching process solution saves the time for negotiating the video stream of the shooting device corresponding to the next detection scene, improves the speed of displaying the detection screen of the next detection scene, and thus improves the efficiency of switching the detection scene. By dynamically allocating the time for pre-collecting the scene network stream, the occupation of network negotiation resources is reduced, and the utilization rate of network resources is improved. By improving the switching efficiency of the video source in the scene, the overall effect of scene switching is improved, and the user's visual experience is improved, the network pre-collecting stream time is dynamically allocated, the network cache occupation is reduced, and the resource utilization rate is improved.

[0053] As an optional but non-limiting implementation, before executing the switching operation of the next detection scene corresponding to the next detection screen window, the following steps are also included:

[0054] When starting to switch the video stream negotiation for the shooting device corresponding to the next detection scene, the second timer is started, and the second timer is used to detect whether the started duration of the video stream negotiation for the shooting device corresponding to the next detection scene reaches the second reference duration.

[0055] See also Figure 5 When starting to switch the video stream negotiation for the shooting device corresponding to the next detection scene, configure and start the second timer b, the timing duration is the second reference duration, the second reference duration is the video stream negotiation time M of the shooting device corresponding to the next detection scene, and the second timer is used to detect whether the started duration of the video stream negotiation for the shooting device corresponding to the next detection scene reaches the second reference duration, and when the second reference duration is reached, the switching operation of the next detection screen window corresponding to the next detection scene is performed.

[0056] The above optional solution is used to pre-cache the network negotiation of the next scene, saving the time spent on network negotiation during the switching process, thereby improving the efficiency of scene switching and reducing visual differences. Due to the limited network link resources, a timer mechanism is used to dynamically allocate the cache network resource time according to the number of network flows in the next scene, thereby reducing the occupation of network link resources and improving the utilization of network link resources.

[0057] The technical solution of the embodiment of the present invention is to negotiate the video stream of the shooting device corresponding to the next detection scene. After completing the video stream negotiation of the shooting device corresponding to the next detection scene, the switching operation of the next detection screen window corresponding to the next detection scene is executed. The switching operation of the next detection screen window includes executing the following actions in sequence: deactivating the video stream of the shooting device corresponding to the current detection scene, closing the current detection screen window corresponding to the current detection scene, and opening the next detection screen window, and then using the next detection screen window to process the video stream of the shooting device corresponding to the next detection scene. By occupying more optimal network link resources, completing network negotiation with the camera in advance to receive the video stream in advance, and improving the switching efficiency of the video stream in the detection scene, the detection scene switching can be quickly output, saving the time consumed by the network negotiation during the scene switching process, and improving the scene switching output speed.

[0058] Figure 6 A structural schematic diagram of a detection screen switching device is provided for an embodiment of the present invention. This embodiment can be applied to the situation where detection screens corresponding to different detection scenes are quickly switched and displayed when the detection scene is switched. The detection screen switching device can be implemented in the form of hardware and / or software, and the detection screen switching device can be configured in any electronic device with network communication function.

[0059] like Figure 6 As shown, the apparatus for detecting screen switching in this embodiment may include: a negotiation module 610, a switching module 620 and a processing module 630. Among them:

[0060] Negotiation module 610, used to negotiate the video stream of the shooting device corresponding to the next detection scene;

[0061] The switching module 620 is used to perform a switching operation of the next detection scene corresponding to the next detection screen window after completing the video stream negotiation of the shooting device corresponding to the next detection scene, wherein the switching operation of the next detection screen window includes performing the following actions in sequence: deactivating the video stream of the shooting device corresponding to the current detection scene, closing the current detection screen window corresponding to the current detection scene, and opening the next detection screen window;

[0062] The processing module 630 is used to process the video stream of the shooting device corresponding to the next detection scene using the next detection picture window.

[0063] Based on the above embodiment, optionally, performing video stream negotiation on a shooting device corresponding to a next detection scene includes:

[0064] When the detected duration of the current detection scene reaches a first reference duration, video stream negotiation is performed on a shooting device corresponding to a next detection scene, and the first reference duration is less than a pre-configured detection scene switching time interval between the current detection scene and the next detection scene.

[0065] Based on the above embodiment, optionally, before performing video stream negotiation on a shooting device corresponding to a next detection scene, the method further includes:

[0066] When switching to the current detection scene and starting detection, the first timer is started, and the first timer is used to detect whether the detection time of the current detection scene reaches the first reference time.

[0067] Based on the above embodiment, optionally, performing a switching operation of the next detection scene corresponding to the next detection picture window includes:

[0068] When the startup duration of the video stream negotiation for the shooting device corresponding to the next detection scene reaches the second reference duration, the switching operation of the next detection screen window corresponding to the next detection scene is executed, and the first reference duration plus the second reference duration is equal to the pre-configured detection scene switching time interval between the current detection scene and the next detection scene.

[0069] Based on the above embodiment, optionally, before executing the switching operation of the next detection scene corresponding to the next detection picture window, the method further includes:

[0070] When starting to switch the video stream negotiation for the shooting device corresponding to the next detection scene, the second timer is started, and the second timer is used to detect whether the started duration of the video stream negotiation for the shooting device corresponding to the next detection scene reaches the second reference duration.

[0071] Based on the above embodiment, optionally, the first reference duration can enable the video stream negotiation for the shooting device corresponding to the next detection scene to be completed no later than before the switching from the current detection scene to the next detection scene is started.

[0072] Based on the above embodiment, optionally, the first reference duration is determined based on a pre-configured detection scene switching time interval between the current detection scene and the next detection scene, the number of video streams of the shooting device corresponding to the next detection scene, and the time consumed for video stream negotiation with each shooting device corresponding to the next detection scene.

[0073] The technical solution of the embodiment of the present invention is to negotiate the video stream of the shooting device corresponding to the next detection scene. After completing the video stream negotiation of the shooting device corresponding to the next detection scene, the switching operation of the next detection screen window corresponding to the next detection scene is executed. The switching operation of the next detection screen window includes executing the following actions in sequence: deactivating the video stream of the shooting device corresponding to the current detection scene, closing the current detection screen window corresponding to the current detection scene, and opening the next detection screen window, and then using the next detection screen window to process the video stream of the shooting device corresponding to the next detection scene. By occupying more optimal network link resources, completing network negotiation with the camera in advance to receive the video stream in advance, and improving the switching efficiency of the video stream in the detection scene, the detection scene switching can be quickly output, saving the time consumed by the network negotiation during the scene switching process, and improving the scene switching output speed.

[0074] The detection screen switching device provided in the embodiment of the present invention can execute the detection screen switching method provided in any embodiment of the present invention, and has the corresponding functions and beneficial effects of executing the detection screen switching method. For detailed process, please refer to the relevant operations of the detection screen switching method in the above embodiment.

[0075] It is worth noting that the various units and modules included in the above-mentioned device are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the embodiments of the present invention.

[0076] Figure 7 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0077] like Figure 7As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0078] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0079] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The processor 11 performs the various methods and processes described above, such as a method for detecting screen switching.

[0080] In some embodiments, the detection screen switching method can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the detection screen switching method described above can be performed. Alternatively, in other embodiments, processor 11 can be configured to perform the detection screen switching method by any other appropriate means (e.g., by means of firmware).

[0081] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0082] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0083] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0084] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0085] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0086] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0087] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0088] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for detecting screen switching, characterized in that: include: Perform video stream negotiation on the shooting device corresponding to the next detection scene; After completing the video stream negotiation of the shooting device corresponding to the next detection scene, performing a switching operation of the next detection screen window corresponding to the next detection scene, wherein the switching operation of the next detection screen window includes sequentially performing the following actions: deactivating the video stream of the shooting device corresponding to the current detection scene, closing the current detection screen window corresponding to the current detection scene, and opening the next detection screen window; The next detection picture window is used to process the video stream of the shooting device corresponding to the next detection scene.

2. The method according to claim 1, characterized in that Negotiate the video stream of the camera corresponding to the next detection scene, including: When the detected duration of the current detection scene reaches a first reference duration, video stream negotiation is performed on a shooting device corresponding to a next detection scene, and the first reference duration is less than a pre-configured detection scene switching time interval between the current detection scene and the next detection scene.

3. The method according to claim 2, characterized in that Before performing video stream negotiation on a shooting device corresponding to the next detection scene, the following is also included: When switching to the current detection scene and starting detection, the first timer is started, and the first timer is used to detect whether the detection time of the current detection scene reaches the first reference time.

4. The method according to claim 2, characterized in that: Execute the switching operation of the next detection scene corresponding to the next detection screen window, including: When the startup duration of the video stream negotiation for the shooting device corresponding to the next detection scene reaches the second reference duration, the switching operation of the next detection screen window corresponding to the next detection scene is executed, and the first reference duration plus the second reference duration is equal to the pre-configured detection scene switching time interval between the current detection scene and the next detection scene.

5. The method according to claim 4, characterized in that Before executing the switching operation of the next detection scene corresponding to the next detection screen window, it also includes: When starting to switch the video stream negotiation for the shooting device corresponding to the next detection scene, the second timer is started, and the second timer is used to detect whether the started duration of the video stream negotiation for the shooting device corresponding to the next detection scene reaches the second reference duration.

6. The method according to claim 2, characterized in that The first reference duration enables completion of the video stream negotiation for the shooting device corresponding to the next detection scene no later than before the switching from the current detection scene to the next detection scene is started.

7. The method according to any one of claims 2 to 6, characterized in that: The first reference duration is determined based on a pre-configured detection scene switching time interval between a current detection scene and a next detection scene, the number of video streams of shooting devices corresponding to the next detection scene, and the time consumed for video stream negotiation with each shooting device corresponding to the next detection scene.

8. A device for detecting screen switching, characterized in that: include: A negotiation module, used to negotiate the video stream of the shooting device corresponding to the next detection scene; A switching module is used to perform a switching operation of the next detection scene corresponding to the next detection screen window after completing the video stream negotiation of the shooting device corresponding to the next detection scene, wherein the switching operation of the next detection screen window includes sequentially performing the following actions: deactivating the video stream of the shooting device corresponding to the current detection scene, closing the current detection screen window corresponding to the current detection scene, and opening the next detection screen window; The processing module is used to process the video stream of the shooting device corresponding to the next detection scene using the next detection picture window.

9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the method for detecting screen switching according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the detection screen switching method according to any one of claims 1 to 7 when executed.