CN111555956B - Method for processing picture containing readable geographic position information in instant messaging and electronic device - Google Patents

Method for processing picture containing readable geographic position information in instant messaging and electronic device Download PDF

Info

Publication number
CN111555956B
CN111555956B CN202010222853.5A CN202010222853A CN111555956B CN 111555956 B CN111555956 B CN 111555956B CN 202010222853 A CN202010222853 A CN 202010222853A CN 111555956 B CN111555956 B CN 111555956B
Authority
CN
China
Prior art keywords
picture
information
map
communication client
data packet
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
CN202010222853.5A
Other languages
Chinese (zh)
Other versions
CN111555956A (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.)
Institute of Software of CAS
Computer Network Information Center of CAS
Original Assignee
Institute of Software of CAS
Computer Network Information Center of CAS
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 Institute of Software of CAS, Computer Network Information Center of CAS filed Critical Institute of Software of CAS
Publication of CN111555956A publication Critical patent/CN111555956A/en
Application granted granted Critical
Publication of CN111555956B publication Critical patent/CN111555956B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • H04L51/046Interoperability with other network applications or services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/07User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
    • H04L51/08Annexed information, e.g. attachments
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/07User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
    • H04L51/10Multimedia information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/21Monitoring or handling of messages
    • H04L51/222Monitoring or handling of messages using geographical location information, e.g. messages transmitted or received in proximity of a certain spot or area

Abstract

The invention discloses a processing method and an electronic device for pictures containing readable geographical position information in instant messaging, which are suitable for a network consisting of a server and a plurality of communication clients, and comprise the following steps: receiving a message data packet sent by a first communication client, and extracting picture geographical position information in the message data packet containing a picture; obtaining map information corresponding to the picture according to the geographical position information of the picture, and replacing the picture in the message data packet with the picture and the map information to obtain a modified message data packet; and returning the map information to the first communication client, and sending the modification message data packet to a corresponding communication client. According to the invention, the map of the photo shooting place can be obtained according to the geographic position information in the picture, the picture shared by others can be browsed by clicking the map, the corresponding geographic information and the corresponding human information can be known, and the interactivity is increased in the communication process.

Description

Method for processing picture containing readable geographic position information in instant messaging and electronic device
Technical Field
The present disclosure relates to the field of internet technologies, and in particular, to a method for processing a picture containing readable geographic location information in instant messaging and an electronic device.
Background
Instant messaging belongs to one of the earliest developed internet activities, is the most popular communication mode at present, and can realize the simultaneous communication of two or more people. At present, in an instant messaging chat interface, chat messages of a user are usually displayed in chat bubbles led out by a user avatar, the instant messaging function of the conversation form is single, the content in the chat process is less, and the interactivity is lower.
For example, when a user communicates a travel smell using an instant messenger, the knowledge of the location of the travel by the party who has not yet visited during the chat process is generally only available through the photo and the phrase of the other party, and a relatively clear knowledge is not available, which may be obtained by a third party such as a browser if further knowledge is desired.
For example, CN102447642A discloses a method and an apparatus for implementing message picture management based on an IM client, where when a user of an IM needs to download a picture, a download component of the IM client queries whether there is a picture to be downloaded in a local storage path according to a uniform resource locator and a type of the picture to be downloaded. Although it is able to download a large number of pictures, downloading pictures is not further understood.
Therefore, how to acquire more picture information without the help of a third-party tool is urgently needed to be solved.
Disclosure of Invention
In order to solve the problems, the invention discloses a processing method of a picture containing readable geographic position information in instant messaging and an electronic device.
A processing method for pictures containing readable geographic position information in instant messaging is suitable for a network formed by a server and a plurality of communication clients, wherein the server stores a map, and the steps comprise:
1) receiving a message data packet sent by a first communication client, and extracting picture geographical position information in the message data packet containing a picture;
2) obtaining map information corresponding to the picture according to the geographical position information of the picture, and replacing the picture in the message data packet with the picture and the map information to obtain a modified message data packet;
3) and returning the map information to the first communication client, and sending the modification message data packet to a corresponding communication client.
Further, the geographical position information of the picture is obtained according to the exif information of the picture.
Further, the picture geographical location information includes longitude, latitude and altitude.
And further, returning a message whether the first communication client shares the picture. Further, receiving all selected sharing information of a plurality of communication clients; the selecting the sharing message comprises judging whether to share the picture and marking a corresponding label for the shared picture.
Further, the map is rendered into a thermodynamic diagram according to the labels of the communication servers.
And further, acquiring the corresponding communication client of the first communication client according to the identification information of the target user in the message data packet.
Further, the number of the corresponding communication clients is one or more.
A storage medium having a computer program stored therein, wherein the computer program is arranged to perform the above method when executed.
An electronic device comprising a memory and a processor, wherein the memory stores a program that performs the above described method.
Compared with the existing instant messaging, the instant messaging method and the instant messaging system can obtain the map of the photo shooting place according to the geographic position information in the picture, can browse the picture shared by other people by clicking the map, can also know the corresponding geographic information and the human information, and increase the interactivity in the communication process.
Drawings
Fig. 1 is a flowchart illustrating a method for processing a message containing a picture with readable geographical location information in instant messaging according to an embodiment of the present application;
fig. 2 is an interface diagram of an instant messaging client side including a picture capable of reading geographical location information in instant messaging according to an embodiment of the present application;
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and specific preferred embodiments.
As shown in fig. 1, a message processing method for an instant messaging including a picture with readable geographic location information includes: receiving a message data packet sent by a first instant messaging client, wherein the message data packet comprises message contents: judging whether the message content contains a picture or not; if yes, reading and judging whether the picture Exchangeable image file format (Exif) information contains geographical position information; if so, the server side obtains corresponding map information through longitude, latitude and altitude contained in the geographic position information, modifies the corresponding picture into the picture and adds the corresponding map information in the message, and obtains a modified message data packet; sending the modified message to a second instant messaging client to enable the second instant messaging client to display a picture and display an embedded map under the picture; returning the map information to the first instant messaging client so as to display a corresponding map under the picture; and simultaneously sending information of 'whether to share pictures' to a first instant messaging client, wherein the information comprises judgment information, judging user selection, when the user selects to share pictures, popping up a picture type selection popup frame carried in the information, enabling the user to select to print one or more labels on the pictures, and also customizing the labels, then, the first instant messaging client establishes secondary connection with a server, and sends the selection information of the user to the server, and the content contained in the information judges whether to upload the pictures and prints corresponding labels on the uploaded pictures. The message packet further includes identification information of a target user, and the sending of the modified message data packet to the second instant messaging client includes: and sending the modified message data packet to a second instant messaging client according to the identification information of the target user.
In the method for processing the message of the picture containing the readable geographic location information in the instant messaging, the server obtains the longitude and latitude and the height of the picture shooting place by reading the geographic location information in the picture, the accurate information of the shooting place can be positioned according to the longitude and latitude and the height, meanwhile, the server side marks the corresponding label for the picture according to the operation of the user, the server side can count the picture marked with the same label, when the map of the instant communication area is clicked, jumping to a corresponding place in the display area, rendering the map into a thermodynamic diagram by the server at the moment, and finding out the fire heat degree of a label corresponding to the picture in a larger range by zooming in and zooming out the map, for example, when the user travels, the number of picture sharing reflects the popularity of scenic spots in the area to a certain extent, and the method has certain guiding significance for instant messaging participants. The map in the display area can be switched to a common mode, and all pictures shared by other people can be seen instead of the pictures of the corresponding labels under the thermodynamic diagram condition.
As for the processing method of this embodiment, as shown in fig. 2, a map is integrated on the left side of the interface, so that browsing of the map can be realized, a user can zoom in and out the map, and can also perform two-dimensional and three-dimensional switching, and when a specific address is clicked, the detailed information of the address and a photo shared by other people and located at the address can be displayed. The right side is an instant messaging window which can realize the instant messaging function. On the basis of ordinary instant messaging, when the client sends information, the server receives the information, analyzes the content of the information and judges whether the information contains pictures. If the picture does not contain the picture, the service end reads exif information of the picture and searches the geographical position information of the picture from the exif information of the picture. If the geographic position information exists, the server side can inquire a map corresponding to the geographic position information. After the map information is obtained, on one hand, the information and a message for the first instant messaging client to determine whether to share the picture are returned to the first instant messaging client; and on the other hand, the map information and the picture are integrated to obtain a modified message packet, and the modified message packet is sent to the instant second communication client. At the moment, the first instant messaging client pops up an elastic frame to enable a user to select whether to share the picture, after the user selects the picture, if the user selects to share the picture according to the selection result of the user, the elastic frame for selecting a label for the picture is popped up next, the user can select one or more labels and can create the label by himself, then the first instant messaging client sends the message to the server for the second time, the server selects whether to share the picture according to the content of the message, creates the label for the uploaded picture and establishes classification; meanwhile, a map is displayed under the picture with the geographic position information on the interfaces of the two communication clients, the map can be enlarged or reduced as shown in the instant communication window of fig. 2, the map can be quickly positioned to the place corresponding to the geographic position information of the picture in the display area of fig. 2 by clicking the map, at the moment, the displayed map is a thermodynamic diagram generated according to a label created by a user, namely the distribution condition of the picture with the same label on the map, the map has good guidance for the user, the user can also select to switch to a common map, and at the moment, the user can browse the pictures shared by other people in the area. When a map under the picture of the instant messaging area is clicked, whether the geographic position belongs to the indoor space or not can be determined according to the altitude information in the geographic position information, and if the geographic position belongs to the indoor space, when the server determines that the indoor map exists in the local space, the indoor map of the floor where the geographic position belongs can be automatically loaded in the display area according to the altitude.
Wherein, the acquisition process of the indoor map comprises the following steps: if the exif information of the picture contains the geographical position information, the geographical position information contains the altitude information, after the picture is positioned to a specific place according to the longitude and latitude, a corresponding building can be found on a map, at present, maps such as Google, Baidu and Goodand Germany maps have corresponding indoor maps, whether the building has the indoor map or not can be known according to the obtained longitude and latitude, if so, the picture can be positioned to a specific floor according to the altitude, and therefore the floor map is obtained.
Further, if the picture of the first instant messaging client is sent in a communication group, all members of the communication group receive the modified message data packet sent by the server.
In this embodiment, the picture containing the geographic location information has a function of returning to a map, and the geographic location information contained in the picture is used for automatically searching and locating a corresponding address for the user, so that on one hand, communication obstacles caused by the fact that one party does not know specific details in communication are avoided, and on the other hand, the inconvenience that a third party tool is needed to further know the communicated content is avoided. Meanwhile, the interestingness of communication is increased, and the interactivity is improved.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all the equivalent structures or equivalent flow transformations performed by the present specification and the attached drawings, or directly or indirectly applied to other related technical fields, and the geographic location information of the picture need not be limited to the exif information, and may be a picture with additional geographic location information, which are all included in the scope of the present invention.

Claims (7)

1. A processing method for pictures containing readable geographic position information in instant messaging is suitable for a network consisting of a server and a plurality of communication clients, wherein the server stores a map, and the steps comprise:
1) receiving a message data packet sent by a first communication client, and extracting picture geographical position information in the message data packet containing a picture;
2) the server side obtains map information corresponding to the picture according to the geographical position information of the picture, and replaces the picture in the message data packet with the picture and the map information to obtain a modified message data packet;
3) sending the modified message data packet to a corresponding communication client so that a second instant communication client displays a picture and an embedded map is displayed under the picture;
4) returning the map information to the first communication client side, and displaying an embedded map under the picture; meanwhile, sending a message whether to share the picture to the first communication client, and if the first communication client selects to share the picture, popping up a popup frame for selecting the picture type label; then the first communication client sends the information of whether to share the picture and what kind of label to print on the picture to the server again;
5) the server side selects whether to share the picture and creates a label for the uploaded picture according to the information sent by the first communication client side;
6) the communication client jumps to a place corresponding to the geographical position of the picture by clicking the map displayed under the picture, displays the shared picture under a common mode, and displays the thermodynamic diagram under a non-common mode, wherein the thermodynamic diagram is produced by rendering the map after counting the same label pictures at the current place by the server and is used for displaying the distribution condition of the pictures with the same label on the map.
2. The method of claim 1, wherein the picture geographical location information is obtained from exif information of a picture.
3. The method of claim 1, wherein the picture geographical location information comprises longitude, latitude, and altitude.
4. The method of claim 1, wherein the corresponding communication client of the first communication client is obtained according to the identification information of the target user in the message data packet.
5. The method of claim 1, wherein the number of the corresponding communication clients is one or more.
6. A storage medium having a computer program stored thereon, wherein the computer program is arranged to, when run, perform the method of any of claims 1-5.
7. An electronic device comprising a memory and a processor, wherein the memory stores a program that performs the method of any of claims 1-5.
CN202010222853.5A 2019-12-11 2020-03-26 Method for processing picture containing readable geographic position information in instant messaging and electronic device Active CN111555956B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911288455 2019-12-11
CN2019112884557 2019-12-11

Publications (2)

Publication Number Publication Date
CN111555956A CN111555956A (en) 2020-08-18
CN111555956B true CN111555956B (en) 2022-01-11

Family

ID=72007502

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010222853.5A Active CN111555956B (en) 2019-12-11 2020-03-26 Method for processing picture containing readable geographic position information in instant messaging and electronic device

Country Status (1)

Country Link
CN (1) CN111555956B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101726311A (en) * 2008-10-10 2010-06-09 北京灵图软件技术有限公司 Path navigation method and device
CN102521253A (en) * 2011-11-17 2012-06-27 西安交通大学 Visual multi-media management method of network users
CN104902163A (en) * 2014-03-07 2015-09-09 腾讯科技(深圳)有限公司 Picture processing method and device and picture generating method and device
CN105592155A (en) * 2015-12-26 2016-05-18 龚敬 Photograph shooting and geographical position storage, display and sharing based on mobile terminal
CN106951467A (en) * 2017-03-01 2017-07-14 心触动(武汉)文化传媒有限公司 A kind of photo display method and system of photo sharing platform

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101582062B (en) * 2008-05-12 2013-04-03 深圳市莱科电子技术有限公司 Photo management system based on position information
CN103684979B (en) * 2012-09-13 2017-09-08 阿里巴巴集团控股有限公司 The method and apparatus in geographical position in a kind of acquisition chat content
TWI478612B (en) * 2013-04-09 2015-03-21 Chang O Lo Portable device with passing trace module and method of the same
CN109768920B (en) * 2013-09-09 2021-04-30 腾讯科技(深圳)有限公司 Position sharing method, instant communication client and server
CN106375320A (en) * 2016-09-06 2017-02-01 珠海市魅族科技有限公司 Geographic position information sharing method and apparatus
CN109660444A (en) * 2017-10-10 2019-04-19 刘庆辉 Information sharing AC system based on electronic map

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101726311A (en) * 2008-10-10 2010-06-09 北京灵图软件技术有限公司 Path navigation method and device
CN102521253A (en) * 2011-11-17 2012-06-27 西安交通大学 Visual multi-media management method of network users
CN104902163A (en) * 2014-03-07 2015-09-09 腾讯科技(深圳)有限公司 Picture processing method and device and picture generating method and device
CN105592155A (en) * 2015-12-26 2016-05-18 龚敬 Photograph shooting and geographical position storage, display and sharing based on mobile terminal
CN106951467A (en) * 2017-03-01 2017-07-14 心触动(武汉)文化传媒有限公司 A kind of photo display method and system of photo sharing platform

Also Published As

Publication number Publication date
CN111555956A (en) 2020-08-18

Similar Documents

Publication Publication Date Title
US7853296B2 (en) Mobile virtual and augmented reality system
US7844229B2 (en) Mobile virtual and augmented reality system
US10863310B2 (en) Method, server and terminal for information interaction
US7474959B2 (en) Method for providing recommendations using image, location data, and annotations
US20090054084A1 (en) Mobile virtual and augmented reality system
EP2015200B1 (en) Method and apparatus for navigating virtual space
US7843592B2 (en) Editing and browsing images for virtual cameras
CN107179923A (en) Applied program processing method, device and computer equipment
WO2018121619A1 (en) Multimedia data processing method and device for service, server, and storage medium
KR102014761B1 (en) Method and system for sorting a search result with space objects, and a computer-readable storage device
CN102843347B (en) Realize system and method, terminal and the server of mobile augmented reality business
WO2012174974A1 (en) Method, system, terminal, and server for implementing mobile augmented reality service
CN106453050B (en) Information processing method, system and relevant device based on social application
JP2008530676A (en) Storing information for access using acquired images
US20030009549A1 (en) Server, information processing method and recording medium
JP2015505384A (en) Image annotation method and system
CN111680238B (en) Information sharing method, device and storage medium
CN106791912A (en) A kind of poster picture match method and system
WO2014176804A1 (en) Method, server, and system for obtaining navigation information
CN111555956B (en) Method for processing picture containing readable geographic position information in instant messaging and electronic device
JP2018518086A (en) Picture processing method, transmission method, processing device, and transmission device
US20050162518A1 (en) Display of the thumbnails of a photographic support on a terminal
JP2003208430A (en) Method of perusing geographic image linked to connection
JP2005202602A (en) Information providing system
CN102801653B (en) The method and system navigated by instant messaging circle

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
GR01 Patent grant
GR01 Patent grant