Research Article

Performance Improvement Design of Bluetooth Low Energy-Based Wireless Indoor Positioning Systems

Algorithm 1

Input: Image of floor plan (.jpg), dimensions of the building (length and width in meter), and STP granularity (Gs)
Output: STP (STPs) and candidate sites (CSs)
(1) Convert the grayscale image to a binary image in black and white
(2) Convert the pixel domain to the actual x, y domain (i.e., wall coordinates)
(3) Detect the edge boundary of the polygon area
(4) Create the virtual grids inside the polygon area (i.e., signal test points)
(5) Find the wall coordinates that have the lowest threshold distance from the virtual grids (i.e., candidate sites)
(6) Receive the signal test points (STPs) and the candidate sites (CSs)