CN105701961A - Walking safety prompting method, system and terminal - Google Patents
Walking safety prompting method, system and terminal Download PDFInfo
- Publication number
- CN105701961A CN105701961A CN201410682615.7A CN201410682615A CN105701961A CN 105701961 A CN105701961 A CN 105701961A CN 201410682615 A CN201410682615 A CN 201410682615A CN 105701961 A CN105701961 A CN 105701961A
- Authority
- CN
- China
- Prior art keywords
- scene
- distance
- battle formations
- point
- range points
- 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
Landscapes
- Traffic Control Systems (AREA)
- Telephone Function (AREA)
Abstract
The invention discloses a walking safety prompting method, a walking safety prompting system and a terminal. The method includes the following steps that: a scene at the same time is acquired by using two cameras; a distance matrix diagram of all points of the scene is generated with each point of the scene adopted as a target; and when it is determined that an obstacle exists in the scene according to the distance information of the distance matrix diagram, prompting signals are emitted. With the method and system of the invention adopted, safety accidents caused by high possibility of collision between a user and obstacles ahead which is further brought about by a situation that the user completely immerses in the use of a mobile phone and cannot pay attention to the obstacles such as walls, trees and street lamps in front the user can be avoided effectively, and user experience can be improved.
Description
Technical field
The present invention relates to computer communication field, particularly relate to a kind of walking along the street safety instruction method, system and terminal。
Background technology
Powerful along with cell-phone function, people are by flower of increasing time on mobile phone, and particularly younger generation, when even walking, eyes are all without departing from mobile phone screen, and " party of bowing " is that the appropriate of this class people is said jokingly by people。But the personal safety of user is had great potential safety hazard by object for appreciation mobile phone of walking, such as: when user is immersed in the process using mobile phone completely, the barriers such as the wall in front, trees and street lamp cannot be noted, cause that user is bumped against with barrier, even without noticing the situation such as traffic lights, automobile, cause once safety accident。
Summary of the invention
The technical problem to be solved in the present invention is to provide a kind of walking along the street safety instruction method, system and terminal, in order to solve prior art when user uses terminal walking along the street, it is easy to the problem bumped against with the barrier in front。
For solving above-mentioned technical problem, on the one hand, the present invention provides a kind of walking along the street safety instruction method, including:
Dual camera is utilized to gather the scene of synchronization;
With each point of scene be target generate scene the range points system of battle formations a little;
When the range information according to the range points system of battle formations judges there is barrier in scene, send cue。
Further, generate scene the range points system of battle formations a little, specifically include:
The each point according to scene parallax imaging in dual camera, calculates the distance of each point;
Distance according to each point calculated generate scene the range points system of battle formations a little。
Further, send cue, specifically include:
Dot chart is carried out rim detection computing, according to the range information in the range points system of battle formations, the range points system of battle formations is divided into several region unit;
Add up the number of the pixel of each region unit;
When the number of statistics is more than default amount threshold, then judges that scene has barrier, send cue。
Further, after having barrier in judging scene, also include:
When the distance average of all pixels of any one region unit is more than default distance threshold, send cue。
On the other hand, the present invention also provides for a kind of walking along the street safety prompting system, including:
Reminding unit, is used for sending alerting signal;
Image collection unit, for utilizing dual camera to gather the scene of synchronization;
Data processing unit, for store collection scene and with each point of scene be target generate scene the range points system of battle formations a little;
Judging unit, for when the range information according to the range points system of battle formations judges there is barrier in scene, controlling reminding unit and send alerting signal。
Further, data processing unit specifically for,
The each point according to scene parallax imaging in dual camera, calculates the distance of each point;
Distance according to each point calculated generate scene the range points system of battle formations a little。
Further, it is judged that unit specifically for,
Dot chart is carried out rim detection computing, according to the range information in the range points system of battle formations, the range points system of battle formations is divided into several region unit;
Add up the number of the pixel of each region unit;
When the number of statistics is more than default amount threshold, then judges that scene has barrier, send cue。
Further, after having barrier in judging scene, also include:
When the distance average of all pixels of any one region unit is more than default distance threshold, send cue。
Another further aspect, the present invention also provides for a kind of terminal, and described terminal adopts system of the present invention to walking along the street safety instruction。
The present invention has the beneficial effect that: the present invention is according to the range information in the range points system of battle formations, it is judged that whether has barrier in frontal scene, and in advance user is carried out alarm and reminding, effectively prevents security incident。
Accompanying drawing explanation
Fig. 1 is a kind of walking along the street safety instruction method flow diagram in the embodiment of the present invention;
Fig. 2 is dual camera model top view in the embodiment of the present invention;
Fig. 3 is a kind of walking along the street safety prompting system structural representation in the embodiment of the present invention;
Detailed description of the invention
In order to solve prior art when user uses terminal walking along the street, the problem that easy and front barrier bumps against, the invention provides a kind of walking along the street safety instruction method, system and terminal, below in conjunction with accompanying drawing and embodiment, the present invention is further elaborated。Should be appreciated that specific embodiment described herein is only in order to explain the present invention, does not limit the present invention。
Embodiment one,
Fig. 1 is a kind of walking along the street safety instruction method flow diagram in the embodiment of the present invention;In the invention process, method can apply to the terminals such as mobile phone, flat board and intelligent game computer, below only for mobile phone, the present embodiment method is described, as it is shown in figure 1, the method includes:
S101, utilizes dual camera to gather the scene image of synchronization;
Dual camera is that arranged parallel is in two same parameter high-speed camera heads of mobile phone back, it is divided into the first photographic head and second camera, first, second photographic head can dispose left and right, can design in same photographic head module, there is identical picture-taken frequency and image resolution ratio, and have already been through demarcation, calibration and coupling。The scene image data of synchronization can be gathered for analyzing, it is possible to display is on a display of the handset during dual camera work。It is understood that the parameter of described dual camera can also differ。
S102, with each point of scene be target generate scene the range points system of battle formations a little;
This step firstly the need of calculating each point of scene to the distance of mobile phone, then according to each distance generation the range points system of battle formations a little。Scene location corresponding to the pixel of show image on display screen, is referred to as the point of scene。
1) each some distance to mobile phone of scene is calculated;
Can according to each some parallax imaging in dual camera, it is determined that each point of frontal scene arrives the distance of mobile phone。
Fig. 2 is dual camera model top view in the embodiment of the present invention;As in figure 2 it is shown, when dual camera be arranged parallel when two same parameter high-speed camera heads of mobile phone back, P represents a point of scene, xlRepresent this some position in the first photographic head (left photographic head) image, xrRepresent this some position in second camera (right photographic head) image, each point of scene position parallax d=x in dual camera imagel-xr, f represents the focal length of each photographic head, and two photographic head have identical focal length;OlAnd OrRepresenting the photocentre of left and right photographic head respectively, T represents the centre-to-centre spacing of dual camera, and Z represents the distance of mobile phone and this point, and formula below describes the distance calculating method of impact point:
Wherein, owing to dual camera has already been through demarcation, the centre-to-centre spacing T between focal distance f and the dual camera of each photographic head is for it is known that so distance Z can ask for。
It is understood that when the parameter of described dual camera differs, it is also possible to calculating according to the parameter of described dual camera and obtain described distance Z, this technology is prior art, and the application is not repeated herein。
2) BM (BlockMatching is adopted, Block-matching) algorithm detects, according to calculate each point distance generate scene a little dot chart, the i.e. range points system of battle formations, in dot chart, the color of each point represents the mobile phone distance value to each point of frontal scene, and the some color that distance value is close is close。
S103, the range information according to the range points system of battle formations, it is judged that whether have barrier in scene, if any, send cue, if it has not, then continued to determine whether barrier, until finding。Barrier is the object that the user in walking is threatened, including wall, trees and street lamp etc.。Range information includes the distance value representated by the color of each pixel in dot chart and color value and color value。
When being embodied as, by watershed algorithm, dot chart is carried out rim detection computing, dot chart can be divided into according to the color in the range points system of battle formations several region unit。If scene has the target of multiple different distance, through rim detection computing, the point color close due to distance value is close, dot chart can be divided into multiple region unit, so the size of barrier in scene can be judged by the number of statistical pixel point, carried out the general distance of disturbance in judgement thing distance users by the distance average of statistical pixel point。Namely when the number of statistics is more than default amount threshold, then judge that scene has barrier, send cue。Amount threshold represents the number of pixel, the size of barrier can be asked for by the number calculated according to pixel, when the number of pixels all in region unit is more than amount threshold, it is believed that the size of this object is likely to the user in walking is threatened, amount threshold can rule of thumb and emulation experiment obtain, through arranging amount threshold, it is possible to effectively avoid picture noise to disturb。
After having barrier in judging scene, preferably the distance according to barrier to user is pointed out, namely add up the distance average of all pixels of all blocks, when the distance average of all pixels of any one region unit is more than default distance threshold, send cue。Because the range points system of battle formations is generated by range information, so each color represents a kind of distance value, that is the distance in scene between object barrier and user is judged now by the distance average of all pixels in statistics each piece, when meansigma methods reaches the distance threshold specified, show that obstacle distance user is close, send cue;If do not continue to judge, until find;Distance threshold can be arranged according to practical situation。Alerting signal can be acoustical signal, for vibration signal or eject alert box, or the combination of three;Acoustical signal can be music, the tinkle of bells or voice。
Application example, user uses the mobile phone of application the present embodiment method, the walking of mobile phone limit is played on limit on pavement, mobile phone is with ground level at an angle, unexpected mobile phone strenuous vibration ejecting has barrier to need to avoid before alarm sounds, stop paces at once and look up, it has been found that the lamppost at all before almost having knocked。Lose no time to avoid。
The method of the embodiment of the present invention, according to whether Distance Judgment target is barrier, carries out alarm and reminding to user in advance, effectively prevents security incident。
Embodiment two,
Fig. 3 is a kind of walking along the street safety prompting system structural representation in the embodiment of the present invention;As it is shown on figure 3, this system includes:
Reminding unit 301, is used for sending alerting signal;Reminding unit can be buzzer, it is also possible to for playing the phonation circuit of sound, or has the integrated circuit (chip) of vocal function。
Image collection unit 302, for utilizing dual camera to gather the scene of synchronization;Image collection unit 302 includes dual camera, dual camera is preferably arranged parallel in two same parameter high-speed camera heads of terminal back, can design in same photographic head module, there is identical picture-taken frequency and image resolution ratio, and have already been through demarcation, calibration and coupling。The scene image data of synchronization can be gathered for analyzing during two photographic head work。
Data processing unit 303, for store collection scene and with each point of scene be target generate scene the range points system of battle formations a little;Data processing unit can be the processor including the above-mentioned processing method of this patent (the method is burnt to processor with the form of program)。
Judging unit 304, for for when the range information according to the range points system of battle formations judges there is barrier in scene, controlling reminding unit and send alerting signal;If it has not, continued to determine whether barrier, until finding。
Wherein, data processing unit 303 specifically for,
The each point according to scene parallax imaging in dual camera, calculates the distance of each point;
Distance according to each point calculated generate scene the range points system of battle formations a little;
When dual camera be arranged parallel when two same parameter high-speed camera heads of mobile phone back, adopt following formula to calculate the distance of each point of scene:
Wherein, f represents the focal length of each photographic head, and T represents the centre-to-centre spacing between dual camera, and d represents each point of scene parallax in dual camera image。
It is understood that when the parameter of described dual camera can also differ, it is also possible to calculate according to the parameter of described dual camera and obtain described distance Z。
Wherein, it is judged that unit 304 specifically for,
Dot chart is carried out rim detection computing, according to the range information in the range points system of battle formations, the range points system of battle formations is divided into several region unit;
Add up the number of the pixel of each region unit;
When the number of statistics is more than default amount threshold, then judges that scene has barrier, send cue。
Wherein, after having barrier in judging scene, also include:
When the distance average of all pixels of any one region unit is more than default distance threshold, send cue。
Embodiment three,
The invention process relates to a kind of terminal, and this terminal adopts the system in embodiment two to realize walking along the street safety prompt function function。This terminal can be the intelligent terminal such as mobile phone, panel computer, intelligent game computer or intelligent watch。
It should be noted that, for the system described in embodiment two and the terminal described in embodiment three, implementing process, owing to being described in detail in the method for embodiment one, and the system described in embodiment two and the terminal described in embodiment three also have the technique effect in embodiment one described in method, so place repeats no more。
Although being example purpose, having been disclosed for the preferred embodiments of the present invention, it is also possible for those skilled in the art will recognize various improvement, increase and replacement, and therefore, the scope of the present invention should be not limited to above-described embodiment。
Claims (9)
1. a walking along the street safety instruction method, it is characterised in that including:
Dual camera is utilized to gather the scene of synchronization;
With each point of scene be target generate scene the range points system of battle formations a little;
When the range information according to the range points system of battle formations judges there is barrier in scene, send cue。
2. the method for claim 1, it is characterised in that generate scene the range points system of battle formations a little, specifically include:
The each point according to scene parallax imaging in dual camera, calculates the distance of each point;
Distance according to each point calculated generate scene the range points system of battle formations a little。
3. method as claimed in claim 2, it is characterised in that send cue, specifically include:
Dot chart is carried out rim detection computing, according to the range information in the range points system of battle formations, the range points system of battle formations is divided into several region unit;
Add up the number of the pixel of each region unit;
When the number of statistics is more than default amount threshold, then judges that scene has barrier, send cue。
4. method as claimed in claim 3, it is characterised in that after having barrier in judging scene, also include:
When the distance average of all pixels of any one region unit is more than default distance threshold, send cue。
5. a walking along the street safety prompting system, it is characterised in that including:
Reminding unit, is used for sending alerting signal;
Image collection unit, for utilizing dual camera to gather the scene of synchronization;
Data processing unit, for store collection scene and with each point of scene be target generate scene the range points system of battle formations a little;
Judging unit, for when the range information according to the range points system of battle formations judges there is barrier in scene, controlling reminding unit and send alerting signal。
6. system as claimed in claim 5, it is characterised in that data processing unit specifically for,
The each point according to scene parallax imaging in dual camera, calculates the distance of each point;
Distance according to each point calculated generate scene the range points system of battle formations a little。
7. system as claimed in claim 5, it is characterised in that judging unit specifically for,
Dot chart is carried out rim detection computing, according to the range information in the range points system of battle formations, the range points system of battle formations is divided into several region unit;
Add up the number of the pixel of each region unit;
When the number of statistics is more than default amount threshold, then judges that scene has barrier, send cue。
8. system as claimed in claim 7, it is characterised in that after having barrier in judging scene, also include:
When the distance average of all pixels of any one region unit is more than default distance threshold, send cue。
9. a terminal, it is characterised in that described terminal adopts the arbitrary described system of claim 5-8 to walking along the street safety instruction。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410682615.7A CN105701961A (en) | 2014-11-24 | 2014-11-24 | Walking safety prompting method, system and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410682615.7A CN105701961A (en) | 2014-11-24 | 2014-11-24 | Walking safety prompting method, system and terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105701961A true CN105701961A (en) | 2016-06-22 |
Family
ID=56941410
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410682615.7A Pending CN105701961A (en) | 2014-11-24 | 2014-11-24 | Walking safety prompting method, system and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105701961A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106412297A (en) * | 2016-09-29 | 2017-02-15 | 努比亚技术有限公司 | Barrier warning method and device as well as mobile terminal |
CN106973143A (en) * | 2017-02-24 | 2017-07-21 | 上海与德信息技术有限公司 | Information cuing method and mobile terminal |
CN111973410A (en) * | 2020-06-30 | 2020-11-24 | 北京迈格威科技有限公司 | Obstacle detection method and device, obstacle avoidance equipment and computer readable storage medium |
CN112991793A (en) * | 2019-12-18 | 2021-06-18 | 东莞宇龙通信科技有限公司 | Early warning method, early warning device, intelligent lamp pole and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102685299A (en) * | 2011-03-08 | 2012-09-19 | 联想(北京)有限公司 | Obstacle dangerous case prompting method and hand-held terminal |
CN103284866A (en) * | 2012-02-24 | 2013-09-11 | 鸿富锦精密工业(深圳)有限公司 | Walking auxiliary system and walking auxiliary method |
CN103488554A (en) * | 2013-09-02 | 2014-01-01 | 三星电子(中国)研发中心 | Method and system for improving safety of using mobile equipment in advancing process |
CN103955920A (en) * | 2014-04-14 | 2014-07-30 | 桂林电子科技大学 | Binocular vision obstacle detection method based on three-dimensional point cloud segmentation |
US20140340518A1 (en) * | 2013-05-20 | 2014-11-20 | Nidec Elesys Corporation | External sensing device for vehicle, method of correcting axial deviation and recording medium |
-
2014
- 2014-11-24 CN CN201410682615.7A patent/CN105701961A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102685299A (en) * | 2011-03-08 | 2012-09-19 | 联想(北京)有限公司 | Obstacle dangerous case prompting method and hand-held terminal |
CN103284866A (en) * | 2012-02-24 | 2013-09-11 | 鸿富锦精密工业(深圳)有限公司 | Walking auxiliary system and walking auxiliary method |
US20140340518A1 (en) * | 2013-05-20 | 2014-11-20 | Nidec Elesys Corporation | External sensing device for vehicle, method of correcting axial deviation and recording medium |
CN103488554A (en) * | 2013-09-02 | 2014-01-01 | 三星电子(中国)研发中心 | Method and system for improving safety of using mobile equipment in advancing process |
CN103955920A (en) * | 2014-04-14 | 2014-07-30 | 桂林电子科技大学 | Binocular vision obstacle detection method based on three-dimensional point cloud segmentation |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106412297A (en) * | 2016-09-29 | 2017-02-15 | 努比亚技术有限公司 | Barrier warning method and device as well as mobile terminal |
CN106973143A (en) * | 2017-02-24 | 2017-07-21 | 上海与德信息技术有限公司 | Information cuing method and mobile terminal |
CN112991793A (en) * | 2019-12-18 | 2021-06-18 | 东莞宇龙通信科技有限公司 | Early warning method, early warning device, intelligent lamp pole and storage medium |
CN111973410A (en) * | 2020-06-30 | 2020-11-24 | 北京迈格威科技有限公司 | Obstacle detection method and device, obstacle avoidance equipment and computer readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10036809B2 (en) | Real-time warning for distracted pedestrians with smartphones | |
US9928710B2 (en) | Danger alerting method and device, portable electronic apparatus | |
CN109087485B (en) | Driving reminding method and device, intelligent glasses and storage medium | |
JP2021530820A (en) | 3D augmented reality including vehicles | |
CN105701961A (en) | Walking safety prompting method, system and terminal | |
CN109166141A (en) | Dangerous based reminding method, device, storage medium and mobile terminal | |
CN204465755U (en) | Can reciprocal stereo mixed reality device and apply the virtual implementing helmet of this device | |
CN111714891B (en) | Role climbing method and device, computer equipment and readable storage medium | |
JP2021509516A (en) | Collision control methods and devices, electronic devices and storage media | |
CN109495641B (en) | Reminding method and mobile terminal | |
CN105630164A (en) | Virtual reality spectacle case system and reminding method thereof | |
TW201413662A (en) | Portable mobile device | |
CN111583343B (en) | Visual positioning method, related device, equipment and storage medium | |
CN112258837B (en) | Vehicle early warning method, related device, equipment and storage medium | |
CN110448912A (en) | Terminal control method and terminal device | |
CN109062755A (en) | A kind of mobile terminal usage behavior monitoring based reminding method, device, medium and equipment | |
Foerster et al. | Spareeye: enhancing the safety of inattentionally blind smartphone users | |
CN109410535A (en) | A kind for the treatment of method and apparatus of scene information | |
Jin et al. | CycleGuard: A Smartphone-based Assistive Tool for Cyclist Safety Using Acoustic Ranging. | |
JP6822571B2 (en) | Terminal device, risk prediction method, program | |
CN107682542A (en) | A kind of barrier alarm method, mobile terminal and computer-readable recording medium | |
CN110838219A (en) | Danger prediction alarm method and device | |
CN107730830B (en) | Roadblock warning method, mobile terminal and computer readable storage medium | |
CN207097201U (en) | A kind of security information system for prompting | |
CN108269394A (en) | Security control method, traffic alarm system, user terminal and monitoring device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160622 |