[go: up one dir, main page]

CN108055635B - Position information acquisition method and device, storage medium and terminal - Google Patents

Position information acquisition method and device, storage medium and terminal Download PDF

Info

Publication number
CN108055635B
CN108055635B CN201711360373.XA CN201711360373A CN108055635B CN 108055635 B CN108055635 B CN 108055635B CN 201711360373 A CN201711360373 A CN 201711360373A CN 108055635 B CN108055635 B CN 108055635B
Authority
CN
China
Prior art keywords
working frequency
moving speed
user
acquiring
positioning module
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.)
Expired - Fee Related
Application number
CN201711360373.XA
Other languages
Chinese (zh)
Other versions
CN108055635A (en
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 CN201711360373.XA priority Critical patent/CN108055635B/en
Publication of CN108055635A publication Critical patent/CN108055635A/en
Application granted granted Critical
Publication of CN108055635B publication Critical patent/CN108055635B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. Transmission Power Control [TPC] or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0251Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. Transmission Power Control [TPC] or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • H04W52/0287Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level changing the clock frequency of a controller in the equipment
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Multimedia (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the application discloses a method, a device, a storage medium and a terminal for acquiring position information, wherein the method comprises the following steps: when a user triggers an image shooting instruction, acquiring the moving speed of the user; determining the target working frequency of a positioning module according to the moving speed; and acquiring the position information corresponding to the image according to the target working frequency. According to the scheme for acquiring the position information, when a user triggers an image shooting instruction, the moving speed of the user is acquired; determining the target working frequency of a positioning module according to the moving speed; and acquiring the position information corresponding to the image according to the target working frequency, so that the working frequency of the positioning module can be reduced, and the power consumption of the positioning module is further reduced.

Description

Position information acquisition method and device, storage medium and terminal
Technical Field
The embodiment of the application relates to the technical field of mobile terminal positioning, in particular to a method and a device for acquiring position information, a storage medium and a terminal.
Background
With the continuous development of electronic devices, electronic devices such as mobile terminals can provide positioning services for users. A mobile phone manufacturer installs a positioning module in a mobile terminal in advance, and the positioning module obtains positioning information of the mobile terminal through a Global Navigation Satellite System (GNSS). Location Based Service (LBS) Application programs (APP) in the mobile terminal realize Location through Location information provided by a Location module.
However, the positioning module acquires the positioning information according to the preset frequency, so that the positioning module continuously consumes power, and the power consumption of the positioning module is higher.
Disclosure of Invention
An object of the embodiments of the present application is to provide a method, an apparatus, a storage medium, and a terminal for acquiring location information, which can reduce power consumption of a positioning module.
In a first aspect, an embodiment of the present application provides a method for acquiring location information, including:
when a user triggers an image shooting instruction, acquiring the moving speed of the user;
determining the target working frequency of a positioning module according to the moving speed;
and acquiring the position information corresponding to the image according to the target working frequency.
In a second aspect, an embodiment of the present application provides an apparatus for acquiring location information, including:
the mobile speed acquisition module is used for acquiring the mobile speed of the user when the user triggers an image shooting instruction;
the working frequency determining module is used for determining the target working frequency of the positioning module according to the moving speed acquired by the moving speed acquiring module;
and the control module is used for acquiring the position information corresponding to the image according to the target working frequency determined by the working frequency determination module.
In a third aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the method for acquiring location information as shown in the first aspect.
In a fourth aspect, an embodiment of the present application provides a terminal, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the computer program to implement the method for acquiring location information according to the first aspect.
According to the scheme for acquiring the position information, when a user triggers an image shooting instruction, the moving speed of the user is acquired; determining the target working frequency of a positioning module according to the moving speed; and acquiring the position information corresponding to the image according to the target working frequency, so that the working frequency of the positioning module can be reduced, and the power consumption of the positioning module is further reduced.
Drawings
Fig. 1 is a schematic flowchart of a method for acquiring location information according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of another method for acquiring location information according to an embodiment of the present disclosure;
fig. 3 is a schematic flowchart of another method for acquiring location information according to an embodiment of the present disclosure;
fig. 4 is a block diagram of a device for acquiring location information according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application.
Detailed Description
The technical scheme of the application is further explained by the specific implementation mode in combination with the attached drawings. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. It should be further noted that, for the convenience of description, only some of the structures related to the present application are shown in the drawings, not all of the structures.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the steps as a sequential process, many of the steps can be performed in parallel, concurrently or simultaneously. In addition, the order of the steps may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
With the development of electronic devices, electronic devices can provide location services for users. The use of location modules providing location information by applications installed on electronic devices is also becoming more frequent as location services are generated. Currently, the positioning module operates at a fixed frequency. However, when the user takes a video, the positioning module is turned off or acquires the position information according to a fixed frequency, so that the track corresponding to the video cannot be acquired or the positioning module acquires the position information according to an inappropriate frequency, which causes an increase in power consumption of the positioning module. The application provides a position information acquisition method, which can adjust the working frequency of a positioning module according to the moving speed of a terminal and reduce the power consumption of the positioning module. The specific scheme is as follows:
fig. 1 is a schematic flowchart of a method for acquiring location information according to an embodiment of the present disclosure, where the method may be executed by a device providing location services, where the device may be implemented by software and/or hardware, and may be generally integrated in a mobile terminal, where the mobile terminal may be a smartphone, a tablet computer, a wearable device, and as shown in fig. 1, the method includes:
and step 110, when the user triggers an image shooting instruction, acquiring the moving speed of the user.
The image photographing instruction comprises a photographing instruction and a shooting instruction, and a user can trigger the image photographing instruction by clicking a photographing button in the photographing application.
Optionally, when the user triggers the image capturing instruction, the method includes: triggering an image shooting instruction when a user starts a camera application; or when the user clicks a video recording button in the camera application, an image shooting instruction is triggered.
When the user starts the camera application, the terminal starts the positioning module and acquires the positioning information through the positioning module. The user can select a video recording mode in the camera application, and when the user clicks a video recording button in the video recording mode, an image shooting instruction is triggered.
The Positioning module may be a functional module for Positioning in the terminal, and the module may be a Global Positioning System (GPS) Positioning module or a Global Navigation Satellite System (GNSS) Positioning module.
Optionally, the obtaining of the moving speed of the user may be performed by any one of the following methods:
and acquiring the moving speed of the user through the navigation application. Alternatively, the moving speed of the user is acquired through the mobile cellular network. Further, the moving speed can be calculated by a GPS.
The navigation application may provide the user with a calculation service of the positioning and movement speed through dedicated satellites, for example, from the user's location information and the time it takes for the user to pass the location information, the user's speed may be determined. The speed of movement may also access a server for location determination over a mobile cellular network, which may determine the user's location based on the number plate of the vehicle or train shift the user is riding on.
And step 120, determining the target working frequency of the positioning module according to the moving speed.
And pre-storing a comparison relation table of the moving speed and the working frequency, and searching for the target working frequency corresponding to the moving speed through the comparison relation table when the moving speed of the terminal is acquired in step 110. Optionally, the operating frequency is increased with the increase of the moving speed in the comparison table.
Optionally, if the moving speed is greater than the first preset speed, determining a target operating frequency according to a ratio of the moving speed to the first preset moving speed and an operating frequency of the current positioning module, where the target operating frequency is directly proportional to the moving speed. The first preset speed is greater than 10km/h, and can be selected as 30 km/h.
And multiplying the ratio of the moving speed to the first preset moving speed by the rated working frequency to obtain the target working frequency. And if the moving speed is 60km/h and the first preset speed is 30km/h, and the ratio of the moving speed to the first preset moving speed is 2, adjusting the working frequency of the current positioning module to be 2 times of the rated working frequency. Assuming that the moving speed is 5km/h and the first preset speed is 30km/h, the ratio of the moving speed to the first preset moving speed is 1/6, and the working frequency of the current positioning module is adjusted to 1/6 times of the rated working frequency.
And step 130, acquiring position information corresponding to the image according to the target working frequency.
And controlling a positioning module to position according to the target working frequency, wherein the coordinate information acquired by the positioning module is used as the position information corresponding to the image.
Optionally, after the position information is obtained, determining at least one area information through which the user passes according to the position information; and taking the area information as the corresponding position information of the image.
The regional information may be administrative regional information, city information, or street information. When the user shuttles among a plurality of areas, the track which the user passes through when recording the image data can be drawn through the position information acquired by the positioning module, and the track is used as the position information corresponding to the image data.
Illustratively, if the regional information passes through at least one country, the passed country information is taken as the regional information.
The regional information may also be country information of transit, for example, where a user drives through multiple countries in europe, and due to the close country borders, if the user shuttles back and forth on the border lines, positioning inaccuracies may result. In this embodiment, the area information can be determined according to the position information of the user, and then the country information corresponding to the area information is used as the moving route, so that the track corresponding to the image data can be more accurately drawn.
The method for acquiring the position information provided by the embodiment can acquire the moving speed of the user when the user triggers an image shooting instruction; determining the target working frequency of the positioning module according to the moving speed; and acquiring the position information corresponding to the image according to the target working frequency, so as to reduce the working frequency of the positioning module and reduce the power consumption of the positioning module. In the related art, when a user is on a vehicle such as a train, if the positioning module acquires positioning information according to a fixed frequency, the positioning may be inaccurate due to delay of output transmission, so that the positioning module performs ineffective work and wastes electric quantity. When detecting that the user triggers the image shooting instruction, the embodiment firstly obtains the moving speed of the user, and determines the working frequency of the positioning module according to the moving speed, so that the positioning module can be used more efficiently, and the working efficiency of the positioning module is improved.
Fig. 2 is a schematic flowchart of a method for acquiring location information according to an embodiment of the present application, which is used to further describe the foregoing embodiment, and includes:
and step 210, when the user triggers an image shooting instruction, acquiring the moving speed of the user.
And step 220, if the moving speed is greater than a second preset speed, determining a preset working frequency as a target working frequency of the positioning module, wherein the first preset speed is greater than the first preset speed, and the preset working frequency is less than a conventional working frequency of the positioning module.
The second preset speed is a speed at which the user travels on a highway at a high speed or a train (e.g., a high-speed rail) on which the user rides travels at a high speed. Alternatively, the second preset speed may be 90 km/h. When the user is moving, the mobile phone is not usually used to photograph the scenery outside the window, so the operating frequency of the positioning module can be reduced to a value less than the rated operating frequency (also called the normal operating frequency). Optionally, the preset operating frequency is less than one half of the normal operating frequency, and optionally one fifth of the normal operating frequency.
And step 230, acquiring position information corresponding to the image according to the target working frequency.
The embodiment provides a method for acquiring location information, which can reduce the working frequency of a positioning module when a user moves at a high speed, thereby avoiding the positioning module from performing useless positioning and reducing the power consumption of the positioning module.
Fig. 3 is a schematic flowchart of a method for acquiring location information according to an embodiment of the present application, which is used to further describe the foregoing embodiment, and includes:
and step 310, when the user triggers an image shooting instruction, acquiring the moving speed of the user.
And 320, if the moving speed is less than a first preset speed, acquiring the position information according to the conventional working frequency. Step 350 is performed.
And 330, if the moving speed is higher than the first preset speed and lower than the second preset speed, determining a target working frequency according to the ratio of the moving speed to the first preset moving speed and the working frequency of the current positioning module, wherein the target working frequency is in direct proportion to the moving speed. Step 350 is performed.
And 340, if the moving speed is greater than a second preset speed, determining a preset working frequency as a target working frequency of the positioning module, wherein the first preset speed is greater than the first preset speed, and the preset working frequency is less than a conventional working frequency of the positioning module. Step 350 is performed.
And 350, acquiring position information corresponding to the image according to the target working frequency.
The method for acquiring the position information provided by the embodiment can dynamically adjust the working frequency of the positioning module according to the moving speed of the terminal, and improve the working efficiency of the positioning module.
Fig. 4 is a schematic structural diagram of an apparatus for acquiring location information according to an embodiment of the present application. As shown in fig. 4, the apparatus includes: a moving speed acquisition module 410, an operating frequency determination module 420, and a control module 430.
A moving speed obtaining module 410, configured to obtain a moving speed of the user when the user triggers an image capturing instruction;
an operating frequency determining module 420, configured to determine a target operating frequency of a positioning module according to the moving speed obtained by the moving speed obtaining module 410;
a control module 430, configured to obtain location information corresponding to the image according to the target operating frequency determined by the operating frequency determining module 420.
Further, the determining module 510 is configured to:
judging whether the current equipment establishes Bluetooth connection with the target equipment or not; or,
and judging whether the current equipment establishes short-distance wireless communication connection with the target equipment.
Further, the moving speed obtaining module 410 is configured to:
triggering an image shooting instruction when a user starts a camera application; or,
when a user clicks a video recording button in the camera application, an image shooting instruction is triggered.
Further, the moving speed obtaining module 410 is configured to:
acquiring the moving speed of a user through a navigation application; or,
the moving speed of the user is obtained through the mobile cellular network.
Further, the operating frequency determination module 420 is configured to:
and if the moving speed is greater than the first preset speed, determining a target working frequency according to the ratio of the moving speed to the first preset moving speed and the working frequency of the current positioning module, wherein the target working frequency is in direct proportion to the moving speed.
Further, the operating frequency determination module 420 is configured to:
and if the moving speed is greater than a second preset speed, determining a preset working frequency as a target working frequency of the positioning module, wherein the first preset speed is greater than the first preset speed, and the preset working frequency is less than the conventional working frequency of the positioning module.
Further, the control module 430 is configured to:
determining at least one area information through which the user passes according to the position information;
and taking the area information as the position information corresponding to the image.
Further, the control module 430 is configured to: if the regional information passes through at least one country, the passed country information is taken as the regional information.
In the device for acquiring location information provided by this embodiment, the moving speed acquiring module 410 is capable of acquiring the moving speed of the user when the user triggers an image capturing instruction; the working frequency determining module 420 determines a target working frequency of the positioning module according to the moving speed; the control module 430 obtains the position information corresponding to the image according to the target working frequency, so as to reduce the working frequency of the positioning module and reduce the power consumption of the positioning module. In the related art, when a user is on a vehicle such as a train, if the positioning module acquires positioning information according to a fixed frequency, the positioning may be inaccurate due to delay of output transmission, so that the positioning module performs ineffective work and wastes electric quantity. When detecting that the user triggers the image shooting instruction, the embodiment firstly obtains the moving speed of the user, and determines the working frequency of the positioning module according to the moving speed, so that the positioning module can be used more efficiently, and the working efficiency of the positioning module is improved.
The device can execute the methods provided by all the embodiments of the application, and has corresponding functional modules and beneficial effects for executing the methods. For details of the technology not described in detail in this embodiment, reference may be made to the methods provided in all the foregoing embodiments of the present application.
Fig. 5 is a schematic structural diagram of another terminal device provided in an embodiment of the present application. As shown in fig. 5, the terminal may include: a housing (not shown), a memory 501, a Central Processing Unit (CPU) 502 (also called a processor, hereinafter referred to as CPU), a computer program stored in the memory 501 and operable on the processor 502, a circuit board (not shown), and a power circuit (not shown). The circuit board is arranged in a space enclosed by the shell; the CPU502 and the memory 501 are provided on the circuit board; the power supply circuit is used for supplying power to each circuit or device of the terminal; the memory 501 is used for storing executable program codes; the CPU502 executes a program corresponding to the executable program code by reading the executable program code stored in the memory 501.
The terminal further comprises: peripheral interface 503, RF (Radio Frequency) circuitry 505, audio circuitry 506, speakers 511, power management chip 508, input/output (I/O) subsystem 509, touch screen 512, other input/control devices 510, and external port 504, which communicate via one or more communication buses or signal lines 507.
It should be understood that the illustrated terminal device 500 is only one example of a terminal, and that the terminal device 500 may have more or fewer components than shown in the figures, may combine two or more components, or may have a different configuration of components. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
The following describes in detail a terminal device provided in this embodiment, where the terminal device is a smart phone as an example.
A memory 501, the memory 501 being accessible by the CPU502, the peripheral interface 503, and the like, the memory 501 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other volatile solid state storage devices.
A peripheral interface 503, the peripheral interface 503 may connect input and output peripherals of the device to the CPU502 and the memory 501.
An I/O subsystem 509, which I/O subsystem 509 may connect input and output peripherals on the device, such as a touch screen 512 and other input/control devices 510, to the peripheral interface 503. The I/O subsystem 509 may include a display controller 5091 and one or more input controllers 5092 for controlling other input/control devices 510. Where one or more input controllers 5092 receive electrical signals from or send electrical signals to other input/control devices 510, the other input/control devices 510 may include physical buttons (push buttons, rocker buttons, etc.), dials, slide switches, joysticks, click wheels. It is noted that the input controller 5092 may be connected to any one of: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
The touch screen 512 may be a resistive type, a capacitive type, an infrared type, or a surface acoustic wave type, according to the operating principle of the touch screen and the classification of media for transmitting information. The touch screen 512 may be classified according to installation methods: external hanging, internal or integral. Classified according to technical principles, the touch screen 512 may be: a vector pressure sensing technology touch screen, a resistive technology touch screen, a capacitive technology touch screen, an infrared technology touch screen, or a surface acoustic wave technology touch screen.
A touch screen 512, which is an input interface and an output interface between the user terminal and the user, displays visual output to the user, which may include graphics, text, icons, video, and the like. Optionally, the touch screen 512 sends an electrical signal (e.g., an electrical signal of the touch surface) triggered by the user on the touch screen to the processor 502.
The display controller 5091 in the I/O subsystem 509 receives electrical signals from the touch screen 512 or transmits electrical signals to the touch screen 512. The touch screen 512 detects a contact on the touch screen, and the display controller 5091 converts the detected contact into an interaction with a user interface object displayed on the touch screen 512, that is, implements a human-computer interaction, and the user interface object displayed on the touch screen 512 may be an icon for running a game, an icon networked to a corresponding network, or the like. It is worth mentioning that the device may also comprise a light mouse, which is a touch sensitive surface that does not show visual output, or an extension of the touch sensitive surface formed by the touch screen.
The RF circuit 505 is mainly used to establish communication between the smart speaker and a wireless network (i.e., a network side), and implement data reception and transmission between the smart speaker and the wireless network. Such as sending and receiving short messages, e-mails, etc.
The audio circuit 506 is mainly used to receive audio data from the peripheral interface 503, convert the audio data into an electric signal, and transmit the electric signal to the speaker 511.
And the loudspeaker 511 is used for restoring the voice signal received by the smart sound box from the wireless network through the RF circuit 505 into sound and playing the sound to the user.
And a power management chip 508 for supplying power and managing power to the hardware connected to the CPU502, the I/O subsystem, and the peripheral interfaces.
In addition, the processor 502 is also connected to a positioning module, which is used for GPS positioning.
In this embodiment, the central processing unit 502 is configured to:
when a user triggers an image shooting instruction, acquiring the moving speed of the user;
determining the target working frequency of a positioning module according to the moving speed;
and acquiring the position information corresponding to the image according to the target working frequency.
Further, the user triggers an image capturing instruction, including:
triggering an image shooting instruction when a user starts a camera application; or,
when a user clicks a video recording button in the camera application, an image shooting instruction is triggered.
Further, the acquiring the moving speed of the user includes:
acquiring the moving speed of a user through a navigation application; or,
the moving speed of the user is obtained through the mobile cellular network.
Further, the determining the target operating frequency of the positioning module according to the moving speed includes:
and if the moving speed is greater than the first preset speed, determining a target working frequency according to the ratio of the moving speed to the first preset moving speed and the working frequency of the current positioning module, wherein the target working frequency is in direct proportion to the moving speed.
Further, determining a target operating frequency of the positioning module according to the moving speed further includes:
and if the moving speed is greater than a second preset speed, determining a preset working frequency as a target working frequency of the positioning module, wherein the first preset speed is greater than the first preset speed, and the preset working frequency is less than the conventional working frequency of the positioning module.
Further, the acquiring the position information corresponding to the image according to the target working frequency includes:
determining at least one area information through which the user passes according to the position information;
and taking the area information as the position information corresponding to the image.
Further, the determining at least one area information that the user passes through according to the location information includes:
if the regional information passes through at least one country, the passed country information is taken as the regional information.
The embodiment of the present application further provides a storage medium containing terminal device executable instructions, where the terminal device executable instructions are executed by a terminal device processor to perform a method for acquiring positioning information, and the method includes:
when a user triggers an image shooting instruction, acquiring the moving speed of the user;
determining the target working frequency of a positioning module according to the moving speed;
and acquiring the position information corresponding to the image according to the target working frequency.
Further, the user triggers an image capturing instruction, including:
triggering an image shooting instruction when a user starts a camera application; or,
when a user clicks a video recording button in the camera application, an image shooting instruction is triggered.
Further, the acquiring the moving speed of the user includes:
acquiring the moving speed of a user through a navigation application; or,
the moving speed of the user is obtained through the mobile cellular network.
Further, the determining the target operating frequency of the positioning module according to the moving speed includes:
and if the moving speed is greater than the first preset speed, determining a target working frequency according to the ratio of the moving speed to the first preset moving speed and the working frequency of the current positioning module, wherein the target working frequency is in direct proportion to the moving speed.
Further, determining a target operating frequency of the positioning module according to the moving speed further includes:
and if the moving speed is greater than a second preset speed, determining a preset working frequency as a target working frequency of the positioning module, wherein the first preset speed is greater than the first preset speed, and the preset working frequency is less than the conventional working frequency of the positioning module.
Further, the acquiring the position information corresponding to the image according to the target working frequency includes:
determining at least one area information through which the user passes according to the position information;
and taking the area information as the position information corresponding to the image.
Further, the determining at least one area information that the user passes through according to the location information includes:
if the regional information passes through at least one country, the passed country information is taken as the regional information.
The computer storage media of the embodiments of the present application may take any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, or the like, as well as conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
Of course, the storage medium provided in the embodiments of the present application and containing computer-executable instructions is not limited to the above-described application recommendation operation, and may also perform related operations in the application recommendation method provided in any embodiment of the present application.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present application and the technical principles employed. It will be understood by those skilled in the art that the present application is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the application. Therefore, although the present application has been described in more detail with reference to the above embodiments, the present application is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present application, and the scope of the present application is determined by the scope of the appended claims.

Claims (8)

1. A method for acquiring position information is characterized by comprising the following steps:
when a user triggers an image shooting instruction, acquiring the moving speed of the user;
determining the target working frequency of a positioning module according to the moving speed;
acquiring position information corresponding to the image according to the target working frequency;
the determining the target operating frequency of the positioning module according to the moving speed further comprises:
if the moving speed is higher than a second preset speed, determining a preset working frequency as a target working frequency of the positioning module, wherein the target working frequency is lower than a rated working frequency;
the acquiring of the position information corresponding to the image by the target working frequency comprises the following steps:
determining at least one region information through which the user passes according to the position information, and if the region information passes through at least one country, using the passed country information as the region information;
when the user shuttles among a plurality of areas, the track which the user passes when recording the image data is drawn through the position information acquired by the positioning module, and the track is used as the position information corresponding to the image data.
2. The method according to claim 1, wherein the user triggers an image capturing instruction, including:
triggering an image shooting instruction when a user starts a camera application; or,
when a user clicks a video recording button in the camera application, an image shooting instruction is triggered.
3. The method for acquiring location information according to claim 1, wherein the acquiring of the moving speed of the user includes:
acquiring the moving speed of a user through a navigation application; or,
the moving speed of the user is obtained through the mobile cellular network.
4. The method for acquiring location information according to claim 1, wherein the determining a target operating frequency of a positioning module according to the moving speed includes:
and if the moving speed is greater than the first preset speed, determining a target working frequency according to the ratio of the moving speed to the first preset moving speed and the working frequency of the current positioning module, wherein the target working frequency is in direct proportion to the moving speed.
5. The method according to claim 4, wherein determining the target operating frequency of the positioning module according to the moving speed further comprises:
and if the moving speed is greater than a second preset speed, determining a preset working frequency as a target working frequency of the positioning module, wherein the first preset speed is greater than the first preset speed, and the preset working frequency is less than the conventional working frequency of the positioning module.
6. An apparatus for acquiring position information, comprising:
the mobile speed acquisition module is used for acquiring the mobile speed of the user when the user triggers an image shooting instruction;
the working frequency determining module is used for determining the target working frequency of the positioning module according to the moving speed acquired by the moving speed acquiring module;
the control module is used for acquiring the position information corresponding to the image according to the target working frequency determined by the working frequency determination module;
the operating frequency determination module is configured to:
if the moving speed is higher than a second preset speed, determining a preset working frequency as a target working frequency of the positioning module, wherein the target working frequency is lower than a rated working frequency;
the control module is used for:
determining at least one region information through which the user passes according to the position information, and if the region information passes through at least one country, using the passed country information as the region information;
when the user shuttles among a plurality of areas, the track which the user passes when recording the image data is drawn through the position information acquired by the positioning module, and the track is used as the position information corresponding to the image data.
7. A terminal, characterized in that the terminal comprises:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of acquiring location information of any one of claims 1-5.
8. A computer-readable storage medium on which a computer program is stored, the program, when being executed by a processor, implementing the method for acquiring location information according to any one of claims 1 to 5.
CN201711360373.XA 2017-12-13 2017-12-13 Position information acquisition method and device, storage medium and terminal Expired - Fee Related CN108055635B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711360373.XA CN108055635B (en) 2017-12-13 2017-12-13 Position information acquisition method and device, storage medium and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711360373.XA CN108055635B (en) 2017-12-13 2017-12-13 Position information acquisition method and device, storage medium and terminal

Publications (2)

Publication Number Publication Date
CN108055635A CN108055635A (en) 2018-05-18
CN108055635B true CN108055635B (en) 2020-01-21

Family

ID=62133530

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711360373.XA Expired - Fee Related CN108055635B (en) 2017-12-13 2017-12-13 Position information acquisition method and device, storage medium and terminal

Country Status (1)

Country Link
CN (1) CN108055635B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109691185B (en) * 2018-07-26 2022-09-30 达闼机器人股份有限公司 Positioning method, positioning device, terminal and readable storage medium
CN109581437B (en) * 2018-12-07 2020-11-10 歌尔科技有限公司 Wearable device and positioning method and device thereof
CN110522616A (en) * 2019-09-02 2019-12-03 湖南工程学院 A wearable intelligent guide clothing
CN110855838A (en) * 2019-11-22 2020-02-28 RealMe重庆移动通信有限公司 Positioning service control method, positioning service control device, mobile terminal and storage medium
CN114488201A (en) * 2020-10-23 2022-05-13 神讯电脑(昆山)有限公司 Information acquisition device and operation method thereof, and control method of positioning unit

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4901967B2 (en) * 2010-02-17 2012-03-21 株式会社エヌ・ティ・ティ・ドコモ Positioning time interval control device and positioning time interval control method
KR101733792B1 (en) * 2010-11-10 2017-05-24 삼성전자주식회사 Method and apparatus for correcting position
CN102231772B (en) * 2011-05-23 2014-09-10 惠州Tcl移动通信有限公司 Mobile terminal capable of automatically recording photographing position
CN103185578A (en) * 2011-12-30 2013-07-03 上海博泰悦臻电子设备制造有限公司 Mobile positioning device and navigation device
CN103402176A (en) * 2013-07-31 2013-11-20 深圳市中兴移动通信有限公司 Method and device for dynamically adjusting positioning period

Also Published As

Publication number Publication date
CN108055635A (en) 2018-05-18

Similar Documents

Publication Publication Date Title
CN108055635B (en) Position information acquisition method and device, storage medium and terminal
KR101690595B1 (en) Mobile Terminal And Method Of Managing Icon Using The Same
KR101733057B1 (en) Electronic device and contents sharing method for electronic device
CN110168487B (en) Touch control method and device
CN108111974A (en) Control method and device of positioning module, storage medium and terminal
KR20140087628A (en) Mobile terminal
KR101951473B1 (en) Mobile terminal
CN108076223B (en) Task switching method and device, terminal equipment and storage medium
US20150002539A1 (en) Methods and apparatuses for displaying perspective street view map
CN108362310B (en) Method and device for determining geomagnetic accuracy, storage medium and terminal
KR101881936B1 (en) wireless charging device and mobile terminal
KR102004986B1 (en) Method and system for executing application, device and computer readable recording medium thereof
CN109219953A (en) A kind of alarm clock prompting method and terminal device
CN104238900A (en) Page positioning method and device
CN105608095B (en) Multimedia playing method and device and mobile terminal
CN108055644B (en) Positioning control method and device, storage medium and terminal equipment
CN108093373B (en) Positioning control method and device, storage medium and terminal equipment
KR20150025930A (en) Method And System For Audio Channel Setting
CN107809742A (en) Positioning information processing method, device, storage medium and terminal
CN108093362A (en) Control method, device, storage medium and the terminal of locating module
CN108156650B (en) Control method and device of positioning module, storage medium and terminal
CN108112061B (en) Positioning control method, device, storage medium and terminal device
CN108156313B (en) Positioning control method and device, storage medium and terminal equipment
CN108093363A (en) Control method and device of positioning module, storage medium and terminal
CN112860365B (en) Content display method, device, electronic equipment and readable storage medium

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
CB02 Change of applicant information

Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200121

CF01 Termination of patent right due to non-payment of annual fee