CN108124186B - Switching control method, device and system for video recording and playing - Google Patents
Switching control method, device and system for video recording and playing Download PDFInfo
- Publication number
- CN108124186B CN108124186B CN201611073984.1A CN201611073984A CN108124186B CN 108124186 B CN108124186 B CN 108124186B CN 201611073984 A CN201611073984 A CN 201611073984A CN 108124186 B CN108124186 B CN 108124186B
- Authority
- CN
- China
- Prior art keywords
- area
- detection
- time period
- visual media
- video recording
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/442—Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
- H04N21/44213—Monitoring of end-user related data
- H04N21/44222—Analytics of user selections, e.g. selection of programs or purchase activity
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/432—Content retrieval operation from a local storage medium, e.g. hard-disk
- H04N21/4325—Content retrieval operation from a local storage medium, e.g. hard-disk by playing back content from the storage medium
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/60—Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client
- H04N21/65—Transmission of management data between client and server
- H04N21/658—Transmission by the client directed to the server
- H04N21/6587—Control parameters, e.g. trick play commands, viewpoint selection
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Social Psychology (AREA)
- Computer Networks & Wireless Communication (AREA)
- Television Signal Processing For Recording (AREA)
Abstract
The embodiment of the invention discloses a switching control method, a device and a system for video recording and playing, wherein the method comprises the following steps: acquiring a corresponding visual medium for detection in an abnormal switching time period; analyzing a moving area of a moving target in the visual medium for detection, wherein the moving area is positioned at the boundary of two adjacent video areas; determining the motion area as a shielding area; and when detecting that the moving target in the visual medium for detection enters the shielding area from one of the two adjacent video areas, refusing to switch the video recording and playing picture from the video recording area to the other video recording area of the two adjacent video areas. By applying the technical scheme provided by the embodiment of the invention, the video recording and playing effect is improved.
Description
Technical Field
The invention relates to the technical field of computers, in particular to a switching control method, a device and a system for video recording and playing.
Background
At present, when video recording and playing are carried out, a worker inputs equipment parameters into recording and playing equipment, and the recording and playing equipment carries out recording and playing according to the input equipment parameters. Here, the device parameters include: the angle of rotation of the device, the speed of rotation of the device, etc. After the equipment parameters are input into the recording and broadcasting equipment, the recording and broadcasting equipment generally does not need to adjust any more, and the recording and broadcasting equipment always records and broadcasts the recorded and broadcast personnel according to the equipment parameters.
In a video recording and playing system, a recording and playing device often needs to record and play moving objects in a plurality of recording areas. Taking a teaching recording and broadcasting as an example, the moving targets are a teacher in a teacher area (video area 1) and students in a student area (video area 2), and if the teacher in the video area 1 is currently recorded and broadcasted and the state of the students in the other video area 2 changes (such as lifting hands, standing up, squatting down or walking), the video recording and broadcasting picture of the recording and broadcasting equipment is switched from the video area 1 to the video area 2, so that the dynamic change of recording and broadcasting to each video area is ensured, and the recording and broadcasting effect is ensured.
However, when a moving object moves at the junction of two or more video areas, for example: the teacher moves at the juncture of the teacher area and the student area, and the recording and playing equipment can switch the video recording area of the video recording and playing picture back and forth, so that the situation that the video recording area is switched repeatedly occurs in the video recording and playing picture in the final recorded and played video, and the problem of poor recorded and played video effect is caused.
Disclosure of Invention
The embodiment of the invention discloses a switching control method, a device and a system for video recording and playing, which aim to improve the video recording and playing effect.
In order to achieve the above object, an embodiment of the present invention discloses a switching control method for video recording and playing, where the method includes:
acquiring a corresponding visual medium for detection in an abnormal switching time period;
analyzing a moving area of a moving target in the visual medium for detection, wherein the moving area is positioned at the boundary of two adjacent video areas;
determining the motion area as a shielding area;
and when detecting that the moving target in the visual medium for detection enters the shielding area from one of the two adjacent video areas, refusing to switch the video recording and playing picture from the video recording area to the other video recording area of the two adjacent video areas.
Optionally, before the step of obtaining the corresponding visual media for detection in the abnormal switching time period, the method further includes:
and analyzing the switching information of the video recording and playing to obtain an abnormal switching time period.
Optionally, the step of analyzing the switching information according to video recording and playing to obtain an abnormal switching time period includes:
acquiring the switching times of a video area in a time period of a first preset duration before the current moment;
judging whether the switching times are larger than a preset threshold value or not;
if so, determining a time period of a first preset duration before the current time as an abnormal switching time period.
Optionally, the step of analyzing the moving area of the moving object in the visual medium for detection includes:
acquiring each position coordinate of a moving target in the visual media for detection in a preset image coordinate system;
determining the position of a target pixel point corresponding to each acquired position coordinate according to the corresponding relation between the position coordinates stored in advance and the positions of the pixel points in the image;
and determining a region formed by the positions of all the destination pixel points in the image as a motion region of the moving object in the visual medium for detection.
Optionally, the method further includes:
and acquiring personalized information of the moving target in the visual media for detection, and correspondingly storing the shielding area and the personalized information.
Optionally, before the step of obtaining the corresponding visual media for detection in the abnormal switching time period, the method further includes:
judging whether a special shielding area corresponding to the personalized information of the moving target in the visual media for detection is stored or not;
if the special shielding area is saved, the special shielding area is used as a parameter of recording and broadcasting equipment for switching control;
and if not, switching control is carried out by taking the default shielding area as a parameter of the recording and playing equipment.
Optionally, the step of obtaining the visual media for detection corresponding to the abnormal switching time period includes:
when the special shielding area corresponding to the personalized information of the moving target in the visual media to be detected is stored, acquiring the visual media to be detected within a second preset time period, or when the special shielding area corresponding to the personalized information of the moving target in the visual media to be detected is not stored, acquiring the visual media to be detected within a third preset time period; the second preset time length is longer than the third preset time length;
and acquiring the corresponding visual media for detection in the abnormal switching time period from the visual media for detection.
In order to achieve the above object, an embodiment of the present invention further discloses a switching control device for video recording and playing, where the device includes:
the media acquisition unit is used for acquiring the corresponding visual media for detection in the abnormal switching time period;
the area analysis unit is used for analyzing a motion area of a motion target in the visual medium for detection, and the motion area is positioned at the boundary of two adjacent video areas;
a region determination unit configured to determine the motion region as a mask region;
and the first switching control unit is used for refusing to switch the video recording and playing picture from the video recording area to the other video recording area in the two adjacent video recording areas when detecting that the moving target in the visual medium for detection enters the shielding area from one of the two adjacent video recording areas.
Optionally, the apparatus further comprises:
and the time analysis unit is used for analyzing and obtaining the abnormal switching time period according to the switching information of the video recording and playing before the corresponding visual media for detection in the abnormal switching time period is obtained.
Optionally, the time analysis unit is specifically configured to:
acquiring the switching times of a video area in a time period of a first preset duration before the current moment;
judging whether the switching times are larger than a preset threshold value or not;
if so, determining a time period of a first preset duration before the current time as an abnormal switching time period.
Optionally, the area analysis unit is specifically configured to:
acquiring each position coordinate of a moving target in the visual media for detection in a preset image coordinate system;
determining the position of a target pixel point corresponding to each acquired position coordinate according to the corresponding relation between the position coordinates stored in advance and the positions of the pixel points in the image;
and determining a region formed by the positions of all the destination pixel points in the image as a motion region of the moving object in the visual medium for detection.
Optionally, the apparatus further comprises:
and the personalized information acquisition unit is used for acquiring the personalized information of the moving target in the visual media for detection and correspondingly storing the shielding area and the personalized information.
Optionally, the apparatus further comprises:
the area judgment unit is used for judging whether a special shielding area corresponding to the personalized information of the moving target in the visual media for detection is stored or not before the corresponding visual media for detection in the abnormal switching time period is acquired;
the second switching control unit is used for switching and controlling the special shielding area as a parameter of the recording and broadcasting equipment under the condition that the judgment result of the area judgment unit is yes;
and the third switching control unit is used for switching and controlling the default shielding area as the parameter of the recording and playing equipment under the condition that the judgment result of the area judgment unit is negative.
Optionally, the media acquiring unit is specifically configured to:
when the special shielding area corresponding to the personalized information of the moving target in the visual media to be detected is stored, acquiring the visual media to be detected within a second preset time period, or when the special shielding area corresponding to the personalized information of the moving target in the visual media to be detected is not stored, acquiring the visual media to be detected within a third preset time period; the second preset time length is longer than the third preset time length;
and acquiring the corresponding visual media for detection in the abnormal switching time period from the visual media for detection.
In order to achieve the above object, an embodiment of the present invention further discloses a system for controlling switching between video recording and playing, where the system includes: the system comprises acquisition equipment, a data processing server and recording and broadcasting equipment;
the acquisition equipment is used for acquiring the visual media for detection corresponding to the abnormal switching time period and sending the visual media for detection to the data processing server;
the data processing server is used for analyzing a moving area of a moving target in the visual medium for detection, wherein the moving area is positioned at the boundary of two adjacent video areas; determining the motion area as a shielding area; sending the shielding area to the recording and broadcasting equipment;
and the recording and playing device is used for refusing to switch the video recording and playing picture from the video recording area to the other video recording area in the two adjacent video recording areas when detecting that the moving target in the visual medium for detection enters the shielding area from one of the two adjacent video recording areas.
Optionally, the acquisition device is further configured to acquire each position coordinate of the moving object in the visual media for detection in a preset image coordinate system, and send each determined position coordinate to the data processing server;
the data processing server is specifically configured to:
and determining the area formed by each determined position coordinate as the motion area of the moving object in the visual media for detection.
Optionally, the acquisition device corresponds to the recording and playing device one to one.
The embodiment of the invention provides a switching control method, a device and a system for video recording and broadcasting, wherein a corresponding visual media for detection in an abnormal switching time period is obtained, a moving area of a moving target in the visual media for detection is analyzed, the moving area is positioned at the boundary of two adjacent video areas, and the moving area is determined as a shielding area; when detecting that the moving object in the visual medium for detection enters the shielding area from one of the two adjacent video areas, refusing to switch the video recording and playing picture from the video recording area to the other video recording area of the two adjacent video areas. Therefore, in the embodiment of the invention, when the moving target is positioned in the shielding area, the video recording area of the video recording and playing picture is refused to be switched, the switching times of the video recording area are reduced, and the video recording and playing effect is effectively improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a video recording and playing switching control system according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a video recording and playing switching control method according to an embodiment of the present invention;
fig. 3 is another schematic flow chart of a video recording and playing switching control method according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a shielding area in video recording and playing according to an embodiment of the present invention;
fig. 5 is another schematic flow chart of a video recording and playing switching control method according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a switching control apparatus for video recording and playing according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of another switching control apparatus for video recording and playing according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The present invention will be described in detail below with reference to specific examples.
Fig. 1 is a schematic structural diagram of a switching control system for video recording and playing provided in an embodiment of the present invention, where the video recording and playing system includes: the system comprises acquisition equipment 100, a data processing server 200 and recording and broadcasting equipment 300; here, the data processing server 200 may be located on the same physical machine as the acquisition device 100, or may be located on the same physical machine as the recording and playing device 300; in addition, the acquisition device 100, the data processing server 200, and the recording and playing device 300 may be located on the same physical machine, which is not limited in the embodiment of the present invention.
Generally, a switching control system may include a plurality of capture devices 100, and one capture device 100 corresponds to one video recording area.
The acquisition device 100 is configured to acquire a visual media for detection corresponding to an abnormal switching time period, and send the visual media for detection to the data processing server 200; the visual medium for detection may be continuous video or discontinuous video frames.
In one embodiment of the present invention, the acquisition device 100 may be a detection camera. The acquisition device 100 may pre-store an image including a moving target, and after acquiring the visual media for detection, may perform image recognition on the visual media for detection according to the pre-stored image to determine the moving target in the visual media for detection; in addition, an image coordinate system may be set according to the size of the pixel of the moving object in each frame of video (which may be understood as an image) of the visual detection medium, and then each position coordinate of the moving object in the visual detection medium in the preset image coordinate system may be determined, and each determined position coordinate may be sent to the data processing server 200, so that the data processing server 200 may determine the area where each determined position coordinate is distributed as the moving area of the moving object in the visual detection medium, and then determine the moving area as the mask area.
Generally, the image coordinate systems corresponding to different capturing devices 100 are different, and in order to distinguish the coordinates of different capturing devices 100, the position coordinates acquired by different capturing devices 100 may be stored separately. Taking the teaching system as an example, the acquisition device 100 may generally include: a teacher detection camera and a student detection camera, in which case the position coordinates acquired by the teacher detection camera and the position coordinates acquired by the student detection camera may be separately stored in different storage areas of the data processing server 200.
The data processing server 200 is used for analyzing a motion area of a moving target in the visual medium for detection, wherein the motion area is positioned at the boundary of two adjacent video areas; determining a motion region as a shielding region; the masked area is sent to the recording and playing device 300.
The recording and playing device 300 is configured to refuse to switch the video recording and playing picture from one of two adjacent recording areas to the other of the two adjacent recording areas when it is detected that the moving object in the visual medium for detection enters the shielding area from the one of the two adjacent recording areas.
In an embodiment of the present invention, before the acquisition device 100 acquires the visual media for detection, a one-to-one correspondence relationship between the acquisition device 100 and the recording and playing device 300 may be established, so as to ensure that the data processing service 200 acquires the shielding region determined by the visual media for detection according to the acquisition device 100, and the shielding region is specific to a certain recording and playing device 300, and then the recording and playing device 300 may record and play according to the shielding region specific to itself, so as to effectively improve the effect of recording and playing the video.
By applying the embodiment, the corresponding visual media for detection in the abnormal switching time period is obtained, the moving area of the moving target in the visual media for detection is analyzed, the moving area is positioned at the boundary of two adjacent video areas, and the moving area is determined as the shielding area; when detecting that the moving object in the visual medium for detection enters the shielding area from one of the two adjacent video areas, refusing to switch the video recording and playing picture from the video recording area to the other video recording area of the two adjacent video areas. Therefore, in the embodiment of the invention, when the moving target is positioned in the shielding area, the video recording area of the video recording and playing picture is refused to be switched, the switching times of the video recording area are reduced, and the video recording and playing effect is effectively improved.
Referring to fig. 2, fig. 2 is a schematic flow chart of a video recording and playing switching control method according to an embodiment of the present invention, where the method includes:
s201: acquiring a corresponding visual medium for detection in an abnormal switching time period;
generally, a long section of visual media for detection is obtained, and the visual media for detection may include two types of visual media for detection: one, the corresponding visual media for detection in the normal switching time period; and the other is a corresponding visual medium for detection in the abnormal switching time period.
In an embodiment of the present invention, in order to facilitate obtaining the visual media for detection corresponding to the abnormal switching time period, before obtaining the visual media for detection corresponding to the abnormal switching time period, the abnormal switching time period may be obtained according to analysis of switching information of video recording and playing, and then the visual media for detection corresponding to the abnormal switching time period may be obtained.
In general, the switching information of video recording and playing may include: and switching times of the video area in a time period of a first preset time before the current time. If the switching times within the first preset time length are less than or equal to a preset threshold value, determining that the switching of the current video area is normal; if the switching times within the first preset time length are greater than a preset threshold value, it is determined that the switching of the current video area is abnormal, and a time period of the first preset time length before the current time can be determined as an abnormal switching time period.
For example, the first preset time length is 2s, the current time is 10:00:00, the preset threshold is 10 times, if the counted switching times of the video recording area is 11 times within 2s before 10:00:00, namely 9:59:58-10:00:00, and 11>10, it can be determined that the switching of the video recording area is abnormal, and the time period of 9:59:58-10:00 is an abnormal switching time period of video recording and playing.
S202: analyzing and detecting a moving area of a moving target in the visual media, wherein the moving area is positioned at the boundary of two adjacent video areas;
in an embodiment of the present invention, referring to fig. 3, on the basis of fig. 2, S202 may include:
s2021: acquiring each position coordinate of a moving target in a visual medium for detection in a preset image coordinate system;
generally, an image coordinate system may be preset according to the size of a pixel of a moving object in each frame of video of a visual medium for detection, and each position coordinate of the moving object may be determined according to the preset image coordinate system.
S2022: determining the position of a target pixel point corresponding to each acquired position coordinate according to the corresponding relation between the position coordinates stored in advance and the positions of the pixel points in the image;
generally, a correspondence between position coordinates and pixel positions in an image may be stored in advance, each position coordinate corresponds to a pixel position in a video frame (which may be understood as an image) acquired by a recording and playing device, and a destination pixel position corresponding to each acquired position coordinate may be determined according to the correspondence.
S2023: and determining a region formed by all the positions of the destination pixel points in the image as a motion region of the moving object in the visual medium for detection.
Each position coordinate corresponds to a pixel point position, at least one target pixel point position can be determined according to the obtained at least one position coordinate, all pixel point positions are converged on one image, a region where the pixel point positions are distributed can be determined, and the region can be determined as a motion region of a moving target in an abnormal switching time period. As shown in fig. 4, each point in fig. 4 is a determined destination pixel point position, and at this time, the area D where all the points are distributed may be determined as a moving area of the moving object in the abnormal switching time period.
S203: determining the motion area as a shielding area;
at this time, the mask area may be used as a parameter of the recording and playing device to perform switching control on the recording and playing device.
S204: when detecting that the moving object in the visual medium for detection enters the shielding area from one of the two adjacent video areas, refusing to switch the video recording and playing picture from the video recording area to the other video recording area of the two adjacent video areas.
To explain by taking the example in S2023, as shown in fig. 4, if 2 adjacent video recording areas exist currently, which are the video recording area 1 and the video recording area 2, respectively, and the area D is a shielding area, when it is detected that the moving object enters the area D from the video recording area 1, that is, when it is detected that the pixel point position of the moving object in the video frame is located in the area D, the video recording and playing screen is rejected to be switched from the video recording area 1 to the video recording area 2; when the moving object enters the area D from the video recording area 2, the switching of the video recording and playing picture from the video recording area 2 to the video recording area 1 is refused. Therefore, the switching times of the video recording areas are reduced, and the effect of recording and playing videos is effectively improved.
In an embodiment of the present invention, in order to avoid a problem that a beginning part of a recorded and played video of a moving target is not good in effect due to a shielding area obtained again when the same moving target is recorded and played again, after the shielding area is determined, personalized information of the moving target in a visual medium for detection may be obtained, and the personalized information of the moving target and the shielding area are stored correspondingly.
In this case, referring to fig. 5, on the basis of fig. 2, before performing S201, the method may further include:
s501: judging whether a special shielding area corresponding to the personalized information of the moving target in the visual media for detection is stored or not; if yes, executing S502; otherwise, executing S503;
s502: taking the special shielding area as a parameter of recording and broadcasting equipment to perform switching control;
s503: and taking the default shielding area as a parameter of the recording and playing equipment for switching control.
It is worth mentioning that if the personalized information of the moving object in the visual media for detection is saved, it can be understood as follows: after the shielding area of the moving target is obtained, a better recorded broadcast video effect can be obtained according to the obtained shielding area, and only the obtained shielding area needs to be corrected, at this time, the visual media to be detected can be obtained every second preset time length, that is, the visual media to be detected in the second preset time length are obtained, and the corresponding visual media to be detected in the abnormal switching time period are obtained from the visual media to be detected; in this case, the determined masked region is for the visual medium for detection within the second preset time period;
if the personalized information of the moving object in the visual media for detection is not stored, it can be understood that: if the shielding area of the moving target is not obtained, the shielding area needs to be quickly obtained, and at this time, the visual media to be detected can be obtained every third preset time length, that is, the visual media to be detected within the third preset time length is obtained, and the corresponding visual media for detection within the abnormal switching time period is obtained from the visual media to be detected; in this case, the determined masked region is for the visual medium for detection within the third preset time period.
The second preset time length is longer than the third preset time length, and the preset time length is the preset time length.
The following describes the flow of the switching control method in connection with a teaching system example: for example, if the second predetermined time period is 20 minutes, the third predetermined time period is 5 minutes;
1. at the beginning of a class, the personalized information of a teacher can be determined according to a prestored class schedule, such as the name, the class name and the teaching style (lively, dull and tedious and the like);
2. judging whether the special shielding area of the teacher is stored or not according to the personalized information of the teacher;
3. if the special shielding area of the teacher is stored, the special shielding area is used as a parameter of recording and broadcasting equipment for switching control; meanwhile, every 20 minutes, analyzing the visual media for detection of the teacher acquired in the 20 minutes, and re-determining the target shielding area; comparing the special shielding area with the target shielding area, if the error between the special shielding area and the target shielding area exceeds a preset range, storing the target shielding area as a special shielding area parameter of the teacher, and performing video recording control as a parameter of recording and broadcasting equipment; if the error between the two does not exceed the preset range, other processing is not carried out;
4. if the special shielding area of the teacher is not stored, switching control is carried out by taking the default shielding area as a parameter of recording and broadcasting equipment; meanwhile, every 5 minutes, analyzing the visual media for detection of the teacher acquired in the 5 minutes, and re-determining the target shielding area; taking the target shielding area as a parameter of recording and broadcasting equipment to perform switching control; in addition, when the class time arrives, the finally determined target mask area is stored as the dedicated mask area for the teacher.
In an embodiment of the present invention, in order to determine the style type of the moving object, for example, a teaching style (style type) of a teacher often needs to be determined in a teaching system, a conversion model including a correspondence between a mask region and the style type may be preset, and after the mask region of the moving object is determined, the determined mask region may be input into the conversion model to determine the style type of the moving object.
Taking the teaching system as an example, the conversion model may be an ST (Student teachers) conversion model, and according to the ST conversion model, the style type of the Teacher may be determined by combining the shielded area for the Teacher. The genre types may include: lively, dull and stuffy, and the like. Compared with the method that teacher classes are determined through on-site class attending and scoring of teaching and research personnel, the method avoids the influence of subjective factors and determines the class types of teachers more accurately.
By applying the embodiment, the corresponding visual media for detection in the abnormal switching time period is obtained, the moving area of the moving target in the visual media for detection is analyzed, the moving area is positioned at the boundary of two adjacent video areas, and the moving area is determined as the shielding area; when detecting that the moving object in the visual medium for detection enters the shielding area from one of the two adjacent video areas, refusing to switch the video recording and playing picture from the video recording area to the other video recording area of the two adjacent video areas. Therefore, in the embodiment of the invention, when the moving target is positioned in the shielding area, the video recording area of the video recording and playing picture is refused to be switched, the switching times of the video recording area are reduced, and the video recording and playing effect is effectively improved.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a switching control apparatus for video recording and playing provided in an embodiment of the present invention, where the apparatus includes:
a media acquiring unit 601, configured to acquire a visual media for detection corresponding to an abnormal switching time period;
a region analysis unit 602, configured to analyze a motion region of a moving object in the visual medium for detection, where the motion region is located at a boundary between two adjacent video recording regions;
a region determining unit 603 configured to determine the motion region as a mask region;
a first switching control unit 604, configured to refuse to switch a video recording screen from one of the two adjacent video recording areas to the other of the two adjacent video recording areas when it is detected that the moving object in the visual medium for detection enters the mask area from the one of the two adjacent video recording areas.
In one embodiment of the present invention, the apparatus may further include:
and a time analysis unit (not shown in fig. 6) configured to analyze the abnormal switching time period according to the switching information of the video recording and playing before acquiring the corresponding visual media for detection in the abnormal switching time period.
In an embodiment of the present invention, the time analysis unit may be specifically configured to:
acquiring the switching times of a video area in a time period of a first preset duration before the current moment;
judging whether the switching times are larger than a preset threshold value or not;
if so, determining a time period of a first preset duration before the current time as an abnormal switching time period.
In an embodiment of the present invention, the area analysis unit 602 may be specifically configured to:
acquiring each position coordinate of a moving target in the visual media for detection in a preset image coordinate system;
determining the position of a target pixel point corresponding to each acquired position coordinate according to the corresponding relation between the position coordinates stored in advance and the positions of the pixel points in the image;
and determining a region formed by the positions of all the destination pixel points in the image as a motion region of the moving object in the visual medium for detection.
In one embodiment of the present invention, the apparatus may further include:
and a personalized information obtaining unit (not shown in fig. 6) configured to obtain personalized information of the moving target in the visual media for detection, and store the shielding region in correspondence with the personalized information.
In an embodiment of the present invention, referring to fig. 7, on the basis of fig. 6, the apparatus may further include:
an area determining unit 701, configured to determine whether a dedicated mask area corresponding to personalized information of a moving target in a visual medium for detection is stored before acquiring the corresponding visual medium for detection in an abnormal switching time period;
a second switching control unit 702, configured to perform switching control on the dedicated mask area as a parameter of a recording and playing device if the determination result of the area determining unit 701 is yes;
a third switching control unit 703, configured to perform switching control on the default mask area as a parameter of the recording and playing device if the determination result of the area determining unit 701 is negative.
In other embodiments of the present invention, the media acquiring unit 601 may be specifically configured to:
when the special shielding area corresponding to the personalized information of the moving target in the visual media to be detected is stored, acquiring the visual media to be detected within a second preset time period, or when the special shielding area corresponding to the personalized information of the moving target in the visual media to be detected is not stored, acquiring the visual media to be detected within a third preset time period; the second preset time length is longer than the third preset time length;
and acquiring the corresponding visual media for detection in the abnormal switching time period from the visual media for detection.
By applying the embodiment, the corresponding visual media for detection in the abnormal switching time period is obtained, the moving area of the moving target in the visual media for detection is analyzed, the moving area is positioned at the boundary of two adjacent video areas, and the moving area is determined as the shielding area; when detecting that the moving object in the visual medium for detection enters the shielding area from one of the two adjacent video areas, refusing to switch the video recording and playing picture from the video recording area to the other video recording area of the two adjacent video areas. Therefore, in the embodiment of the invention, when the moving target is positioned in the shielding area, the video recording area of the video recording and playing picture is refused to be switched, the switching times of the video recording area are reduced, and the video recording and playing effect is effectively improved.
For the system and apparatus embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiments.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Those skilled in the art will appreciate that all or part of the steps in the above method embodiments may be implemented by a program to instruct relevant hardware to perform the steps, and the program may be stored in a computer-readable storage medium, which is referred to herein as a storage medium, such as: ROM/RAM, magnetic disk, optical disk, etc.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.
Claims (17)
1. A switching control method for video recording and playing is characterized by comprising the following steps:
acquiring a corresponding visual media for detection in an abnormal switching time period, wherein the abnormal switching time period is a time period in which the switching times of a video area is greater than a preset threshold value;
analyzing a moving area of a moving target in the visual medium for detection, wherein the moving area is positioned at the boundary of two adjacent video areas;
determining the motion area as a shielding area;
and when detecting that the moving target in the visual medium for detection enters the shielding area from one of the two adjacent video areas, refusing to switch the video recording and playing picture from the video recording area to the other video recording area of the two adjacent video areas.
2. The method of claim 1, wherein prior to the step of obtaining corresponding visual media for detection within an abnormal switching time period, the method further comprises:
and analyzing the switching information of the video recording and playing to obtain an abnormal switching time period.
3. The method of claim 2, wherein the step of analyzing the switching information of the video recording to obtain the abnormal switching time period comprises:
acquiring the switching times of a video area in a time period of a first preset duration before the current moment;
judging whether the switching times are larger than a preset threshold value or not;
if so, determining a time period of a first preset duration before the current time as an abnormal switching time period.
4. The method of claim 1, wherein the step of analyzing the moving area of the moving object in the visual media for detection comprises:
acquiring each position coordinate of a moving target in the visual media for detection in a preset image coordinate system;
determining the position of a target pixel point corresponding to each acquired position coordinate according to the corresponding relation between the position coordinates stored in advance and the positions of the pixel points in the image;
and determining a region formed by the positions of all the destination pixel points in the image as a motion region of the moving object in the visual medium for detection.
5. The method of claim 1, further comprising:
and acquiring personalized information of the moving target in the visual media for detection, and correspondingly storing the shielding area and the personalized information.
6. The method of claim 5, wherein prior to the step of obtaining corresponding visual media for detection within an abnormal switching time period, the method further comprises:
judging whether a special shielding area corresponding to the personalized information of the moving target in the visual media for detection is stored or not;
if the special shielding area is saved, the special shielding area is used as a parameter of recording and broadcasting equipment for switching control;
and if not, switching control is carried out by taking the default shielding area as a parameter of the recording and playing equipment.
7. The method according to claim 6, wherein the step of acquiring the corresponding visual media for detection in the abnormal switching time period comprises:
when the special shielding area corresponding to the personalized information of the moving target in the visual media for detection is stored, acquiring the visual media for detection in a second preset time period, or when the special shielding area corresponding to the personalized information of the moving target in the visual media for detection is not stored, acquiring the visual media for detection in a third preset time period; the second preset time length is longer than the third preset time length;
and acquiring the corresponding visual media for detection in the abnormal switching time period from the visual media for detection.
8. A switching control apparatus for video recording and playing, the apparatus comprising:
the media acquisition unit is used for acquiring the corresponding visual media for detection in an abnormal switching time period, wherein the abnormal switching time period is a time period in which the switching times of the video area is greater than a preset threshold value;
the area analysis unit is used for analyzing a motion area of a motion target in the visual medium for detection, and the motion area is positioned at the boundary of two adjacent video areas;
a region determination unit configured to determine the motion region as a mask region;
and the first switching control unit is used for refusing to switch the video recording and playing picture from the video recording area to the other video recording area in the two adjacent video recording areas when detecting that the moving target in the visual medium for detection enters the shielding area from one of the two adjacent video recording areas.
9. The apparatus of claim 8, further comprising:
and the time analysis unit is used for analyzing and obtaining the abnormal switching time period according to the switching information of the video recording and playing before the corresponding visual media for detection in the abnormal switching time period is obtained.
10. The apparatus according to claim 9, wherein the time analysis unit is specifically configured to:
acquiring the switching times of a video area in a time period of a first preset duration before the current moment;
judging whether the switching times are larger than a preset threshold value or not;
if so, determining a time period of a first preset duration before the current time as an abnormal switching time period.
11. The apparatus according to claim 8, wherein the area analysis unit is specifically configured to:
acquiring each position coordinate of a moving target in the visual media for detection in a preset image coordinate system;
determining the position of a target pixel point corresponding to each acquired position coordinate according to the corresponding relation between the position coordinates stored in advance and the positions of the pixel points in the image;
and determining a region formed by the positions of all the destination pixel points in the image as a motion region of the moving object in the visual medium for detection.
12. The apparatus of claim 8, further comprising:
and the personalized information acquisition unit is used for acquiring the personalized information of the moving target in the visual media for detection and correspondingly storing the shielding area and the personalized information.
13. The apparatus of claim 12, further comprising:
the area judgment unit is used for judging whether a special shielding area corresponding to the personalized information of the moving target in the visual media for detection is stored or not before the corresponding visual media for detection in the abnormal switching time period is acquired;
the second switching control unit is used for switching and controlling the special shielding area as a parameter of the recording and broadcasting equipment under the condition that the judgment result of the area judgment unit is yes;
and the third switching control unit is used for switching and controlling the default shielding area as the parameter of the recording and playing equipment under the condition that the judgment result of the area judgment unit is negative.
14. The apparatus according to claim 13, wherein the media acquisition unit is specifically configured to:
when the special shielding area corresponding to the personalized information of the moving target in the visual media for detection is stored, acquiring the visual media for detection in a second preset time period, or when the special shielding area corresponding to the personalized information of the moving target in the visual media for detection is not stored, acquiring the visual media for detection in a third preset time period; the second preset time length is longer than the third preset time length;
and acquiring the corresponding visual media for detection in the abnormal switching time period from the visual media for detection.
15. A video recording and playing switching control system, the system comprising: the system comprises acquisition equipment, a data processing server and recording and broadcasting equipment;
the acquisition equipment is used for acquiring visual media for detection corresponding to an abnormal switching time period, and sending the visual media for detection to the data processing server, wherein the abnormal switching time period is a time period in which the switching times of the video area are greater than a preset threshold value;
the data processing server is used for analyzing a moving area of a moving target in the visual medium for detection, wherein the moving area is positioned at the boundary of two adjacent video areas; determining the motion area as a shielding area; sending the shielding area to the recording and broadcasting equipment;
and the recording and playing device is used for refusing to switch the video recording and playing picture from the video recording area to the other video recording area in the two adjacent video recording areas when detecting that the moving target in the visual medium for detection enters the shielding area from one of the two adjacent video recording areas.
16. The system of claim 15, wherein the acquisition device is further configured to obtain each position coordinate of the moving object in the visual media for detection in a preset image coordinate system, and send each determined position coordinate to the data processing server;
the data processing server is specifically configured to:
and determining the area formed by each determined position coordinate as the motion area of the moving object in the visual media for detection.
17. The system of claim 15, wherein the collection device corresponds to the recording device one to one.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611073984.1A CN108124186B (en) | 2016-11-29 | 2016-11-29 | Switching control method, device and system for video recording and playing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611073984.1A CN108124186B (en) | 2016-11-29 | 2016-11-29 | Switching control method, device and system for video recording and playing |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108124186A CN108124186A (en) | 2018-06-05 |
CN108124186B true CN108124186B (en) | 2020-05-29 |
Family
ID=62226879
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611073984.1A Active CN108124186B (en) | 2016-11-29 | 2016-11-29 | Switching control method, device and system for video recording and playing |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108124186B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113743268A (en) * | 2021-08-25 | 2021-12-03 | 浙江大华技术股份有限公司 | Method, device, equipment and medium for detecting character behaviors |
CN114650454A (en) * | 2022-04-02 | 2022-06-21 | 北京中庆现代技术股份有限公司 | Motion detection method, device, equipment and medium applied to classroom recording and broadcasting |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103428461A (en) * | 2013-08-16 | 2013-12-04 | 北京中广上洋科技股份有限公司 | System and method for recording teaching video |
CN203608274U (en) * | 2013-10-15 | 2014-05-21 | 合肥福斯特科技有限公司 | Intelligent broadcasting tracking system based on television language |
CN105578100A (en) * | 2016-03-11 | 2016-05-11 | 国网福建省电力有限公司 | Teaching video system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101681564B (en) * | 2007-05-22 | 2013-03-27 | 株式会社阿奈特 | Content generation system, content generation device, and content generation program |
-
2016
- 2016-11-29 CN CN201611073984.1A patent/CN108124186B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103428461A (en) * | 2013-08-16 | 2013-12-04 | 北京中广上洋科技股份有限公司 | System and method for recording teaching video |
CN203608274U (en) * | 2013-10-15 | 2014-05-21 | 合肥福斯特科技有限公司 | Intelligent broadcasting tracking system based on television language |
CN105578100A (en) * | 2016-03-11 | 2016-05-11 | 国网福建省电力有限公司 | Teaching video system |
Also Published As
Publication number | Publication date |
---|---|
CN108124186A (en) | 2018-06-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20200228720A1 (en) | Target Object Capturing Method and Device, and Video Monitoring Device | |
US20030147624A1 (en) | Method and apparatus for controlling a media player based on a non-user event | |
CN109040693B (en) | Intelligent alarm system and method | |
US9578212B2 (en) | Method for video recording and editing assistant | |
US9224048B2 (en) | Scene-based people metering for audience measurement | |
US20200167959A1 (en) | Method and device for capturing target object and video monitoring device | |
US11805283B2 (en) | Methods and systems for extracting sport-related information from digital video frames | |
CN104796594A (en) | Preview interface special effect real-time presenting method and terminal equipment | |
US20210264160A1 (en) | Methods and Systems for Scoreboard Region Detection | |
US20160358015A1 (en) | Detection of cast members in video content | |
CN103716594A (en) | Panorama splicing linkage method and device based on moving target detecting | |
CN111225234A (en) | Video auditing method, video auditing device, equipment and storage medium | |
CN110557671A (en) | Method and system for automatically processing unhealthy content of video | |
CN107809563B (en) | Blackboard writing detection system, method and device | |
CN108124186B (en) | Switching control method, device and system for video recording and playing | |
CN107483813B (en) | Method and device for tracking recording and broadcasting according to gestures and storage device | |
US20210326626A1 (en) | Methods and Systems for Determining Accuracy of Sport-Related Information Extracted from Digital Video Frames | |
US9706168B1 (en) | Room conferencing system with heat map annotation of documents | |
CN103870824A (en) | Method and device for capturing face in face detecting and tracking process | |
US20210224569A1 (en) | Methods and Systems for Scoreboard Text Region Detection | |
JP2017229033A5 (en) | ||
CN108337546B (en) | Target object display method and device | |
CN106781167B (en) | Method and device for monitoring motion state of object | |
US10593046B2 (en) | Object counting method having route distribution property and related image processing device | |
WO2020154553A1 (en) | Methods and systems for sport data extraction |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |