Embodiment
Hereinafter with reference to accompanying drawing, also describe the present invention in detail in conjunction with the embodiments.It should be noted that, in the situation that not conflicting, embodiment and the feature in embodiment in the application can combine mutually.
The invention provides a kind of object Picture switch control method of doing more physical exercises, comprise the following steps:
In advance classroom is divided into N region, wherein, N >=2 and N are positive integer;
When a plurality of Moving Objects move in the region of dividing, if when a plurality of Moving Objects lays respectively at a plurality of adjacent area, according to preset strategy, trigger tracking opertaing device Moving Objects is followed the tracks of to control.
Wherein, if when a plurality of Moving Objects lays respectively at a plurality of adjacent area, the process of according to preset strategy, Moving Objects being followed the tracks of to control is:
When if a plurality of Moving Objects lay respectively at a plurality of adjacent area, highs and lows by described a plurality of Moving Objects top is drawn respectively horizontal tangent, by described a plurality of Moving Objects lateral surface outermost point, draw respectively vertical tangent line, the rectangle forming with described vertical tangent line joining from described horizontal tangent, obtain the target rectangle that covers described a plurality of Moving Objects;
Judge the ratio of the area of the area of described target rectangle and the adjacent area at described target rectangle central point place, if be more than or equal to the first preset value, trigger tracking opertaing device described a plurality of Moving Objects are followed the tracks of to control.
Wherein, if when a plurality of Moving Objects lays respectively at a plurality of adjacent area, the process of according to preset strategy, Moving Objects being followed the tracks of to control is:
When if a plurality of Moving Objects lay respectively at a plurality of adjacent area, highs and lows by described a plurality of Moving Objects top is drawn respectively horizontal tangent, by described a plurality of Moving Objects lateral surface outermost point, draw respectively vertical tangent line, the rectangle forming with described vertical tangent line joining from described horizontal tangent, obtain the target rectangle that covers described a plurality of Moving Objects;
Judge that described target rectangle central point is more than or equal to the second preset value in the time of the adjacent area stop at place, triggers tracking opertaing device described a plurality of Moving Objects are followed the tracks of to control.
Wherein, if when a plurality of Moving Objects lays respectively at a plurality of adjacent area, the process of according to preset strategy, Moving Objects being followed the tracks of to control is:
When if a plurality of Moving Objects lay respectively at a plurality of adjacent area, highs and lows by described a plurality of Moving Objects top is drawn respectively horizontal tangent, by described a plurality of Moving Objects lateral surface outermost point, draw respectively vertical tangent line, the rectangle forming with described vertical tangent line joining from described horizontal tangent, obtain the target rectangle that covers described a plurality of Moving Objects;
Judge the ratio of the area of the area of described target rectangle and the adjacent area at described target rectangle central point place, if be more than or equal to the first preset value, and the time that the adjacent area of described target rectangle central point at place stops is more than or equal to the second preset value, triggers tracking opertaing device described a plurality of Moving Objects are followed the tracks of to control.
The object Picture switch control method process flow diagram of doing more physical exercises that Figure 1 shows that the embodiment of the present invention 1, comprises the following steps:
Step 101: in advance classroom is divided into N region, wherein, N >=2 and N are positive integer; As shown in Figure 2, in advance whole classroom is divided into 3 regions, a-quadrant, B region, C region.
Step 102: when a plurality of Moving Objects move in the region of dividing, if when a plurality of Moving Objects lays respectively at a plurality of adjacent area, according to preset strategy, Moving Objects is followed the tracks of to control.
As shown in Figure 3, teacher E at school time, requires dais on student D to demonstrate to other student, and now, student D is positioned at B region, teacher E is positioned at a-quadrant; Wherein, a-quadrant, B region are adjacent area.
Wherein, if when a plurality of Moving Objects lays respectively at a plurality of adjacent area, the process of according to preset strategy, Moving Objects being followed the tracks of to control is:
When if a plurality of Moving Objects lay respectively at a plurality of adjacent area, highs and lows by described a plurality of Moving Objects top is drawn respectively horizontal tangent, by described a plurality of Moving Objects lateral surface outermost point, draw respectively vertical tangent line, the rectangle forming with described vertical tangent line joining from described horizontal tangent, obtain the target rectangle that covers described a plurality of Moving Objects;
Judge the ratio of the area of the area of described target rectangle and the adjacent area at described target rectangle central point place, if be more than or equal to the first preset value, trigger tracking opertaing device described a plurality of Moving Objects are followed the tracks of to control.
As shown in Figure 3, Moving Objects is teacher E, student D, and teacher E is positioned at a-quadrant, and student D is positioned at B region; Wherein, a-quadrant, B region are adjacent area.
As shown in Figure 4,
Now, the peak M1 by student draws horizontal tangent L2 respectively, by student's minimum point M2 picture level, switches L3, and by student's lateral surface outermost point, M3 draws vertical tangent line L5;
Peak P1 by teacher draws horizontal tangent L1 respectively, and by teacher's minimum point P2 picture horizontal tangent L4, by teacher's lateral surface outermost point, P3 draws vertical tangent line L6.
Hence one can see that, and the rectangle forming with described vertical tangent line joining from horizontal tangent, the target rectangle that obtains the described a plurality of Moving Objects of covering is rectangle Q1Q2Q3Q4.
The area of judgement rectangle Q1Q2Q3Q4 and the adjacent area at rectangle Q1Q2Q3Q4 central point place are the ratio of the area in B region (shown in Fig. 3), for example, if (: 60%), trigger tracking control video camera student D, teacher E are carried out to pan-shot be more than or equal to the first preset value.
Wherein, if when a plurality of Moving Objects lays respectively at a plurality of adjacent area, the process of according to preset strategy, Moving Objects being followed the tracks of to control is:
When if a plurality of Moving Objects lay respectively at a plurality of adjacent area, highs and lows by described a plurality of Moving Objects top is drawn respectively horizontal tangent, by described a plurality of Moving Objects lateral surface outermost point, draw respectively vertical tangent line, the rectangle forming with described vertical tangent line joining from described horizontal tangent, obtain the target rectangle that covers described a plurality of Moving Objects;
Judge that described target rectangle central point is more than or equal to the second preset value in the time of the adjacent area stop at place, triggers tracking opertaing device described a plurality of Moving Objects are followed the tracks of to control.
As shown in Figure 4,
Now, the peak M1 by student draws horizontal tangent L2 respectively, by student's minimum point M2 picture level, switches L3, and by student's lateral surface outermost point, M3 draws vertical tangent line L5;
Peak P1 by teacher draws horizontal tangent L1 respectively, and by teacher's minimum point P2 picture horizontal tangent L4, by teacher's lateral surface outermost point, P3 draws vertical tangent line L6.
Hence one can see that, and the rectangle forming with described vertical tangent line joining from horizontal tangent, the target rectangle that obtains the described a plurality of Moving Objects of covering is rectangle Q1Q2Q3Q4.
The adjacent area of judgement rectangle Q1Q2Q3Q4 central point at place is the time that B region (shown in Fig. 3) stops to be more than or equal to the second preset value (for example: 3 seconds), triggers tracking control video camera student D, teacher E are carried out to pan-shot.
Wherein, if when a plurality of Moving Objects lays respectively at a plurality of adjacent area, the process of according to preset strategy, Moving Objects being followed the tracks of to control is:
When if a plurality of Moving Objects lay respectively at a plurality of adjacent area, highs and lows by described a plurality of Moving Objects top is drawn respectively horizontal tangent, by described a plurality of Moving Objects lateral surface outermost point, draw respectively vertical tangent line, the rectangle forming with described vertical tangent line joining from described horizontal tangent, obtain the target rectangle that covers described a plurality of Moving Objects;
Judge the ratio of the area of the area of described target rectangle and the adjacent area at described target rectangle central point place, if be more than or equal to the first preset value, and the time that the adjacent area of described target rectangle central point at place stops is more than or equal to the second preset value, triggers tracking opertaing device described a plurality of Moving Objects are followed the tracks of to control.
As shown in Figure 4, the peak M1 by student draws horizontal tangent L2 respectively, by student's minimum point M2 picture level, switches L3, and by student's lateral surface outermost point, M3 draws vertical tangent line L5;
Peak P1 by teacher draws horizontal tangent L1 respectively, and by teacher's minimum point P2 picture horizontal tangent L4, by teacher's lateral surface outermost point, P3 draws vertical tangent line L6.
Hence one can see that, and the rectangle forming with described vertical tangent line joining from horizontal tangent, the target rectangle that obtains the described a plurality of Moving Objects of covering is rectangle Q1Q2Q3Q4.
The area of judgement rectangle Q1Q2Q3Q4 and the adjacent area at rectangle Q1Q2Q3Q4 central point place are the ratio of the area in B region (shown in Fig. 3), for example, if (: 60%) be more than or equal to the first preset value, for example, and the adjacent area of rectangle Q1Q2Q3Q4 central point at place is the time that B region (shown in Fig. 3) stops to be more than or equal to the second preset value (: 3 seconds), triggers tracking control video camera student D, teacher E are carried out to pan-shot.
The object Picture switch control system figure that does more physical exercises that Figure 5 shows that the embodiment of the present invention 5, comprising: configuration module, strategic control module, tracking control module; Configuration module is connected with tracking control module by strategic control module;
Wherein, described configuration module, notifies described strategic control module in advance classroom being divided into Bing Jiang region, N region division result;
Described strategic control module, the region division result sending for receiving described configuration module; Also, for when a plurality of Moving Objects move in the region of division, if when a plurality of Moving Objects lays respectively at a plurality of adjacent area, according to preset strategy, trigger tracking control module Moving Objects is followed the tracks of to control;
Described tracking control module, the tracking steering order issuing for carrying out described strategic control module, follows the tracks of control to Moving Objects.
Wherein, described strategic control module, if while also laying respectively at a plurality of adjacent area for a plurality of Moving Objects, highs and lows by described a plurality of Moving Objects top is drawn respectively horizontal tangent, by described a plurality of Moving Objects lateral surface outermost point, draw respectively vertical tangent line, the rectangle forming with described vertical tangent line joining from described horizontal tangent, obtain the target rectangle that covers described a plurality of Moving Objects;
Judge the ratio of the area of the area of described target rectangle and the adjacent area at described target rectangle central point place, if be more than or equal to the first preset value, trigger tracking control module described a plurality of Moving Objects are followed the tracks of to control.
Wherein, described strategic control module, if while also laying respectively at a plurality of adjacent area for a plurality of Moving Objects, highs and lows by described a plurality of Moving Objects top is drawn respectively horizontal tangent, by described a plurality of Moving Objects lateral surface outermost point, draw respectively vertical tangent line, the rectangle forming with described vertical tangent line joining from described horizontal tangent, obtain the target rectangle that covers described a plurality of Moving Objects;
Judge that described target rectangle central point is more than or equal to the second preset value in the time of the adjacent area stop at place, triggers tracking control module described a plurality of Moving Objects are followed the tracks of to control.
Wherein, described strategic control module, if while also laying respectively at a plurality of adjacent area for a plurality of Moving Objects, highs and lows by described a plurality of Moving Objects top is drawn respectively horizontal tangent, by described a plurality of Moving Objects lateral surface outermost point, draw respectively vertical tangent line, the rectangle forming with described vertical tangent line joining from described horizontal tangent, obtain the target rectangle that covers described a plurality of Moving Objects;
Judge the ratio of the area of the area of described target rectangle and the adjacent area at described target rectangle central point place, if be more than or equal to the first preset value, and the time that the adjacent area of described target rectangle central point at place stops is more than or equal to the second preset value, triggers tracking control module described a plurality of Moving Objects are followed the tracks of to control.
In addition, in the scheme of the present embodiment specific implementation, any two kinds of modules or three kinds of modules in configuration module, strategic control module, tracking control module can all be integrated in a hardware device.
Compared to prior art, according to object Picture switch control method and the system of doing more physical exercises, realize on the one hand and solved the problem that a plurality of Moving Objects steal the show back and forth all standing that has realized picture; On the other hand, clear the representing of each action of Moving Objects, quality and the impression of attending class have been improved; also improved tracking efficiency; can arbitrarily not follow the tracks of because of the small size motion of Moving Objects, protect to the full extent student's eyesight, realize the level and smooth and smooth of tracking effect.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.