CN108318042A - Navigation mode-switching method, device, terminal and storage medium - Google Patents

Navigation mode-switching method, device, terminal and storage medium Download PDF

Info

Publication number
CN108318042A
CN108318042A CN201810085325.2A CN201810085325A CN108318042A CN 108318042 A CN108318042 A CN 108318042A CN 201810085325 A CN201810085325 A CN 201810085325A CN 108318042 A CN108318042 A CN 108318042A
Authority
CN
China
Prior art keywords
navigation
terminal
threshold value
network signal
pattern
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
Application number
CN201810085325.2A
Other languages
Chinese (zh)
Inventor
张烨
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810085325.2A priority Critical patent/CN108318042A/en
Publication of CN108318042A publication Critical patent/CN108318042A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C21/00Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
    • G01C21/26Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 specially adapted for navigation in a road network
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C21/00Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
    • G01C21/26Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 specially adapted for navigation in a road network
    • G01C21/28Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 specially adapted for navigation in a road network with correlation of data from several navigational instruments

Abstract

This application discloses a kind of navigation mode-switching method, device, terminal and storage mediums, belong to field of terminal technology.The method includes:After opening navigation feature, it is navigated with the pattern of navigating online, network signal intensity is detected in navigation procedure, when network signal intensity is less than predetermined strength threshold value, and duration is when reaching preset duration threshold value, by the navigation pattern of terminal from online navigation pattern switching be offline navigation pattern.Navigation pattern is automatically switched to offline navigation pattern by the embodiment of the present application by terminal when network signal intensity is less than predetermined strength threshold value and duration is more than preset duration threshold value, it avoids the case where network connection state shakiness timing terminal is still in online navigation pattern, improves the accuracy and efficiency of terminal guidance.

Description

Navigation mode-switching method, device, terminal and storage medium
Technical field
The invention relates to field of terminal technology, more particularly to a kind of navigation mode-switching method, device, terminal and Storage medium.
Background technology
It is widely available with terminal, during the trip of user would generally using terminal navigate.Terminal is led Model plane formula generally includes online navigation pattern and offline navigation pattern.
In the related technology, when terminal accesses internet, the navigation pattern that terminal acquiescence uses is online navigation pattern, i.e., Terminal obtains networking navigation data from server, is navigated according to the networking navigation data got.
Invention content
The embodiment of the present application provides a kind of navigation mode-switching method, device, terminal and storage medium, can be used for solving The less efficient problem of terminal guidance certainly when network connection state is unstable.Technical solution is as follows:
According to the embodiment of the present application in a first aspect, provide a kind of navigation mode-switching method, the method includes:
After opening navigation feature, navigated with the pattern of navigating online;
Network signal intensity, the network that the terminal that the network signal intensity is used to indicate is accessed are detected in navigation procedure The signal quality of signal;
When the network signal intensity is less than predetermined strength threshold value, and duration reaches preset duration threshold value, by institute State the navigation pattern of terminal from the online navigation pattern switching be offline navigation pattern.
According to the second aspect of the embodiment of the present application, a kind of navigation mode-changeover device is provided, described device includes:
Navigation module, for after opening navigation feature, being navigated with the pattern of navigating online;
Detection module, for detecting network signal intensity in navigation procedure, the network signal intensity is used to indicate end Hold the signal quality of accessed network signal;
Handover module is used to be less than predetermined strength threshold value when the network signal intensity, and duration reaches preset duration When threshold value, by the navigation pattern of the terminal from the online navigation pattern switching be offline navigation pattern.
According to the third aspect of the embodiment of the present application, a kind of terminal is provided, the terminal includes processor and memory, It is stored at least one instruction in the memory, described instruction is loaded by the processor and executed to realize such as the application the One side and its any navigation mode-switching method of alternative embodiment.
According to the fourth aspect of the embodiment of the present application, a kind of computer readable storage medium, the storage medium are provided In be stored at least one instruction, described instruction is loaded by processor and is executed to realize such as the application first aspect and its optional Any navigation mode-switching method of embodiment.
The advantageous effect that technical solution provided by the embodiments of the present application is brought includes at least:
By after opening navigation feature, being navigated with the pattern of navigating online, network signal being detected in navigation procedure Intensity, when network signal intensity is less than predetermined strength threshold value, and duration reaches preset duration threshold value, by the navigation of terminal Pattern is from online pattern switching of navigating for offline navigation pattern;It enables the terminal to be less than predetermined strength threshold in network signal intensity Value and duration will navigate pattern switching as offline navigation pattern when being more than preset duration threshold value, avoid in network connection shape The case where state shakiness timing terminal is still in online navigation pattern, improves the accuracy and efficiency of terminal guidance.
Description of the drawings
Fig. 1 is the structural schematic diagram for the terminal that one exemplary embodiment of the application is provided;
Fig. 2 is the flow chart for the navigation mode-switching method that one exemplary embodiment of the application provides;
Fig. 3 is the flow chart of the navigation mode-switching method of the application another exemplary embodiment offer;
Fig. 4 is the flow chart of the navigation mode-switching method of the application another exemplary embodiment offer;
Fig. 5 is the flow chart of the navigation mode-switching method of the application another exemplary embodiment offer;
Fig. 6 is the second default correspondence that the navigation mode-switching method of the application another exemplary embodiment offer is related to The schematic diagram of relationship;
Fig. 7 is the first default correspondence that the navigation mode-switching method of the application another exemplary embodiment offer is related to The schematic diagram of relationship;
Fig. 8 is the structural schematic diagram for the information push-delivery apparatus that the application one embodiment provides.
Specific implementation mode
To keep the purpose, technical scheme and advantage of the application clearer, below in conjunction with attached drawing to the application embodiment party Formula is described in further detail.
To keep the purpose, technical scheme and advantage of the application clearer, below in conjunction with attached drawing to the application embodiment party Formula is described in further detail.
In the following description when referring to the accompanying drawings, unless otherwise indicated, the same numbers in different attached drawings indicate same or similar Element.Embodiment described in following exemplary embodiment does not represent all embodiment party consistent with the application Formula.On the contrary, they are only the devices and side consistent with some aspects as detailed in the attached claim, the application The example of method.
In the description of the present application, it is to be understood that term " first ", " second " etc. are used for description purposes only, without It can be interpreted as indicating or implying relative importance.In the description of the present application, it should be noted that unless otherwise specific regulation And restriction, term " connected ", " connection " shall be understood in a broad sense, for example, it may be being fixedly connected, may be a detachable connection, Or it is integrally connected;It can be mechanical connection, can also be electrical connection;It can be directly connected, intermediary can also be passed through It is indirectly connected.For the ordinary skill in the art, the tool of above-mentioned term in this application can be understood with concrete condition Body meaning.In addition, in the description of the present application, unless otherwise indicated, " multiple " refer to two or more."and/or" is retouched The incidence relation of affiliated partner is stated, indicates may exist three kinds of relationships, for example, A and/or B, can indicate:Individualism A, together When there are A and B, these three situations of individualism B.It is a kind of relationship of "or" that character "/", which typicallys represent forward-backward correlation object,.
First, to the invention relates to some nouns explain:
Navigation:Guiding target object moves to the second position along programme path from first position.Optionally, target object For at least one of people, vehicle, ship and aircraft.First position is usually the current address where target object, and second Position is the destination address of input.
Navigation pattern:Including pattern and the offline navigation pattern of navigating online.
Optionally, navigation pattern is also referred to as navigation pattern of networking online, is to obtain networking when terminal accesses internet to lead Boat data, the pattern navigated according to the networking navigation data got.
Offline navigation pattern is the pattern that the offline navigation data of using terminal storage navigates.
In the related technology, when terminal accesses internet, the navigation pattern that terminal acquiescence uses is online navigation pattern.When When the network connection state for the internet that terminal is accessed is unstable, terminal still can be in online navigation pattern, i.e., according to from The networking navigation data got in server navigates so that the accuracy of terminal guidance and less efficient.Alternatively, when eventually Hold accessed internet network connection state it is unstable when, user can also manually will navigation pattern from online navigate pattern It is switched to offline navigation pattern, but can cause to operate more complex problem during switching navigation pattern in this way.At present Not yet provide a kind of convenience and reliable navigation mode-switching method.
The embodiment of the present application provides a kind of navigation mode-switching method, device, terminal and storage medium, above-mentioned to solve Problem present in the relevant technologies.In technical solution provided by the present application, by after opening navigation feature, with the mould that navigates online Formula is navigated, and network signal intensity is detected in navigation procedure, when network signal intensity be less than predetermined strength threshold value, and continue When duration reaches preset duration threshold value, by the navigation pattern of terminal from online pattern switching of navigating for offline navigation pattern;So that On the one hand, terminal automatically can switch over navigation pattern according to the network signal intensity detected, avoid related skill In art when network connection state is unstable user's manual switching navigation pattern and lead to cumbersome problem, simplify user Operation;On the other hand, terminal can be less than predetermined strength threshold value in network signal intensity and duration is more than preset duration The pattern switching that will navigate when threshold value is offline navigation pattern, is avoided in network connection state shakiness timing terminal still in online The case where navigation pattern, improves the accuracy and efficiency of terminal guidance.
Before the embodiment of the present application is explained, first the application scenarios of the embodiment of the present application are illustrated. Fig. 1 shows the structural schematic diagram for the terminal that one exemplary embodiment of the application is provided.
Terminal 100 can be mobile phone, tablet computer, E-book reader, multimedia player, portable calculating on knee The electronic equipments such as machine, automatic navigator, intelligent spire lamella equipment.
Optionally, terminal 100 is to be equipped with the electronic equipment of navigation application.Optionally, which advises with path Draw, recommend and navigation at least one of function.For example, being equipped with the digital map navigation class application with navigation feature in terminal 100 Program.
Optionally, terminal 100 is the electronic equipment for having linking Internet function.By WiFi access functions, work as terminal There are when internet in target area residing for 100, terminal 100 can access internet and carry out internet access.Schematically, The internet is mobile network or Wireless Fidelity (WIreless-Fidelity, WiFi) network.
Optionally, which includes:Processor 120 and memory 140.
Processor 120 may include one or more processing core.Processor 120 utilizes various interfaces and connection Various pieces in entire terminal 100, by running or executing the instruction being stored in memory 140, program, code set or refer to Collection is enabled, and calls the data being stored in memory 140, executes the various functions and processing data of terminal 100.Optionally, Digital Signal Processing (Digital Signal Processing, DSP), field programmable gate array may be used in processor 120 (Field-Programmable Gate Array, FPGA), programmable logic array (Programmable Logic Array, PLA) at least one of example, in hardware realize.Processor 120 can integrating central processor (Central Processing Unit, CPU), in image processor (Graphics Processing Unit, GPU) and modem etc. One or more of combinations.Wherein, the main processing operation systems of CPU, user interface and application program etc.;GPU is for being responsible for The rendering and drafting of content to be shown needed for display screen 160;Modem is wirelessly communicated for handling.It is appreciated that It is that above-mentioned modem can not also be integrated into processor 120, be realized separately through chip piece.
Memory 140 may include random access memory (Random Access Memory, RAM), can also include read-only Memory (Read-Only Memory).Optionally, which includes non-transient computer-readable medium (non- transitory computer-readable storage medium).Memory 140 can be used for store instruction, program, generation Code, code set or instruction set.Memory 140 may include storing program area and storage data field, wherein storing program area can store Instruction for realizing operating system, the instruction at least one function (such as touch function, sound-playing function, image Playing function etc.), for realizing the instruction etc. of following each embodiments of the method;It is real that storage data field can store following each method Apply the data etc. arrived involved in example.
In order to ensure the efficiency of terminal guidance, the embodiment of the present application provides a kind of navigation mode-switching method, device, end End and storage medium.In the following, being illustrated using schematical embodiment.
Referring to FIG. 2, the flow of the navigation mode-switching method provided it illustrates one exemplary embodiment of the application Figure.The present embodiment is with the navigation mode-switching method applied to illustrating in terminal shown in figure 1.The navigation pattern is cut The method of changing includes:
Step 201, it after opening navigation feature, is navigated with the pattern of navigating online.
Terminal is navigated, i.e., from server after starting navigation feature with the online navigation pattern of default setting Networking navigation data is obtained, is navigated according to the networking navigation data got.
Step 202, network signal intensity is detected in navigation procedure, network signal intensity is used to indicate what terminal was accessed The signal quality of network signal.
In navigation procedure, server is according to default detection frequency or detects network signal intensity in real time.
The default detection frequency is terminal default setting or User Defined setting.The embodiment of the present application pair This is not limited.
Wherein, the signal strength for the network signal that network signal intensity is accessed by terminal, is used to indicate network signal Signal quality.Signal strength and signal quality correlation, i.e. signal strength is bigger, then signal quality is better;Signal is strong Spend smaller, then signal quality is poorer.
Optionally, the unit of signal strength is " dBm (dBm) ".
Step 203, when network signal intensity is less than predetermined strength threshold value, and duration reaches preset duration threshold value, By the navigation pattern of terminal from online pattern switching of navigating for offline navigation pattern.
Terminal obtains the duration that network signal intensity is less than predetermined strength threshold value, when duration reaches preset duration When threshold value, by the navigation pattern of terminal from online pattern switching of navigating for offline navigation pattern.Wherein, duration is believed for network Number intensity continuous is less than the period of predetermined strength threshold value.
Predetermined strength threshold value is terminal default setting or User Defined setting.The embodiment of the present application is to this It is not limited.
It should be noted that terminal obtains the mode that network signal intensity is less than the duration of predetermined strength threshold value, it can With reference to the correlative detail in following example, do not introduce first herein.
Terminal judges whether the duration got is more than preset duration threshold value, if duration is more than preset duration threshold The navigation pattern switching of terminal is then offline navigation pattern by value;If duration is less than or equal to preset duration threshold value, Keep the Present navigation pattern of terminal constant, i.e., terminal is still navigated using online navigation pattern.
Preset duration threshold value is the setting of terminal default setting User Defined or terminal according to end Determined by the area identification of target area where end.The embodiment of the present application is not limited this.It should be noted that terminal Determine that the mode of preset duration threshold value can refer to the correlation in following example according to the area identification of target area where terminal Details is not introduced first herein.
In conclusion the embodiment of the present application is being led by after opening navigation feature, being navigated with the pattern of navigating online Network signal intensity is detected during boat, when network signal intensity is less than predetermined strength threshold value, and duration reaches default When long threshold value, by the navigation pattern of terminal from online pattern switching of navigating for offline navigation pattern;It enables the terminal in network It is offline navigation that signal strength, which is less than navigation pattern switching when predetermined strength threshold value and duration are more than preset duration threshold value, Pattern avoids the case where network connection state shakiness timing terminal is still in online navigation pattern, improves terminal guidance Accuracy and efficiency.
The embodiment of the present application also automatically switches over navigation pattern according to the network signal intensity detected by terminal, Avoid in the related technology when network connection state is unstable user's manual switching navigation pattern and lead to cumbersome ask Topic, simplifies user's operation.
Optionally, terminal works as network signal intensity and is less than predetermined strength threshold value, and duration reaches preset duration threshold value When, by the navigation pattern of terminal from online pattern switching of navigating for offline navigation pattern, including but not limited to following two possibility Realization method:
In one possible implementation, above-mentioned steps 203 can be implemented as the following steps, such as Fig. 3 by replacement It is shown:
Step 301, whether detection network signal intensity is less than predetermined strength threshold value in real time.
Terminal acquires network signal intensity in real time, and detects whether network signal intensity is less than predetermined strength threshold value.If inspection The network signal intensity measured is less than predetermined strength threshold value, thens follow the steps 302;If network signal intensity is greater than or equal to predetermined Intensity threshold then continues to execute step 301.
Step 302, when the first network signal strength detected is less than predetermined strength threshold value, start timer and counted When.
Optionally, if the first network signal strength that terminal detects at the first moment is less than predetermined strength threshold value, First moment starts timer and carries out timing.
Step 303, after starting timer and carrying out timing, the numerical value obtained when timer is equal to preset duration threshold When value, determine that duration reaches preset duration threshold value.
Optionally, terminal judges the network signal intensity or meter that detect in real time after starting timer and carrying out timing When the obtained numerical value of device timing whether meet preset condition, if meeting preset condition, the numerical value obtained when by timer is true It is set to duration.
Wherein, the numerical value obtained when preset condition includes timer is equal to preset duration threshold value.
Optionally, terminal is after starting timer and carrying out timing, in network signal intensity continuously less than predetermined strength threshold In a period of value, timer is continually scanned for, when the numerical value obtained when timer is equal to preset duration threshold value, then by timer The numerical value that timing obtains is determined as duration, that is, determines that duration reaches preset duration threshold value.The present embodiment is to presetting item The set-up mode of part is not limited.
Step 304, it is offline navigation pattern from online navigation pattern switching.
Terminal is from online navigation pattern switching after determining that duration reaches preset duration threshold value, by navigation pattern Offline navigation pattern.Navigation pattern can refer to following reality by terminal from the process that online navigation pattern switching is offline navigation pattern The correlative detail in example is applied, is not introduced first herein.
In alternatively possible realization method, above-mentioned steps 203 can be implemented as the following steps by replacement, such as scheme Shown in 4:
Step 401, whether detection network signal intensity is less than predetermined strength threshold value in real time.
Terminal acquires network signal intensity in real time, and detects whether network signal intensity is less than predetermined strength threshold value.If inspection The network signal intensity measured is less than predetermined strength threshold value, thens follow the steps 402;If network signal intensity is greater than or equal to predetermined Intensity threshold then continues to execute step 401.
Step 402, when network signal intensity is less than predetermined strength threshold value, start timer.
When the network signal intensity that terminal detects is less than predetermined strength threshold value, starts timer and start timing.
Optionally, timer is provided with the timer of timing length, which is preset duration threshold value.
Step 403, when timer terminates, and network signal intensity is respectively less than predetermined strength in the timing process of timer When threshold value, determine that duration reaches preset duration threshold value.
Terminal judges whether collected network signal intensity is respectively less than predetermined strength threshold in the timing length of timer Value, if collected network signal intensity is respectively less than predetermined strength threshold value, the default timing length of timer is determined as holding Continuous duration determines that duration reaches preset duration threshold value.
Step 404, it is offline navigation pattern from online navigation pattern switching.
Terminal is from online navigation pattern switching after determining that duration reaches preset duration threshold value, by navigation pattern Offline navigation pattern.Navigation pattern can refer to following reality by terminal from the process that online navigation pattern switching is offline navigation pattern The correlative detail in example is applied, is not introduced first herein.
In conclusion the embodiment of the present application also determines that network signal intensity is less than in advance by starting timer or timer Whether the duration for determining intensity threshold reaches preset duration threshold value, switches navigation mould so as to avoid only shorter duration The case where formula, and then avoid the frequent switching of navigation pattern.
Referring to FIG. 5, the flow of the navigation mode-switching method provided it illustrates one exemplary embodiment of the application Figure.The present embodiment is with the navigation mode-switching method applied to illustrating in terminal shown in figure 1.The navigation pattern is cut The method of changing includes:
Step 501, it after opening navigation feature, is navigated with the pattern of navigating online.
Optionally, it when terminal detects the first trigger action corresponding to the first default entrance, is grasped according to the first triggering Make startup navigation feature.
Wherein, the first default entrance is the entrance provided in the main interface of navigation application, alternatively, being that navigation application is corresponding The entrance that suspended window is shown after deployment.First default entrance is the operable control for starting navigation feature.Schematically, The type of first default entrance includes at least one of button, controllable entry, sliding block.The present embodiment pair first preset into The position and type of mouth are not limited.
First trigger action is the user's operation for triggering the corresponding navigation feature of the first default entrance of startup.Schematically , the first trigger action includes the group of any one or more in clicking operation, slide, pressing operation, long press operation It closes.
Optionally, the first trigger action further includes other possible realization methods.In one possible implementation, One trigger action is realized with speech form.For example, user is in the terminal with the corresponding language of the first default entrance of speech form input Sound signal after terminal gets voice signal, carries out parsing to the voice signal and obtains voice content, when being deposited in voice content In the keyword that the presupposed information with the first default entrance matches, i.e., terminal determines that the first default entrance is triggered, and opens Dynamic navigation feature.
Step 502, network signal intensity is detected in navigation procedure, network signal intensity is used to indicate what terminal was accessed The signal quality of network signal.
Terminal detects according to default detection frequency or in real time network signal intensity after starting navigation feature.
Step 503, the duration that network signal intensity is less than predetermined strength threshold value is obtained.
Terminal obtain network signal intensity be less than predetermined strength threshold value duration, it is including but not limited to following two can The realization method of energy:
One is obtain the duration that network signal intensity is less than predetermined strength threshold value using timer;
Another kind is to obtain the duration that network signal intensity is less than predetermined strength threshold value using timer.
Correlative detail can refer to the associated description in above-described embodiment, and details are not described herein.
Step 504, judge whether duration is more than preset duration threshold value.
Optionally, if terminal judges that duration is more than preset duration threshold value, 505 are thened follow the steps;If terminal judges Go out duration and be less than or equal to preset duration threshold value, then keeps the Present navigation pattern of terminal constant.
Optionally, terminal is when judging that whether network signal intensity is less than the duration of predetermined strength threshold value more than presetting Before long threshold value, further include:Terminal obtains preset duration threshold value.
It is different to the influence degree of network signal intensity due to different area types.Therefore, terminal can be according to difference Area type determine different preset duration threshold values.Optionally, terminal obtains preset duration threshold value, including:Obtain target area The area type in domain obtains preset duration threshold value corresponding with area type according to the second default correspondence.
Wherein, target area is the region that terminal is currently located;For example, A1 area of the terminal in the cities A.
Optionally, the dividing mode of area type includes but not limited to following several possible dividing modes:
In a kind of possible dividing mode, area type includes room area and outdoor area both types.
In alternatively possible dividing mode, area type includes underground parking, elevator, mansion, open deck etc. Deng.The present embodiment is not limited the division numbers and type of area type.
The second default correspondence is previously stored in terminal, when the second default correspondence includes area type and is default Correspondence between long threshold value.In a schematical example, the second default correspondence is as shown in Figure 6.Wherein, region When type is " underground parking ", corresponding preset duration threshold value is " 8 " minute;It is corresponding when area type is " open deck " Preset duration threshold value be " 1 " minute;When area type is " elevator ", corresponding preset duration threshold value is " 5 " minute.
Step 505, when duration is more than preset duration threshold value, the area identification of target area, target area are obtained The region being currently located for terminal.
Optionally, when duration is more than preset duration threshold value, terminal obtains the area identification of target area.Wherein, Area identification is used for unique mark target area in multiple regions.For example, for indicating the mesh when area identification is " A1 " Mark the areas A1 that region is the cities A.
Optionally, after duration is more than scheduled duration threshold value, terminal stops timer, and timer is carried out clearly Zero.
Step 506, offline navigation data corresponding with area identification whether there is according to the first default correspondence inquiry.
The first default correspondence is previously stored in terminal, the first default correspondence include area identification with it is offline Correspondence between navigation data.
In a schematical example, the first default correspondence is as shown in Figure 7.Wherein, when area identification is " A1 ", Corresponding offline navigation data is " offline navigation data 1 ";Area identification be " A2 " when, corresponding offline navigation data be " from Line navigation data 2 ";When area identification is " A3 ", corresponding offline navigation data is " offline navigation data 3 ".
Terminal whether there is offline navigation data corresponding with area identification according to the first default correspondence inquiry, if looking into It askes in the presence of offline navigation data corresponding with area identification, thens follow the steps 507;If not inquiring corresponding with area identification Offline navigation data, then keep the Present navigation pattern of terminal constant.
It step 507, will when inquiring offline navigation data corresponding with area identification according to the first default correspondence The navigation pattern switching of terminal is offline navigation pattern.
Terminal is after inquiring offline navigation data corresponding with area identification, by the navigation pattern of terminal from leading online Model plane formula is switched to offline navigation pattern.
Step 508, it according to offline navigation data, is navigated with the pattern of navigating offline.
Terminal is navigated according to offline navigation data corresponding with area identification is inquired with the pattern of navigating offline.
It should be noted that terminal needs to obtain the area type of target area when terminal obtains preset duration threshold value, In one possible implementation, the area type of terminal acquisition target area includes:The environmental data of target area is obtained, Environmental data includes environmental audio data and/or ambient image data;Territorial classification model is obtained, territorial classification model is used for table Show the territorial classification rule being trained based on sample environment data;According to environmental data, using territorial classification model meter Calculation obtains the area type of target area.
Optionally, terminal will be collected by the m kind voice signals of scene residing for the real-time acquisition terminal of the first acquisition component M kind voice signals be determined as environmental audio data, m is positive integer.For example, the first acquisition component is Application on Voiceprint Recognition sensor.
Optionally, by n image of scene residing for the real-time acquisition terminal of the second acquisition component, collected n is schemed As being determined as ambient image data, n is positive integer.For example, the second acquisition component is video camera.
Wherein, territorial classification model is a kind of mathematics for determining the area type of target area according to the input data Model.
Optionally, territorial classification model includes but not limited to:Deep neural network (Deep Neural Network, DNN) Model, Recognition with Recurrent Neural Network (Recurrent Neural Networks, RNN) model, insertion (embedding) model, gradient Promote decision tree (Gradient Boosting Decision Tree, GBDT) model, logistic regression (Logistic At least one of Regression, LR) model.
Optionally, the area type of target area is calculated using territorial classification model according to environmental data for terminal, packet It includes:The extraction environment feature from environmental data, environmental characteristic include audio frequency characteristics and/or characteristics of image;Environmental characteristic is inputted Into territorial classification model, the area type of target area is calculated;Wherein, territorial classification model is according at least one set of sample Notebook data group is trained, and every group of sample data group includes:Sample environment data and the correct area type marked in advance.
Optionally, feature vector is calculated using feature extraction algorithm according to collected environmental data in terminal, will count Obtained feature vector is determined as environmental characteristic.Schematically, the collected environmental data of terminal-pair carries out pretreatment and spy Sign extraction, then the data after feature extraction are determined as feature vector.
Pretreatment is to handle the collected environmental data of acquisition component, obtains the sample of semi-structured data form The process of environmental characteristic.Wherein, pretreatment includes Information Compression, noise reduction and data normalization.Feature extraction is from pre- Partial Feature is extracted in treated environmental characteristic, and Partial Feature is converted to the process of structural data.
It should be noted that before terminal obtains territorial classification model, terminal needs to instruct territorial classification model Practice.Optionally, the training process of territorial classification model includes:Training sample set is obtained, training sample set includes at least one set of sample Notebook data group;According at least one set of sample data group, initial parameter model is trained using error backpropagation algorithm, is obtained To territorial classification model.
Wherein, every group of sample data group includes:Sample environment data and the correct area type marked in advance.
Terminal instructs initial parameter model according at least one set of sample data group, using error backpropagation algorithm Practice, obtains territorial classification model, including but not limited to following steps:
1, for every group of sample data group at least one set of sample data group, from sample environment extracting data sample ring Border feature.
Feature vector is calculated according to sample environment data, using feature extraction algorithm in terminal, the spy that will be calculated Sign vector is determined as sample environment feature.
Optionally, feature vector is calculated using feature extraction algorithm according to sample environment data in terminal, including:It is right Collected sample environment data carry out pretreatment and feature extraction, then by after feature extraction data determination be characterized to Amount.
2, sample environment feature is inputted into initial parameter model, obtains training result.
Optionally, initial parameter model be according to Establishment of Neural Model, such as:Initial parameter model is basis DNN models or RNN model foundations.
Schematically, for every group of sample data group, terminal creates the corresponding inputoutput pair of this group of sample data group, defeated The input parameter for entering output pair is the sample environment feature in this group of sample data group, and output parameter is in this group of sample data group Correct area type;Input parameter input prediction model is obtained training result by terminal.
For example, sample data group includes sample environment feature A and correct area type " area type 1 ", what terminal created Inputoutput pair is:(sample environment feature A)->(area type 1);Wherein, (sample environment feature A) is input parameter, (area Field type 1) it is output parameter.
Optionally, inputoutput pair is indicated by feature vector.
3, training result is compared with correct area type, obtains counting loss, counting loss is used to indicate training As a result the error between correct area type.
Optionally, counting loss is indicated by cross entropy (cross-entropy),
Optionally, counting loss H (p, q) is calculated by following formula in terminal:
Wherein, p (x) and q (x) is the discrete distribution vector of equal length, and p (x) indicates training result;Q (x) is indicated Output parameter;X is a vector in training result or output parameter.
3, according at least one set of corresponding counting loss of sample data group, trained using error backpropagation algorithm To territorial classification model.
Optionally, terminal determines the gradient direction of territorial classification model by back-propagation algorithm according to counting loss, from The output layer of the territorial classification model successively model parameter in update area disaggregated model forward.
Optionally, the environmental audio data and area type of target area are added to training sample set by terminal, are obtained more Training sample set after new, is trained according to updated training sample set pair territorial classification model, obtains updated area Domain disaggregated model.
Wherein, it is trained according to updated training sample set pair territorial classification model, obtains updated region point The process of class model can analogy refer to above-mentioned zone disaggregated model training process, details are not described herein.
In conclusion the embodiment of the present application also by obtaining the area identification of target area, is corresponded to when being preset according to first It is offline navigation pattern by the navigation pattern switching of terminal when relational query is to offline navigation data corresponding with area identification; So that first determining whether there is corresponding offline navigation data before switching navigation pattern, avoid after pattern switching of navigating The case where terminal can not inquire corresponding offline navigation data and lead to not navigation so that navigation scheme control more intelligence Energy.
Following is the application device embodiment, can be used for executing the application embodiment of the method.It is real for the application device Undisclosed details in example is applied, the application embodiment of the method is please referred to.
Referring to FIG. 8, the structural schematic diagram of the information push-delivery apparatus provided it illustrates the application one embodiment.The letter Ceasing pusher can be by special hardware circuit, alternatively, the whole or one of software and hardware being implemented in combination with as the terminal in Fig. 1 Part, the information push-delivery apparatus include:Navigation module 810, detection module 820 and handover module 830.
Navigation module 810, for after opening navigation feature, being navigated with the pattern of navigating online;
Detection module 820, for detecting network signal intensity in navigation procedure, network signal intensity is used to indicate terminal The signal quality of the network signal accessed;
Handover module 830, for being less than predetermined strength threshold value when network signal intensity, and duration reaches preset duration When threshold value, by the navigation pattern of terminal from online pattern switching of navigating for offline navigation pattern.
Optionally, handover module 830, including:First start unit, the first determination unit and switch unit.
First start unit, for when the network signal intensity detected is less than predetermined strength threshold value, starting timer Carry out timing;
First determination unit, for after starting timer and carrying out timing, the numerical value obtained when timer to be equal to When preset duration threshold value, determine that duration reaches preset duration threshold value;
Switch unit, for being offline navigation pattern from online navigation pattern switching.
Optionally, handover module 830, including:Second start unit, the second determination unit and switch unit.
Second start unit, for when the network signal intensity detected is less than predetermined strength threshold value, starting timer, The timing length of timer is preset duration threshold value;
Second determination unit terminates for working as timer, and network signal intensity is small in the timing process of timer When predetermined strength threshold value, determine that duration reaches preset duration threshold value;
Switch unit, for being offline navigation pattern from online navigation pattern switching.
Optionally, switch unit is additionally operable to obtain the area identification of target area, and target area is what terminal was currently located Region;According to the first default correspondence, offline navigation data corresponding with area identification, the first default correspondence are inquired Including the correspondence between area identification and offline navigation data;According to offline navigation data, to navigate offline, pattern carries out Navigation.
Optionally, which further includes:First acquisition module and the second acquisition module.
First acquisition module, the area type for obtaining target area, target area are the region that terminal is currently located;
Second acquisition module, for obtaining preset duration threshold corresponding with area type according to the second default correspondence Value, the second default correspondence includes the correspondence between area type and preset duration threshold value.
Optionally, the first acquisition module, including:First acquisition unit, second acquisition unit and computing unit.
First acquisition unit, the environmental data for obtaining target area, environmental data include environmental audio data and/or Ambient image data;
Second acquisition unit, for obtaining territorial classification model, territorial classification model is based on sample environment number for indicating According to the territorial classification rule being trained;
Computing unit, for according to environmental data, the area type of target area to be calculated using territorial classification model.
Optionally, computing unit, is additionally operable to the extraction environment feature from environmental data, and environmental characteristic includes audio frequency characteristics And/or characteristics of image;Environmental characteristic is input in territorial classification model, the area type of target area is calculated;
Wherein, territorial classification model trains to obtain according at least one set of sample data group, every group of sample data group packet It includes:Sample environment data and the correct area type marked in advance.
Optionally, second acquisition unit is additionally operable to obtain training sample set, and training sample set includes at least one set of sample number According to group, every group of sample data group includes:Sample environment data and the correct area type marked in advance;According at least one set of sample Data group is trained initial parameter model using error backpropagation algorithm, obtains territorial classification model.
Correlative detail is in combination with referring to figs. 2 to embodiment of the method shown in Fig. 7.Wherein, navigation module 810 is additionally operable to realize Any other implicit or disclosed and relevant function of navigation step in above method embodiment;Detection module 820 is additionally operable to reality Any other implicit or disclosed and relevant function of detecting step in existing above method embodiment;Handover module 830 is additionally operable to Realize any other implicit or disclosed and relevant function of switch step in above method embodiment.
It should be noted that the device that above-described embodiment provides, when realizing its function, only with above-mentioned each function module It divides and for example, in practical application, can be completed as needed and by above-mentioned function distribution by different function modules, The internal structure of equipment is divided into different function modules, to complete all or part of the functions described above.In addition, The apparatus and method embodiment that above-described embodiment provides belongs to same design, and specific implementation process refers to embodiment of the method, this In repeat no more.
The application also provides a kind of computer-readable medium, is stored thereon with program instruction, and program instruction is held by processor The navigation mode-switching method that above-mentioned each embodiment of the method provides is realized when row.
Present invention also provides a kind of computer program products including instruction, when run on a computer so that Computer executes the navigation mode-switching method described in above-mentioned each embodiment.
Above-mentioned the embodiment of the present application serial number is for illustration only, can not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that whole or portion in the navigation mode-switching method of realization above-described embodiment It can be completed step by step by hardware, relevant hardware can also be instructed to complete by program, the program can deposit It is stored in a kind of computer readable storage medium, storage medium mentioned above can be read-only memory, disk or CD etc.. The foregoing is merely the preferred embodiments of the application, not to limit the application, within the spirit and principles of this application, Any modification, equivalent replacement, improvement and so on should be included within the protection domain of the application.

Claims (11)

1. a kind of navigation mode-switching method, which is characterized in that the method includes:
After opening navigation feature, navigated with the pattern of navigating online;
Network signal intensity, the network signal that the terminal that the network signal intensity is used to indicate is accessed are detected in navigation procedure Signal quality;
When the network signal intensity is less than predetermined strength threshold value, and duration reaches preset duration threshold value, by the end The navigation pattern at end from the online navigation pattern switching be offline navigation pattern.
2. according to the method described in claim 1, it is characterized in that, described when the network signal intensity is less than predetermined strength threshold Value, and when duration reaches preset duration threshold value, be from the online navigation pattern switching by the navigation pattern of the terminal Offline navigation pattern, including:
When the network signal intensity detected is less than the predetermined strength threshold value, starts timer and carry out timing;
After starting the timer and carrying out timing, the numerical value obtained when the timer is equal to the preset duration threshold When value, determine that the duration reaches the preset duration threshold value;
It is the offline navigation pattern from the online navigation pattern switching.
3. according to the method described in claim 1, it is characterized in that, described when the network signal intensity is less than predetermined strength threshold Value, and when duration reaches preset duration threshold value, be from the online navigation pattern switching by the navigation pattern of the terminal Offline navigation pattern, including:
When the network signal intensity detected is less than the predetermined strength threshold value, start timer, the timer Timing length is the preset duration threshold value;
When the timer terminates, and the network signal intensity described in the timing process of the timer be respectively less than it is described predetermined When intensity threshold, determine that the duration reaches the preset duration threshold value;
It is the offline navigation pattern from the online navigation pattern switching.
4. according to the method in claim 2 or 3, which is characterized in that it is described from the online navigation pattern switching be described Offline navigation pattern, including:
The area identification of target area is obtained, the target area is the region that the terminal is currently located;
According to the first default correspondence, the offline navigation data corresponding with the area identification is inquired, described first Default correspondence includes the correspondence between the area identification and the offline navigation data;
According to the offline navigation data, navigated with the offline navigation pattern.
5. method according to any one of claims 1 to 4, which is characterized in that described when the network signal intensity is less than in advance Intensity threshold is determined, and when duration reaches preset duration threshold value, by the navigation pattern of the terminal from the online navigation mould Formula is switched to before offline navigation pattern, further includes:
The area type of target area is obtained, the target area is the region that terminal is currently located;
Preset duration threshold value corresponding with the area type, the described second default correspondence are obtained according to the second default correspondence Relationship includes the correspondence between the area type and the preset duration threshold value.
6. according to the method described in claim 5, it is characterized in that, it is described obtain target area area type, including:
The environmental data of the target area is obtained, the environmental data includes environmental audio data and/or ambient image data;
Obtain territorial classification model, the area that the territorial classification model is used to indicate to be trained based on sample environment data Domain classification rule;
According to the environmental data, the area type of the target area is calculated using the territorial classification model.
7. according to the method described in claim 6, it is characterized in that, described according to the environmental data, using the region point The area type of target area is calculated in class model, including:
The extraction environment feature from the environmental data, the environmental characteristic include audio frequency characteristics and/or characteristics of image;
The environmental characteristic is input in the territorial classification model, the area type of the target area is calculated;
Wherein, the territorial classification model trains to obtain according at least one set of sample data group, sample data described in every group Group includes:Sample environment data and the correct area type marked in advance.
8. method according to claim 6, which is characterized in that the acquisition territorial classification model, including:
Training sample set is obtained, training sample set includes at least one set of sample data group, sample data group packet described in every group It includes:Sample environment data and the correct area type marked in advance;
According at least one set of sample data group, initial parameter model is trained using error backpropagation algorithm, is obtained To the territorial classification model.
9. a kind of navigation mode-changeover device, which is characterized in that described device includes:
Navigation module, for after opening navigation feature, being navigated with the pattern of navigating online;
Detection module, for detecting network signal intensity in navigation procedure, the network signal intensity is used to indicate terminal institute The signal quality of the network signal of access;
Handover module, for being less than predetermined strength threshold value when the network signal intensity, and duration reaches preset duration threshold When value, by the navigation pattern of the terminal from the online navigation pattern switching be offline navigation pattern.
10. a kind of terminal, which is characterized in that the terminal includes processor, the memory that is connected with the processor, Yi Jicun The program instruction on the memory is stored up, the processor is realized when executing described program instruction as claim 1 to 8 is any The navigation mode-switching method.
11. a kind of computer readable storage medium, which is characterized in that be stored thereon with program instruction, described program instruction is located Reason device realizes navigation mode-switching method as described in any of the claims 1 to 8 when executing.
CN201810085325.2A 2018-01-29 2018-01-29 Navigation mode-switching method, device, terminal and storage medium Pending CN108318042A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810085325.2A CN108318042A (en) 2018-01-29 2018-01-29 Navigation mode-switching method, device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810085325.2A CN108318042A (en) 2018-01-29 2018-01-29 Navigation mode-switching method, device, terminal and storage medium

Publications (1)

Publication Number Publication Date
CN108318042A true CN108318042A (en) 2018-07-24

Family

ID=62887573

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810085325.2A Pending CN108318042A (en) 2018-01-29 2018-01-29 Navigation mode-switching method, device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN108318042A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109059934A (en) * 2018-09-28 2018-12-21 Oppo广东移动通信有限公司 Paths planning method, device, terminal and storage medium
CN109672508A (en) * 2018-12-31 2019-04-23 叶春林 It is intelligent to prevent automobile navigation suspension system
CN110375749A (en) * 2018-11-26 2019-10-25 北京京东尚科信息技术有限公司 Air navigation aid and navigation system
CN111220172A (en) * 2018-11-23 2020-06-02 北京嘀嘀无限科技发展有限公司 Navigation voice broadcasting method and system
CN115019537A (en) * 2022-06-20 2022-09-06 芜湖宏景电子股份有限公司 Intelligent navigation system applied to low-quality network condition

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102946630A (en) * 2012-11-06 2013-02-27 东莞宇龙通信科技有限公司 Mobile terminal and power management method thereof
CN103870533A (en) * 2013-12-12 2014-06-18 沈阳美行科技有限公司 On-line and offline mixed retrieval method for navigation equipment
CN104881675A (en) * 2015-05-04 2015-09-02 北京奇艺世纪科技有限公司 Video scene identification method and apparatus
CN105227572A (en) * 2015-10-19 2016-01-06 武汉大学 Based on the access control system of context aware and method on a kind of mobile platform
CN105222796A (en) * 2014-06-20 2016-01-06 谷歌公司 The navigation data of online navigation data and high-speed cache is integrated during active navigation
CN105872205A (en) * 2016-03-18 2016-08-17 联想(北京)有限公司 Information processing method and device
CN105873145A (en) * 2016-05-31 2016-08-17 努比亚技术有限公司 Method and device for achieving network type switching
CN105898814A (en) * 2016-06-20 2016-08-24 美的智慧家居科技有限公司 Network connection switching method and device
US20160349063A1 (en) * 2015-05-28 2016-12-01 Google Inc. Dynamically Integrating Offline and Online Data in a Geographic Application
CN106595683A (en) * 2015-10-19 2017-04-26 高德软件有限公司 Navigation method and device
CN107316035A (en) * 2017-08-07 2017-11-03 北京中星微电子有限公司 Object identifying method and device based on deep learning neutral net
CN107360601A (en) * 2017-08-16 2017-11-17 维沃移动通信有限公司 A kind of method for switching network, mobile terminal and computer-readable recording medium
CN107370814A (en) * 2017-07-21 2017-11-21 掌阅科技股份有限公司 E-book reads aloud processing method, terminal device and computer-readable storage medium

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102946630A (en) * 2012-11-06 2013-02-27 东莞宇龙通信科技有限公司 Mobile terminal and power management method thereof
CN103870533A (en) * 2013-12-12 2014-06-18 沈阳美行科技有限公司 On-line and offline mixed retrieval method for navigation equipment
CN105222796A (en) * 2014-06-20 2016-01-06 谷歌公司 The navigation data of online navigation data and high-speed cache is integrated during active navigation
CN104881675A (en) * 2015-05-04 2015-09-02 北京奇艺世纪科技有限公司 Video scene identification method and apparatus
US20160349063A1 (en) * 2015-05-28 2016-12-01 Google Inc. Dynamically Integrating Offline and Online Data in a Geographic Application
CN106595683A (en) * 2015-10-19 2017-04-26 高德软件有限公司 Navigation method and device
CN105227572A (en) * 2015-10-19 2016-01-06 武汉大学 Based on the access control system of context aware and method on a kind of mobile platform
CN105872205A (en) * 2016-03-18 2016-08-17 联想(北京)有限公司 Information processing method and device
CN105873145A (en) * 2016-05-31 2016-08-17 努比亚技术有限公司 Method and device for achieving network type switching
CN105898814A (en) * 2016-06-20 2016-08-24 美的智慧家居科技有限公司 Network connection switching method and device
CN107370814A (en) * 2017-07-21 2017-11-21 掌阅科技股份有限公司 E-book reads aloud processing method, terminal device and computer-readable storage medium
CN107316035A (en) * 2017-08-07 2017-11-03 北京中星微电子有限公司 Object identifying method and device based on deep learning neutral net
CN107360601A (en) * 2017-08-16 2017-11-17 维沃移动通信有限公司 A kind of method for switching network, mobile terminal and computer-readable recording medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
赵婕: "《图像特征提取与语义分析》", 31 July 2015, 重庆大学出版社 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109059934A (en) * 2018-09-28 2018-12-21 Oppo广东移动通信有限公司 Paths planning method, device, terminal and storage medium
CN111220172A (en) * 2018-11-23 2020-06-02 北京嘀嘀无限科技发展有限公司 Navigation voice broadcasting method and system
CN110375749A (en) * 2018-11-26 2019-10-25 北京京东尚科信息技术有限公司 Air navigation aid and navigation system
CN109672508A (en) * 2018-12-31 2019-04-23 叶春林 It is intelligent to prevent automobile navigation suspension system
CN115019537A (en) * 2022-06-20 2022-09-06 芜湖宏景电子股份有限公司 Intelligent navigation system applied to low-quality network condition
CN115019537B (en) * 2022-06-20 2023-11-14 芜湖宏景电子股份有限公司 Intelligent navigation system applied to low-quality network condition

Similar Documents

Publication Publication Date Title
CN108318042A (en) Navigation mode-switching method, device, terminal and storage medium
CN108197589B (en) Semantic understanding method, apparatus, equipment and the storage medium of dynamic human body posture
CN106057205B (en) Automatic voice interaction method for intelligent robot
CN107423398B (en) Interaction method, interaction device, storage medium and computer equipment
CN109117862B (en) Image tag recognition methods, device and server
CN105139858B (en) A kind of information processing method and electronic equipment
CN107463888B (en) Face emotion analysis method and system based on multi-task learning and deep learning
CN108960163B (en) Gesture recognition method, device, equipment and storage medium
US11520824B2 (en) Method for displaying information, electronic device and system
CN108525305B (en) Image processing method, image processing device, storage medium and electronic equipment
US20210097278A1 (en) Method and apparatus for recognizing stacked objects, and storage medium
US11138422B2 (en) Posture detection method, apparatus and device, and storage medium
CN107492115A (en) The detection method and device of destination object
CN111222493B (en) Video processing method and device
CN109284081B (en) Audio output method and device and audio equipment
CN107871001B (en) Audio playing method and device, storage medium and electronic equipment
CN111401328A (en) Data acquisition method, device, terminal and storage medium
CN104808794A (en) Method and system for inputting lip language
CN110570840A (en) Intelligent device awakening method and device based on artificial intelligence
CN109670458A (en) A kind of licence plate recognition method and device
CN110534109A (en) Audio recognition method, device, electronic equipment and storage medium
CN108628813A (en) Treating method and apparatus, the device for processing
CN108898591A (en) Methods of marking and device, electronic equipment, the readable storage medium storing program for executing of picture quality
CN109871807A (en) Face image processing process and device
CN109034052B (en) Face detection method and 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: 20180724

RJ01 Rejection of invention patent application after publication