This disclosure relates generally to electronic maps, and in particular but not exclusively, relates to electronic maps for use in indoor navigation.
Navigation systems are becoming more and more pervasive in today's market. A navigation system may be utilized to determine a route from a first location to a destination. In some navigation systems, a user may enter a start location and a destination into a mapping application, such as one of the different mapping applications commonly used on a variety of websites.
One popular navigation system utilizes satellite positioning systems (SPS) such as, the global positioning system (GPS). SPS enabled devices may receive wireless SPS signals that are transmitted by orbiting satellites. The received SPS signals are then processed to determine the position of the SPS enabled device.
In addition, some navigation systems may be utilized within an indoor environment, such as a shopping mall, to guide a user to a destination such as a department store or a food court. However, SPS signal reception may be inadequate for indoor locations, so as to make positioning difficult, if not impossible using SPS. Thus, different techniques may be employed to enable positioning with navigation systems for indoor environments. For example, a device may obtain its position by measuring ranges to three or more wireless access points (e.g., through WiFi), which are positioned at known locations.
Therefore, information relating to a layout of the indoor environment, such as the boundary of the building is important in deciding which method to use in determining the position of a navigation assisting device. For example, a device may want to use SPS signals for determining position in outdoor environments, while using WiFi for indoor environments.
Raster and vector based image files containing maps for indoor venues are readily available to the public. However, the building boundary is commonly not pre-defined in these image files.
According to one aspect of the present disclosure, a computer-implemented method for detecting a boundary of a building from an indoor map includes providing an electronic raster image of the indoor map. A floor plan included in the map is a first color and a background of the image is a second color. The method includes scanning the image a first time in a plurality of directions and coloring pixels of the image a third color as they are scanned the first time until a pixel is detected that is not the second color. Then the image is scanned a second time in at least two directions. The second scan includes marking a pixel a fourth color for each third color to non-third color and each non-third color to third color transition. The resultant pixels of the fourth color represent the boundary of the building.
According to another aspect of the present disclosure, a computer-readable medium includes program code stored thereon for detecting a boundary of a building from an indoor map. The program code includes instructions to provide an electronic raster image of the indoor map, where a floor plan included in the map is a first color and a background of the image is a second color. The program code further includes instructions to scan the raster image a first time in a plurality of directions and to color pixels of the raster image a third color as they are scanned the first time until a pixel is detected that is not the second color. The program code also includes instructions to scan the raster image a second time in at least two directions and marking a pixel a fourth color for each third color to non-third color and each non-third color to third color transition, where the pixels of the fourth color represent the boundary of the building.
In a further aspect of the present disclosure, a map server includes memory and a processing unit. The memory is adapted to store program code for detecting a boundary of a building from an indoor map. The processing unit is adapted to access and execute instructions included in the program code. When the instructions are executed by the processing unit, the processing unit directs the map server to provide an electronic raster image of the indoor map, where a floor plan included in the map is a first color and a background of the image is a second color. The processing unit also directs the map server to scan the raster image a first time in a plurality of directions and to color pixels of the raster image a third color as they are scanned the first time until a pixel is detected that is not the second color. The processing unit then directs the map server to scan the raster image a second time in at least two directions and marking a pixel a fourth color for each third color to non-third color and each non-third color to third color transition, where the pixels of the fourth color represent the boundary of the building.
In yet another aspect of the present disclosure, a system for detecting a boundary of a building from an indoor map includes means for providing an electronic raster image of the indoor map, where a floor plan included in the map is a first color and a background of the image is a second color. The system also includes means for scanning the raster image a first time in a plurality of directions and coloring pixels of the raster image a third color as they are scanned the first time until a pixel is detected that is not the second color. Further included in the system are means for scanning the raster image a second time in at least two directions and marking a pixel a fourth color for each third color to non-third color and each non-third color to third color transition, where the pixels of the fourth color represent the boundary of the building.
The above and other aspects, objects, and features of the present disclosure will become apparent from the following description of various embodiments, given in conjunction with the accompanying drawings.
Non-limiting and non-exhaustive embodiments of the invention are described with reference to the following figures, wherein like reference numerals refer to like parts throughout the various views unless otherwise specified.
Reference throughout this specification to “one embodiment”, “an embodiment”, “one example”, or “an example” means that a particular feature, structure, or characteristic described in connection with the embodiment or example is included in at least one embodiment of the present invention. Thus, the appearances of the phrases “in one embodiment” or “in an embodiment” in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. Any example or embodiment described herein is not to be construed as preferred or advantageous over other examples or embodiments.
Next, in process block 115, the raster image is converted into a two-tone binary image. In one embodiment, the two-tone binary image is a black and white binary image with white pixels representing the background and the floor plan of the building represented by black pixels. As will be used hereinafter, black pixels of the binarized image file will represent the floor plan of the building, while white pixels represent the background. However, other embodiments may include binarization of the image using two other distinct colors instead of black and white, in accordance with the teachings of the present disclosure.
Referring now back to
Also, as shown, pixels of image 200 are colored a third color (shown in the figures as shading) as they are scanned in a direction until a non-white (e.g., black) pixel is detected. In one embodiment, the third color is yellow, but in other embodiments, may be any color that is distinct from the background (e.g., white) and foreground (e.g., black) colors.
First,
Pixels of the raster image are arranged into a plurality of rows and columns, where scanning the raster image includes coloring pixels of each column in the first direction, and each row in a second direction, until a pixel is detected in each respective column/row that is not the background color. For example,
Similar to
As shown in
Next, in process block 140, image 800 is converted from a raster to a vector image through vectorization. The vectorization technique utilized may be a known vectorization method, such as Edge Detection, Feature Detection, and Skeletonization.
Although the image 800 of
For example,
If all the lines in the building boundary have been analyzed, decision block 1125 then compares the total number of remaining line segments with a predetermined amount. If the number of line segments is greater than the predetermined amount, then one of the thresholds (i.e., line threshold or angle threshold) is increased in process block 1130. In one embodiment, only one of the line threshold or angle thresholds are increased during each iteration of process 1100. That is, during the first iteration, process block 1130 may increase the line threshold only. During subsequent iterations, the angle threshold may be increased until an upper angle limit is reached. Once the upper angle limit is reached, the angle threshold may be reset to a lower angle limit and the line threshold increased. In one embodiment, the upper angle limit is 180 degrees, the lower angle limit is 10 degrees, and the initial line threshold is one meter. Thus, by way of example, the line threshold may be initially set to 1 meter and the angle threshold initially set to 10 degrees. Each subsequent iteration of process 1100 increases the angle threshold until it reaches 180 degrees, at which point the next iteration includes setting the angle threshold back to 10 degrees and increasing the line threshold to 2 meters, for example.
In one implementation, map source 1315 may create electronic maps by scanning paper blueprints for a building into an electronic format that does not include any annotations. Alternatively, map source 1315 may acquire electronic maps from an architectural firm that designed a building or from public records, for example.
Electronic maps 1325 may be transmitted by map source 1315 to map server 1305 via network 1310. Map source 1315 may comprise a database or server, for example. In one implementation, map server 1305 may transmit a request for a particular basic electronic map to map source 1315 and in response the particular electronic map may be transmitted to map server 1805. One or more maps in map source 1315 may be scanned from blueprint or other documents.
Map server 1305 automatically detects the building boundary utilizing the methods disclosed herein. In one embodiment, map server 1305 may provide a user interface for a user to adjust or modify the building boundary that was automatically detected. In response to user input, the shape of the single polygon used to represent the building boundary may be changed.
The electronic map with the identified building boundary may subsequently be utilized by a navigation system to generate various position assistance data that may be used to provide routing directions or instructions to guide a person from a starting location depicted on a map to a destination location in an office, shopping mall, stadium, or other indoor environment. In one embodiment, the generation of position assistance data for the mobile station is limited to the building boundary so as to reduce processing times. The building boundary may also be utilized to decide between various methods of determining position, whether it be SPS in outdoor environments or WiFi for indoor environments, both determined by the building boundary.
As discussed above, electronic maps and/or routing directions 1330 may be transmitted to a user's mobile station 1320. For example, such electronic maps and/or routing directions may be presented on a display screen of mobile station 1320. Routing directions may also be audibly presented to a user via a speaker of mobile station 1320 or in communication with mobile station 1320. Map server 1305, map source 1315 and mobile station 1320 may be separate devices or combined in various combinations (e.g., all combined into mobile device 1320; map source 1315 combined into map server 1305, etc.).
Memory 1410 may also store electronic maps to be analyzed for the automatic detection of the building boundary of a building included in the electronic map. Network adapter 1415 may transmit one or more electronic maps to another device, such as a user's mobile device. Upon receipt of such electronic maps, a user's mobile device may present updated electronic maps via a display device. Network adapter 1415 may also receive one or more electronic maps for analysis from an electronic map source. User interface 1420 may be included in map server 1400 to display to a user the automatically detected building boundary. In one embodiment, user interface 1420 is configured to allow a user to adjust or modify the building boundary that was automatically detected. That is, the shape of the single polygon used to represent the building boundary may be changed according to user input.
The order in which some or all of the process blocks appear in each process should not be deemed limiting. Rather, one of ordinary skill in the art having the benefit of the present disclosure will understand that some of the process blocks may be executed in a variety of orders not illustrated.
The teachings herein may be incorporated into (e.g., implemented within or performed by) a variety of apparatuses (e.g., devices). For example, one or more aspects taught herein may be incorporated into a mobile station, phone (e.g., a cellular phone), a personal data assistant (“PDA”), a tablet, a mobile computer, a laptop computer, a tablet, an entertainment device (e.g., a music or video device), a headset (e.g., headphones, an earpiece, etc.), a medical device (e.g., a biometric sensor, a heart rate monitor, a pedometer, an EKG device, etc.), a user I/O device, a computer, a server, a point-of-sale device, an entertainment device, a set-top box, or any other suitable device. These devices may have different power and data requirements and may result in different power profiles generated for each feature or set of features.
As used herein, a mobile station (MS) refers to a device such as a cellular or other wireless communication device, personal communication system (PCS) device, personal navigation device (PND), Personal Information Manager (PIM), Personal Digital Assistant (PDA), laptop, tablet or other suitable mobile device which is capable of receiving wireless communication and/or navigation signals. The term “mobile station” is also intended to include devices which communicate with a personal navigation device (PND), such as by short-range wireless, infrared, wireline connection, or other connection—regardless of whether satellite signal reception, assistance data reception, and/or position-related processing occurs at the device or at the PND. Also, “mobile station” is intended to include all devices, including wireless communication devices, computers, laptops, etc. which are capable of communication with a server, such as via the Internet, Wi-Fi, or other network, and regardless of whether satellite signal reception, assistance data reception, and/or position-related processing occurs at the device, at a server, or at another device associated with the network. Any operable combination of the above are also considered a “mobile station.”
In some aspects a wireless device may comprise an access device (e.g., a Wi-Fi access point) for a communication system. Such an access device may provide, for example, connectivity to another network (e.g., a wide area network such as the Internet or a cellular network) via a wired or wireless communication link. Accordingly, the access device may enable another device (e.g., a Wi-Fi station) to access the other network or some other functionality. In addition, it should be appreciated that one or both of the devices may be portable or, in some cases, relatively non-portable.
Those of skill in the art would understand that information and signals may be represented using any of a variety of different technologies and techniques. For example, data, instructions, commands, information, signals, bits, symbols, and chips that may be referenced throughout the above description may be represented by voltages, currents, electromagnetic waves, magnetic fields or particles, optical fields or particles, or any combination thereof.
Those of skill would further appreciate that the various illustrative logical blocks, modules, engines, circuits, and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, engines, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the overall system. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The various illustrative logical blocks, modules, and circuits described in connection with the embodiments disclosed herein may be implemented or performed with a general purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination thereof designed to perform the functions described herein. A general purpose processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. A processor may also be implemented as a combination of computing devices, e.g., a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP core, or any other such configuration.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium may be integral to the processor. The processor and the storage medium may reside in an ASIC. The ASIC may reside in a user terminal. In the alternative, the processor and the storage medium may reside as discrete components in a user terminal.
In one or more exemplary embodiments, the functions described may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software as a computer program product, the functions may be stored on or transmitted over as one or more instructions or code on a non-transitory computer-readable medium. Computer-readable media can include both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a computer. By way of example, and not limitation, such non-transitory computer-readable media can comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. Also, any connection is properly termed a computer-readable medium. For example, if the software is transmitted from a web site, server, or other remote source using a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium. Disk and disc, as used herein, includes compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk and blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of non-transitory computer-readable media.
The previous description of the disclosed embodiments referred to various colors, color-blocks, colored lines, etc. It is noted that the drawings accompanying this disclosure include various hatching, cross-hatching, and shading to denote the various colors, color-blocks, and colored lines.
Various modifications to the embodiments disclosed herein will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
This application claims the benefit of U.S. Provisional Application No. 61/732,170, filed Nov. 30, 2012. U.S. Provisional Application No. 61/732,170 is hereby incorporated by reference.
Number | Date | Country | |
---|---|---|---|
61732170 | Nov 2012 | US |