CN109819099A - Method for early warning, device, equipment and storage medium in live streaming based on motion detection - Google Patents
Method for early warning, device, equipment and storage medium in live streaming based on motion detection Download PDFInfo
- Publication number
- CN109819099A CN109819099A CN201811522437.6A CN201811522437A CN109819099A CN 109819099 A CN109819099 A CN 109819099A CN 201811522437 A CN201811522437 A CN 201811522437A CN 109819099 A CN109819099 A CN 109819099A
- Authority
- CN
- China
- Prior art keywords
- mobile phone
- potential risk
- distance
- risk object
- speed
- 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.)
- Pending
Links
- 230000033001 locomotion Effects 0.000 title claims abstract description 119
- 238000001514 detection method Methods 0.000 title claims abstract description 29
- 238000000034 method Methods 0.000 title claims abstract description 26
- 238000003860 storage Methods 0.000 title claims abstract description 14
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 claims description 6
- 230000005540 biological transmission Effects 0.000 description 4
- 230000006870 function Effects 0.000 description 3
- 230000001154 acute effect Effects 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 1
- 230000014759 maintenance of location Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
Landscapes
- Traffic Control Systems (AREA)
Abstract
The present invention relates to method for early warning, device, equipment and storage mediums based on motion detection in technical field of biometric identification more particularly to a kind of live streaming.Method for early warning in live streaming based on motion detection includes: the horizontal sextant angle of the potential risk object on the vertical height for obtaining mobile phone, mobile phone and preceding line direction, and the horizontal distance between mobile phone and object is calculated according to vertical height and horizontal sextant angle;It obtains mobile phone and moves horizontally distance in fixed time period, according to distance and horizontal distance is moved horizontally, calculate the movement speed of mobile phone travelling speed and object;The movement speed and mobile phone travelling speed for comparing object send warning to main broadcaster when the movement speed of object is higher than mobile phone travelling speed.The speed that the present invention passes through the object on real-time operation mobile phone and direction of advance, potential risks are judged, and warning information is sent to main broadcaster, it has ensured personal safety of main broadcaster during walking live streaming, has reduced the probability of sudden risk to a certain extent.
Description
Technical field
The present invention relates to technical field of biometric identification, more particularly to the pre- police in a kind of live streaming based on motion detection
Method, device, equipment and storage medium.
Background technique
After entering mobile phone terminal from the end PC with the development of internet, people obtain the mode of information from traditional
WEB page has been transferred to client, from the platforms such as media, and the content for obtaining information has been transferred to picture and text or mobile phone from text
Live streaming, to meet the ever-increasing acquisition demand of user, Internet technology is also in continuous evolution and development, continuous optimization letter
Number transmission technology allows one to be more convenient, more efficiently get the desired information content, and mobile phone live streaming is as a kind of
The mode of the emerging fast acquiring information content, it is more and more of interest by user, and gradually develop and become a kind of new
Expression way.
Main broadcaster mobile phone be broadcast live when, it should be noted that on picture and screen that front camera and rear camera takes online friends bullet
Curtain, interacts with online friends, so main broadcaster, during live streaming, less having time removes the things other than concern mobile phone screen.Work as master
It broadcasts when being broadcast live under the scene walked about, due to needing to focus on staring at screen, is easy to ignore the certain danger of direction of advance.
Summary of the invention
Based on this, it is necessary to when for carrying out mobile phone live streaming in scene of walking about at present, easily ignore latent on developing direction
Or the problems such as certain danger, method for early warning, device, equipment and storage medium with motion detection in a kind of live streaming are provided.
Method for early warning based on motion detection in a kind of live streaming, the method for early warning based on motion detection in the live streaming, packet
Include following steps:
The horizontal sextant angle for obtaining the potential risk object on vertical height, mobile phone and the preceding line direction of mobile phone, according to described
Vertical height and the horizontal sextant angle calculate the horizontal distance between the mobile phone and the potential risk object;
It obtains the mobile phone and moves horizontally distance in fixed time period, move horizontally distance and the water according to described
Flat distance calculates the movement speed of mobile phone travelling speed and the potential risk object;
Compare the potential risk object movement speed and the mobile phone travelling speed, when the potential risk object
When movement speed is higher than the mobile phone travelling speed, warning is sent to main broadcaster.
In a possible embodiment, the potential wind on the vertical height for obtaining mobile phone, mobile phone and preceding line direction
The horizontal sextant angle of dangerous object calculates the mobile phone and the potential risk object according to the vertical height and the horizontal sextant angle
Between horizontal distance, comprising:
The potential risk object before calling the rear camera of the mobile phone to scan on line direction, and call the hand
The rear camera of machine obtains the vertical height, the horizontal sextant angle;
The horizontal distance is calculated according to the vertical height and the horizontal sextant angle.
In a possible embodiment, it is described according to the vertical height and the horizontal sextant angle calculate it is described it is horizontal away from
From, comprising:
The calculation formula such as formula used when calculating the horizontal distance according to the vertical height, the horizontal sextant angle
(1) shown in,
In formula (1),
L indicates the horizontal distance between mobile phone and potential object,
H indicates the vertical height of mobile phone,
α indicates the horizontal sextant angle between mobile phone and potential risk object.
In a possible embodiment, the acquisition mobile phone moves horizontally distance, root in fixed time period
Distance and the horizontal distance are moved horizontally according to described, calculates the mobile speed of mobile phone travelling speed and the potential risk object
Degree, comprising:
Call the rear camera of the mobile phone obtain the mobile phone in fixed time period move horizontally distance and
Time used in the fixed time period;
Distance and the time calculating mobile phone travelling speed are moved horizontally according to described;
Obtain the mobile phone described in the start time and end of time of the fixed time period and the potential risk object it
Between the horizontal distance, according to the horizontal distance, described move horizontally distance and the time and calculate the potential risk
The movement speed of object.
In a possible embodiment, described that distance and the time calculating mobile phone shifting are moved horizontally according to
Dynamic speed, comprising:
Distance and the time calculating mobile phone travelling speed, calculation formula such as formula (2) are moved horizontally according to described
It is shown,
In formula (2),
vrIndicate the mobile phone r in the mobile phone travelling speed of time period t,
lrIndicate that the mobile phone r moves horizontally distance in time period t.
In a possible embodiment, described to obtain described in the start time and end of time of the fixed time period
The horizontal distance between mobile phone and the potential risk object, according to the horizontal distance, it is described move horizontally distance and
The time calculates the movement speed of the potential risk object, comprising:
Distance, the calculated result of the horizontal distance and the time are moved horizontally according to described, is calculated described potential
The movement speed of risk object, shown in calculation formula such as formula (3),
In formula (3),
vwIndicate the movement speed of potential risk object w,
The horizontal distance of w between the mobile phone r and potential risk object of the start time of l expression time period t,
ltIndicate the horizontal distance between the mobile phone r and potential risk object w of the end of time of time period t,
lrIndicate that time period t mobile phone r's moves horizontally distance.
In a possible embodiment, the movement speed of the potential risk object and the mobile phone are mobile
Speed sends warning to main broadcaster when the movement speed of the potential risk object is higher than the mobile phone travelling speed, comprising:
Obtain the movement speed of the potential risk object and the calculated result of the mobile phone travelling speed;
Compare the potential risk object movement speed and the mobile phone travelling speed, when the potential risk object
When movement speed is higher than the mobile phone travelling speed, it is hit by a bullet out warning information at live streaming interface, when the potential risk object
When movement speed is lower than the mobile phone travelling speed, warning information is not provided to main broadcaster.
Based on identical design, the application also provides the prior-warning device based on motion detection in a kind of live streaming, the live streaming
In the prior-warning device based on motion detection include:
Operation spacing module is set as obtaining the potential risk object on vertical height, mobile phone and the preceding line direction of mobile phone
Horizontal sextant angle, calculated between the mobile phone and the potential risk object according to the vertical height and the horizontal sextant angle
Horizontal distance;
Arithmetic speed module, is set as obtaining the mobile phone and moves horizontally distance in fixed time period, according to described
Distance and the horizontal distance are moved horizontally, the movement speed of mobile phone travelling speed and the potential risk object is calculated;
Alarm modules are sent, the movement speed of potential risk object described in comparison and the mobile phone travelling speed are set as,
When the movement speed of the potential risk object is higher than the mobile phone travelling speed, warning is sent to main broadcaster.
Based on the same technical idea, the embodiment of the present application also provides a kind of computer equipment, the computer equipment packet
Include memory and processor, be stored with computer-readable instruction in the memory, the computer-readable instruction by one or
When multiple processors execute, so that one or more processors execute the early warning in above-mentioned live streaming based on motion detection
The step of method.
Based on the same technical idea, the embodiment of the present application also provides a kind of storages for being stored with computer-readable instruction
Medium, when the computer-readable instruction is executed by one or more processors, so that one or more processors execute
Such as the step of method for early warning in above-mentioned live streaming based on motion detection.
Method for early warning, device, equipment and storage medium in above-mentioned live streaming based on motion detection, by obtaining hanging down for mobile phone
The horizontal sextant angle of straight height, mobile phone and the potential risk object on preceding line direction is pressed from both sides according to the vertical height and the level
Angle calculates the horizontal distance between the mobile phone and the potential risk object;Obtain water of the mobile phone in fixed time period
Flat moving distance moves horizontally distance and the horizontal distance according to described, calculates mobile phone travelling speed and the potential risk
The movement speed of object;Compare the potential risk object movement speed and the mobile phone travelling speed, when the potential wind
When the movement speed of dangerous object is higher than the mobile phone travelling speed, warning is sent to main broadcaster.Therefore, real-time operation mobile phone and advance
The speed of object on direction, and compare the speed of mobile phone and object, when the speed of object is more than the speed of mobile phone, mobile phone newspaper
It is alert to notify main broadcaster, it ensures personal safety of main broadcaster during walking live streaming, reduces certain danger to a certain extent
Probability.
Detailed description of the invention
Fig. 1 is the flow chart of the method for early warning based on motion detection during the application is broadcast live in one embodiment;
Fig. 2 is the flow chart that the application calculates horizontal distance in one embodiment;
Fig. 3 is the flow chart of the application calculating speed in one embodiment;
Fig. 4 is the structural block diagram of the prior-warning device based on motion detection during the application is broadcast live in one embodiment.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used in the restriction present invention.
The flow chart of method for early warning based on motion detection in the live streaming that Fig. 1 is provided in one embodiment for the application,
As shown in Figure 1, comprising:
S1, the horizontal sextant angle for obtaining potential risk object on the vertical height of mobile phone, mobile phone and preceding line direction, according to institute
It states vertical height and the horizontal sextant angle calculates horizontal distance between the mobile phone and the potential risk object;
The camera of the mobile phone is called to scan and recognize the object in direction of advance in this step, and described in calling
Camera obtains the horizontal folder between vertical height, the mobile phone and the object with potential risk scanned of the mobile phone
Angle, the horizontal sextant angle refer to the acute angle of mobile phone described in the phase of face between the mobile phone and the potential risk object, the potential wind
Dangerous object include movement object and static object, the object of the movement include movable human or animal, starting automobile,
The people to ride, the static object includes building, landscape ornamental, communal facility, according to the vertical height got
With the horizontal sextant angle, the horizontal distance between the mobile phone and the potential risk object is calculated with tangent trigonometric function.
S2, the acquisition mobile phone move horizontally distance in fixed time period, move horizontally distance and institute according to described
Horizontal distance is stated, the movement speed of mobile phone travelling speed and the potential risk object is calculated;
The camera of the mobile phone is called to obtain horizontal shifting of the mobile phone within the set time in real time in this step
Dynamic distance and time used within the set time move horizontally distance and the time calculating mobile phone according to described
Movement speed, it is resulting in the start time of the set time and the mobile phone of end of time and described latent further according to calculating
Distance is moved horizontally described in the horizontal distance, the mobile phone between risk object, the time calculates the potential wind
The movement speed of dangerous object, such as set time are 2min, in 2min start time, the mobile phone and the potential risk object
The horizontal distance be 100m, in 2min end of time, the horizontal distance of the mobile phone and the potential risk object
For 70m, the distance that moves horizontally of the mobile phone is 20m in 2min, and can be calculated the mobile phone travelling speed is 10m/
Min, the movement speed of the potential risk object are 5m/min.
The movement speed of potential risk object described in S3, comparison and the mobile phone travelling speed, when the potential risk object
When the movement speed of body is higher than the mobile phone travelling speed, warning is sent to main broadcaster;
In this step by comparing the mobile phone travelling speed and the potential risk object movement speed size, when
When the movement speed of the potential risk object is more than the mobile phone travelling speed, by the live streaming interface of the mobile phone to main broadcaster
Warning information is sent, when the movement speed of the potential risk object is less than the mobile phone travelling speed, then unlike main broadcaster
Warning information is sent, for example it is 10m/min that the mobile phone travelling speed, which is calculated, and the mobile speed of the potential risk object
When degree is 12m/min, then as main broadcaster's transmission warning information, when the movement speed of the potential risk object is 9m/min, then
Without sending warning information to main broadcaster.
The present embodiment passes through the movement speed for calculating the mobile phone travelling speed Yu the potential risk object in real time, and leads to
It crosses the velocity magnitude both compared to judge whether to need to send warning information to main broadcaster, provides safety guarantee for main broadcaster, reduction
The probability of certain danger.
Fig. 2 is the flow chart for the calculating horizontal distance that the application provides in one embodiment, as shown in Fig. 2, the S1,
The horizontal sextant angle for obtaining the potential risk object on vertical height, mobile phone and the preceding line direction of mobile phone, according to the vertical height
The horizontal distance between the mobile phone and the potential risk object is calculated with the horizontal sextant angle, comprising:
S101, it calls the rear camera of the mobile phone to scan the potential risk object on preceding line direction, and calls
The rear camera of the mobile phone obtains the vertical height, the horizontal sextant angle;
This step calls the rear camera of the mobile phone to scan and recognize the object in direction of advance, and calls institute
Rear camera is stated to obtain between vertical height, the mobile phone and the object with potential risk scanned of the mobile phone
Horizontal sextant angle.The horizontal sextant angle can be defined as follows: be referred to using the mobile phone and the potential risk object as two points, even
The acute angle portion for connecing the straight line of the two points and the angle of horizontal plane is herein described horizontal sextant angle, wherein the mobile phone
Two points are considered with the potential risk object, can do and further be defined as follows: when the mobile phone is considered as, with the hand
The optical center of the camera of machine is the point of the mobile phone, when the potential risk object is considered as, with potential risk object
Point of the center of the image scanned by the camera of mobile phone as the potential risk object.
S102, the horizontal distance is calculated according to the vertical height and the horizontal sextant angle;
This step is according to the vertical height and the horizontal sextant angle got, with described in the calculating of tangent trigonometric function
Horizontal distance between mobile phone and the potential risk object, for example the vertical height of the mobile phone is 2m, the mobile phone
The horizontal sextant angle between the potential risk object is 5 °, can be calculated the mobile phone and the potential risk object it
Between the horizontal distance be 22.86m.
The present embodiment is by calculating the horizontal distance between the mobile phone and the potential risk object
The subsequent movement speed for calculating the potential risk object provides the foundation.
In one embodiment, described that the horizontal distance, packet are calculated according to the vertical height and the horizontal sextant angle
It includes:
The calculation formula such as formula used when calculating the horizontal distance according to the vertical height, the horizontal sextant angle
(1) shown in,
In formula (1),
L indicates the horizontal distance between mobile phone and potential object,
H indicates the vertical height of mobile phone,
α indicates the horizontal sextant angle between mobile phone and potential risk object;
The vertical height that will acquire in this step and the horizontal sextant angle substitute into tangent trigonometric function formula and fall into a trap
The horizontal distance between the mobile phone and the potential risk object is calculated, for example the vertical height of the mobile phone is 2m, institute
Stating the horizontal sextant angle between mobile phone and the potential risk object is 5 °, can be calculated the mobile phone and the potential risk
The horizontal distance between object is 22.86m.
After the horizontal distance between the mobile phone and the potential risk object being calculated in the present embodiment is
The continuous movement speed for calculating the potential risk object provides the foundation.
Fig. 3 is the flow chart for the calculating speed that the application provides in one embodiment, as shown in figure 3, the S2, acquisition
The mobile phone moves horizontally distance in fixed time period, moves horizontally distance and the horizontal distance according to described, calculates
The movement speed of mobile phone travelling speed and the potential risk object, comprising:
S201, it calls the rear camera of the mobile phone to obtain the mobile phone to move horizontally distance in fixed time period
And used time in the fixed time period;
This step calls the rear camera of the mobile phone to obtain level of the mobile phone within the set time in real time
Moving distance and time used within the set time, while obtaining in the start time and terminal of the set time
When quarter, the horizontal distance between the mobile phone and the potential risk object, such as when the set time is 2min,
Get the mobile phone in 2min described in move horizontally distance be 20m, and the start time of 2min it is described it is horizontal away from
It is 70m in the horizontal distance of the end of time of 2min from for 100m.
S202, distance and the time calculating mobile phone travelling speed are moved horizontally according to;
In this step according to get it is described move horizontally distance and the time calculates the mobile phone travelling speed, than
As the time be 2min, in 2min described in move horizontally distance be 20m, then can be calculated the mobile phone travelling speed is
10m/min。
S203, the mobile phone described in the start time and end of time of the fixed time period and the potential risk object are obtained
The horizontal distance between body, according to the horizontal distance, it is described move horizontally distance and the time calculate it is described potential
The movement speed of risk object;
According to the horizontal distance, the water of the set time start time of acquisition and end of time in this step
Flat moving distance and the time calculate the movement speed of the potential risk object, for example the time is 2min, in 2min
The horizontal distance of start time be 100m, be 70m in the horizontal distance of the end of time of 2min, the institute in 2min
Stating and moving horizontally distance is 20m, then the distance that moves horizontally that the potential risk object in 2min can be obtained is 10m, is calculated
The movement speed that the potential risk object can be obtained is 5m/min.
By the calculating of the movement speed to the mobile phone travelling speed and the potential risk object in the present embodiment, it is
Subsequent judgement direction of advance provides foundation with the presence or absence of risk.
In one embodiment, described that distance and the mobile speed of the time calculating mobile phone are moved horizontally according to
Degree, comprising:
Distance and the time calculating mobile phone travelling speed, calculation formula such as formula (2) are moved horizontally according to described
It is shown,
In formula (2),
vrIndicate the mobile phone r in the mobile phone travelling speed of time period t,
lrIndicate that the mobile phone r moves horizontally distance in time period t;
Distance is moved horizontally described in will acquire in this step and the time substitutes into formula and calculates the mobile phone shifting
Dynamic speed, such as the time are 2min, in 2min described in move horizontally distance be 20m, substituting into formula can be calculated
The mobile phone travelling speed is 10m/min.
The present embodiment is by the calculating to the mobile phone travelling speed, to whether there is risk on line direction before subsequent judgement
Provide judgement basis.
In one embodiment, acquisition mobile phone described in the start time and end of time of the fixed time period with
The horizontal distance between the potential risk object, according to the horizontal distance, it is described move horizontally distance and it is described when
Between calculate the movement speed of the potential risk object, comprising:
Distance, the calculated result of the horizontal distance and the time are moved horizontally according to described, is calculated described potential
The movement speed of risk object, shown in calculation formula such as formula (3),
In formula (3),
vwIndicate the movement speed of potential risk object w,
The horizontal distance of w between the mobile phone r and potential risk object of the start time of l expression time period t,
ltIndicate the horizontal distance between the mobile phone r and potential risk object w of the end of time of time period t,
lrIndicate that time period t mobile phone r's moves horizontally distance;
The horizontal distance that will acquire in this step, it is described move horizontally distance, the time substitutes into formula and falls into a trap
Calculation obtains the movement speed of the potential risk object, for example the time is 2min, in the water of the start time of 2min
Flat distance is 100m, is 70m in the horizontal distance of the end of time of 2min, and described in 2min moves horizontally distance and be
20m, substituting into and can be calculated the movement speed of the potential risk object in formula is 5m/min.
By the calculating of the movement speed to the potential risk object in the present embodiment, on line direction before subsequent judgement
Judgement basis is provided with the presence or absence of risk.
In one embodiment, the movement speed of the potential risk object and the mobile phone travelling speed,
When the movement speed of the potential risk object is higher than the mobile phone travelling speed, warning is sent to main broadcaster, comprising:
Obtain the movement speed of the potential risk object and the calculated result of the mobile phone travelling speed;
Compare the potential risk object movement speed and the mobile phone travelling speed, when the potential risk object
When movement speed is higher than the mobile phone travelling speed, it is hit by a bullet out warning information at live streaming interface, when the potential risk object
When movement speed is lower than the mobile phone travelling speed, warning information is not provided to main broadcaster;
In this step by comparing the mobile phone travelling speed and the potential risk object movement speed size, when
When the movement speed of the potential risk object is more than the mobile phone travelling speed, it is hit by a bullet responding at the live streaming interface of the mobile phone
Breath of notifying does not send to main broadcaster then and warns when the movement speed of the potential risk object is less than the mobile phone travelling speed
It notifies breath, for example it is 10m/min that the mobile phone travelling speed, which is calculated, and the movement speed of the potential risk object is
When 12m/min, then it is hit by a bullet out warning information at live streaming interface, when the movement speed of the potential risk object is 9m/min,
Then without sending warning information to main broadcaster.
Judgement is carried out by the risk to the potential risk object in the present embodiment and sends warning information to main broadcaster, is protected
The personal safety for having hindered main broadcaster reduces the probability of happening of sudden time.
Based on identical design, the application also provides the prior-warning device based on motion detection in a kind of live streaming, such as Fig. 4 institute
Show, the prior-warning device checked in the live streaming based on movement includes operation spacing module, arithmetic speed module and transmission alarm mould
Block, in which: operation spacing module is set as obtaining the potential risk object on vertical height, mobile phone and the preceding line direction of mobile phone
Horizontal sextant angle, calculated between the mobile phone and the potential risk object according to the vertical height and the horizontal sextant angle
Horizontal distance;Arithmetic speed module, is set as obtaining the mobile phone and moves horizontally distance in fixed time period, according to described
Distance and the horizontal distance are moved horizontally, the movement speed of mobile phone travelling speed and the potential risk object is calculated;It sends
Alarm modules are set as the movement speed of potential risk object described in comparison and the mobile phone travelling speed, when the potential wind
When the movement speed of dangerous object is higher than the mobile phone travelling speed, warning is sent to main broadcaster.
In one embodiment, the operation spacing module includes:
Scanning element is set as the potential risk object before calling the rear camera of the mobile phone to scan on line direction
Body, and the rear camera of the mobile phone is called to obtain the vertical height, the horizontal sextant angle;
Distance unit is calculated, is set as calculating the horizontal distance according to the vertical height and the horizontal sextant angle.
In one embodiment, the calculating distance unit includes:
Horizontal distance unit is calculated, is set as calculating the horizontal distance according to the vertical height, the horizontal sextant angle
Shown in the calculation formula of Shi Caiyong such as formula (1),
In formula (1),
L indicates the horizontal distance between mobile phone and potential object,
H indicates the vertical height of mobile phone,
α indicates the horizontal sextant angle between mobile phone and potential risk object.
In one embodiment, the arithmetic speed module includes:
Acquiring unit is set as that the rear camera of the mobile phone is called to obtain water of the mobile phone in fixed time period
Flat moving distance and time used in the fixed time period;
First-order rate computing unit is set as moving horizontally distance according to and the time calculates the mobile phone movement
Speed;
Second order rate computing unit is set as obtaining the hand described in the start time and end of time of the fixed time period
The horizontal distance between machine and the potential risk object according to the horizontal distance, described moves horizontally distance and institute
State the movement speed that the time calculates the potential risk object.
In one embodiment, the first-order rate computing unit includes:
Mobile phone speed computing unit is set as moving horizontally distance according to and the time calculates the mobile phone movement
Speed, shown in calculation formula such as formula (2),
In formula (2),
vrIndicate the mobile phone r in the mobile phone travelling speed of time period t,
lrIndicate that the mobile phone r moves horizontally distance in time period t.
In one embodiment, the second order rate computing unit includes:
Object speed computing unit, be set as moving horizontally according to distance, the calculated result of the horizontal distance with
And the time, the movement speed of the potential risk object is calculated, shown in calculation formula such as formula (3),
In formula (3),
vwIndicate the movement speed of potential risk object w,
The horizontal distance of w between the mobile phone r and potential risk object of the start time of l expression time period t,
ltIndicate the horizontal distance between the mobile phone r and potential risk object w of the end of time of time period t,
lrIndicate that time period t mobile phone r's moves horizontally distance.
In one embodiment, the transmission alarm modules include:
Acquisition speed unit is set as obtaining the movement speed of the potential risk object and the mobile phone travelling speed
Calculated result;
Comparing unit is set as the movement speed of potential risk object described in comparison and the mobile phone travelling speed, works as institute
When stating the movement speed of potential risk object and being higher than the mobile phone travelling speed, it is hit by a bullet out warning information at live streaming interface, works as institute
When stating the movement speed of potential risk object lower than the mobile phone travelling speed, warning information is not provided to main broadcaster.
Based on the same technical idea, the embodiment of the present application also provides a kind of storage Jie for being stored with computer-readable instruction
Matter, when the computer-readable instruction is executed by one or more processors, so that one or more processors execute institute
The step of method for early warning in the live streaming in the various embodiments described above based on motion detection is realized when stating computer-readable instruction.Its
In, the storage medium can be non-volatile memory medium.
Based on the same technical idea, the embodiment of the present application also provides a kind of storage Jie for being stored with computer-readable instruction
Matter, when the computer-readable instruction is executed by one or more processors, so that one or more processors execute institute
The step of method for early warning in the live streaming in the various embodiments described above based on motion detection is realized when stating computer-readable instruction.Its
In, the storage medium can be non-volatile memory medium.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can
It is completed with instructing relevant hardware by program, which can be stored in a computer readable storage medium, storage
Medium may include: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random
Access Memory), disk or CD etc..
Each technical characteristic of embodiment described above can be combined arbitrarily, for simplicity of description, not to above-mentioned reality
It applies all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited
In contradiction, all should be considered as described in this specification.
Some exemplary embodiments of the invention above described embodiment only expresses, the description thereof is more specific and detailed, but
It cannot be construed as a limitation to the scope of the present invention.It should be pointed out that for the ordinary skill people of this field
For member, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to of the invention
Protection scope.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.
Claims (10)
1. based on the method for early warning of motion detection in a kind of live streaming, which is characterized in that the method for early warning includes:
The horizontal sextant angle for obtaining the potential risk object on vertical height, mobile phone and the preceding line direction of mobile phone, according to described vertical
Height and the horizontal sextant angle calculate the horizontal distance between the mobile phone and the potential risk object;
Obtain the mobile phone and move horizontally distance in fixed time period, according to it is described move horizontally distance and it is described it is horizontal away from
From the movement speed of calculating mobile phone travelling speed and the potential risk object;
Compare the potential risk object movement speed and the mobile phone travelling speed, when the movement of the potential risk object
When speed is higher than the mobile phone travelling speed, warning is sent to main broadcaster.
2. the method for early warning based on motion detection in a kind of live streaming as described in claim 1, which is characterized in that the acquisition hand
The horizontal sextant angle of potential risk object on the vertical height of machine, mobile phone and preceding line direction, according to the vertical height with it is described
Horizontal sextant angle calculates the horizontal distance between the mobile phone and the potential risk object, comprising:
The potential risk object before calling the rear camera of the mobile phone to scan on line direction, and call the mobile phone
The rear camera obtains the vertical height, the horizontal sextant angle;
The horizontal distance is calculated according to the vertical height and the horizontal sextant angle.
3. the method for early warning based on motion detection in a kind of live streaming as claimed in claim 2, which is characterized in that described according to institute
It states vertical height and the horizontal sextant angle calculates the horizontal distance, comprising:
Calculation formula such as formula (1) institute used when calculating the horizontal distance according to the vertical height, the horizontal sextant angle
Show,
In formula (1),
L indicates the horizontal distance between mobile phone and potential object,
H indicates the vertical height of mobile phone,
α indicates the horizontal sextant angle between mobile phone and potential risk object.
4. the method for early warning based on motion detection in a kind of live streaming as described in claim 1, which is characterized in that the acquisition institute
It states mobile phone and moves horizontally distance in fixed time period, move horizontally distance and the horizontal distance according to described, calculate hand
The movement speed of machine movement speed and the potential risk object, comprising:
It calls the rear camera of the mobile phone to obtain the mobile phone and moves horizontally distance and described in fixed time period
Time used in fixed time period;
Distance and the time calculating mobile phone travelling speed are moved horizontally according to described;
Obtain the mobile phone described in the start time and end of time of the fixed time period and between the potential risk object
The horizontal distance according to the horizontal distance, described move horizontally distance and the time and calculates the potential risk object
Movement speed.
5. the method for early warning based on motion detection in a kind of live streaming as claimed in claim 4, which is characterized in that described according to institute
It states and moves horizontally distance and the time calculating mobile phone travelling speed, comprising:
Distance and the time calculating mobile phone travelling speed are moved horizontally according to described, shown in calculation formula such as formula (2),
In formula (2),
vrIndicate the mobile phone r in the mobile phone travelling speed of time period t,
lrIndicate that the mobile phone r moves horizontally distance in time period t.
6. the method for early warning based on motion detection in a kind of live streaming as claimed in claim 4, which is characterized in that described to obtain
Between mobile phone described in the start time and end of time of the fixed time period and the potential risk object it is described it is horizontal away from
From, according to the horizontal distance, it is described move horizontally distance and the time calculates the movement speed of the potential risk object,
Include:
Distance, the calculated result of the horizontal distance and the time are moved horizontally according to described, calculates the potential risk
The movement speed of object, shown in calculation formula such as formula (3),
In formula (3),
vwIndicate the movement speed of potential risk object w,
The horizontal distance of w between the mobile phone r and potential risk object of the start time of l expression time period t,
ltIndicate the horizontal distance between the mobile phone r and potential risk object w of the end of time of time period t,
lrIndicate that time period t mobile phone r's moves horizontally distance.
7. the method for early warning based on motion detection in a kind of live streaming as described in claim 1, which is characterized in that described to compare institute
State potential risk object movement speed and the mobile phone travelling speed, when the potential risk object movement speed be higher than institute
When stating mobile phone travelling speed, warning is sent to main broadcaster, comprising:
Obtain the movement speed of the potential risk object and the calculated result of the mobile phone travelling speed;
Compare the potential risk object movement speed and the mobile phone travelling speed, when the movement of the potential risk object
When speed is higher than the mobile phone travelling speed, it is hit by a bullet out warning information at live streaming interface, when the movement of the potential risk object
When speed is lower than the mobile phone travelling speed, warning information is not provided to main broadcaster.
8. based on the prior-warning device of motion detection in a kind of live streaming, which is characterized in that the prior-warning device includes:
Operation spacing module is set as obtaining the water of the potential risk object on vertical height, mobile phone and the preceding line direction of mobile phone
Flat angle calculates the level between the mobile phone and the potential risk object according to the vertical height and the horizontal sextant angle
Distance;
Arithmetic speed module, is set as obtaining the mobile phone and moves horizontally distance in fixed time period, according to the level
Moving distance and the horizontal distance calculate the movement speed of mobile phone travelling speed and the potential risk object;
Alarm modules are sent, the movement speed of potential risk object described in comparison and the mobile phone travelling speed is set as, works as institute
When stating the movement speed of potential risk object higher than the mobile phone travelling speed, warning is sent to main broadcaster.
9. a kind of computer equipment, including memory and processor, it is stored with computer-readable instruction in the memory, it is described
When computer-readable instruction is executed by the processor, so that the processor executes such as any one of claims 1 to 7 right
It is required that the step of method for early warning in the live streaming based on motion detection.
10. a kind of storage medium for being stored with computer-readable instruction, the computer-readable instruction is handled by one or more
When device executes, it is based in live streaming as described in any one of claims 1 to 7 claim so that one or more processors are executed
The method for early warning of motion detection.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811522437.6A CN109819099A (en) | 2018-12-13 | 2018-12-13 | Method for early warning, device, equipment and storage medium in live streaming based on motion detection |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811522437.6A CN109819099A (en) | 2018-12-13 | 2018-12-13 | Method for early warning, device, equipment and storage medium in live streaming based on motion detection |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN109819099A true CN109819099A (en) | 2019-05-28 |
Family
ID=66601599
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201811522437.6A Pending CN109819099A (en) | 2018-12-13 | 2018-12-13 | Method for early warning, device, equipment and storage medium in live streaming based on motion detection |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN109819099A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110610139A (en) * | 2019-08-23 | 2019-12-24 | 合肥移顺信息技术有限公司 | Obstacle early warning method, monitoring equipment and monitoring system |
| CN112712678A (en) * | 2019-10-24 | 2021-04-27 | 深圳富泰宏精密工业有限公司 | Electronic device and photographing safety detection method |
Citations (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102098377A (en) * | 2010-12-02 | 2011-06-15 | 惠州Tcl移动通信有限公司 | Mobile phone and speed measurement method thereof |
| CN104280736A (en) * | 2014-09-24 | 2015-01-14 | 天津三星电子有限公司 | Mobile terminal and prompting method |
| CN105139576A (en) * | 2015-07-09 | 2015-12-09 | 小米科技有限责任公司 | Road condition prompting method and device |
| CN106161786A (en) * | 2016-06-28 | 2016-11-23 | 李玉婷 | A kind of walking uses mobile phone householder method and device |
| CN106627368A (en) * | 2016-11-14 | 2017-05-10 | 深圳市元征科技股份有限公司 | Vehicle running environment display method and vehicle-mounted equipment |
| CN106713639A (en) * | 2016-12-27 | 2017-05-24 | 宇龙计算机通信科技(深圳)有限公司 | Obstacle avoidance prompting method, obstacle avoidance prompting device and mobile terminal |
| CN107133572A (en) * | 2017-04-11 | 2017-09-05 | 北京小米移动软件有限公司 | Based on barrier prompt method, device and the terminal under user movement state |
| CN107437322A (en) * | 2016-05-25 | 2017-12-05 | 北京京东尚科信息技术有限公司 | Mobile terminal, mobile terminal hazards monitoring device and method |
| CN108917701A (en) * | 2018-08-06 | 2018-11-30 | 中国矿业大学 | A kind of barrier based on smart phone detects automatically and method for early warning |
-
2018
- 2018-12-13 CN CN201811522437.6A patent/CN109819099A/en active Pending
Patent Citations (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102098377A (en) * | 2010-12-02 | 2011-06-15 | 惠州Tcl移动通信有限公司 | Mobile phone and speed measurement method thereof |
| CN104280736A (en) * | 2014-09-24 | 2015-01-14 | 天津三星电子有限公司 | Mobile terminal and prompting method |
| CN105139576A (en) * | 2015-07-09 | 2015-12-09 | 小米科技有限责任公司 | Road condition prompting method and device |
| CN107437322A (en) * | 2016-05-25 | 2017-12-05 | 北京京东尚科信息技术有限公司 | Mobile terminal, mobile terminal hazards monitoring device and method |
| CN106161786A (en) * | 2016-06-28 | 2016-11-23 | 李玉婷 | A kind of walking uses mobile phone householder method and device |
| CN106627368A (en) * | 2016-11-14 | 2017-05-10 | 深圳市元征科技股份有限公司 | Vehicle running environment display method and vehicle-mounted equipment |
| CN106713639A (en) * | 2016-12-27 | 2017-05-24 | 宇龙计算机通信科技(深圳)有限公司 | Obstacle avoidance prompting method, obstacle avoidance prompting device and mobile terminal |
| CN107133572A (en) * | 2017-04-11 | 2017-09-05 | 北京小米移动软件有限公司 | Based on barrier prompt method, device and the terminal under user movement state |
| CN108917701A (en) * | 2018-08-06 | 2018-11-30 | 中国矿业大学 | A kind of barrier based on smart phone detects automatically and method for early warning |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110610139A (en) * | 2019-08-23 | 2019-12-24 | 合肥移顺信息技术有限公司 | Obstacle early warning method, monitoring equipment and monitoring system |
| CN112712678A (en) * | 2019-10-24 | 2021-04-27 | 深圳富泰宏精密工业有限公司 | Electronic device and photographing safety detection method |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11102417B2 (en) | Target object capturing method and device, and video monitoring device | |
| US10121089B2 (en) | Object information extraction apparatus, object information extraction program, and object information extraction method | |
| US9075974B2 (en) | Securing information using entity detection | |
| US9105104B2 (en) | Image processing apparatus,image processing method, and program | |
| JP2020516188A (en) | Face image duplication deletion method and apparatus, electronic device, storage medium, and program | |
| WO2018040180A1 (en) | Photographing method and apparatus | |
| CN111553274A (en) | High-altitude parabolic detection method and device based on trajectory analysis | |
| CN103763483A (en) | Method and device for shaking resistance in photo taking process of mobile terminal and mobile terminal | |
| CN107404615B (en) | Image recording method and electronic equipment | |
| WO2017054442A1 (en) | Image information recognition processing method and device, and computer storage medium | |
| CN105635568B (en) | Image processing method and mobile terminal in a kind of mobile terminal | |
| CN103167270A (en) | Person head shooting method, system and server | |
| CN113259592A (en) | Shooting method, shooting device, electronic equipment and storage medium | |
| CN111598777A (en) | Sky cloud image processing method, computer device and readable storage medium | |
| CN108174026A (en) | Safety reminding method and device of mobile terminal and electronic equipment | |
| CN109819099A (en) | Method for early warning, device, equipment and storage medium in live streaming based on motion detection | |
| CN110390226B (en) | Crowd event identification method and device, electronic equipment and system | |
| CN112446254A (en) | Face tracking method and related device | |
| CN113592754A (en) | Image generation method and electronic equipment | |
| CN108337442A (en) | Shooting preview display method, device, terminal and storage medium | |
| CN112954212B (en) | Video generation method, device and equipment | |
| CN108197596A (en) | A kind of gesture identification method and device | |
| CN106370883B (en) | A speed measurement method and terminal | |
| CN113014876A (en) | Video monitoring method and device, electronic equipment and readable storage medium | |
| CN110248090A (en) | Control method and control device |
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 | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190528 |
|
| RJ01 | Rejection of invention patent application after publication |