CN105704811B - A kind of method, apparatus and mobile terminal of the record position information in photo is shot - Google Patents

A kind of method, apparatus and mobile terminal of the record position information in photo is shot Download PDF

Info

Publication number
CN105704811B
CN105704811B CN201610024514.XA CN201610024514A CN105704811B CN 105704811 B CN105704811 B CN 105704811B CN 201610024514 A CN201610024514 A CN 201610024514A CN 105704811 B CN105704811 B CN 105704811B
Authority
CN
China
Prior art keywords
location information
basis
photo
information
correspondence
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.)
Active
Application number
CN201610024514.XA
Other languages
Chinese (zh)
Other versions
CN105704811A (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 CN201610024514.XA priority Critical patent/CN105704811B/en
Publication of CN105704811A publication Critical patent/CN105704811A/en
Application granted granted Critical
Publication of CN105704811B publication Critical patent/CN105704811B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating users or terminals or network equipment for network management purposes, e.g. mobility management
    • H04W64/006Locating users or terminals or network equipment for network management purposes, e.g. mobility management with additional information processing, e.g. for direction or speed determination
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/52Network services specially adapted for the location of the user terminal

Landscapes

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

Abstract

The embodiment of the invention discloses a kind of method, apparatus and mobile terminal of the record position information in photo is shot, the described method includes:When monitoring photographing instruction, basis on location information is obtained;It is if current network is unavailable, the basis on location information got and the photo shot is corresponding and store;After network can use, the basis on location information is sent to server, and receives the location information of server return;According to the basis on location information and the correspondence of the photo, the location information is written in the photo.Technical solution provided in an embodiment of the present invention, can be not available in data network or WIFI, the geographical location information of records photographing photo.

Description

A kind of method, apparatus and mobile terminal of the record position information in photo is shot
Technical field
The record position in photo is shot the present embodiments relate to mobile terminal applied technical field more particularly to one kind The method, apparatus and mobile terminal of information.
Background technology
Mobile phone typically is provided with camera function and positioning function at present, can be remembered using above two function during taking pictures The geographical location of record shooting photo, such as longitude and latitude.
In the prior art, during the mobile phone photograph for possessing recording geographical position information function is used, generally all Be by global positioning system (Global Positioning System, GPS), Wireless Fidelity (Wireless Fidelity, WIFI) or base station location come obtain shooting photo geographical location information, then by the geographical location information got write In the photo of shooting, need to use network during geographical location information is obtained.
But it is not available in data network or WIFI, when user is using mobile phone shooting photo, it can not be determined Position obtains the geographical location information less than shooting photo, it is impossible to the geographical location of records photographing photo.
The content of the invention
The embodiment of the present invention provides a kind of method, apparatus and mobile terminal of the record position information in photo is shot, with It is not available in data network or WIFI, the location information of records photographing photo.
In a first aspect, an embodiment of the present invention provides a kind of method of the record position information in photo is shot, including:
When monitoring photographing instruction, basis on location information is obtained;
It is if current network is unavailable, the basis on location information got and the photo shot is corresponding and store;
After network can use, the basis on location information is sent to server, and receives the position letter of server return Breath;
According to the basis on location information and the correspondence of the photo, the location information is written to the photo In.
Second aspect, the embodiment of the present invention additionally provide a kind of device of the record position information in photo is shot, including:
Basis on location information acquisition unit, for when monitoring photographing instruction, obtaining basis on location information;
Correspondence determines and storage unit, if unavailable for current network, the basis on location information that will get It is corresponding with the photo of shooting and store;
First position information determination unit, for after network can use, the basis on location information to be sent to server, And receive the location information of server return;
First position information writing unit, will for the correspondence according to the basis on location information and the photo The location information is written in the photo.
The third aspect, the embodiment of the present invention additionally provide a kind of mobile terminal, and the mobile terminal is integrated with second aspect In in photo is shot record position information device.
Technical solution provided in an embodiment of the present invention, the basis on location that first will gets not available in network Information is corresponding with the photo of shooting and stores, and basis on location information is sent to server after network can use obtains position letter Then breath is realized according to the correspondence of basis on location information and the photo of shooting by the photo of location information write-in shooting It is in data network or WIFI not available, record the geographical location information of shooting photo.
Description of the drawings
It in order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing Have technology describe needed in attached drawing do one and simply introduce, it should be apparent that, the accompanying drawings in the following description is this hair Some bright embodiments, for those of ordinary skill in the art, without creative efforts, can be with root Other attached drawings are obtained according to these attached drawings.
Fig. 1 is a kind of flow signal of the method for record position information in photo is shot that the embodiment of the present invention one provides Figure;
Fig. 2 is a kind of flow signal of the method for record position information in photo is shot provided by Embodiment 2 of the present invention Figure;
Fig. 3 is a kind of flow signal of the method for record position information in photo is shot that the embodiment of the present invention three provides Figure;
Fig. 4 is a kind of structural representation of the device for record position information in photo is shot that the embodiment of the present invention four provides Figure.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, hereinafter with reference to attached in the embodiment of the present invention Figure, technical scheme is clearly and completely described by embodiment, it is clear that described embodiment is the present invention one Section Example, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not doing Go out all other embodiments obtained under the premise of creative work, belong to the scope of protection of the invention.
Embodiment one
Fig. 1 is a kind of flow signal of the method for record position information in photo is shot that the embodiment of the present invention one provides Figure.For this method suitable for the record position information the photo of shooting, convenient situation about being managed to photo can be by being configured at The device of record position information in photo is shot in terminal performs, and described device can be by software and/or hardware realization.Ginseng See Fig. 1, the method for the record position information provided in this embodiment in photo is shot specifically includes:
S110, when monitoring photographing instruction, obtain basis on location information;
User is during using terminal is taken pictures, and when user presses camera function key, such as presses and is arranged at terminal side switch In take pictures button or in terminal display interface touch press take pictures button when, you can generate and take pictures in terminal system Instruction, can monitor the photographing instruction.At this point it is possible to obtain basis on location information by scanning wireless network.According to using The difference of location technology, basis on location information can include WIFI information or base station information.Wherein, WIFI information may include Media access control (Media Access Control, the MAC) address of WIFI hot spot and received signal strength value (Received Signal Strength Indication, RSSI), base station information may include cell ID (i.e. location area code) and corresponding RSSI.Illustratively, when the signal of scanning to WIFI hot spot, the MAC and RSSI of WIFI hot spot can be obtained from signal.Generally During scanning, the MAC and RSSI of multiple WIFI hot spots can be got, the WIFI information got may be employed as follows Representation:{ MAC1, RSSI1;MAC2, RSSI2;……}.
It is if S120, current network are unavailable, the basis on location information got and the photo shot is corresponding and store;
After obtaining basis on location information, judge whether current network can use, that is, judge current data network or WIFI Whether can use, if data network and WIFI are unavailable, terminal can not be communicated by network with server, it is impossible to immediately will Basis on location information is sent to server to obtain the location information of shooting photo.At this point it is possible to the basis on location that will be got Information is corresponding with the photo shot and stores, i.e., establishes correspondence between basis on location information and the photo of shooting.When looking into After inquiry gets basis on location information, photo corresponding with the basis on location information can be found by correspondence;Or work as After obtaining the photo shot, basis on location information corresponding with the photo of the shooting can be found by correspondence.
S130, after network can use, the basis on location information is sent to server, and receive server return position Confidence ceases;
Basis on location information is sent to service by data network or WIFI after either WIFI can use in data network Device services and determines corresponding position according to basis on location information, and returns to definite location information.Location information can be longitude and latitude Spend coordinate information.
Specifically, when basis on location information is WIFI information, that is, the basis on location information sent includes the WIFI obtained MAC and RSSI, server is according to receiving multiple MAC and RSSI, using corresponding location fingerprint matching algorithm, by MAC and RSSI is matched with location fingerprint database, and corresponding geographical location information is calculated, then returns geographical location information It returns.
S140, the correspondence according to the basis on location information and the photo, institute is written to by the location information It states in photo.
It should be noted that even if network is unavailable, terminal can also scan corresponding hot spot or base station signal to obtain Take WIFI information or the base station information near terminal.
Technical solution provided in this embodiment, the basis on location information that first will gets not available in network Corresponding with the photo of shooting and store, after network can use basis on location information is sent to server obtains location information, so Location information is write in the photo of shooting according to the correspondence of basis on location information and the photo of shooting afterwards, it can be in data In the case of network or WIFI are not available, the geographical location information of shooting photo is recorded.
Embodiment two
Fig. 2 is a kind of flow signal of the method for record position information in photo is shot provided by Embodiment 2 of the present invention Figure.The present embodiment is that S120 is optimized on the basis of above-described embodiment one, referring to Fig. 2, it is provided in this embodiment The method of record position information specifically includes in shooting photo:
S210, when monitoring photographing instruction, obtain basis on location information;
S220, the basis on location information is preserved hereof;
The correspondence of the mark of the photo of S230, the mark for establishing the file and the shooting;
Wherein, file mark can be file title, the photo of shooting mark can be photo title or Number, can be distinguished between file or photo by identifying accordingly, and by mark can uniquely determine file or Person's photo.
S240, the correspondence is stored;
Further, the correspondence of foundation can be stored with form or text formatting.In the process taken pictures In, user may shoot multiple pictures, can be corresponding with the corresponding file for preserving basis on location information by every photo, and Every correspondence with the form of form or text is stored, facilitates and the location information got is write into corresponding photograph In piece.
S250, after network can use, the basis on location information is sent to server, and receive server return position Confidence ceases;
S260, the correspondence according to the basis on location information and the photo, institute is written to by the location information It states in photo.
Technical solution provided in this embodiment by the way that basis on location information is preserved, and establishes basis on location information and bat The correspondence of photo is taken the photograph, after network can use, basis on location information is sent to server and obtains location information, it is convenient to obtain Location information is taken to be write afterwards by correspondence in the photo shot accordingly, it can be unavailable in data network or WIFI In the case of, record the geographical location information for shooting photo.
Embodiment three
Fig. 3 is a kind of flow signal of the method for record position information in photo is shot that the embodiment of the present invention three provides Figure.The present embodiment is optimized on the basis of above-described embodiment one, provided in this embodiment to be shone in shooting referring to Fig. 3 The method of record position information specifically includes in piece:
S310, when monitoring photographing instruction, obtain basis on location information;
S320, judge whether current network can use, if so, jumping to S360;
It is S330, the basis on location information got and the photo shot is corresponding and store;
S340, after network can use, the basis on location information is sent to server, and receive server return position Confidence ceases;
S350, the correspondence according to the basis on location information and the photo, institute is written to by the location information It states in photo, jumps to S380;
S360, the basis on location information is sent to server, and receives the location information of server return;
S370, the location information is written in the photo;
S380, end.
Technical solution provided in this embodiment, after basis on location information is obtained, judge current network it is whether available and Different schemes is performed, can realize the recording geographical position information in the photo of shooting, is user-friendly geographical location letter Breath management photo.
Example IV
Fig. 4 is a kind of structural representation of the device for record position information in photo is shot that the embodiment of the present invention four provides Figure.Referring to Fig. 4, which specifically includes:
Basis on location information acquisition unit 410, for when monitoring photographing instruction, obtaining basis on location information;
Correspondence determine with storage unit 420, if unavailable for current network, by the basis on location got believe It ceases corresponding with the photo shot and stores;
First position information determination unit 430, for after network can use, the basis on location information to be sent to service Device, and receive the location information of server return;
First position information writing unit 440, for the correspondence according to the basis on location information and the photo, The location information is written in the photo.
Further, the correspondence determines to include with storage unit 420:
Basis on location information saving subunit 421, for the basis on location information to be preserved hereof;
Correspondence establishes subelement 422, for establishing the mark of the file and the mark of the photo of the shooting Correspondence;
Correspondence storing sub-units 423, for the correspondence to be stored.
Further, the correspondence storing sub-units 423 are specifically used for:
The correspondence is stored with form or text formatting.
Further, described device further includes:
Second position information determination unit 450, for after basis on location information is obtained, if current network can use, The basis on location information is sent to server, and receives the location information of server return;
Second position information writing unit 460, for the location information to be written in the photo of shooting.
Further, the basis on location information includes:
WIFI information or base station information.
Above device can perform the method for record position information in photo is shot that any embodiment of the present invention is provided, Possess the corresponding function module of execution method and advantageous effect.
In addition, the embodiment of the present invention additionally provides a kind of mobile terminal, mobile terminal may include mobile phone, notebook, tablet The equipment such as computer and vehicle-mounted computer, the mobile terminal are integrated with the device of the above-mentioned record position information in photo is shot.
Note that it above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that The invention is not restricted to specific embodiment described here, can carry out for a person skilled in the art various apparent variations, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above example to the present invention It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also It can include other more equivalent embodiments, and the scope of the present invention is determined by scope of the appended claims.

Claims (7)

1. a kind of method of the record position information in photo is shot, applied to mobile terminal, which is characterized in that including:
When monitoring photographing instruction, if current network is unavailable, basis on location is obtained by scan hot spot or base station signal Information, wherein, the basis on location information includes Wireless Fidelity WIFI information or base station information;Wherein, the WIFI information Including MAC Address and corresponding received signal strength RSSI, the base station information includes cell ID and corresponding reception signal is strong Spend RSSI;
The basis on location information got and the photo shot is corresponding and store;
After network can use, the basis on location information is sent to server, and receives the position letter that the server returns Breath;Wherein, when the basis on location information is WIFI information, the server by the MAC Address of the WIFI information and RSSI is matched with location fingerprint database, and corresponding location information is calculated and returns;
According to the basis on location information and the correspondence of the photo, the location information is written in the photo.
It is 2. according to the method described in claim 1, it is characterized in that, described by the basis on location information got and the photograph of shooting Piece is corresponding and stores, including:
The basis on location information is preserved hereof;
Establish the correspondence of the mark and the mark of the photo of the shooting of the file;
The correspondence is stored.
3. according to the method described in claim 2, it is characterized in that, described store the correspondence, including:
The correspondence is stored with form or text formatting.
4. a kind of device of the record position information in photo is shot, applied to mobile terminal, which is characterized in that including:
Basis on location information acquisition unit, for when monitoring photographing instruction, if current network is unavailable, passing through scan hot spot Or base station signal obtains basis on location information, wherein, the basis on location information includes Wireless Fidelity WIFI information or base It stands information;Wherein, the WIFI information, which includes MAC Address and corresponding received signal strength RSSI, the base station information, includes Cell ID and corresponding received signal strength RSSI;
Correspondence determines and storage unit, for the basis on location got information and the photo shot is corresponding and store;
First position information determination unit, for after network can use, the basis on location information being sent to server, and is connect Receive the location information that the server returns;Wherein, when the basis on location information is WIFI information, the server is by institute The MAC Address and RSSI for stating WIFI information are matched with location fingerprint database, and corresponding location information is calculated and returns It returns;
First position information writing unit, for the correspondence according to the basis on location information and the photo, by described in Location information is written in the photo.
5. device according to claim 4, which is characterized in that the correspondence determines to include with storage unit:
Basis on location information saving subunit, for the basis on location information to be preserved hereof;
Correspondence establishes subelement, and for establishing, the mark of the file is corresponding with the mark of the photo of the shooting to close System;
Correspondence storing sub-units, for the correspondence to be stored.
6. device according to claim 5, which is characterized in that the correspondence storing sub-units are specifically used for:
The correspondence is stored with form or text formatting.
7. a kind of mobile terminal, which is characterized in that the mobile terminal is integrated with claim 4-6 any one of them and is shooting The device of record position information in photo.
CN201610024514.XA 2016-01-13 2016-01-13 A kind of method, apparatus and mobile terminal of the record position information in photo is shot Active CN105704811B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610024514.XA CN105704811B (en) 2016-01-13 2016-01-13 A kind of method, apparatus and mobile terminal of the record position information in photo is shot

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610024514.XA CN105704811B (en) 2016-01-13 2016-01-13 A kind of method, apparatus and mobile terminal of the record position information in photo is shot

Publications (2)

Publication Number Publication Date
CN105704811A CN105704811A (en) 2016-06-22
CN105704811B true CN105704811B (en) 2018-05-25

Family

ID=56227358

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610024514.XA Active CN105704811B (en) 2016-01-13 2016-01-13 A kind of method, apparatus and mobile terminal of the record position information in photo is shot

Country Status (1)

Country Link
CN (1) CN105704811B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107346564A (en) * 2017-06-29 2017-11-14 国网冀北电力有限公司承德供电公司 Make an inspection tour task supervision method, electronic equipment and server
CN108898750A (en) * 2018-07-09 2018-11-27 杨杰 A kind of photographing equipment leasing system and method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101164253A (en) * 2005-04-19 2008-04-16 Sk泰力康姆株式会社 Location-based service method and system using location data included in image data
CN101411187A (en) * 2006-04-05 2009-04-15 奥林巴斯株式会社 Electronic still camera and image processing method
CN102355550A (en) * 2011-11-16 2012-02-15 天津三星光电子有限公司 Digital camera with GPS (Global Positioning System) positioning function
CN103916940A (en) * 2014-03-28 2014-07-09 小米科技有限责任公司 Method and device for acquiring photographing position
CN104185139A (en) * 2013-05-21 2014-12-03 百度在线网络技术(北京)有限公司 Fingerprint matching-based wireless positioning method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1798380A (en) * 2004-12-24 2006-07-05 英华达(上海)电子有限公司 Method for saving shooting location in handset
US8548424B1 (en) * 2007-01-30 2013-10-01 At&T Mobility Ii Llc Dynamic geotagging of photographs
CN101841648A (en) * 2009-03-17 2010-09-22 英华达(上海)科技有限公司 Camera device and geographic information adding method thereof
CN102970653A (en) * 2012-11-13 2013-03-13 北京小米科技有限责任公司 User terminal photographing method and user terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101164253A (en) * 2005-04-19 2008-04-16 Sk泰力康姆株式会社 Location-based service method and system using location data included in image data
CN101411187A (en) * 2006-04-05 2009-04-15 奥林巴斯株式会社 Electronic still camera and image processing method
CN102355550A (en) * 2011-11-16 2012-02-15 天津三星光电子有限公司 Digital camera with GPS (Global Positioning System) positioning function
CN104185139A (en) * 2013-05-21 2014-12-03 百度在线网络技术(北京)有限公司 Fingerprint matching-based wireless positioning method and device
CN103916940A (en) * 2014-03-28 2014-07-09 小米科技有限责任公司 Method and device for acquiring photographing position

Also Published As

Publication number Publication date
CN105704811A (en) 2016-06-22

Similar Documents

Publication Publication Date Title
US9699016B2 (en) Sign-in method and system
CN104105064B (en) The method and device of location equipment
US9582937B2 (en) Method, apparatus and computer program product for displaying an indication of an object within a current field of view
CN105159958B (en) A kind of method and system of the pictorial information processing based on mobile terminal
US7197295B2 (en) Portable communication device
US9215311B2 (en) Mobile electronic device and method
US20100274484A1 (en) Mobile electronic device providing display background rotation and method thereof
JP2008071298A (en) Spatial bulletin board system
CN104754234B (en) A kind of photographic method and device
CN106254467A (en) Sharing files method and device
US20160029217A1 (en) Securing wireless connections using location-specific contextual information
CN105704811B (en) A kind of method, apparatus and mobile terminal of the record position information in photo is shot
CN110313201A (en) Paging method and device
CN108401510A (en) MDT configuration methods and device
CN108848547A (en) WiFi scan method, device, mobile terminal and computer-readable medium
CN105263099B (en) The method and apparatus for sending location information
CN108495316B (en) Wireless connection method and device
CN105848287A (en) Method, device and system for processing terminal positioning and router
CN108650335A (en) The method, apparatus and test equipment being communicatively coupled with mobile terminal to be tested
CN111698100A (en) Data processing method, system and related equipment
US20170215124A1 (en) Methods and systems for registration management between electronic devices
CN105050048B (en) A kind of network access point location information prompt method, terminal and server
CN115949854B (en) Control method and device of cradle head, computer equipment and storage medium
CN106127088B (en) Smart machine method for tracing and device
CN105577521A (en) Method, device and system for friend grouping

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

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

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

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