All-in-one machine processing method and device, all-in-one machine and storage medium
By using an all-in-one machine for visual perception and processing of video streams, the problem of high hardware complexity in existing technologies is solved, achieving the effects of reducing costs and improving efficiency, and enhancing the smoothness and richness of video broadcasting.
Patent Information
- Application Number
- CN202410328774.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-21
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2044-03-21
AI Technical Summary
In existing video production technologies, the combination of hardware devices is costly and complex, requiring multiple devices to work together, resulting in complex hardware configurations and low efficiency.
An all-in-one machine is used for visual perception and processing of video streams. The video stream is provided by the camera equipment, and the all-in-one machine is used for visual perception, determining the target perception category and tracking box path, generating close-up video streams and directing the broadcast, thereby reducing the number of hardware devices and software configurations.
It reduced hardware costs, improved processing efficiency, and enhanced the smoothness of close-up video streams through smoothing processing, thereby increasing the richness and coherence of video broadcasting.
Smart Images

Figure CN118138819B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of multimedia technology, and in particular to an all-in-one machine processing method, an all-in-one machine processing device, an all-in-one machine, a computer-readable storage medium, and a computer program product, wherein the all-in-one machine may specifically be a recording and broadcasting all-in-one machine. Background Art
[0002] In current multimedia technology, video directing technology is usually involved, for example, multiple video equipment (such as cameras) are connected to the recording and broadcasting host, and the video directing process is completed through the cooperation between the camera and the recording and broadcasting host. In this way, it is necessary to reasonably design the layout of the site, the cooperation between multiple different hardware devices such as the video equipment and the recording and broadcasting host, and the software solution of each hardware device, etc. The hardware combination is costly and complex. Summary of the invention
[0003] Based on this, it is necessary to provide an all-in-one processing method, an all-in-one processing device, an all-in-one machine, a computer-readable storage medium and a computer program product that can reduce the hardware component cost of video director processing and efficiently address the above-mentioned technical problems, wherein the all-in-one machine can specifically be an all-in-one recording and broadcasting machine.
[0004] In a first aspect, the present application provides an all-in-one processing method, the method comprising:
[0005] Obtain video streams captured by at least two different camera devices;
[0006] Performing visual perception on the video stream to obtain a visual perception result, wherein the visual perception result includes: a perception category of a visual perception target and a tracking frame of the visual perception target;
[0007] Selecting and determining a target perception category from each of the perception categories in the visual perception result;
[0008] Obtaining a close-up video stream of the target perception category based on the video stream corresponding to the target perception category and a tracking frame path based on the target perception category, wherein the tracking frame path is determined based on the tracking frame of the visual perception target corresponding to the target perception category;
[0009] Based on the close-up video stream, a director video stream is obtained, and the director video stream is displayed.
[0010] Based on the all-in-one processing method of the embodiment of the present application, the all-in-one can obtain video streams from at least two different camera devices, perform visual perception on these video streams, determine the target perception category, and obtain a close-up video stream in combination with the corresponding video stream and tracking frame path of the target perception category, thereby obtaining a director video stream and displaying it. In this process, each camera device only needs to provide a video stream, and the all-in-one performs visual perception, determines the tracking frame path, obtains a close-up video stream of the target perception category, obtains the director video stream based on the close-up video stream and displays it. Since the camera device only needs to provide a video stream, all subsequent processing is performed by the all-in-one, and the all-in-one is displayed, which greatly reduces the cost of hardware equipment and hardware configuration, and thereby improves processing efficiency. Moreover, by determining the tracking frame path of the visual perception target of the target perception category, and obtaining the close-up video stream on this basis, it also helps to improve the smoothness of the obtained close-up video stream.
[0011] In some embodiments, selecting and determining a target perception category from each of the perception categories in the visual perception result includes:
[0012] From among the perception categories in the visual perception results, a preset category of the perception category in the visual perception results is determined as a target perception category.
[0013] Therefore, when selecting and determining the target perception category, it can be determined based on the preset category, so that different perception categories can be set based on different business scenario requirements to meet the needs of different business scenarios.
[0014] In some embodiments, the method for determining the tracking box path of the target perception category includes:
[0015] After selecting and determining the target perception category, a tracking frame path of the target perception category is determined based on the tracking frame of the visual perception target corresponding to the target perception category.
[0016] Therefore, after selecting and determining the target perception category, the tracking frame path is determined based on the tracking frame of the visual perception target of the target perception category. Therefore, the tracking frame path can be determined only for the selected target perception category, without having to determine the tracking frame path for all perception categories, thereby reducing the amount of processing.
[0017] In some embodiments, the method for determining the tracking box path of the target perception category includes:
[0018] After obtaining the visual perception result, generating a tracking frame path of each visual perception target based on the tracking frame of the visual perception target;
[0019] After selecting and determining the target perception category, extract the generated tracking box path of the target perception category.
[0020] Based on this embodiment, after obtaining the visual perception results, the corresponding tracking frame path can be determined for each visual perception target. After selecting and determining the target perception category, the tracking frame path of the target perception category can be directly extracted from the generated tracking frame path, which helps to improve the efficiency of obtaining the tracking frame path of the target perception category.
[0021] In some embodiments, based on the tracking frame of the visual perception target, a method of generating a tracking frame path of the visual perception target includes:
[0022] The tracking frame of the visual perception target is smoothed to obtain a tracking frame path of the tracking frame.
[0023] Based on this embodiment, after obtaining the tracking frames of the visually perceived target, these tracking frames are further smoothed to obtain the tracking frame paths. The smoothing process improves the smoothness of the obtained tracking frame paths. The corresponding video streams are then processed in combination with the tracking frame paths to improve the smoothness of the obtained close-up video streams.
[0024] In some embodiments, smoothing the tracking frame of the visually perceived target to obtain a tracking frame path of the tracking frame includes:
[0025] Based on the video frame rate of the video stream that identifies the visual perception target, interpolation and smoothing processing is performed on the tracking frame of the visual perception target to obtain a tracking frame path.
[0026] When obtaining the tracking frame of the visual perception target based on the video stream, the tracking frame is usually detected and outputted by sampling, that is, the frame rate of the tracking frame will be lower than the video frame rate. Therefore, by performing interpolation and smoothing processing on the tracking frame based on the video frame rate, the tracking frame path obtained after the interpolation and smoothing processing can meet the smoothing requirements based on the video frame rate, thereby effectively reducing the jitter and stuttering of the tracking frame. On this basis, the corresponding video stream is processed to obtain a close-up video stream, thereby improving the smoothness of the obtained close-up video stream.
[0027] In some embodiments, the smoothing of the tracking frame of the visual perception target to obtain a tracking frame path of the tracking frame further includes:
[0028] Based on the video frame rate of the video stream in which the visual perception target is identified, interpolation and smoothing processing is performed on the tracking frame of the visual perception target to obtain a tracking frame path, determining whether the tracking frame of the visual perception target has translation jitter;
[0029] In the case where translation jitter exists, the translation jitter of the tracking frame of the visual perception target is eliminated.
[0030] Based on this embodiment, the existence of translation jitter in the tracking frame indicates that the tracking frame has obvious jitter. Therefore, by eliminating the translation jitter of the tracking frame, it is helpful to first roughly adjust the jitter of the tracking frame, which helps to improve the efficiency of the smooth processing of the tracking frame, thereby improving the efficiency of the video director.
[0031] In some embodiments, when the distance between the center positions of two adjacent tracking frames in the tracking frame of the visual perception target is greater than a distance threshold, it is determined that the tracking frame of the visual perception target has translation jitter.
[0032] Based on this embodiment, based on the distance between the center positions of two adjacent tracking frames, it can be determined whether the tracking frame has translational jitter. The determination method is simple and convenient, which helps to improve the efficiency of tracking frame processing.
[0033] In some embodiments, in the tracking frame of the visual perception target, when the distance between any edges in the same direction of two adjacent tracking frames is greater than a distance threshold, it is determined that the tracking frame of the visual perception target has translation jitter.
[0034] Based on this embodiment, based on the distance between any edges of two adjacent tracking frames in the same direction, it can be determined whether there is translational jitter in the tracking frame. The determination method is simple and convenient, which helps to improve the efficiency of tracking frame processing.
[0035] In some embodiments, eliminating translation jitter of the tracking frame of the visual perception target includes:
[0036] Interpolation processing is performed on two adjacent tracking frames having translation jitter in the tracking frame of the visual perception target, so that there is no translation jitter between any two adjacent tracking frames after the interpolation processing.
[0037] Based on this embodiment, when eliminating the translation jitter of the tracking frame, it can be achieved through interpolation processing. The method of eliminating the translation jitter is simple, convenient, and easy to implement.
[0038] In some embodiments, the step of performing interpolation and smoothing processing on the tracking frame of the visual perception target based on the video frame rate of the video stream in which the visual perception target is identified to obtain a tracking frame path includes:
[0039] Based on the video frame rate of the video stream based on which the visual perception target is identified, a smoothing value for interpolation and smoothing of the tracking frame is determined, and based on the smoothing value, the tracking frame is interpolated and smoothed to obtain a tracking frame path, wherein the smoothing value represents a proportional relationship between the frame rate of the tracking frame path after the interpolation and smoothing process and the video frame rate.
[0040] Based on this embodiment, the tracking frame can be interpolated and smoothed based on the requirement for fluency, so that the processing amount can be controlled while meeting the requirements for smoothness and flow, and the processing efficiency can be improved at the same time.
[0041] In some embodiments, the step of performing interpolation and smoothing processing on the tracking frame of the visual perception target based on the video frame rate of the video stream in which the visual perception target is identified to obtain a tracking frame path includes:
[0042] The tracking frame of the visual perception target is interpolated and smoothed so that the frame rate of the tracking frame after the interpolation and smoothing process is the same as the video frame rate, and a tracking frame path is obtained.
[0043] Based on this embodiment, after the tracking frame is interpolated and smoothed based on the video frame rate of the video stream of the visual perception target, the frame rate of the obtained tracking frame path is the same as the video frame rate, so that the tracking frame and the video stream have the same frame rate. When outputting the video, the user's visual experience is taken into consideration, and the video will have a coherent and smooth effect. By obtaining a tracking frame path with the same frame rate as the video frame rate, a tracking frame path with the same coherent and smooth effect as the video stream can be obtained, so that the stability of the tracking frame can be ensured, and the jitter and stuttering of the tracking frame can be avoided. On this basis, the corresponding video stream is processed to obtain a close-up video stream, and the smoothness of the obtained close-up video stream can be improved accordingly.
[0044] In some embodiments, obtaining the guide video stream based on the close-up video stream may include:
[0045] The close-up video stream is combined with the video stream to obtain and display a director video stream, wherein the director video stream includes the close-up video stream and the video stream.
[0046] Therefore, the determined director video stream contains both the video stream and the close-up video stream, which can make the obtained director video stream richer.
[0047] In some embodiments, the target perception categories include target perception categories corresponding to each of the video streams, the close-up video streams include close-up video streams corresponding to each target perception category, and the number of the target perception categories and the number of the close-up video streams are the same as the number of the camera devices.
[0048] Thus, based on this embodiment, a target perception category is selected and determined for each video stream of different camera devices, and a corresponding close-up video stream is determined for the corresponding video stream. The video stream of each camera device will get a corresponding close-up video stream, so if there are N camera devices, there will be N video streams and close-up video streams of these N video streams, which will help to improve the richness of the content of the video director.
[0049] In a second aspect, the present application provides an all-in-one processing device, the device comprising:
[0050] A video stream acquisition module, used to acquire video streams captured by at least two different camera devices;
[0051] A visual perception module, used to perform visual perception on the video stream to obtain a visual perception result, wherein the visual perception result includes: a perception category of a visual perception target and a tracking frame of the visual perception target;
[0052] A target category determination module, used for selecting and determining a target perception category from each of the perception categories in the visual perception result;
[0053] a close-up video stream acquisition module, configured to obtain a close-up video stream of the target perception category based on the video stream corresponding to the target perception category and a tracking frame path based on the target perception category, wherein the tracking frame path is determined based on the tracking frame of the visual perception target corresponding to the target perception category;
[0054] The director video stream acquisition module is used to obtain the director video stream based on the close-up video stream and display the director video stream.
[0055] In a third aspect, the present application further provides an all-in-one machine, wherein the all-in-one machine comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the method in any of the above embodiments are implemented.
[0056] In some embodiments, the all-in-one machine includes an all-in-one recording and broadcasting machine.
[0057] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the method in any of the above embodiments are implemented.
[0058] In a fifth aspect, the present application further provides a computer program product, wherein the computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the method in any of the above embodiments are implemented. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] Figure 1 This is a schematic diagram of the architecture of some existing video directing scenarios;
[0060] Figure 2 The following is a schematic diagram of the architecture of some other existing video directing scenarios;
[0061] Figure 3 An application environment diagram of the all-in-one machine processing method of an embodiment of the present application in one embodiment;
[0062] Figure 4 A schematic diagram of a process flow of an all-in-one machine processing method in one embodiment;
[0063] Figure 5 A schematic diagram of a process of performing smoothing on a tracking frame of a visually perceived target to obtain a tracking frame path of the tracking frame in an embodiment;
[0064] Figure 6 A schematic diagram of the principle of obtaining a tracking box path in an example;
[0065] Figure 7 is a flowchart of an all-in-one processing method in another embodiment;
[0066] Figure 8 A schematic diagram of the principle architecture of an all-in-one processing method in a specific example;
[0067] Fig. 9 is a structural block diagram of an all-in-one processing device in an embodiment;
[0068] Fig.10 FIG. 1 is a diagram showing the internal structure of an all-in-one machine in an embodiment. DETAILED DESCRIPTION
[0069] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0070] The following embodiments of the technical solution of the present application are described in detail in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present application, and are therefore only used as examples, and cannot be used to limit the scope of protection of the present application.
[0071] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by technicians in the technical field to which this application belongs; the terms used herein are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" in the specification and claims of this application and the above-mentioned figure descriptions and any variations thereof are intended to cover non-exclusive inclusions.
[0072] In the description of the embodiments of the present application, the technical terms "first", "second", etc. are only used to distinguish different objects, and cannot be understood as indicating or implying relative importance or implicitly indicating the number, specific order or primary and secondary relationship of the indicated technical features. In the description of the embodiments of the present application, the meaning of "multiple" is more than two, unless otherwise clearly and specifically defined.
[0073] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0074] In the description of the embodiments of the present application, the term "and / or" is only a description of the association relationship of the associated objects, indicating that there may be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0075] In the description of the embodiments of the present application, the term "multiple" refers to more than two (including two). Similarly, "multiple groups" refers to more than two groups (including two groups), and "multiple pieces" refers to more than two pieces (including two pieces).
[0076] At present, for the technical scenarios of video directing, it is usually necessary to complete the processing of video directing through the collaboration between the camera equipment (such as a camera) and the recording and broadcasting host. Therefore, it is necessary to reasonably design the layout of the scene, the collaboration between multiple different hardware devices such as the camera equipment and the recording and broadcasting host, and the software solution for each hardware device. Figure 1 , Figure 2 As shown, in this video directing scenario, there are multiple camera devices 10. Figure 1 , 2In the example, two camera devices 10 are used for explanation, and a recording and broadcasting host 20 and a display device 40 need to be set. In this example, multiple camera devices 10 and the recording and broadcasting host 20 need to be connected to the same router 30, so that multiple camera devices 10 and the recording and broadcasting host 20 can complete information exchange through the same router 30. Figure 2 As shown, the recording and broadcasting host 20 may also be used as a routing device to implement routing between the camera device 10 and the recording and broadcasting host 20. The recording and broadcasting host 20 is also connected to the display device 40 through a network.
[0077] based on Figure 1 , Figure 2 In the example shown, during the video directing process, after the camera device 10 obtains the video stream through shooting, it identifies the target frame in the video stream, and after processing the identified target frame or the video stream of the target frame based on the target frame, it sends the target frame or the video stream of the target frame to the recording and broadcasting device. The recording and broadcasting device determines the director video stream based on the target frame or the video stream of the target frame of each camera device, combined with the original video stream obtained from each camera device 10, and sends the director video stream to the display device 40 for display.
[0078] It can be seen that based on the existing processing method of this directing scene, it is necessary to configure multiple different types of equipment such as camera equipment, recording and broadcasting equipment, and display equipment at the same time, it is necessary to set the routing relationship between the camera equipment, recording and broadcasting equipment, and display equipment, and it is necessary to involve the software processing solutions of the camera equipment and recording and broadcasting equipment respectively, which has high hardware cost and complexity.
[0079] Based on this, after research, it was found that taking all-in-one machines such as recording and broadcasting all-in-one machines as an example, since all-in-one machines can provide powerful computing power, and all-in-one machines with large-screen display screens can also provide large-screen display screens, the processing of video directing can be realized through the all-in-one machine. The camera devices installed in various places only need to provide the video stream pulling address. The all-in-one machine can pull the video stream from each camera device, and perform a series of processing on the video stream, such as identifying the target frame, obtaining the close-up video stream, obtaining the director video stream and displaying it. Therefore, there is no need to deploy a variety of different devices. The processing of video directing can be realized only through the all-in-one machine, and there is no need to be restricted to the same router. The camera device only needs to provide the video stream pulling address, and when designing the software solution, it can also be done only for the software solution deployed in the all-in-one machine, thereby reducing the high cost of hardware combination and the high complexity of the deployment process.
[0080] Among them, by configuring a video stream pulling address for each camera device, such as an RTSP (Real Time Streaming Protocol) address, and configuring the video stream pulling address in the all-in-one machine, the all-in-one machine pulls the video stream from the video stream pulling address in real time, and performs visual perception on the pulled video stream through a computing processing unit, and selects and determines the target perception category based on the visual perception result, obtains a close-up video stream based on the video stream corresponding to the target perception category, and a tracking box path of the target perception category, and then obtains a director video stream based on the close-up video stream, and displays the director video stream.
[0081] Accordingly, the integrated machine processing method provided in the embodiment of the present application can be applied to Figure 3 In the application environment shown. Among them, the camera device 100 is used to capture images and provide video streams. The camera device 100 is provided with multiple, Figure 3 In the example, there are two camera devices. The integrated machine 200 obtains the video streams collected and provided by each camera device 100, performs visual perception on the video streams, and selects and determines the target perception category based on the visual perception result. Based on the video stream corresponding to the target perception category and the tracking frame path of the target perception category, a close-up video stream is obtained, and then a director video stream is obtained based on the close-up video stream, and the director video stream is displayed. In some specific examples, the integrated machine 200 can be a recording and broadcasting integrated machine, and a recording and broadcasting integrated machine with a large-screen display. In the following embodiments, the integrated machine 200 is an example of a recording and broadcasting integrated machine with a large-screen display.
[0082] In some embodiments, Figure 4 As shown, an integrated machine processing method is provided, which is applied to Figure 1 The all-in-one machine 200 in the embodiment is taken as an example to illustrate, and the following steps are included:
[0083] Step S402: Obtain video streams captured by at least two different camera devices.
[0084] A camera is a device used to capture video and provide video streams, that is, it can capture and output in real time. The camera type is not limited, as long as it can meet the needs of a specific scene. Taking the application in a recorder as an example, the camera can be a camera associated with the recorder.
[0085] In some embodiments, the camera device can provide a video stream in the form of an RTSP (Real Time Streaming Protocol) stream. That is, the camera device provides a video stream pull address as an RTSP server, and the integrated machine 200 can pull the video stream from the camera device in real time by subscribing to the RTSP address. Different camera devices have different pull addresses, so that video streams of different camera devices can be pulled.
[0086] Step S404: performing visual perception on the video stream to obtain a visual perception result, wherein the visual perception result includes: a perception category of the visual perception target and a tracking frame of the visual perception target.
[0087] There is no limit to the way of visually perceiving the video stream, and the visual perception algorithm used may be different based on different specific scenarios. Taking the application in teaching scenarios as an example, for the video stream obtained by the camera device shooting the student's screen, the algorithm for visually perceiving the video stream may include target detection, key point detection, multi-target tracking, hand-raising recognition, standing recognition and other algorithms; for the video stream obtained by the camera device shooting the teacher's screen, the algorithm for visually perceiving the video stream may include target detection, key point detection, single target tracking, blackboard writing action recognition and other algorithms, but are not limited to these.
[0088] It should be understood that for different technical scenarios and for different targets to be visually perceived, the visual perception method adopted and the method of determining the tracking frame of the visual perception target may be different. In response to the need to visually perceive multiple different types of targets in a video stream, multiple different visual perception targets can be deployed separately and algorithms for determining tracking frames can be used, or this can be achieved by deploying a multi-target recognition algorithm, which is not limited in the embodiments of the present application.
[0089] By performing video perception on the video stream, a visual perception result can be obtained, wherein the perception category of the visual perception target refers to the category of the visual perception target, such as raising a hand, standing up, writing on a blackboard, etc. For the visually perceived visual perception target, a tracking frame of the visual perception target can be obtained at the same time.
[0090] The tracking frame of the visually perceived target is determined based on the position of the visually perceived target in the video frame of the video stream. The specific method of determining the tracking frame of the visually perceived target from the video frame is not limited.
[0091] Step S406: Select and determine a target perception category from each of the perception categories in the visual perception result.
[0092] Performing visual perception on a video stream may obtain multiple visual perception results, and thus, a target perception category may be selected and determined based on the perception categories of the multiple visual perception results.
[0093] In some embodiments, selecting and determining a target perception category from each of the perception categories in the visual perception result includes:
[0094] The perception category of a preset category among the perception categories in the visual perception result is determined as a target perception category.
[0095] The specific method of determining the target perception category can be set differently based on different technology application scenarios. Taking the application in teaching scenarios as an example, suppose that the video stream obtained by the camera device shooting the student screen is visually perceived, and multiple different categories of visual perception targets such as shaking the head, nodding, raising the hand, and standing up are perceived. Since standing up may mean that there may be students who need to speak or are speaking, the standing up category can be determined as the target perception category. If the three different categories of visual perception targets of shaking the head, nodding, and raising the hand are perceived, since raising the hand means that there are students who want to speak, the raising hand category can be determined as the target perception category.
[0096] Therefore, when selecting and determining the target perception category, it can be determined based on the preset category, so that different perception categories can be set based on different business scenario requirements to meet the needs of different business scenarios.
[0097] Step S408: Based on the video stream corresponding to the target perception category and a tracking frame path based on the target perception category, a close-up video stream of the target perception category is obtained, wherein the tracking frame path is determined based on the tracking frame of the visual perception target corresponding to the target perception category.
[0098] The video stream corresponding to the target perception category refers to the video stream that determines the target perception category. Taking the target perception category of students standing up as an example, assuming that the target perception category is obtained by visually perceiving the video stream obtained by the camera device that shoots the student screen, the corresponding video stream is the video stream obtained by the camera device that shoots the student screen. Taking the target perception category of teacher writing on the blackboard as an example, assuming that the target perception category is obtained by visually perceiving the video stream obtained by the camera device that shoots the teacher screen, the corresponding video stream is the video stream obtained by the camera device that shoots the teacher screen.
[0099] The tracking frame path of the target perception category refers to the path formed by the tracking frame of the perception target of the target perception category in multiple video frames of the video stream. After selecting and determining the target perception category, the tracking frame path of the target perception category can be obtained, and then based on the tracking frame path of the target perception category and the corresponding video stream, a close-up video stream can be obtained.
[0100] There is no limitation on the method of obtaining the close-up video stream. In some embodiments, the close-up video stream can be obtained by performing cutout processing on the video stream by tracking the frame path.
[0101] Step S410: Based on the close-up video stream, obtain the director video stream and display the director video stream.
[0102] Based on the obtained special video stream, the director video stream can be obtained. There is no limit to the way to obtain the director video stream based on the close-up video stream, for example, the close-up video stream can be directly used as the director video stream, or the close-up video stream can be combined with the video stream as the director video stream.
[0103] Based on the all-in-one processing method of the embodiment of the present application, the all-in-one can obtain video streams from at least two different camera devices, perform visual perception on these video streams, determine the target perception category, and obtain a close-up video stream in combination with the corresponding video stream and tracking frame path of the target perception category, thereby obtaining a director video stream and displaying it. In this process, each camera device only needs to provide a video stream, and the all-in-one performs visual perception, determines the tracking frame path, obtains a close-up video stream of the target perception category, obtains the director video stream based on the close-up video stream and displays it. Since the camera device only needs to provide a video stream, all subsequent processing is performed by the all-in-one, and the all-in-one is displayed, which greatly reduces the cost of hardware equipment and hardware configuration, and thereby improves processing efficiency. Moreover, by determining the tracking frame path of the visual perception target of the target perception category, and obtaining the close-up video stream on this basis, it also helps to improve the smoothness of the obtained close-up video stream.
[0104] In some embodiments, the method for determining the tracking box path of the target perception category includes:
[0105] After selecting and determining the target perception category, a tracking frame path of the target perception category is determined based on the tracking frame of the visual perception target corresponding to the target perception category.
[0106] Therefore, after selecting and determining the target perception category, the tracking frame path is determined based on the tracking frame of the visual perception target of the target perception category. Therefore, the tracking frame path can be determined only for the selected target perception category, without having to determine the tracking frame path for all perception categories, thereby reducing the amount of processing.
[0107] In some embodiments, the method for determining the tracking box path of the target perception category includes:
[0108] After obtaining the visual perception result, generating a tracking frame path of each visual perception target based on the tracking frame of the visual perception target;
[0109] After selecting and determining the target perception category, extract the generated tracking box path of the target perception category.
[0110] Based on this embodiment, after obtaining the visual perception results, the corresponding tracking frame path can be determined for each visual perception target. After selecting and determining the target perception category, the tracking frame path of the target perception category can be directly extracted from the generated tracking frame path, which helps to improve the efficiency of obtaining the tracking frame path of the target perception category.
[0111] In some embodiments, based on the tracking frame of the visual perception target, a method of generating a tracking frame path of the visual perception target includes:
[0112] The tracking frame of the visual perception target is smoothed to obtain a tracking frame path of the tracking frame.
[0113] Based on this embodiment, after obtaining the tracking frames of the visually perceived target, these tracking frames are further smoothed to obtain the tracking frame paths. The smoothing process improves the smoothness of the obtained tracking frame paths. The corresponding video streams are then processed in combination with the tracking frame paths to improve the smoothness of the obtained close-up video streams.
[0114] The specific method of smoothing the tracking frame is not limited. Figure 5 As shown, in some embodiments, the tracking frame of the visual perception target is smoothed to obtain a tracking frame path of the tracking frame, including:
[0115] Step S502: Based on the video frame rate of the video stream in which the visual perception target is identified, interpolation and smoothing processing is performed on the tracking frame of the visual perception target to obtain a tracking frame path.
[0116] The video frame rate is a measure of the number of frames displayed in a video, usually expressed as frames per second (FPS) or Hertz (Hz). Therefore, by capturing the video frame rate of a video stream, we can know how many frames of video the video stream outputs per second.
[0117] When obtaining the tracking frame of the visual perception target based on the video stream, the tracking frame is usually detected and outputted by sampling, that is, the frame rate of the tracking frame will be lower than the video frame rate. Therefore, by performing interpolation and smoothing processing on the tracking frame based on the video frame rate, the tracking frame path obtained after the interpolation and smoothing processing can meet the smoothing requirements based on the video frame rate, thereby effectively reducing the jitter and stuttering of the tracking frame. On this basis, the corresponding video stream is processed to obtain a close-up video stream, thereby improving the smoothness of the obtained close-up video stream.
[0118] In some embodiments, reference Figure 5 As shown, before the above step S502 of performing interpolation and smoothing processing on the tracking frame of the visual perception target based on the video frame rate of the video stream of the visual perception target to obtain the tracking frame path, the following may also be included:
[0119] Step S501: determining whether the tracking frame of the visual perception target has translation jitter, and if translation jitter exists, eliminating the translation jitter of the tracking frame of the visual perception target.
[0120] The tracking frame has translation jitter, which means that the tracking frame jitters horizontally or vertically on the video screen.
[0121] Based on this embodiment, the existence of translation jitter in the tracking frame indicates that the tracking frame has obvious jitter. Therefore, by eliminating the translation jitter of the tracking frame, it is helpful to first roughly adjust the jitter of the tracking frame, which helps to improve the efficiency of tracking frame processing, thereby improving the efficiency of video directing.
[0122] There is no limitation on the method for determining whether the tracking frame has translational jitter. Two of the methods are described below as examples.
[0123] In some of the embodiments, when the distance between the center positions of two adjacent tracking frames in the tracking frame of the visual perception target is greater than a distance threshold, it is determined that the tracking frame of the visual perception target has translation jitter.
[0124] There is no limit to the method for determining the center position of the tracking frame. When the tracking frame is circular, the center of the circle can be used as the center position of the tracking frame. When the tracking frame is rectangular, the center of the rectangle can be used as the center position of the tracking frame. When the tracking frame is other shapes, the center of gravity can be obtained based on the method of determining the center of gravity of the shape, and the position of the center of gravity can be used as the center position of the tracking frame. When detecting a target and determining a tracking frame, a rectangular tracking frame is usually determined. Therefore, in the following embodiments, the tracking frame is a rectangular tracking frame as an example for description.
[0125] Among them, when obtaining the tracking frame of the visual perception target, the coordinate information of the determined tracking frame is usually obtained. Taking the tracking frame as a rectangular frame as an example, it can be the coordinates of the four vertices of the rectangular frame, or the coordinates of a vertex of the rectangular frame (such as the upper left corner vertex) and the horizontal length and vertical length, or the coordinates of the center point of the rectangular frame and the horizontal length and vertical length. The type of specific coordinate information is not limited. Therefore, after determining the tracking frame, the center position of the tracking frame can be determined based on the coordinate information of the two adjacent tracking frames, and then the distance between the center positions of the two tracking frames can be determined based on the center position of the tracking frame.
[0126] There is no limit to the setting method of the distance threshold, as long as it can be determined that there is translation jitter between two adjacent tracking frames.
[0127] Based on this embodiment, based on the distance between the center positions of two adjacent tracking frames, it can be determined whether the tracking frame has translational jitter. The determination method is simple and convenient, which helps to improve the efficiency of tracking frame processing.
[0128] In some of the embodiments, when a distance between any edges of two adjacent tracking frames in the same direction of the tracking frame of the visually perceived target is greater than a distance threshold, it can be determined that the tracking frame of the visually perceived target has translational jitter.
[0129] The distance between any edges of two adjacent tracking frames in the same direction may refer to the distance between the sides of the two tracking frames in the same direction. Taking the tracking frame as a rectangle as an example, it may be the distance between the upper side / lower side / left side / right side of the two adjacent tracking frames.
[0130] Based on this embodiment, based on the distance between any edges of two adjacent tracking frames in the same direction, it can be determined whether there is translational jitter in the tracking frame. The determination method is simple and convenient, which helps to improve the efficiency of tracking frame processing.
[0131] In some embodiments, eliminating the translation jitter of the tracking frame in step S501 may include:
[0132] Interpolation processing is performed on two adjacent tracking frames having translation jitter in the tracking frame of the visual perception target, so that there is no translation jitter between any two adjacent tracking frames after the interpolation processing.
[0133] The specific interpolation processing method is not limited. For example, based on the distance between the center positions of two adjacent tracking frames, one or more tracking frames whose distances to the two tracking frames are less than a distance threshold are added between the two adjacent tracking frames. It should be understood that after the tracking frames are added, the distance between any two adjacent tracking frames after interpolation processing is less than the distance threshold.
[0134] Based on this embodiment, when eliminating the translation jitter of the tracking frame, it can be achieved through interpolation processing. The method of eliminating the translation jitter is simple, convenient and easy to implement. In this processing method, since the distance between two adjacent tracking frames is required and compared with the distance threshold, it can also be called a threshold filtering method.
[0135] Among them, in the above step S502, based on the video frame rate of the video stream that identifies the visual perception target, the tracking frame of the visual perception target is interpolated and smoothed to obtain the tracking frame path. The specific method is not limited, as long as the frame rate of the tracking frame path after the interpolation and smoothing processing can meet the requirements of smooth playback.
[0136] In some embodiments, a smoothing value for interpolation and smoothing the tracking frame can be determined based on the video frame rate of the video stream that identifies the visual perception target, and the tracking frame can be interpolated and smoothed based on the smoothing value to obtain a tracking frame path, wherein the smoothing value represents the proportional relationship between the frame rate of the tracking frame path after the interpolation and smoothing process and the video frame rate, that is, one tracking frame corresponds to several frames of video.
[0137] Due to the special physiological structure of the human eye, if the frame rate of the video is higher than 16, it will be considered coherent, and this phenomenon is called visual persistence. In some special video output scenarios, such as game scenarios, if the frame rate is less than 30, there may be incoherence. Generally speaking, a high frame rate can produce a smoother video picture. For example, increasing the frame rate to 60 can significantly improve the smoothness.
[0138] Based on this, in some embodiments, the ratio of the video frame rate to the preset frame rate threshold may be rounded to obtain the smooth value. The preset frame rate threshold may be determined based on the requirement of smoothness. For example, if only the visual persistence phenomenon needs to be satisfied, the preset frame rate threshold may be set to 16. If the smooth display of the tracking frame is required, the preset frame rate threshold may be set to 30 or a value higher than 30.
[0139] In some embodiments, taking the smoothing value of 2 as an example, the tracking frame is interpolated and smoothed based on the smoothing value. After the tracking frame path is obtained, any tracking frame in the tracking frame path corresponds to two adjacent frames of video in the video stream, or in other words, every two adjacent frames of video correspond to one tracking frame.
[0140] Based on this embodiment, the tracking frame can be interpolated and smoothed based on the requirement for fluency, so that the processing amount can be controlled while meeting the requirements for smoothness and flow, and the processing efficiency can be improved at the same time.
[0141] In some embodiments, it is also possible to directly make the tracking frame path the same as the video frame rate without determining the smoothing value. In this case, the above step S502 performs interpolation and smoothing processing on the tracking frame of the visual perception target based on the video frame rate of the video stream of the visual perception target to obtain the tracking frame path, including:
[0142] The tracking frame of the visual perception target is interpolated and smoothed so that the frame rate of the tracking frame after the interpolation and smoothing process is the same as the video frame rate, and a tracking frame path is obtained.
[0143] Based on this embodiment, after the tracking frame is interpolated and smoothed based on the video frame rate of the video stream of the visual perception target, the frame rate of the obtained tracking frame path is the same as the video frame rate, so that the tracking frame and the video image have the same frame rate. Since the video screen is outputted, the user's visual experience is taken into consideration, and the video screen has a coherent and smooth effect. By obtaining a tracking frame path with the same frame rate as the video frame rate, a tracking frame path with the same coherent and smooth effect as the video screen can be obtained, so that the stability of the tracking frame can be ensured, and the jitter and stuttering of the tracking frame can be avoided. On this basis, the corresponding video stream is processed to obtain a close-up video stream, and the smoothness of the obtained close-up video stream can be improved accordingly.
[0144] When the tracking frame is interpolated and smoothed, the specific interpolation and smoothing method is not limited. For example, a Kalman filter may be used to perform the interpolation and smoothing process to ensure the real-time performance of the smooth tracking.
[0145] Based on the above-mentioned example, the principle of one of the tracking frame processing methods is described below by way of example.
[0146] refer to Figure 6 As shown, when performing target detection on a video screen (or a video frame of a video stream) and determining a tracking frame, detection may be performed every multiple video frames. Taking an interval of 5 video frames as an example, target detection may be performed on the 1st, 6th, 11th, 16th, 26th, and 31st video frames to determine the detection tracking frame, for example, Figure 6 The video frames s1, s6, s11, s16, s26, and s31 shown perform visual target perception and output tracking frames. It should be understood that in actual technical applications, the tracking frames may be detected and output at other different interval frequencies, and the number of interval frames before and after may be the same or different.
[0147] Since multiple different visual perception results may be identified in each video stream, after selecting and determining the target perception category, multiple tracking frames of the visual perception results corresponding to the target perception category can be obtained, such as tracking frames K1, K2, K3, K4, K5, and K6.
[0148] Based on the tracking frames K1, K2, K3, K4, K5, and K6, it is determined whether there is translation jitter between any two adjacent tracking frames. If there is translation jitter, the translation jitter is eliminated, that is, interpolation processing is performed between the two adjacent tracking frames with translation jitter. Figure 6In the figure, it is explained by taking the case where there is translation jitter between the tracking frames K2 and K3, and the translation jitter is eliminated by interpolating a tracking frame, and the inserted tracking frame is K'.
[0149] After eliminating the translation jitter, the tracking frame is interpolated and smoothed based on the video frame rate of the target perception category video stream, so that the frame rate of the tracking frame after interpolation and smoothing is the same as the video frame rate, and the tracking frame path is obtained. Since the frame rate of the tracking frame is the same as the video frame rate, one tracking frame can correspond to one video screen. As shown in FIG6, the tracking frames k1, k6, k11, k16, k26, and k31 after interpolation and smoothing correspond to video frames s1, s6, s11, s16, s26, and s31, respectively, as an example for explanation.
[0150] In some embodiments, Figure 7 As shown, the step S410 of obtaining the director video stream based on the close-up video stream may include:
[0151] Step S4100: combining the close-up video stream with the video stream to obtain and display a director video stream, wherein the director video stream includes the close-up video stream and the video stream.
[0152] Therefore, the determined director video stream contains both the video stream and the close-up video stream, which can make the obtained director video stream richer.
[0153] In some embodiments, the target perception categories include target perception categories corresponding to each of the video streams, the close-up video streams include close-up video streams corresponding to each target perception category, and the number of the target perception categories and the number of the close-up video streams are the same as the number of the camera devices.
[0154] The target perception category corresponding to the video stream may be one target perception category for each video stream. Taking the application in teaching scenarios as an example, for the video stream obtained by shooting the student screen, the corresponding target perception category may be raising hands or standing up, of course, it may also be other categories such as shaking the head or nodding. For the video stream obtained by shooting the classroom screen, the corresponding target perception category may be blackboard writing, etc., but is not limited to this.
[0155] Thus, based on this embodiment, a target perception category is selected and determined for each video stream of different camera devices, and a corresponding close-up video stream is determined for the corresponding video stream. The video stream of each camera device will get a corresponding close-up video stream, so if there are N camera devices, there will be N video streams and close-up video streams of these N video streams, which will help to improve the richness of the content of the video director.
[0156] Based on this, when obtaining the director video stream based on the close-up video stream, it can be set in combination with actual technical needs. For example, the director video stream can include all video streams and all close-up video streams at the same time, or one of the close-up video streams and the corresponding video stream obtained from the camera device, or only all the close-up video streams, or a combination of the close-up video stream and the video stream set based on actual needs.
[0157] Based on the above-mentioned embodiments, reference Figure 8 As shown, an example is given of an all-in-one recording and broadcasting machine in the field of teaching.
[0158] Taking the integrated recording and broadcasting machine used in the teaching field as an example, it can be equipped with two video cameras, one for shooting students' pictures, which can be called student machine in the embodiment of the present application, and the other for shooting teachers' pictures, which can be called teacher machine in the embodiment of the present application. The student machine and the teacher machine can provide video streams in the form of RTSP streams. Figure 8 In the illustrated embodiment, they are respectively referred to as student machine RTSP stream and teacher machine RTSP stream.
[0159] After the integrated recording and broadcasting machine subscribes to the RTSP stream of the student machine, it performs visual perception on the video stream of the student machine, such as target detection, key point detection, multi-target tracking, hand-raising recognition, standing recognition, etc., to obtain one or more visual perception results. After the integrated recording and broadcasting machine subscribes to the RTSP stream of the teacher machine, it performs visual perception on the video stream of the teacher machine, such as target detection, key point detection, single target tracking, blackboard writing action recognition, etc., to obtain one or more visual perception results.
[0160] For one or more visual perception results identified from the video stream of the student computer, a target perception category is selected from them. In the scenario of video directing, the perception categories of these visual perception results can also be called director codes.
[0161] For one or more visual perception results identified from the video stream of the student computer, or the target perception category selected therefrom, the corresponding tracking frame is smoothed to obtain a tracking frame path. For one or more visual perception results identified from the video stream of the teacher computer, or the target perception category selected therefrom, the corresponding tracking frame is smoothed to obtain a tracking frame path.
[0162] Subsequently, based on the video stream of the student machine and the tracking frame path of the target perception category of the video stream of the student machine, a cutout process is performed to render the student's close-up video stream from the student's panoramic video stream. Based on the video stream of the teacher machine and the tracking frame path of the target perception category of the video stream of the teacher machine, a cutout process is performed to render the teacher's close-up video stream from the teacher's panoramic video stream.
[0163] Then, based on the video stream of the student computer, the close-up video stream of the student, the video stream of the teacher computer, and the close-up video stream of the teacher, the director video stream is obtained, and the obtained director video stream is displayed and played.
[0164] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0165] Based on the same inventive concept, the embodiment of the present application also provides an integrated machine processing device for implementing the integrated machine processing method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more integrated machine processing device embodiments provided below can refer to the limitations of the integrated machine processing method above, and will not be repeated here.
[0166] In one embodiment, Fig. 9 As shown, an all-in-one processing device is provided, including: a video stream acquisition module 901, a visual perception module 902, a target category determination module 903, a close-up video stream acquisition module 904 and a director video stream acquisition module 905, wherein:
[0167] A video stream acquisition module 901 is used to acquire video streams captured by at least two different camera devices;
[0168] A visual perception module 902 is used to perform visual perception on the video stream to obtain a visual perception result, wherein the visual perception result includes: a perception category of a visual perception target and a tracking frame of the visual perception target;
[0169] A target category determination module 903, configured to select and determine a target perception category from each of the perception categories in the visual perception result;
[0170] A close-up video stream acquisition module 904 is used to obtain a close-up video stream of the target perception category based on the video stream corresponding to the target perception category and a tracking frame path based on the target perception category, wherein the tracking frame path is determined based on the tracking frame of the visual perception target corresponding to the target perception category;
[0171] The director video stream acquisition module 905 is used to obtain the director video stream based on the close-up video stream and display the director video stream.
[0172] In some embodiments, the target category determination module 903 is used to determine a preset category of perception categories from among the perception categories in the visual perception result as a target perception category.
[0173] In some embodiments, the device further comprises a tracking frame path determination module for determining a tracking frame path of the target perception category based on the tracking frame of the visual perception target corresponding to the target perception category.
[0174] In some embodiments, the device further comprises a tracking frame path determination module, which is used to generate a tracking frame path of each visual perception target based on the tracking frame of the visual perception target after obtaining the visual perception result;
[0175] At this time, the close-up video stream acquisition module 904 is used to extract the generated tracking frame path of the target perception category after the target category determination module 903 selects and determines the target perception category.
[0176] In some embodiments, the tracking frame path determination module is used to perform smoothing processing on the tracking frame of the visual perception target to obtain a tracking frame path of the tracking frame.
[0177] In some embodiments, the tracking frame path determination module is used to perform interpolation and smoothing processing on the tracking frame of the visual perception target based on the video frame rate of the video stream that identifies the visual perception target, so as to obtain the tracking frame path.
[0178] In some embodiments, the tracking frame path determination module is also used to determine whether there is translation jitter in the tracking frame of the visual perception target; if there is translation jitter, eliminate the translation jitter of the tracking frame of the visual perception target, and after eliminating the translation jitter, based on the video frame rate of the video stream that identifies the visual perception target, perform interpolation and smoothing processing on the tracking frame of the visual perception target to obtain the tracking frame path.
[0179] In some embodiments, the tracking frame path determination module is used to determine that there is translation jitter in the tracking frame of the visual perception target when the distance between the center positions of two adjacent tracking frames in the tracking frame of the visual perception target is greater than a distance threshold.
[0180] In some embodiments, the tracking frame path determination module is used to determine that there is translation jitter in the tracking frame of the visual perception target when the distance between any edges of two adjacent tracking frames in the same direction in the tracking frame of the visual perception target is greater than a distance threshold.
[0181] In some embodiments, the tracking frame path determination module is used to interpolate two adjacent tracking frames in the tracking frame of the visual perception target that have translation jitter, so that there is no translation jitter between any two adjacent tracking frames after the interpolation process.
[0182] In some embodiments, a tracking frame path determination module is used to determine a smoothing value for interpolation and smoothing of the tracking frame based on the video frame rate of the video stream that identifies the visual perception target, and to perform interpolation and smoothing on the tracking frame based on the smoothing value to obtain a tracking frame path, wherein the smoothing value represents a proportional relationship between the frame rate of the tracking frame path after interpolation and smoothing and the video frame rate.
[0183] In some embodiments, the tracking frame path determination module is used to perform interpolation and smoothing processing on the tracking frame of the visual perception target so that the frame rate of the tracking frame after the interpolation and smoothing processing is the same as the video frame rate, thereby obtaining the tracking frame path.
[0184] In some embodiments, the director video stream acquisition module 905 is used to combine the close-up video stream with the video stream to obtain and display the director video stream, and the director video stream includes the close-up video stream and the video stream.
[0185] In some embodiments, the target perception categories include target perception categories corresponding to each of the video streams, the close-up video streams include close-up video streams corresponding to each target perception category, and the number of the target perception categories and the number of the close-up video streams are the same as the number of the camera devices.
[0186] Each module in the above-mentioned all-in-one processing device can be implemented in whole or in part by software, hardware or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of the processor in the all-in-one machine in the form of hardware, or can be stored in the memory in the all-in-one machine in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.
[0187] In one embodiment, an all-in-one machine is provided. The all-in-one machine may be a recording and broadcasting all-in-one machine with a display screen. The internal structure diagram thereof may be as follows: Fig.10 As shown. The all-in-one machine includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the all-in-one machine is used to provide computing and control capabilities. The memory of the all-in-one machine includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the all-in-one machine is used to communicate with an external terminal in a wired or wireless manner, such as pulling a video stream captured by a camera device from a camera device. The wireless method can be implemented through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, an all-in-one machine processing method is implemented. The display screen of the all-in-one machine can be a liquid crystal display screen or an electronic ink display screen, and specifically can be a spliced display screen formed by splicing multiple display screens. The input device of the all-in-one machine can be a touch layer covered on the display screen, or a key, trackball or touchpad set on the housing of the all-in-one machine, or an external keyboard, touchpad or mouse.
[0188] Those skilled in the art will understand that Fig.10 The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the all-in-one machine to which the scheme of the present application is applied. The specific all-in-one machine may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0189] In one embodiment, an all-in-one machine is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the steps of the all-in-one machine processing method in any of the embodiments described above are implemented.
[0190] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the all-in-one processing method in any of the embodiments described above are implemented.
[0191] In one embodiment, a computer program product is provided, including a computer program, which, when executed by a processor, implements the steps of the all-in-one machine processing method in any of the embodiments described above.
[0192] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.
[0193] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0194] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0195] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. An all-in-one processing method, characterized in that: The integrated machine is a recording and broadcasting integrated machine, and the method comprises: Obtain video streams captured by at least two different camera devices; Performing visual perception on the video stream to obtain a visual perception result, wherein the visual perception result includes: a perception category of a visual perception target and a tracking frame of the visual perception target; Selecting and determining a target perception category from each of the perception categories in the visual perception result; Obtaining a close-up video stream of the target perception category based on the video stream corresponding to the target perception category and a tracking frame path based on the target perception category, wherein the tracking frame path is determined based on the tracking frame of the visual perception target corresponding to the target perception category; In combination with the close-up video stream and the video stream, a director video stream is obtained and displayed, the director video stream including the close-up video stream and the video stream, the target perception categories including target perception categories corresponding to each of the video streams, the close-up video stream including close-up video streams corresponding to each target perception category, the number of the target perception categories and the number of the close-up video streams are the same as the number of the camera devices.
2. The method according to claim 1, characterized in that The method for determining the tracking frame path of the target perception category includes: After selecting and determining the target perception category, determining a tracking frame path of the target perception category based on the tracking frame of the visual perception target corresponding to the target perception category; or After obtaining the visual perception result, generating a tracking frame path of each visual perception target based on the tracking frame of the visual perception target; After selecting and determining the target perception category, extract the generated tracking box path of the target perception category.
3. The method according to claim 1, characterized in that Based on the tracking frame of the visual perception target, a method of generating a tracking frame path of the visual perception target includes: The tracking frame of the visual perception target is smoothed to obtain a tracking frame path of the tracking frame.
4. The method according to claim 3, characterized in that The step of smoothing the tracking frame of the visually perceived target to obtain a tracking frame path of the tracking frame includes: Based on the video frame rate of the video stream that identifies the visual perception target, interpolation and smoothing processing is performed on the tracking frame of the visual perception target to obtain a tracking frame path.
5. The method according to claim 4, characterized in that The step of smoothing the tracking frame of the visually perceived target to obtain a tracking frame path of the tracking frame further includes: Based on the video frame rate of the video stream in which the visual perception target is identified, interpolation and smoothing processing is performed on the tracking frame of the visual perception target to obtain a tracking frame path, determining whether the tracking frame of the visual perception target has translation jitter; In the case where translation jitter exists, the translation jitter of the tracking frame of the visual perception target is eliminated.
6. The method according to claim 4, characterized in that The step of performing interpolation and smoothing processing on the tracking frame of the visual perception target based on the video frame rate of the video stream of the visual perception target to obtain a tracking frame path includes: Based on the video frame rate of the video stream based on which the visual perception target is identified, a smoothing value for interpolation and smoothing of the tracking frame is determined, and based on the smoothing value, the tracking frame is interpolated and smoothed to obtain a tracking frame path, wherein the smoothing value represents a proportional relationship between the frame rate of the tracking frame path after the interpolation and smoothing process and the video frame rate.
7. The method according to claim 4, characterized in that The step of performing interpolation and smoothing processing on the tracking frame of the visual perception target based on the video frame rate of the video stream of the visual perception target to obtain a tracking frame path includes: The tracking frame of the visual perception target is interpolated and smoothed so that the frame rate of the tracking frame after the interpolation and smoothing process is the same as the video frame rate, and a tracking frame path is obtained.
8. An all-in-one processing device, characterized in that: The all-in-one machine is a recording and broadcasting all-in-one machine, and the device comprises: A video stream acquisition module, used to acquire video streams captured by at least two different camera devices; A visual perception module, used to perform visual perception on the video stream to obtain a visual perception result, wherein the visual perception result includes: a perception category of a visual perception target and a tracking frame of the visual perception target; A target category determination module, used for selecting and determining a target perception category from each of the perception categories in the visual perception result; a close-up video stream acquisition module, configured to obtain a close-up video stream of the target perception category based on the video stream corresponding to the target perception category and a tracking frame path based on the target perception category, wherein the tracking frame path is determined based on the tracking frame of the visual perception target corresponding to the target perception category; A director video stream acquisition module is used to combine the close-up video stream with the video stream to obtain and display the director video stream, wherein the director video stream includes the close-up video stream and the video stream, the target perception category includes the target perception category corresponding to each of the video streams, the close-up video stream includes the close-up video stream corresponding to each target perception category, and the number of the target perception categories and the number of the close-up video streams are the same as the number of the camera devices.
9. An all-in-one machine, comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: The all-in-one machine is an all-in-one recording and broadcasting machine, and the processor implements the steps of any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
