[go: up one dir, main page]

CN106845470B - Map data acquisition method and device - Google Patents

Map data acquisition method and device Download PDF

Info

Publication number
CN106845470B
CN106845470B CN201710089061.3A CN201710089061A CN106845470B CN 106845470 B CN106845470 B CN 106845470B CN 201710089061 A CN201710089061 A CN 201710089061A CN 106845470 B CN106845470 B CN 106845470B
Authority
CN
China
Prior art keywords
target photo
information
character recognition
map data
text
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
CN201710089061.3A
Other languages
Chinese (zh)
Other versions
CN106845470A (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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201710089061.3A priority Critical patent/CN106845470B/en
Publication of CN106845470A publication Critical patent/CN106845470A/en
Application granted granted Critical
Publication of CN106845470B publication Critical patent/CN106845470B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/22Image preprocessing by selection of a specific region containing or referencing a pattern; Locating or processing of specific regions to guide the detection or recognition
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Remote Sensing (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Processing Or Creating Images (AREA)
  • Instructional Devices (AREA)

Abstract

The application discloses a map data acquisition method and a map data acquisition device. One embodiment of the method comprises: acquiring a target photo, wherein the target photo comprises exchangeable image file EXIF information; acquiring shooting position information in EXIF information of the target picture; performing character recognition on the target photo, and determining geographic name information corresponding to the target photo according to a recognition result of the character recognition; the shooting position information and the geographical name information are used as map data, and the map data are output. This embodiment improves the efficiency of map data collection.

Description

Map data acquisition method and device
Technical Field
The application relates to the technical field of computers, in particular to the technical field of electronic maps, and particularly relates to a map data acquisition method and device.
Background
With the rapid development of computer technology and internet technology, electronic maps are used as electronic assistants for daily travel of people, and help is provided for the travel of people more and more. And the map data acquisition of the electronic map is the basis of the electronic map. At present, map data acquisition of an electronic map is mainly obtained by manually driving a map acquisition vehicle to each place to acquire a real scene and then analyzing and processing the real scene by electronic equipment.
However, in the existing technical scheme of manually driving, a map collection vehicle is used to collect real scenes from different places to obtain basic data of an electronic map, and the map collection vehicle needs to be configured first. And secondly, manually driving the map acquisition vehicle to actually reach the corresponding physical address. In addition, the map-acquisition vehicle is equipped with corresponding acquisition devices (for example, a camera, a video camera, a laser scanner, etc.), which are expensive (especially, the laser scanner is expensive). Finally, if the actual physical address changes, such as a change in house number, a road repair, etc., and if the map collection vehicle does not collect the map data again after the physical address changes, the data of the electronic map will not match the actual data.
Therefore, the existing map data acquisition scheme has the problem of low efficiency.
Disclosure of Invention
The present application is directed to an improved map data collection method and apparatus, so as to solve the technical problems mentioned in the background section above.
In a first aspect, the present application provides a map data acquisition method, including: acquiring a target photo, wherein the target photo comprises EXIF information; acquiring shooting position information in EXIF information of the target picture; performing character recognition on the target photo, and determining geographic name information corresponding to the target photo according to a recognition result of the character recognition; the shooting position information and the geographical name information are used as map data, and the map data are output.
In some embodiments, before performing the text recognition on the target photo, the method further includes: and acquiring the shooting time information in the EXIF information of the target photo.
In some embodiments, the performing text recognition on the target photo and determining geographic name information corresponding to the target photo according to a recognition result of the text recognition includes: and performing character recognition on the target photo in response to the acquired shooting position information and shooting time information in the EXIF information of the target photo, and determining geographical name information corresponding to the target photo according to a recognition result of the character recognition.
In some embodiments, the above, in response to obtaining the shooting location information and the shooting time information in the EXIF information of the target photo, performing character recognition on the target photo, and determining geographic name information corresponding to the target photo according to a recognition result of the character recognition, includes: in response to the shooting position information and the shooting time information in the EXIF information of the obtained target picture, determining whether the shooting time indicated by the shooting time information is later than a preset time; performing character recognition on the target picture in response to the fact that the shooting time indicated by the shooting time information is later than the preset time; determining whether the recognition result of the character recognition of the target photo comprises a geographic name; and in response to determining that the recognition result of the character recognition of the target photo comprises a geographic name, determining geographic name information corresponding to the target photo according to the recognition result of the character recognition of the target photo.
In some embodiments, the taking the shooting position information and the geographical name information as map data and outputting the map data includes: the shooting position information, the geographical name information, and the shooting time information are taken as map data and the map data is output.
In some embodiments, the determining whether the recognition result of the character recognition of the target photo includes a geographic name includes: acquiring at least one text in the recognition result; performing word segmentation processing on each acquired text to obtain a word segmentation result of each text; determining whether a word segmentation result comprises a text of a preset geographic name keyword or not in the at least one text; and in response to determining that the text with the word segmentation result comprising the preset geographic name key word exists in the at least one text, determining that the recognition result comprises the geographic name.
In a second aspect, the present application provides a map data acquisition apparatus, the apparatus comprising: a first acquisition unit configured to acquire a target photograph, the target photograph including EXIF information; a second acquisition unit configured to acquire shooting position information in the EXIF information of the target photograph; the character recognition unit is configured for carrying out character recognition on the target photo and determining geographic name information corresponding to the target photo according to a recognition result of the character recognition; and a data output unit configured to take the shooting position information and the geographical name information as map data and output the map data.
In some embodiments, the above apparatus further comprises: and a third acquisition unit configured to acquire the shooting time information in the EXIF information of the target photograph.
In some embodiments, the text recognition unit is further configured to: and performing character recognition on the target photo in response to the acquired shooting position information and shooting time information in the EXIF information of the target photo, and determining geographical name information corresponding to the target photo according to a recognition result of the character recognition.
In some embodiments, the text recognition unit includes: the first determining module is configured to respond to the shooting position information and the shooting time information in the EXIF information of the obtained target picture, and determine whether the shooting time indicated by the shooting time information is later than a preset time; the character recognition module is configured to perform character recognition on the target photo in response to the fact that the shooting time indicated by the shooting time information is later than the preset time; the second determination module is configured to determine whether the recognition result of the character recognition of the target photo includes a geographic name; and the third determining module is configured to determine geographic name information corresponding to the target photo according to the recognition result of the character recognition of the target photo in response to determining that the recognition result of the character recognition of the target photo includes a geographic name.
In some embodiments, the data output unit is further configured to: the shooting position information, the geographical name information, and the shooting time information are taken as map data and the map data is output.
In some embodiments, the second determination module is further configured to: acquiring at least one text in the recognition result; performing word segmentation processing on each acquired text to obtain a word segmentation result of each text; determining whether a word segmentation result comprises a text of a preset geographic name keyword or not in the at least one text; and in response to determining that the text with the word segmentation result comprising the preset geographic name key word exists in the at least one text, determining that the recognition result comprises the geographic name.
In a third aspect, the present application provides a terminal device, including: one or more processors; a storage device for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the method as described in any implementation manner of the first aspect.
In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the method as described in any of the implementations of the first aspect.
According to the map data acquisition method and device, the shooting position information in the EXIF information of the target photo is acquired, then the target photo is subjected to character recognition, the geographic name information corresponding to the target photo is determined according to the recognition result of the character recognition, and finally the acquired shooting position information and the determined geographic name information are used as map data and the map data are output, so that the map data acquisition efficiency is improved.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
FIG. 1 is an exemplary system architecture diagram in which the present application may be applied;
FIG. 2 is a flow diagram of one embodiment of a map data collection method according to the present application;
FIG. 3 is a schematic diagram of an application scenario of a map data collection method according to the present application;
FIG. 4 is a flow diagram of yet another embodiment of a map data collection method according to the present application;
FIG. 5 is a schematic structural diagram of one embodiment of a map data collection apparatus according to the present application;
fig. 6 is a schematic structural diagram of a computer system suitable for implementing a terminal device according to an embodiment of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
Fig. 1 illustrates an exemplary system architecture 100 to which embodiments of the map data acquisition method or map data acquisition apparatus of the present application may be applied.
As shown in fig. 1, the system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal devices 101, 102, 103 to interact with the server 105 via the network 104 to receive or send messages or the like. Various client applications, such as a map data acquisition application, an image acquisition application, and the like, may be installed on the terminal devices 101, 102, 103.
The terminal devices 101, 102, 103 may be various electronic devices including, but not limited to, smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 105 may be a server that provides various services, such as a background server that provides support for map data collection type applications installed in the terminal devices 101, 102, 103. The background server can analyze and process the received map data and finally form the electronic map application.
It should be noted that the map data collection method provided in the embodiment of the present application is generally executed by the terminal devices 101, 102, and 103, and accordingly, the map data collection device is generally disposed in the terminal devices 101, 102, and 103.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
With continued reference to FIG. 2, a flow 200 of one embodiment of a map data collection method according to the present application is shown. The map data acquisition method comprises the following steps:
step 201, acquiring a target photo.
In this embodiment, an electronic device (for example, the terminal device shown in fig. 1) on which the map data collection method operates may locally or remotely obtain the target photograph from another electronic device connected to the electronic device through a network. The target photo includes EXIF (Exchangeable Image File) information. EXIF information is a series of information collected by a digital camera during photographing and then stored in the header of a photo file (e.g., JPEG/TIFF file), that is, EXIF information is a set of photographing parameters embedded in the format of the photo file (e.g., JPEG/TIFF file). Due to the popularization of the electronic equipment (such as a digital camera, a smart phone and the like) with the photographing function, a large number of photos with the EXIF information exist at present, the photos with the EXIF information are very convenient and easy to obtain, and therefore the economic cost, the labor cost and the time cost for obtaining the target photos with the EXIF information can be ignored.
Step 202, acquiring shooting position information in EXIF information of the target photo.
In this embodiment, after the electronic device on which the map data collection method operates obtains the target photo, the EXIF information of the target photo may be obtained first, and then the shooting position information in the EXIF information may be obtained.
It should be noted that, acquiring EXIF information from a target photo with EXIF information and shooting location information in the EXIF information is the existing technology widely studied and applied at present, for example, the existing EXIF information viewing application may be adopted to acquire shooting location information in the EXIF information of the target photo, and details are not described here again.
Because the electronic device with the photographing function usually has a positioning function (for example, most common smart phones have the photographing function and the positioning function), the digital photo taken by the electronic device with the photographing function and the positioning function can store the position information of the electronic device when the digital photo is taken, and the position information is stored as the shooting position information in the EXIF information of the taken digital photo. Therefore, the electronic device can acquire the shooting position information from the EXIF information of the acquired target photograph.
And 203, performing character recognition on the target photo, and determining geographic name information corresponding to the target photo according to a recognition result of the character recognition.
In this embodiment, the electronic device on which the map data collection method is executed may first perform character recognition on the target photograph, and obtain a recognition result of the character recognition. And then, determining the geographical name information corresponding to the target photo according to the recognition result of the character recognition.
It should be noted that, performing text recognition on the target photo and obtaining a recognition result of the text recognition is the prior art widely studied and applied at present, and is not described herein again.
In some optional implementation manners of this embodiment, the electronic device may directly use the recognition result of the text recognition as geographic name information corresponding to the target photo.
In some optional implementation manners of this embodiment, the electronic device may also obtain at least one text in the recognition result of the character recognition, perform word segmentation on each text in the at least one text, determine whether a word segmentation result of the text includes a preset geographic name keyword, and if so, screen out the text as geographic name information corresponding to the target photo. By way of example, the geographic name keyword may be "building," "street," "road," "ridge," "unit," "number," "building," "fiddle," or the like.
For example, the recognition result of the character recognition of the target photo includes two texts of "chinese postal express logistics" and "shanghai postal building", the word segmentation processing is performed on the two texts, whether the word segmentation result of the two texts includes the preset geographical name keyword is judged, and the judgment result shows that the "shanghai postal building" includes the preset geographical name keyword "building", so that the "shanghai postal building" is finally determined as the geographical name information corresponding to the target photo.
And step 204, taking the shooting position information and the geographic name information as map data and outputting the map data.
In the present embodiment, the electronic apparatus described above may take the shooting position information acquired in step 202 and the geographical name information corresponding to the target photograph determined in step 203 as map data and output the map data.
In some optional implementations of the embodiment, the electronic device may send the map data to a server (e.g., the server shown in fig. 1), and the server may analyze and process the received map data and add the analyzed map data to a map database of an electronic map application.
With continued reference to fig. 3, fig. 3 is a schematic view of an application scenario of the map data collection method according to the present embodiment. In the application scenario of fig. 3, first, the user selects a target photo, as shown by icon 301 in fig. 3. Then, the terminal device acquires the shooting position information "116 ° 17 '40.182" east longitude and 40 ° 3' 16.05 "north latitude" in the EXIF information of the above-described target photograph, as shown by an icon 302 in fig. 3. Then, the terminal device performs character recognition on the target photo to obtain a character recognition result "huazhi mansion" as geographical name information corresponding to the target photo, as shown by an icon 303 in fig. 3. Finally, the user issues an instruction to the terminal device to output the map data as indicated by an icon 304 in fig. 3, and the terminal device outputs the shooting position information "east longitude 116 ° 17 '40.182", north latitude 40 ° 3' 16.05 "and the geographical name information" huazhi mansion "as the map data.
In the method provided by the embodiment of the application, the shooting position information in the EXIF information of the target photo is acquired, then the target photo is subjected to character recognition, the geographical name information corresponding to the target photo is determined according to the recognition result of the character recognition, and finally the acquired shooting position information and the determined geographical name information are used as map data and the map data are output. The map data can be generated only by acquiring the target photos with the EXIF information without manually driving the map collecting vehicle to each place, and the economic cost, the labor cost and the time cost for acquiring the photos with the EXIF information can be ignored due to the fact that a large number of photos with the EXIF information exist at present, so that the efficiency of map data collection is greatly improved.
With further reference to fig. 4, a flow 400 of yet another embodiment of a map data collection method is shown. The process 400 of the map data collection method includes the following steps:
step 401, a target photo is obtained.
In this embodiment, an electronic device (for example, the terminal device shown in fig. 1) on which the map data collection method operates may locally or remotely obtain the target photograph from another electronic device connected to the electronic device through a network. The target photo includes EXIF (Exchangeable Image File) information. EXIF information is a series of information collected by a digital camera during photographing and then stored in the header of a photo file (e.g., JPEG/TIFF file), that is, EXIF information is a set of photographing parameters embedded in the format of the photo file (e.g., JPEG/TIFF file). Due to the popularization of the electronic equipment with the photographing function, a large number of photos with EXIF information exist at present, the photos with the EXIF information are very convenient and easy to obtain, and therefore the economic cost, the labor cost and the time cost for obtaining the target photos with the EXIF information can be ignored.
Step 402, acquiring shooting position information in EXIF information of the target photo.
In this embodiment, after the electronic device on which the map data collection method operates obtains the target photo, the EXIF information of the target photo may be obtained first, and then the shooting position information in the EXIF information may be obtained.
It should be noted that, acquiring EXIF information from a target photo with EXIF information and shooting location information in the EXIF information is the existing technology widely studied and applied at present, for example, the existing EXIF information viewing application may be adopted to acquire shooting location information in the EXIF information of the target photo, and details are not described here again.
In step 403, the shooting time information in the EXIF information of the target photo is obtained.
In this embodiment, the electronic device may acquire the shooting time information in the EXIF information after acquiring the shooting position information in the EXIF information of the target photograph. In practice, the EXIF information usually includes shooting time information.
It should be noted that, obtaining the shooting time information in the EXIF information from the target photo with the EXIF information is also the existing technology widely studied and applied at present, for example, the shooting time information in the EXIF information of the target photo can be obtained by using the existing EXIF information viewing application, and is not described herein again.
And step 404, determining whether the shooting position information and the shooting time information in the EXIF information of the target picture are acquired, if so, turning to step 405, and if not, ending.
In the present embodiment, in order to ensure that the target photograph can be used for map data generation, if the photographing position information and photographing time information in the EXIF information of the target photograph are not acquired, the target photograph cannot be used for generating map data, and therefore, the map data collection will be ended.
And step 405, determining whether the shooting time indicated by the shooting time information is later than the preset time, if so, going to step 406, and if not, ending.
In this embodiment, the electronic device may determine, in step 404, whether the shooting time indicated by the shooting time information is later than a preset time in the case where it is determined that the shooting position information and the shooting time information in the EXIF information of the target photo have been acquired, and if so, indicating that the shooting time of the target photo is newer, the target photo may be used to generate map data, and therefore, go to step 406; if not, the target picture is shot for a long time and is not suitable for generating the map data, and the map data collection is finished.
In this embodiment, the preset time may be specified by the electronic device according to a setting instruction of a user, for example, a setting interface may be provided for the user to set the preset time to 0 point 0 on the 7 th day before the current date; alternatively, the preset time may be set by default, for example, "0 point 0 on day 7 before the current date".
And step 406, performing character recognition on the target photo.
In this embodiment, the electronic device may indicate that the date of the target photograph is newer when it is determined that the photographing time indicated by the photographing time information is later than the preset time, and thus perform character recognition on the target photograph and generate a recognition result. It should be noted that, performing text recognition on the target photo and obtaining a recognition result of the text recognition is the prior art widely studied and applied at present, and is not described herein again.
Step 407, determining whether the recognition result of the character recognition of the target photo includes a geographic name, if so, going to step 408, and if not, ending.
In this embodiment, after performing text recognition on the target photo and generating a recognition result, the electronic device may determine whether the recognition result of performing text recognition on the target photo includes a geographic name, if so, go to step 408, and if not, end.
Here, the electronic device may determine whether the recognition result of the character recognition of the target photograph includes a geographical name by:
first, at least one text in the recognition result is obtained.
And then, performing word segmentation processing on each acquired text to obtain a word segmentation result of each text.
And finally, determining whether the word segmentation result in the at least one text comprises the text of the preset geographic name key word, and if so, determining that the recognition result comprises the geographic name. For example, the geographic name keyword may be "building," "street," "road," "ridge," "unit," "number," "building," "fiddle," or the like.
And step 408, determining the geographic name information corresponding to the target photo according to the recognition result of the character recognition of the target photo.
In this embodiment, the electronic device may determine, when it is determined that the recognition result of the character recognition on the target photo includes a geographic name, geographic name information corresponding to the target photo according to the recognition result of the character recognition on the target photo.
In some optional implementation manners of this embodiment, the electronic device may directly use the recognition result of the text recognition as geographic name information corresponding to the target photo.
In some optional implementation manners of this embodiment, the electronic device may also obtain at least one text in the recognition result of the character recognition, perform word segmentation on each text in the at least one text, determine whether a word segmentation result of the text includes a preset geographic name keyword, and if so, screen out the text as geographic name information corresponding to the target photo.
Step 409, using the shooting position information, the geographical name information and the shooting time information as map data and outputting the map data.
In the present embodiment, the electronic apparatus described above may output the shooting position information acquired in step 402, the geographical name information corresponding to the target photograph determined in step 408, and the shooting time information acquired in step 403 as map data.
In some optional implementations of the embodiment, the electronic device may send the map data to a server (e.g., the server shown in fig. 1), and the server may analyze and process the received map data and add the analyzed map data to a map database of an electronic map application.
As can be seen from fig. 4, compared with the embodiment corresponding to fig. 2, the flow 400 of the map data collection method in the present embodiment highlights the step of defining the shooting time of the target photograph. Therefore, the scheme described in the embodiment can ensure that the shooting time of the target photo is relatively new, so that the timeliness of map data acquisition and map data updating can be improved.
With further reference to fig. 5, as an implementation of the method shown in the above-mentioned figures, the present application provides an embodiment of a map data acquisition apparatus, which corresponds to the embodiment of the method shown in fig. 2, and which can be applied to various electronic devices.
As shown in fig. 5, the map data collection apparatus 500 of the present embodiment includes: a first acquisition unit 501, a second acquisition unit 502, a character recognition unit 503, and a data output unit 504. The first acquiring unit 501 is configured to acquire a target photo, where the target photo includes EXIF information; a second acquisition unit 502 configured to acquire shooting position information in EXIF information of the target photograph; a character recognition unit 503 configured to perform character recognition on the target photo, and determine geographic name information corresponding to the target photo according to a recognition result of the character recognition; a data output unit 504 configured to take the shooting position information and the geographical name information as map data and output the map data.
In this embodiment, specific processing of the first obtaining unit 501, the second obtaining unit 502, the text recognition unit 503 and the data output unit 504 of the map data collecting device 500 and technical effects brought by the processing can refer to relevant descriptions of step 201, step 202, step 203 and step 204 in the corresponding embodiment of fig. 2, which are not repeated herein.
In some optional implementations of this embodiment, the map data collecting apparatus 500 may further include: the third acquiring unit 502' is configured to acquire the shooting time information in the EXIF information of the target photograph. The detailed processing of the third obtaining unit 502' and the technical effects thereof can refer to the related description of step 403 in the corresponding embodiment of fig. 4, and are not repeated herein.
In some optional implementations of this embodiment, the text recognition unit 503 may be further configured to: and performing character recognition on the target photo in response to the acquired shooting position information and shooting time information in the EXIF information of the target photo, and determining geographical name information corresponding to the target photo according to a recognition result of the character recognition.
In some optional implementations of this embodiment, the text recognition unit 503 may include: a first determination module 5031 configured to determine, in response to the acquisition of the shooting position information and the shooting time information in the EXIF information of the target photograph, whether the shooting time indicated by the shooting time information is later than a preset time; a character recognition module 5032 configured to perform character recognition on the target photograph in response to determining that the shooting time indicated by the shooting time information is later than the preset time; a second determination module 5033 configured to determine whether the recognition result of the character recognition on the target photo includes a geographic name; the third determining module 5034 is configured to, in response to determining that the recognition result of performing text recognition on the target photo includes a geographic name, determine geographic name information corresponding to the target photo according to the recognition result of performing text recognition on the target photo. The detailed processing of the first determining module 5031, the character recognizing module 5032, the second determining module 5033 and the third determining module 5034 and the technical effects thereof can refer to the related descriptions of step 404, step 405, step 406, step 407 and step 408 in the corresponding embodiment of fig. 4, which are not repeated herein.
In some optional implementations of the present embodiment, the data output unit 504 may be further configured to: the shooting position information, the geographical name information, and the shooting time information are taken as map data and the map data is output. The detailed processing of the data output unit 504 and the technical effects thereof can refer to the related description of step 409 in the corresponding embodiment of fig. 4, and are not repeated herein.
In some optional implementations of the present embodiment, the second determining module 5033 may be further configured to: acquiring at least one text in the recognition result; performing word segmentation processing on each acquired text to obtain a word segmentation result of each text; determining whether a word segmentation result comprises a text of a preset geographic name keyword exists in the at least one text; in response to determining that the text in which the word segmentation result comprises the preset geographic name keyword exists in the at least one text, determining that the recognition result comprises the geographic name. The detailed processing of the second determining module 5033 and the technical effects thereof can refer to the related description of step 407 in the corresponding embodiment of fig. 4, and are not repeated herein.
Referring now to FIG. 6, shown is a block diagram of a computer system 600 suitable for use in implementing a terminal device of an embodiment of the present application. The terminal device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 6, the computer system 600 includes a Central Processing Unit (CPU)601, which can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 602 or a program loaded from a storage section 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the system 600 are also stored. The CPU 601, ROM 602, and RAM 603 are connected to each other via a bus 604. An Input/Output (I/O) interface 605 is also connected to bus 604.
The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, mouse, touch screen, or the like; an output section 607 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, a speaker, and the like; a storage section 608 including a hard disk and the like; and a communication section 609 including a Network interface card such as a LAN (Local Area Network) card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The driver 610 is also connected to the I/O interface 605 as needed. A removable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 610 as necessary, so that a computer program read out therefrom is mounted in the storage section 608 as necessary.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 609, and/or installed from the removable medium 611. The computer program performs the above-described functions defined in the method of the present application when executed by a Central Processing Unit (CPU) 601. It should be noted that the computer readable medium described herein can be a computer readable signal medium or a computer readable storage medium or any combination of the two. 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 of the computer readable storage medium may include, but are not limited to: 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 present application, 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. In this application, however, 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, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present application may be implemented by software or hardware. The described units may also be provided in a processor, and may be described as: a processor includes a first acquisition unit, a second acquisition unit, a character recognition unit, and a data output unit. Here, the names of the cells do not constitute a limitation of the cell itself in some cases, and for example, the data output cell may also be described as a "cell that outputs map data".
As another aspect, the present application also provides a computer-readable medium, which may be contained in the apparatus described in the above embodiments; or may be present separately and not assembled into the device. The computer readable medium carries one or more programs which, when executed by the apparatus, cause the apparatus to: acquiring a target photo, wherein the target photo comprises EXIF information; acquiring shooting position information in EXIF information of the target picture; performing character recognition on the target photo, and determining geographic name information corresponding to the target photo according to a recognition result of the character recognition; the shooting position information and the geographical name information are used as map data, and the map data are output.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention herein disclosed is not limited to the particular combination of features described above, but also encompasses other arrangements formed by any combination of the above features or their equivalents without departing from the spirit of the invention. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.

Claims (8)

1. A method of map data acquisition, the method comprising:
acquiring a target photo, wherein the target photo comprises exchangeable image file EXIF information;
acquiring shooting position information in EXIF information of the target photo;
acquiring shooting time information in EXIF information of the target photo;
performing character recognition on the target photo, and determining geographic name information corresponding to the target photo according to a recognition result of the character recognition;
taking the shooting position information and the geographic name information as map data and outputting the map data;
the character recognition of the target photo and the determination of the geographic name information corresponding to the target photo according to the recognition result of the character recognition comprise:
performing character recognition on the target photo in response to the acquired shooting position information and shooting time information in the EXIF information of the target photo, and determining geographical name information corresponding to the target photo according to a recognition result of the character recognition;
wherein, the performing character recognition on the target photo in response to the acquisition of the shooting position information and the shooting time information in the EXIF information of the target photo, and determining geographic name information corresponding to the target photo according to a recognition result of the character recognition comprises:
in response to the fact that the shooting position information and the shooting time information in the EXIF information of the target photo are obtained, determining whether the shooting time indicated by the shooting time information is later than a preset time;
performing character recognition on the target photo in response to the fact that the shooting time indicated by the shooting time information is later than the preset time;
determining whether a recognition result of character recognition of the target photo comprises a geographic name;
and in response to the fact that the recognition result of the character recognition of the target photo comprises the geographic name, determining geographic name information corresponding to the target photo according to the recognition result of the character recognition of the target photo.
2. The method according to claim 1, wherein the taking the shooting position information and geographical name information as map data and outputting the map data includes:
and taking the shooting position information, the geographical name information and the shooting time information as map data and outputting the map data.
3. The method of claim 1, wherein determining whether the recognition result of the text recognition of the target photo includes a geographic name comprises:
acquiring at least one text in the recognition result;
performing word segmentation processing on each acquired text to obtain a word segmentation result of each text;
determining whether a word segmentation result comprises a text of a preset geographic name keyword exists in the at least one text;
in response to determining that the text in which the word segmentation result comprises the preset geographic name keyword exists in the at least one text, determining that the recognition result comprises the geographic name.
4. A map data acquisition apparatus, the apparatus comprising:
a first acquisition unit configured to acquire a target photograph, the target photograph including exchangeable image file EXIF information;
a second acquisition unit configured to acquire shooting position information in the EXIF information of the target photograph;
a third acquisition unit configured to acquire shooting time information in the EXIF information of the target photograph;
the character recognition unit is configured to perform character recognition on the target photo and determine geographic name information corresponding to the target photo according to a recognition result of the character recognition;
a data output unit configured to take the shooting position information and the geographical name information as map data and output the map data;
wherein the text recognition unit is further configured to:
performing character recognition on the target photo in response to the acquired shooting position information and shooting time information in the EXIF information of the target photo, and determining geographical name information corresponding to the target photo according to a recognition result of the character recognition;
characterized in that, the character recognition unit includes:
the first determining module is configured to respond to the shooting position information and the shooting time information in the EXIF information of the obtained target picture, and determine whether the shooting time indicated by the shooting time information is later than a preset time;
the character recognition module is configured to perform character recognition on the target photo in response to the fact that the shooting time indicated by the shooting time information is later than the preset time;
the second determination module is configured to determine whether a recognition result obtained by performing character recognition on the target photo includes a geographic name;
and the third determining module is configured to determine geographic name information corresponding to the target photo according to the recognition result of the character recognition of the target photo in response to the fact that the recognition result of the character recognition of the target photo includes the geographic name.
5. The apparatus of claim 4, wherein the data output unit is further configured to:
and taking the shooting position information, the geographical name information and the shooting time information as map data and outputting the map data.
6. The apparatus of claim 4, wherein the second determining module is further configured to:
acquiring at least one text in the recognition result;
performing word segmentation processing on each acquired text to obtain a word segmentation result of each text;
determining whether a word segmentation result comprises a text of a preset geographic name keyword exists in the at least one text;
in response to determining that the text in which the word segmentation result comprises the preset geographic name keyword exists in the at least one text, determining that the recognition result comprises the geographic name.
7. A terminal device, comprising:
one or more processors;
a storage device for storing one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of any of claims 1-3.
8. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-3.
CN201710089061.3A 2017-02-20 2017-02-20 Map data acquisition method and device Active CN106845470B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710089061.3A CN106845470B (en) 2017-02-20 2017-02-20 Map data acquisition method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710089061.3A CN106845470B (en) 2017-02-20 2017-02-20 Map data acquisition method and device

Publications (2)

Publication Number Publication Date
CN106845470A CN106845470A (en) 2017-06-13
CN106845470B true CN106845470B (en) 2020-12-11

Family

ID=59129074

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710089061.3A Active CN106845470B (en) 2017-02-20 2017-02-20 Map data acquisition method and device

Country Status (1)

Country Link
CN (1) CN106845470B (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110069578A (en) * 2017-08-23 2019-07-30 富士通株式会社 Update the method, apparatus and electronic equipment of cartographic information
WO2019127437A1 (en) * 2017-12-29 2019-07-04 深圳前海达闼云端智能科技有限公司 Map labeling method and apparatus, and cloud server, terminal and application program
CN110647603B (en) * 2018-06-27 2022-05-27 百度在线网络技术(北京)有限公司 Image annotation information processing method, device and system
CN109115238B (en) * 2018-07-04 2021-03-23 百度在线网络技术(北京)有限公司 Map display method, device and equipment
CN109101605A (en) * 2018-08-02 2018-12-28 广州市城市规划勘测设计研究院 A kind of doorplate data acquisition method and device
CN110941684B (en) * 2018-09-21 2023-06-13 阿里巴巴(中国)有限公司 Map data production method, related device and system
CN109460484A (en) * 2018-11-08 2019-03-12 广州市增城区城乡规划与测绘地理信息研究院 A kind of geographic information data crowdsourcing acquisition system and method based on wechat
CN109558874B (en) * 2018-12-11 2024-05-31 上海集成电路研发中心有限公司 Positioning method and device based on image recognition
CN111259021B (en) * 2020-01-13 2020-10-09 速度时空信息科技股份有限公司 Quick collection and updating method and system for geographical map point information
CN111339976B (en) * 2020-03-03 2023-08-11 Oppo广东移动通信有限公司 Indoor positioning method, device, terminal and storage medium
CN112129307B (en) * 2020-09-28 2022-10-11 北京百度网讯科技有限公司 Method and device for generating bus route information, electronic equipment and storage medium
CN113961589A (en) * 2021-12-22 2022-01-21 中经未来(北京)传媒科技有限责任公司 Internet information collection processing method and system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102547090A (en) * 2010-11-24 2012-07-04 三星电子株式会社 Digital photographing apparatus and methods of providing pictures thereof
CN105787111A (en) * 2016-03-24 2016-07-20 李秋燕 Private map making method based on user interest

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPWO2005054783A1 (en) * 2003-12-05 2007-06-28 松下電器産業株式会社 Navigation device
WO2005066882A1 (en) * 2004-01-08 2005-07-21 Nec Corporation Character recognition device, mobile communication system, mobile terminal device, fixed station device, character recognition method, and character recognition program
CN101645134B (en) * 2005-07-29 2013-01-02 富士通株式会社 Integral place name recognition method and integral place name recognition device
CN101655369A (en) * 2008-08-22 2010-02-24 环达电脑(上海)有限公司 System and method of realizing positioning navigation by using image recognition technology
JP2010160601A (en) * 2009-01-07 2010-07-22 Seiko Epson Corp Image forming apparatus
CN102279861A (en) * 2011-04-20 2011-12-14 周良勇 Method for marking geographic coordinates in pictures shot by digital camera
CN103996036B (en) * 2014-06-09 2017-07-28 百度在线网络技术(北京)有限公司 A kind of map data collecting method and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102547090A (en) * 2010-11-24 2012-07-04 三星电子株式会社 Digital photographing apparatus and methods of providing pictures thereof
CN105787111A (en) * 2016-03-24 2016-07-20 李秋燕 Private map making method based on user interest

Also Published As

Publication number Publication date
CN106845470A (en) 2017-06-13

Similar Documents

Publication Publication Date Title
CN106845470B (en) Map data acquisition method and device
US10650236B2 (en) Road detecting method and apparatus
CN109040960A (en) A kind of method and apparatus for realizing location-based service
KR101790655B1 (en) Feedback method for bus information inquiry, mobile terminal and server
CN111381909A (en) Page display method and device, terminal equipment and storage medium
US10614621B2 (en) Method and apparatus for presenting information
CN110619807B (en) Method and device for generating global thermodynamic diagram
CN109934142B (en) Method and apparatus for generating feature vectors of video
CN111784712A (en) Image processing method, device, equipment and computer readable medium
CN109816023B (en) Method and device for generating picture label model
CN109919220B (en) Method and apparatus for generating feature vectors of video
CN109034214B (en) Method and apparatus for generating a mark
CN104572830A (en) Method and method for processing recommended shooting information
CN111708680A (en) Error reporting information analysis method and device, electronic equipment and storage medium
CN113033552B (en) Text recognition method and device and electronic equipment
CN111325148A (en) Method, device and equipment for processing remote sensing image and storage medium
CN114283416A (en) Processing method and device for vehicle insurance claim settlement pictures
CN111797266B (en) Image processing method and apparatus, storage medium, and electronic device
CN111586295B (en) Image generation method and device and electronic equipment
CN115546769B (en) Road image recognition method, device, equipment and computer readable medium
CN118426581A (en) Meta universe data processing method and system
CN111311358A (en) Information processing method and device and electronic equipment
CN111260445A (en) House resource information display method, device, terminal and storage medium
CN116541544A (en) Image-text typesetting method, device, medium and electronic equipment
CN115994873A (en) Image processing method, device, equipment and 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
GR01 Patent grant
GR01 Patent grant