CN109145740A - Road condition advisory method, apparatus, readable storage medium storing program for executing and terminal - Google Patents
Road condition advisory method, apparatus, readable storage medium storing program for executing and terminal Download PDFInfo
- Publication number
- CN109145740A CN109145740A CN201810791580.9A CN201810791580A CN109145740A CN 109145740 A CN109145740 A CN 109145740A CN 201810791580 A CN201810791580 A CN 201810791580A CN 109145740 A CN109145740 A CN 109145740A
- Authority
- CN
- China
- Prior art keywords
- image
- present image
- barrier
- information
- camera
- 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.)
- Withdrawn
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V20/00—Scenes; Scene-specific elements
- G06V20/10—Terrestrial scenes
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01S—RADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
- G01S19/00—Satellite radio beacon positioning systems; Determining position, velocity or attitude using signals transmitted by such systems
- G01S19/01—Satellite radio beacon positioning systems transmitting time-stamped messages, e.g. GPS [Global Positioning System], GLONASS [Global Orbiting Navigation Satellite System] or GALILEO
- G01S19/13—Receivers
- G01S19/14—Receivers specially adapted for specific applications
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Multimedia (AREA)
- Theoretical Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Traffic Control Systems (AREA)
Abstract
A kind of road condition advisory method, apparatus, readable storage medium storing program for executing and terminal, this method is applied in terminal, the terminal is equipped with camera, this method comprises: by the picture-in-picture mode that the camera is arranged, the preset window on current operation interface shows the preview interface of the camera;The present image of the preview interface is obtained in real time, and the present image is compared with the multiple images in the barrier image data base prestored respectively, with whether there are obstacles in the determination present image;When, there are the first prompt information when barrier, is issued, first prompt information is for reminding the current road conditions of user that there are barriers in the present image.In the embodiment of the present invention, by the way that the picture-in-picture mode of camera is arranged, it is shown in the preview interface of camera in the form of a preset window on current operation interface, and by image Determination road conditions barrier, and alarm.
Description
Technical field
The present invention relates to electronic technology field, more particularly to a kind of road condition advisory method, apparatus, readable storage medium storing program for executing and
Terminal.
Background technique
With the continuous development of electronic technology, intelligent terminal, such as mobile phone, tablet computer etc. be increasingly becoming people with
The external world is linked up and the important tool of personal resource management.It takes the mobile phone as an example, is provided more and more easily in mobile phone for people
Meanwhile people are increasing to the dependence of mobile phone, almost the moment pays close attention to mobile phone.
Having a large amount of user on road, on subway and in bus all at present is to bow to see screen, this kind of crowd by
As " race of bowing ", most of " race of bowing " all likes playing mobile phone while walking, since user merely sees the mobile phone and not have
The case where noticing periphery road conditions causes to bump against barrier and injury, even leads to serious traffic accident.
Summary of the invention
In view of the above situation, it is necessary to for user in the prior art on one side walk process while using terminal when it is inconvenient
Lead to the problem of bumping against barrier in checking road conditions, a kind of road condition advisory method, apparatus, readable storage medium storing program for executing and end are provided
End.
A kind of road condition advisory method is applied in terminal, and the terminal is equipped with camera, this method comprises:
By the way that the picture-in-picture mode of the camera is arranged, the preset window on current operation interface shows the camera
Preview interface;
Obtain the present image of the preview interface in real time, and by the present image respectively with the obstructions chart picture that prestores
Multiple images in database are compared, with whether there are obstacles in the determination present image;
When, there are the first prompt information when barrier, is issued, first prompt information is for mentioning in the present image
There are barriers for the current road conditions of user of waking up.
Further, above-mentioned road condition advisory method, wherein it is described by the present image respectively with the image data that prestores
Multiple obstructions chart pictures in library are compared, and with whether there are obstacles in determination present image the step of includes:
The characteristic information in the present image is extracted, by the characteristic information respectively and in the image data base that prestores
The standard feature information of multiple obstructions chart pictures is compared;
When the characteristic information includes the standard feature information of at least one obstructions chart picture, determine described current
There are barriers in image.
Further, above-mentioned road condition advisory method, wherein it is described by the present image respectively with the obstructions chart that prestores
After the step of being compared as the multiple images in database further include:
When in the present image there are when barrier, it is determining with the matched target disorders object image of the present image,
And obtain the type information of the barrier in the target disorders object image;
First prompt information is also used to prompt the user with the type information of the barrier.
Further, above-mentioned road condition advisory method, wherein the current figure of the preview interface for obtaining the camera in real time
Before the step of picture further include:
Whether the GPS system for detecting the terminal starts;
When the GPS system is inactive or GPS starting and when not set route information, execute described in obtaining in real time
The step of present image of the preview interface of camera;
When the GPS system starts, and when being provided with route information, judge whether to have in the multiple mark routes prestored with
The blip route that the route information is consistent, label has position where barrier on each mark route
Coordinate;
If it is not, the step of executing the present image for the preview interface for obtaining the camera in real time.
Further, above-mentioned road condition advisory method, wherein described to judge whether to have in multiple mark routes for prestoring and institute
After the step of stating the blip route that route information is consistent further include:
When having the blip route being consistent with the route information in the multiple mark routes prestored, pass through in real time
GPS system detects the current location where user;
When the position where any one barrier that the current location of the user reaches in the blip route is sat
When mark, the second prompt information is issued, the prompt information is for reminding the current road conditions of user that there are barriers.
Further, above-mentioned road condition advisory method, wherein the step of the present image for obtaining the preview interface in real time
Before rapid further include:
Judge whether user is in walking states, if so, executing the step for obtaining the present image of the preview interface in real time
Suddenly.
Further, above-mentioned road condition advisory method, further includes:
When getting the image storage signal that user acts in the preset window, will be shown in the preset window
The current frame image of preview interface of camera be stored in described image database.
The embodiment of the invention also provides a kind of road condition advisory devices, comprising:
Display module, the preset window for the picture-in-picture mode by the way that the camera is arranged, on current operation interface
Show the preview interface of the camera;
Comparison module, for obtaining the present image of the preview interface in real time, and respectively and in advance by the present image
The multiple images in barrier image data base deposited are compared, with whether there are obstacles in the determination present image;
First cue module, for when there are when barrier, issuing the first prompt information in the present image, described the
One prompt information is for reminding the current road conditions of user that there are barriers.
Further, above-mentioned road condition advisory device, wherein the comparison module is specifically used for:
The characteristic information in the present image is extracted, by the characteristic information respectively and in the image data base that prestores
The standard feature information of multiple obstructions chart pictures is compared;
When the characteristic information includes the standard feature information of at least one obstructions chart picture, determine described current
There are barriers in image.
Further, above-mentioned road condition advisory device, further includes:
Obtain module, for when in the present image there are when barrier, it is determining with the matched mesh of the present image
Obstructions chart picture is marked, and obtains the type information of the barrier in the target disorders object image;
First prompt information is also used to prompt the user with the type information of the barrier.
Further, above-mentioned road condition advisory device, further includes:
Whether first detection module, the GPS system for detecting the terminal start, when the GPS system is inactive, or
When GPS starting and not set route information, the step of executing the present image for the preview interface for obtaining the camera in real time;
First judgment module for starting when the GPS system, and when being provided with route information, judges to prestore multiple
Whether there is the blip route being consistent with the route information in mark route, marking on each mark route has
Position coordinates where a barrier, if it is not, the step of executing the present image for the preview interface for obtaining the camera in real time.
Further, above-mentioned road condition advisory device, further includes:
Second detection module has the target mark being consistent with the route information for working as in the multiple mark routes prestored
When will route, the current location where user is detected by GPS system in real time;
Second cue module reaches any one barrier in the blip route for the current location as the user
When hindering the position coordinates where object, the second prompt information is issued, the prompt information is for reminding user that current road conditions have barrier
Hinder object.
Further, above-mentioned road condition advisory device, further includes:
Second judgment module obtains preview circle if so, executing for judging whether user is in walking states in real time
The step of present image in face.
Further, above-mentioned road condition advisory device, further includes:
Memory module will be described for when getting the image that user acts in the preset window and storing signal
The current frame image of the preview interface of the camera shown in preset window is stored in described image database.
The embodiment of the invention also provides a kind of readable storage medium storing program for executing, are stored thereon with program, described program is by processor
Above-mentioned method is realized when execution.
The embodiment of the invention also provides a kind of terminal, including memory, processor and storage are on a memory and can
The program run on a processor, the processor realize above-mentioned method when executing described program.
In the embodiment of the present invention, by the way that the picture-in-picture mode of camera is arranged, make the preview interface of camera with a preset window
Form be shown on current operation interface.User can watch the picture in preset window while using terminal, pass through
The preset window can understand the picture for being directly seen the road conditions of camera shooting.Meanwhile by comparing preset window circle in real time
Obstructions chart picture in the image and image data base in face, it can be determined that whether there is obstacle in the present image in preset window
Object, and early warning is carried out, even if user in no viewing preset window, can also carry out mentioning for barrier by terminal
Show, to improve the safety of user in the process of walking.
Detailed description of the invention
Fig. 1 is the flow chart of road conditions reminding method in first embodiment of the invention;
Fig. 2 is the flow chart of road conditions reminding method in second embodiment of the invention;
Fig. 3 is the flow chart of road conditions reminding method in third embodiment of the invention;
Fig. 4 is the structural block diagram of road conditions suggestion device in fourth embodiment of the invention.
Specific embodiment
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end
Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached
The embodiment of figure description is exemplary, and for explaining only the invention, and is not considered as limiting the invention.
Referring to following description and drawings, it will be clear that these and other aspects of the embodiment of the present invention.In these descriptions
In attached drawing, some particular implementations in the embodiment of the present invention are specifically disclosed, to indicate to implement implementation of the invention
Some modes of the principle of example, but it is to be understood that the scope of embodiments of the invention is not limited.On the contrary, of the invention
Embodiment includes all changes, modification and the equivalent fallen within the scope of the spirit and intension of attached claims.
Referring to Fig. 1, this method is applied in terminal for the road condition advisory method in first embodiment of the invention, it is used for
User carries out the detection of road conditions barrier in the process of walking and prompts, which is, for example, mobile phone, plate etc..The terminal
In camera is installed, to carry out Taking Photographic etc..The road condition advisory method includes step S11~S14.
Step S11, by the way that the picture-in-picture mode of camera is arranged, the preset window on current operation interface shows the phase
The preview interface of machine.
Picture-in-picture mode is a kind of special multiwindow mode, is mainly used for backstage and plays video.Picture-in-picture function allows
Video content is run on other tasks with the pattern for the wicket that suspends, it is close and more convenient to handle multinomial at leisure
Business.Picture-in-picture function has been supported in existing 8.0 system of Android and iOS9 system.Such as 8.0 system of Android
When middle broadcasting video, after opening backstage playing function, presses Home key and return to desktop, the video watched will be with picture-in-picture
Mode is shown.
Existing picture-in-picture mode is mainly used for the broadcasting of video, is based on this, passes through the picture of setting camera in the present embodiment
Middle mode realizes the preview interface that camera is shown in the preset window in current operation interface.With 8.0 system of Android
For, the attribute of the picture-in-picture function is supported in addition in the preview activity of camera.After adding attribute, terminal passes through calling
Into the method (enterPictureInPictureMode) of picture-in-picture mode, camera is made to enter picture-in-picture mode.Specific implementation
When, it can be called in the onPause method or onUserLeaveHint method in camera preview activity
EnterPictureInPictureMode can also individually add a button or suspension ball on the display interface of camera,
And enterPictureInPictureMode is called in the response events of the button or suspension ball.
It should be understood that the camera of terminal is generally arranged rear camera, user in the process of walking using terminal when, after
It sets camera and is typically toward ground, what is acquired is the image on ground.Therefore adjustable when the picture-in-picture mode of terminal setting camera
With the preview interface of the rear camera of camera.After the picture-in-picture mode of camera is set, it can be returned to by triggering Home key
The preview interface of desktop, camera will be shown with a small preset window on the upper layer at current operation interface.The preset window
Default size and position can be preset, such as its default size is the 1/4 of screen size, positioned at the right side at current operation interface
Inferior horn.In use, user can voluntarily modify size and the position of the preset window on current operation interface, in order to
The content of more preferable viewing and operation current operation interface.Such as user can drag preset window, be moved into suitable position
Or amplification is contracted or the size of small preset window, amplification and the operation reduced are identical as the operation of existing picture or document, can
It is realized by multi-point touch.After terminal enters picture-in-picture mode, the preview interface of camera can be watched at current operation interface
Content, while other application can also be operated on current operation interface.
Step S12, obtains the present image of the preview interface in real time, and by the present image respectively with the figure that prestores
As multiple obstructions chart pictures in database are compared, with whether there are obstacles in the determination present image.
User at using terminal on foot (such as mobile phone), be absorbed in terminal by sight, and ignoring traffic information may lead
Cause bumps against barrier and injured or cause traffic accident etc..For the inherently safe of user, the picture-in-picture of terminal camera can be opened
Mode, to show the preview interface of camera rear camera in the preset window at current operation interface.User can use
The surface conditions of rear camera shooting are seen while terminal by the preset window.
Also, after terminal opens picture-in-picture mode, the image of preview interface in preset window is obtained in real time.Specific implementation
When, terminal can obtain the image of preview interface at predetermined intervals, which can be set according to actual needs
It sets, such as may be configured as acquiring an image every 0.5s.In the present image and image data base that terminal will acquire in real time
Image is compared, and to determine, whether there are obstacles in present image.The image data base prestores in the terminal comprising more
A obstructions chart picture, each obstructions chart picture be shooting include at least one barrier image, the barrier is for example
Zanjon, zebra stripes, railing, step etc..Obstructions chart picture in the database can be obtained from number of ways, such as can be user
It is downloaded from network, is also possible to shoot by the camera of the terminal, be also possible to during enabling picture-in-picture mode
It is obtained from preview interface.And user can constantly add new obstructions chart picture into the image data base as needed,
The obstructions chart picture in image data base can also be deleted.
When carrying out image comparison, existing image-recognizing method can be used to the obstacle in present image and image data base
Object image is compared, such as the method for extracting characteristic information can be used or utilize perceptual hash algorithm.When from image data base
In when being matched to that one identical or most similar image, it is determined that there are barriers in present image.
Step S13, when there are when barrier, issue the first prompt information, the first prompt letter in the present image
Breath is for reminding the current road conditions of user that there are barriers.
When detecting in current figure there are when barrier, the first prompt information is issued, is deposited with reminding in the current road conditions of user
In barrier.At least one of terminal issues there are many modes of the first prompt information, such as following manner can be used:
In current operation interface display suggestion content;
The vibrator of controlling terminal vibrates;
The tinkle of bells of controlling terminal sounds;
Preset window is highlighted.
Wherein, in current operation interface display suggestion content, such as can be in preset window or in preset window peripheral region
Domain shows text information, to carry out barrier warning.The vibration of controlling terminal vibrator is triggering terminal vibration operation.It will be pre-
If window highlighted, for example, control preset window shake or set bright color for the frame of preset window.
Further, which can cancel automatically after preset time period, such as terminal is mentioned in sending first
Stop sending after showing information 5s.It first is mentioned it should be understood that user can also cancel this manually by the control in triggering terminal
Show that information, such as any position by clicking on preset window interface can cancel the first prompt information.Also, user not
When in walking states or being not required to carry out road condition advisory, the picture-in-picture mode of camera can be exited, such as by preset window
The off option, which closes the preset window, can exit the picture-in-picture mode of camera.
In the present embodiment, by the way that the picture-in-picture mode of camera is arranged, make the preview interface of camera with the shape of a preset window
Formula is shown on current operation interface.User can watch the picture in preset window while using terminal, pre- by this
If window can understand the picture for being directly seen the road conditions of camera shooting.Meanwhile by comparing preset window interface in real time
Obstructions chart picture in image and image data base, it can be determined that whether there are obstacles in the present image in preset window,
And early warning is carried out, even if user in no viewing preset window, can also carry out the prompt of barrier by terminal, with
Improve the safety of user in the process of walking.
Referring to Fig. 2, for the road condition advisory method in second embodiment of the invention, including step S21~S25.
Step S21, by the way that the picture-in-picture mode of the camera is arranged, the preset window on current operation interface shows institute
State the preview interface of camera.
Step S22, obtains the present image of the preview interface in real time, and extracts the letter of the feature in the present image
Breath.
Step S23, by the characteristic information standard with multiple obstructions chart pictures in the image data base that prestores respectively
Characteristic information is compared.
When starting the picture-in-picture mode of camera, terminal is implemented to obtain the present image of the preview interface of camera, and extracts and work as
Characteristic information in preceding image.Existing feature information extraction algorithm can be used to the extraction of the characteristic information of image, it is common
Feature extraction algorithm is broadly divided into following 3 class: being based on color characteristic (such as color histogram, color set);Based on textural characteristics
(such as Tamura textural characteristics, autoregression texture model);Based on shape feature (such as Fourier shape description symbols, small echo profile
Descriptor etc.).
Multiple obstructions chart pictures are prestored in image data base in the present embodiment, for the ease of the feature of obstructions chart picture
Information extraction preferably only includes a barrier, the corresponding typonym of each barrier in each obstructions chart picture.Such as one
Barrier in obstructions chart picture is step, then the typonym of the barrier is " step ".
Each obstructions chart picture in image data base can be used feature information extraction algorithm mentioned above and carry out feature
The extraction of information, and in the specific implementation, can the terminal storage obstructions chart as when, extract the obstacle in the obstructions chart picture
The characteristic information of object, obtains the standard feature information of each barrier, and by obtained standard feature information and obstructions chart picture
And the typonym corresponding storage of barrier calls directly the standard feature information of storage when progress characteristic information compares.
In preset window, the present image of preview interface may include one or more barriers, therefore terminal is extracted
Present image characteristic information include one or more barriers characteristic information.Terminal is by the feature of the present image of extraction
Information is compared with the standard feature information of each obstructions chart picture in image data base respectively.When the feature of present image
When in information including the standard feature information of one or more obstructions chart pictures, illustrate there is one or more in present image
Barrier.
Step S24 is determined when the characteristic information includes the standard feature information of at least one obstructions chart picture
There are barriers in the present image, and determine the corresponding type of the standard feature information for including in the characteristic information
Information.
Step S25 issues the first prompt information, and first prompt information is for reminding the current road conditions of user that there are obstacles
The type information of object and the barrier.
When terminal, which determines, in present image includes the standard feature information of one or more obstructions chart pictures, then illustrate
There are barriers in present image, at this point, determining matched target disorders object image according to comparison result, and obtain target barrier
Hinder the type information of the barrier in object image.The first prompt information is finally sent, first prompt information is for reminding user
There are barrier and the typonyms of corresponding barrier for current road conditions.Specifically, first prompt information can be by preceding behaviour
Make the corresponding text information shown on interface expression, such as " minding the step ", also can control terminal while display text
Vibration or jingle bell highlight preset window.
It should be understood that can also carry out step before step S22:
Judge user currently whether in walking states.When user is in walking states, step S22 is executed.
User when walking may certain reason temporarily stop, such as see barrier, wait traffic lights or timeout.With
In stationary state, danger coefficient is not high at family, therefore can not have to the image and barrier that obtain camera preview interface
Comparison and warning note avoid the unnecessary program operation of terminal.
Wherein, user can be judged according to the pedometer being arranged in terminal currently whether in walking states, when monitoring
When the enumeration data of pedometer increases, it is determined that active user is in walking states.It should be understood that pedometer can also be combined
Judge the state of user with GPS locator, i.e., when the counting of pedometer detection is increasing, and GPS locator is detected simultaneously by
When mobile used in family, then it can determine that user is in moving condition, to increase the accuracy of state-detection.
Further, as a kind of enforceable mode of the invention, which is further comprised the steps of:
When getting the image storage signal that user acts in the preset window, will be shown in the preset window
The current frame image of preview interface of camera be stored in described image database.
For sophisticated image database, the barrier that user can will be seen that under picture-in-picture mode is taken pictures, and will be clapped
The image taken the photograph is stored in image data base.The step of saving the image in preset window in preview interface can be in starting picture-in-picture
Any time after mode carries out.
Specifically, when user saves the current frame image of preview interface in preset window, capable of emitting prompting frame, with prompt
Whether user stores current frame image, if receive the confirmation message of user, using the current frame image as obstructions chart picture
It is stored in image data base.And when user stores current frame image, the type information of the editable current frame image, terminal
It is stored in the current frame image is corresponding with the type information in image data base.
Referring to Fig. 3, for the road condition advisory method in third embodiment of the invention, one kind as second embodiment changes
Into also executing step S31~S34 before step S22.
Whether step S31, the GPS system for detecting the terminal start, no to then follow the steps if executing step S32
S22。
Step S32, detects whether the GPS system is arranged route information, no to then follow the steps if executing step S33
S22。
Step S33 judges whether there is the blip being consistent with the route information in the multiple mark routes prestored
Route, it is no to then follow the steps S22 if executing step S34, wherein label has barrier on each mark route
The position coordinates at place.
Step S34 detects the current location where user, when the current location of the user is arrived by GPS system in real time
When up to position coordinates where any one barrier in the blip route, the second prompt information, the prompt are issued
Information is for reminding the current road conditions of user that there are barriers.
The GPS system is generally used in terminal in map application, the setting for position detection and route.GPS system
State can be identified by system sign position, when GPS system starting when its flag bit be " 1 ", GPS system close when,
Flag bit is " 0 ".Terminal can judge whether GPS system starts by obtaining the flag bit of GPS system.
When GPS system starting, then judge whether be provided with route information in the GPS system.The route information is user
The route that the needs added in GPS system are walked, the information of start position and final position including route.When the GPS system
When being added to route information in system, then judge whether there is the target being consistent with the route information in the multiple mark routes prestored
Indicate route.Multiple mark route is stored in advance in the terminal, can be set as needed it is a plurality of, such as between company and family
Route, the route between school and family, the route between supermarket and family etc., each mark route includes start position and terminal
Location information, and label has the position coordinates where barrier on the mark route.
The mark route can be default setting in terminal system, be also possible to what user voluntarily added.Specifically, with
When family addition mark route, one route (including beginning and end information) can be set in the GPS system of terminal, and on the route
Addition label is on the position of the barrier (zebra stripes, street lamp, step etc.) of appearance with the label is, for example, barrier title.Eventually
End obtains the route information of user's addition, and the position coordinates and the barrier of barrier are obtained according to the label of user's addition
Typonym, and then generate a mark route, and store the mark route.
In use, input route information in GPS system after user starts GPS system, such as subsidiary company is to going home.When
When the blip route that terminal inquiry is consistent to the route information with user setting, then by the user of GPS system real-time detection
Current position coordinates be compared with the blip route, when the current location of user reach in the blip route appoint
Anticipate a barrier position when, issue the second prompt information.Wherein, the second prompt information can be identical as the first prompt information,
It will not go into details herein.In the present embodiment, the route that GPS system and user setting are opened in terminal is the blip prestored
When route, it can not have to open picture-in-picture preview, road conditions detection directly be carried out by GPS system, if user reaches the target
When indicating the barrier place of routing indicator, then the second prompt information is popped up, to carry out the prompting of barrier.
When there are following any one situations, terminal executes step S22:
When the GPS system of terminal does not start;
The GPS system of terminal starts, and not set line information;
The GPS system of terminal starts, and the line information being arranged is not the information in the multiple mark routes prestored.
I.e. when not being available GPS system detection road conditions, it can be used such as the picture-in-picture mode in first or second embodiments
Carry out the detection of road conditions.
It should be understood that the mode of GPS system and picture-in-picture mode is each advantageous, user can select wherein one as needed
The detection for carrying out road conditions can also be used in combination in a progress road conditions detection in two ways, to this present invention without limiting.
Referring to Fig. 4, for the road condition advisory device 40 in fourth embodiment of the invention, comprising:
Display module 401, the default window for the picture-in-picture mode by the way that the camera is arranged, on current operation interface
Mouth shows the preview interface of the camera;
Comparison module 402, for obtaining the present image of the preview interface in real time, and by the present image respectively with
The multiple images in barrier image data base prestored are compared, whether there is obstacle in the determination present image
Object;
First cue module 403, for when there are when barrier, issuing the first prompt information, institute in the present image
The first prompt information is stated for reminding the current road conditions of user that there are barriers.
Further, above-mentioned road condition advisory device, wherein the comparison module 200 is specifically used for:
The characteristic information in the present image is extracted, by the characteristic information respectively and in the image data base that prestores
The standard feature information of multiple obstructions chart pictures is compared;
When the characteristic information includes the standard feature information of at least one obstructions chart picture, determine described current
There are barriers in image.
Further, above-mentioned road condition advisory device, wherein further include:
Module 404 is obtained, for when, there are when barrier, determination is matched with the present image in the present image
Target disorders object image, and obtain the type information of the barrier in the target disorders object image;
First prompt information is also used to prompt the user with the type information of the barrier.
Further, above-mentioned road condition advisory device, further includes:
Whether first detection module 405, the GPS system for detecting the terminal start, when the GPS system does not open
When the dynamic or described GPS starting and not set route information, the present image for the preview interface for obtaining the camera in real time is executed
Step;
First judgment module 406 for starting when the GPS system, and when being provided with route information, judges to prestore more
Whether have the blip route being consistent with the route information in a mark route, label has on each mark route
Position coordinates where each barrier, if it is not, the step of executing the present image for the preview interface for obtaining the camera in real time.
Further, above-mentioned road condition advisory device, further includes:
Second detection module 407 has the mesh being consistent with the route information for working as in the multiple mark routes prestored
When mark mark route, the current location where user is detected by GPS system in real time;
Second cue module 408 reaches any in the blip route for the current location as the user
When position coordinates where one barrier, the second prompt information is issued, the prompt information is for reminding user that current road conditions are deposited
In barrier.
Further, above-mentioned road condition advisory device, further includes:
Second judgment module 409, for judging whether user is in walking states, if so, execute obtain in real time it is described pre-
Look at interface present image the step of.
Further, above-mentioned road condition advisory device, further includes:
Memory module 410, for when getting the image that user acts in the preset window and storing signal, by institute
The current frame image for stating the preview interface of the camera shown in preset window is stored in described image database.
The technical effect and preceding method of road condition advisory device provided by the embodiment of the present invention, realization principle and generation
Embodiment is identical, and to briefly describe, Installation practice part does not refer to place, can refer in corresponding in preceding method embodiment
Hold.
The present invention also proposes a kind of readable storage medium storing program for executing, is stored thereon with computer program, which is executed by processor
Shi Shixian above-mentioned road condition advisory method.
This is the embodiment of the invention also provides a kind of terminal, including memory, processor and storage are on a memory simultaneously
The step of computer program that can be run on a processor, the processor realizes the above method when executing described program.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use
In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for
Instruction execution system, device or equipment (such as computer based system, including the system of processor or other can be held from instruction
The instruction fetch of row system, device or equipment and the system executed instruction) it uses, or combine these instruction execution systems, device or set
It is standby and use.For the purpose of this specification, " computer-readable medium ", which can be, any may include, stores, communicates, propagates or pass
Defeated program is for instruction execution system, device or equipment or the dress used in conjunction with these instruction execution systems, device or equipment
It sets.
The more specific example (non-exhaustive list) of computer-readable medium include the following: there are one or more wirings
Electrical connection section (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory
(ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits
Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable
Medium, because can then be edited, be interpreted or when necessary with it for example by carrying out optical scanner to paper or other media
His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each section of the invention can be realized with hardware, software, firmware or their combination.Above-mentioned
In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage
Or firmware is realized.It, and in another embodiment, can be under well known in the art for example, if realized with hardware
Any one of column technology or their combination are realized: having a logic gates for realizing logic function to data-signal
Discrete logic, with suitable combinational logic gate circuit specific integrated circuit, programmable gate array (PGA), scene
Programmable gate array (FPGA) etc..
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example
Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not
Centainly refer to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be any
One or more embodiment or examples in can be combined in any suitable manner.
The embodiments described above only express several embodiments of the present invention, and the description thereof is more specific and detailed, but simultaneously
Limitations on the scope of the patent of the present invention therefore cannot be interpreted as.It should be pointed out that for those of ordinary skill in the art
For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to guarantor of the invention
Protect range.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.
Claims (10)
1. a kind of road condition advisory method is applied in terminal, the terminal is equipped with camera characterized by comprising
By the way that the picture-in-picture mode of the camera is arranged, the preset window on current operation interface shows the preview of the camera
Interface;
Obtain the present image of the preview interface in real time, and by the present image respectively with the barrier image data that prestores
Multiple images in library are compared, with whether there are obstacles in the determination present image;
When, there are the first prompt information when barrier, is issued, first prompt information is used for reminding in the present image
There are barriers for the current road conditions in family.
2. road condition advisory method as described in claim 1, which is characterized in that it is described by the present image respectively with prestore
Multiple obstructions chart pictures in image data base are compared, the step of with whether there are obstacles in the determination present image
Include:
Extract the characteristic information in the present image, by the characteristic information respectively with it is multiple in the image data base that prestores
The standard feature information of obstructions chart picture is compared;
When the characteristic information includes the standard feature information of at least one obstructions chart picture, the present image is determined
In there are barriers.
3. road condition advisory method as described in claim 1, which is characterized in that it is described by the present image respectively with prestore
After the step of multiple images in barrier image data base are compared further include:
When in the present image there are when barrier, it is determining with the matched target disorders object image of the present image, and obtain
Take the type information of the barrier in the target disorders object image;
First prompt information is also used to prompt the user with the type information of the barrier.
4. road condition advisory method as described in claim 1, which is characterized in that the preview interface for obtaining the camera in real time
Present image the step of before further include:
Whether the GPS system for detecting the terminal starts;
When the GPS system is inactive or GPS starting and when not set route information, execution obtains the camera in real time
Preview interface present image the step of;
When the GPS system starts, and when being provided with route information, judge whether to have in the multiple mark routes prestored with it is described
The blip route that route information is consistent, label has the position where barrier to sit on each mark route
Mark;
If it is not, the step of executing the present image for the preview interface for obtaining the camera in real time.
5. road condition advisory method as claimed in claim 4, which is characterized in that be in multiple mark routes that the judgement prestores
It is no have the step of blip route being consistent with the route information after further include:
When having the blip route being consistent with the route information in the multiple mark routes prestored, pass through GPS in real time
Current location where system detection user;
When the position coordinates where any one barrier that the current location of the user reaches in the blip route,
The second prompt information is issued, the prompt information is for reminding the current road conditions of user that there are barriers.
6. road condition advisory method as described in claim 1, which is characterized in that described to obtain the current of the preview interface in real time
Before the step of image further include:
Judge whether user is in walking states, if so, executing the step of obtaining the present image of the preview interface in real time.
7. road condition advisory method as described in claim 1, which is characterized in that further include:
When getting the image that user acts in the preset window and storing signal, the phase that will be shown in the preset window
The current frame image of the preview interface of machine is stored in described image database.
8. a kind of road condition advisory device characterized by comprising
Display module, for the picture-in-picture mode by the way that the camera is arranged, the preset window on current operation interface is shown
The preview interface of the camera;
Comparison module, for obtaining the present image of the preview interface in real time, and by the present image respectively with prestore
Multiple images in barrier image data base are compared, with whether there are obstacles in the determination present image;
First cue module, for when, there are when barrier, the first prompt information of sending, described first mentions in the present image
Show information for reminding the current road conditions of user that there are barriers.
9. a kind of readable storage medium storing program for executing, is stored thereon with program, which is characterized in that realized such as when described program is executed by processor
Method as claimed in claim 1 to 7.
10. a kind of terminal including memory, processor and stores the program that can be run on a memory and on a processor,
It is characterized in that, the processor realizes the method as described in claim 1-7 any one when executing described program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810791580.9A CN109145740A (en) | 2018-07-18 | 2018-07-18 | Road condition advisory method, apparatus, readable storage medium storing program for executing and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810791580.9A CN109145740A (en) | 2018-07-18 | 2018-07-18 | Road condition advisory method, apparatus, readable storage medium storing program for executing and terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109145740A true CN109145740A (en) | 2019-01-04 |
Family
ID=64801171
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810791580.9A Withdrawn CN109145740A (en) | 2018-07-18 | 2018-07-18 | Road condition advisory method, apparatus, readable storage medium storing program for executing and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109145740A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110517446A (en) * | 2019-08-28 | 2019-11-29 | Oppo(重庆)智能科技有限公司 | A kind of security prompt method and portable device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003024391A (en) * | 2001-07-16 | 2003-01-28 | Hitachi Kokusai Electric Inc | Automatic traveling system for wheelchair |
CN101227539A (en) * | 2007-01-18 | 2008-07-23 | 联想移动通信科技有限公司 | Blind guiding mobile phone and blind guiding method |
US20090122140A1 (en) * | 2007-11-09 | 2009-05-14 | Kosuke Imamura | Method and apparatus for generating a bird's-eye view image |
CN101986673A (en) * | 2010-09-03 | 2011-03-16 | 浙江大学 | Intelligent mobile phone blind-guiding device and blind-guiding method |
CN204498208U (en) * | 2015-04-22 | 2015-07-22 | 四川华立德科技有限公司 | A kind of automatic collision mobile phone of self-starting anti-collision early warning function |
CN105843387A (en) * | 2016-03-21 | 2016-08-10 | 广东欧珀移动通信有限公司 | Head-down display method and device of mobile terminal, and mobile terminal |
-
2018
- 2018-07-18 CN CN201810791580.9A patent/CN109145740A/en not_active Withdrawn
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003024391A (en) * | 2001-07-16 | 2003-01-28 | Hitachi Kokusai Electric Inc | Automatic traveling system for wheelchair |
CN101227539A (en) * | 2007-01-18 | 2008-07-23 | 联想移动通信科技有限公司 | Blind guiding mobile phone and blind guiding method |
US20090122140A1 (en) * | 2007-11-09 | 2009-05-14 | Kosuke Imamura | Method and apparatus for generating a bird's-eye view image |
CN101986673A (en) * | 2010-09-03 | 2011-03-16 | 浙江大学 | Intelligent mobile phone blind-guiding device and blind-guiding method |
CN204498208U (en) * | 2015-04-22 | 2015-07-22 | 四川华立德科技有限公司 | A kind of automatic collision mobile phone of self-starting anti-collision early warning function |
CN105843387A (en) * | 2016-03-21 | 2016-08-10 | 广东欧珀移动通信有限公司 | Head-down display method and device of mobile terminal, and mobile terminal |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110517446A (en) * | 2019-08-28 | 2019-11-29 | Oppo(重庆)智能科技有限公司 | A kind of security prompt method and portable device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20120194554A1 (en) | Information processing device, alarm method, and program | |
US9928710B2 (en) | Danger alerting method and device, portable electronic apparatus | |
US20180247505A1 (en) | Surveillance camera system and surveillance method | |
KR20190115040A (en) | Methods, devices, equipment and storage media for determining driving behavior | |
US20090128632A1 (en) | Camera and image processor | |
WO2012101720A1 (en) | Information processing device, alarm method, and program | |
US11059458B2 (en) | System and method for cleaning obstructions for the sensors of an autonomous vehicle | |
JP6634887B2 (en) | Information providing system, method, program and network system | |
CN107909840B (en) | Information publishing method, device and computer readable storage medium | |
WO2020011088A1 (en) | Bowed head reminding method and device, and readable storage medium and mobile terminal | |
JP2016507746A (en) | Method and terminal for discovering augmented reality objects | |
CN110210045B (en) | Method and device for estimating number of people in target area and storage medium | |
CN106953977B (en) | A kind of monitoring method and system based on mobile terminal | |
CN109059945A (en) | Method, terminal device and the computer readable storage medium of traffic information processing | |
US20200258395A1 (en) | Vehicle detection system and vehicle detection method | |
JPWO2018131238A1 (en) | Information processing apparatus, information processing method, and program | |
CN110007832B (en) | Information terminal device, information processing system, and computer-readable non-transitory storage medium storing display control program | |
CN110865756A (en) | Image labeling method, device, equipment and storage medium | |
CN111337049A (en) | Navigation method and electronic equipment | |
CN109410535A (en) | A kind for the treatment of method and apparatus of scene information | |
CN110991260B (en) | Scene marking method, device, equipment and storage medium | |
JP2011138421A (en) | Apparatus and method for displaying map, and program | |
CN112991439B (en) | Method, device, electronic equipment and medium for positioning target object | |
KR101634972B1 (en) | System, method and computer readable recording medium for informing emergency state | |
CN109145740A (en) | Road condition advisory method, apparatus, readable storage medium storing program for executing and terminal |
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 | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20190104 |
|
WW01 | Invention patent application withdrawn after publication |