CN106767822A - Indoor locating system and method based on camera communication with framing technology - Google Patents
Indoor locating system and method based on camera communication with framing technology Download PDFInfo
- Publication number
- CN106767822A CN106767822A CN201611143114.7A CN201611143114A CN106767822A CN 106767822 A CN106767822 A CN 106767822A CN 201611143114 A CN201611143114 A CN 201611143114A CN 106767822 A CN106767822 A CN 106767822A
- Authority
- CN
- China
- Prior art keywords
- light source
- receiving terminal
- light
- optical signal
- coordinate
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C21/00—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
- G01C21/20—Instruments for performing navigational calculations
- G01C21/206—Instruments for performing navigational calculations specially adapted for indoor navigation
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C21/00—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
Landscapes
- Engineering & Computer Science (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Automation & Control Theory (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Optical Communication System (AREA)
Abstract
本发明提供一种基于相机通信与图像定位技术的室内定位系统及方法。所述系统包括发射端和接收端,所述发射端,用于将发射端所在位置信息以编码调制后的光信号向所在空间发射;所述接收端,用于接收所述光信号,对所述光信号进行解码解调后,进行图像定位计算获取位置信息。本申请提出基于相机通信与图像定位技术的室内定位系统及方法,为解决现有的室内定位系统硬件成本高、不支持高速移动、定位精度低等问题而设计,具有绿色环保、天然高密度覆盖、信号易实现空间分离等优点。
The invention provides an indoor positioning system and method based on camera communication and image positioning technology. The system includes a transmitting end and a receiving end, the transmitting end is used to transmit the position information of the transmitting end to the space where the optical signal is coded and modulated; the receiving end is used to receive the optical signal, and the After the optical signal is decoded and demodulated, the image positioning calculation is performed to obtain the position information. This application proposes an indoor positioning system and method based on camera communication and image positioning technology. It is designed to solve the problems of high hardware cost, high-speed movement, and low positioning accuracy of existing indoor positioning systems. It has green environmental protection and natural high-density coverage. , The signal is easy to realize the advantages of space separation.
Description
技术领域technical field
本发明涉及定位技术领域,更具体地,涉及一种基于相机通信与图像定位技术的室内定位系统及方法。The present invention relates to the technical field of positioning, and more specifically, to an indoor positioning system and method based on camera communication and image positioning technology.
背景技术Background technique
目前,定位技术发展十分迅速,应用非常广泛,常用的定位方法主要包括GPS定位技术、RFID室内定位技术和Wi-Fi定位技术。At present, positioning technology develops very rapidly and is widely used. The commonly used positioning methods mainly include GPS positioning technology, RFID indoor positioning technology and Wi-Fi positioning technology.
其中,利用GPS定位卫星,在全球范围内实时进行定位、导航的系统,称为全球卫星定位系统,简称GPS。GPS是由美国国防部研制建立的一种具有全方位、全天候、全时段、高精度的卫星导航系统,能为全球用户提供低成本、高精度的三维位置、速度和精确定时等导航信息,是卫星通信技术在导航领域的应用典范,它极大地提高了地球社会的信息化水平,有力地推动了数字经济的发展。但是,GPS信号的穿墙能力很弱,因此室内环境中,GPS信号十分微弱而很难进行定位,故GPS技术并不适用于进行室内定位。Among them, the system that uses GPS positioning satellites to perform real-time positioning and navigation around the world is called the global satellite positioning system, or GPS for short. GPS is a comprehensive, all-weather, all-time, high-precision satellite navigation system developed and established by the US Department of Defense. It can provide global users with low-cost, high-precision three-dimensional position, speed and precise timing navigation information. The application model of satellite communication technology in the field of navigation has greatly improved the informatization level of the earth society and strongly promoted the development of the digital economy. However, the ability of GPS signals to penetrate walls is very weak, so in indoor environments, GPS signals are very weak and difficult to locate, so GPS technology is not suitable for indoor positioning.
其中,RFID室内定位系统通常由电子标签、射频读写器、中间件以及计算机数据库组成。射频标签和读写器是通过由天线架起的空间电磁波的传输通道进行数据交换的。在定位系统应用中,将射频读写器放置在待测移动物体上,射频电子标签嵌入到操作环境中。电子标签上存储有位置识别的信息,读写器则通过有线或无线形式连接到信息数据库。Among them, the RFID indoor positioning system usually consists of electronic tags, radio frequency readers, middleware and computer databases. The radio frequency tag and the reader exchange data through the transmission channel of the space electromagnetic wave erected by the antenna. In the application of the positioning system, the radio frequency reader is placed on the moving object to be tested, and the radio frequency electronic tag is embedded in the operating environment. The position identification information is stored on the electronic tag, and the reader is connected to the information database through wired or wireless.
射频识别室内定位技术作用距离很近,但它可以在几毫秒内得到厘米级定位精度的信息,且由于电磁场非视距等优点,传输范围很大,而且标识的体积比较小,造价比较低。但其不具有通信能力,抗干扰能力较差,不便于整合到其他系统之中,且用户的安全隐私保障和国际标准化都不够完善。The radio frequency identification indoor positioning technology has a very short working distance, but it can obtain centimeter-level positioning accuracy information within a few milliseconds, and due to the advantages of non-line-of-sight electromagnetic fields, the transmission range is large, and the volume of the identification is relatively small, and the cost is relatively low. However, it has no communication capability, poor anti-interference ability, and is not easy to integrate into other systems, and the user's security and privacy protection and international standardization are not perfect.
其中,Wi-Fi定位技术有两种,一种是通过移动设备和三个无线网络接入点的无线信号强度,通过差分算法,来比较精准地对人和车辆的进行三角定位。另一种是事先记录巨量的确定位置点的信号强度,通过用新加入的设备的信号强度对比拥有巨量数据的数据库,来确定位置(“指纹”定位)。Wi-Fi定位技术用于室内定位总体精度不高,只有2米,且需要大量铺设网络接入点,成本较高。Among them, there are two types of Wi-Fi positioning technology, one is to use the wireless signal strength of the mobile device and three wireless network access points, and use the difference algorithm to more accurately triangulate the positioning of people and vehicles. The other is to record the signal strength of a huge number of certain location points in advance, and determine the location ("fingerprint" positioning) by comparing the signal strength of the newly added device with the database with huge data. The overall accuracy of Wi-Fi positioning technology for indoor positioning is not high, only 2 meters, and requires a large number of network access points, which is expensive.
发明内容Contents of the invention
本发明提供一种克服上述问题或者至少部分地解决上述问题的基于相机通信与图像定位技术的室内定位系统及方法。The present invention provides an indoor positioning system and method based on camera communication and image positioning technology that overcomes the above problems or at least partially solves the above problems.
根据本发明的一个方面,提供基于相机通信与图像定位技术的室内定位系统,包括发射端和接收端,According to one aspect of the present invention, an indoor positioning system based on camera communication and image positioning technology is provided, including a transmitting end and a receiving end,
所述发射端,用于将发射端所在位置信息以编码调制后的光信号向所在空间发射;The transmitting end is used to transmit the location information of the transmitting end to the space where the optical signal is coded and modulated;
所述接收端,用于接收所述光信号,对所述光信号进行解码解调后,进行图像定位计算获取位置信息。The receiving end is configured to receive the optical signal, perform image positioning calculation to obtain position information after decoding and demodulating the optical signal.
根据本发明的另一个方面,提供基于相机通信与图像定位技术的室内定位方法,包括:According to another aspect of the present invention, an indoor positioning method based on camera communication and image positioning technology is provided, including:
S1,接收带有位置编码信息并且经过调制的光信号,生成图像信息;S1, receiving a modulated optical signal with position coding information to generate image information;
S2,从所述图像信息中提取接收端距离光源的垂直距离、光源的位置信息和光信号强度,获取接收端距离光源的水平距离;S2. Extract the vertical distance from the receiving end to the light source, the position information of the light source, and the optical signal strength from the image information, and obtain the horizontal distance from the receiving end to the light source;
S3,根据图像信息中两个光源的位置信息和接收端偏离光源的水平距离进行坐标定位和坐标筛选,以定位接收端的位置坐标S3, coordinate positioning and coordinate screening are performed according to the position information of the two light sources in the image information and the horizontal distance from the receiving end to the light source, so as to locate the position coordinates of the receiving end
本申请提出的基于相机通信与图像定位技术的室内定位系统及方法,为解决现有的室内定位系统硬件成本高、不支持高速移动、定位精度低等问题而设计,具有绿色环保、天然高密度覆盖、信号易实现空间分离等优点。The indoor positioning system and method based on camera communication and image positioning technology proposed by this application are designed to solve the problems of high hardware cost, high-speed movement, and low positioning accuracy of existing indoor positioning systems. Coverage, signal easy to achieve space separation and other advantages.
附图说明Description of drawings
图1本发明所述BP神经网络模型示意图;Fig. 1 schematic diagram of BP neural network model of the present invention;
图2为本发明基于相机通信与图像定位技术的室内定位系统示意图;2 is a schematic diagram of an indoor positioning system based on camera communication and image positioning technology according to the present invention;
图3为本发明所述系统第一实施例示意图;Fig. 3 is a schematic diagram of the first embodiment of the system of the present invention;
图4为本发明所述系统第二实施例示意图;Fig. 4 is the schematic diagram of the second embodiment of the system of the present invention;
图5为本发明所述UPSOOK调制方法波形示意图;Fig. 5 is the waveform schematic diagram of UPSOOK modulation method described in the present invention;
图6为本发明所述高度测量原理示意图;Fig. 6 is a schematic diagram of the height measurement principle of the present invention;
图7为本发明所述坐标定位原理示意图;Fig. 7 is a schematic diagram of the coordinate positioning principle of the present invention;
图8为本发明所述坐标筛选原理接收端坐标正常示时与LED灯的位置意图;Fig. 8 is a diagram showing the position of the coordinates of the receiving end and the normal display of the coordinates of the receiving end according to the principle of coordinate screening according to the present invention;
图9为本发明所述坐标筛选原理接收端发生角度旋转时与LED灯的位置示意图;Fig. 9 is a schematic diagram of the positions of the receiving end and the LED light when the receiving end of the coordinate screening principle of the present invention rotates;
图10为本发明基于相机通信与图像定位技术的室内定位方法流程图。FIG. 10 is a flowchart of an indoor positioning method based on camera communication and image positioning technology according to the present invention.
具体实施方式detailed description
下面结合附图和实施例,对本发明的具体实施方式作进一步详细描述。以下实施例用于说明本发明,但不用来限制本发明的范围。The specific implementation manners of the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. The following examples are used to illustrate the present invention, but are not intended to limit the scope of the present invention.
本发明实施需要借助BP神经网络模型,BP神经网络的基本原理和算法流程如下:The implementation of the present invention needs to rely on the BP neural network model, and the basic principles and algorithm flow of the BP neural network are as follows:
BP(Back Propagation)神经网络,全称为误差反向传播的多层前向神经网络,是目前应用最广泛的神经网络模型之一,其可以用作分类、聚类和预测等,通过历史数据的训练,网络可以学习到数据中隐含的知识。BP神经网络的主要特点是信号前向传递,误差反向传播;通常由输入层、隐含层和输出层组成,层与层之间全互连,每层节点之间不相连。在正向传播过程中,信息从输入层节点经隐含层逐层计算传向输出层,每层神经元的状态只影响下一层神经元的状态。如果在输出层没有得到期望的值,则计算输出层的误差,然后反向传播,通过网络将误差信号按原来的连接通路反向传回去修改其参数直至达到期望目标。理论证明,三层的BP神经网络,只要隐含层节点数足够多,就具有模拟任何复杂的非线性映射能力。结合本系统的实际需求具体的三层BP神经网络结构如图1所示。BP (Back Propagation) neural network, the full name of the multi-layer forward neural network of error backpropagation, is one of the most widely used neural network models at present, which can be used for classification, clustering and prediction, etc., through historical data During training, the network can learn the knowledge implicit in the data. The main feature of the BP neural network is that the signal is transmitted forward and the error is reversed; it is usually composed of an input layer, a hidden layer and an output layer. The layers are fully interconnected, and the nodes of each layer are not connected. In the process of forward propagation, information is calculated layer by layer from the input layer nodes to the output layer through the hidden layer, and the state of neurons in each layer only affects the state of neurons in the next layer. If the expected value is not obtained at the output layer, the error of the output layer is calculated, and then backpropagation, and the error signal is sent back through the network according to the original connection path to modify its parameters until the desired goal is achieved. Theory proves that the three-layer BP neural network has the ability to simulate any complex nonlinear mapping as long as the number of nodes in the hidden layer is large enough. Combined with the actual needs of this system, the specific three-layer BP neural network structure is shown in Figure 1.
上图中,X1X2…X5是BP神经网络的五维输入值,Output是BP神经网络的预测输出,ωij和ωjk是BP神经网络的权值。从图1中可以看出,BP神经网络可以看成一个非线性函数,网络输入值和预测值分别为该函数的自变量和因变量。当输入节点数为5,输出节点数为1时,BP神经网络就表达了从5个自变量到1个因变量的函数映射关系。In the figure above, X 1 X 2 ... X 5 is the five-dimensional input value of the BP neural network, Output is the predicted output of the BP neural network, and ω ij and ω jk are the weights of the BP neural network. It can be seen from Figure 1 that the BP neural network can be regarded as a nonlinear function, and the input value and predicted value of the network are the independent variable and dependent variable of the function respectively. When the number of input nodes is 5 and the number of output nodes is 1, the BP neural network expresses the functional mapping relationship from 5 independent variables to 1 dependent variable.
BP神经网络预测前首先要训练网络,通过训练使得网络具有联想记忆和预测能力。BP神经网络的训练过程包括以下几个步骤。Before the prediction of BP neural network, the network must be trained first, and the network has associative memory and prediction ability through training. The training process of BP neural network includes the following steps.
步骤1:网络初始化。根据系统的输入输出序列(X,Y)确定网络的结构。包括输入/出层和隐含层的节点数(n,m,l),输入层、隐含层和输出神经元之间的连接权值ωij、ωjk,以及隐含层阈值a、输出层阈值b的初始化,给定学习速率和神经元激励函数。Step 1: Network initialization. The structure of the network is determined according to the input-output sequence (X, Y) of the system. Including the number of nodes (n, m, l) of the input/output layer and the hidden layer, the connection weights ω ij , ω jk between the input layer, hidden layer and output neurons, and the hidden layer threshold a, output Initialization of layer threshold b, given learning rate and neuron activation function.
步骤2:隐含层输出计算。根据输入向量X,输出层和隐含层之间的连接权值ωij以及隐含层阈值,计算隐含层输出H。Step 2: Hidden layer output calculation. According to the input vector X, the connection weight ω ij between the output layer and the hidden layer, and the hidden layer threshold, the hidden layer output H is calculated.
式(1)中,f为隐含层激励函数。本发明选取了对数S形转移激活函数:In formula (1), f is the hidden layer activation function. The present invention selects the logarithmic S-shaped transfer activation function:
步骤3:输出层输出计算。根据隐含层输出H,连接权值ωjk和阈值b,计算BP神经网络的预测输出O。Step 3: Output layer output calculation. According to the output H of the hidden layer, connect the weight ω jk and the threshold b, and calculate the prediction output O of the BP neural network.
步骤4:误差计算。根据网络预测输出O和期望输出Y计算网络预测误差e。Step 4: Error calculation. Calculate the network prediction error e according to the network prediction output O and the expected output Y.
ek=Yk-Ok k=1,2,…,m (4)e k = Y k - O k k = 1, 2, ..., m (4)
步骤5:权值更新。根据网络的预值误差e更新网络连接权值ωij、ωjk。Step 5: Weight update. Update the network connection weights ω ij , ω jk according to the pre-value error e of the network.
ωjk=ωjk+γHjek j=1,2,…,l;k=1,2,…,m (6)ω jk =ω jk +γH j e k j=1,2,...,l; k=1,2,...,m (6)
式中,γ为隐含层激励函数。In the formula, γ is the activation function of the hidden layer.
步骤6:阈值更新。根据网络的预值误差e更新网络节点阈值a、b。Step 6: Threshold update. Update the network node thresholds a and b according to the pre-value error e of the network.
bk=bk+ek k=1,2,…,m (8)b k =b k +e k k=1,2,...,m (8)
步骤7:判断算法迭代是否结束,若没有结束,返回步骤2。Step 7: Determine whether the algorithm iteration is over, if not, return to step 2.
以上为BP神经网络模型及其工作原理介绍。The above is an introduction to the BP neural network model and its working principle.
如图2所示,为本发明基于相机通信与图像定位技术的室内定位系统,包括发射端和接收端,As shown in Figure 2, it is an indoor positioning system based on camera communication and image positioning technology of the present invention, including a transmitting end and a receiving end,
所述发射端,用于将发射端所在位置信息以编码调制后的光信号向所在空间发射;The transmitting end is used to transmit the location information of the transmitting end to the space where the optical signal is coded and modulated;
所述接收端,用于接收所述光信号,对所述光信号进行解码解调后,进行图像定位计算获取位置信息。The receiving end is configured to receive the optical signal, perform image positioning calculation to obtain position information after decoding and demodulating the optical signal.
所述发射端包括光源、编码器和调制器,The transmitting end includes a light source, an encoder and a modulator,
所述编码器,用于对光源位置信息进行光信号编码;The encoder is used to perform optical signal encoding on the position information of the light source;
所述调制器,用于对编码后的光信号进行调制;The modulator is used to modulate the encoded optical signal;
所述光源,用于发射调制后的光信号。The light source is used to emit the modulated optical signal.
所述接收端包括:The receiver includes:
图像传感器,用于接收光信号并生成图像信息;An image sensor for receiving light signals and generating image information;
解调器,用于对所述图像信息进行与调制过程相反的解调,以获取发射端光信号强度;a demodulator, configured to demodulate the image information opposite to the modulation process, so as to obtain the optical signal strength of the transmitting end;
解码器,用于对解调后的图像信息进行与编码过程相反的解码,以获取发射端光源的位置信息;a decoder, used to decode the demodulated image information opposite to the encoding process, so as to obtain the position information of the light source at the transmitting end;
图像处理模块,用于根据光信号强度及发射端光源的位置信息,获取接收端距离发射端光源的垂直距离和水平距离,以定位接收端的位置坐标。The image processing module is used to obtain the vertical distance and horizontal distance from the receiving end to the light source at the transmitting end according to the optical signal strength and the position information of the light source at the transmitting end, so as to locate the position coordinates of the receiving end.
所述图像处理模块包括:The image processing module includes:
高度测量模块,用于根据图像信息中两个光源的距离及图像传感器的物理焦距,获取接收端距离光源的垂直距离;The height measurement module is used to obtain the vertical distance from the receiving end to the light source according to the distance between the two light sources in the image information and the physical focal length of the image sensor;
BP神经网络模型,用于根据接收端距离光源的垂直距离与光信号强度输出接收端偏离不同光源的水平距离;The BP neural network model is used to output the horizontal distance that the receiving end deviates from different light sources according to the vertical distance from the receiving end to the light source and the optical signal strength;
定位模块,用于根据图像信息中两光源的位置信息和接收端偏离光源的水平距离进行坐标定位及坐标筛选,定位接收端的位置坐标。The positioning module is used to perform coordinate positioning and coordinate screening according to the position information of the two light sources in the image information and the horizontal distance of the receiving end from the light source, and locate the position coordinates of the receiving end.
本发明所述系统所采用的光源为LED光源,所述图像传感器为相机摄像头等,利用可见光LED和接收端摄像头,构成了一个室内定位系统。本发明的数据发送、接收基于相机通信技术(OCC),定位技术利用摄像头采集的图像和数据,充分利用了相机通信的优点,是一种全新的定位手段。The light source used in the system of the present invention is an LED light source, the image sensor is a camera, etc., and an indoor positioning system is formed by using the visible light LED and the receiving end camera. The data sending and receiving of the present invention are based on the camera communication technology (OCC), and the positioning technology utilizes the image and data collected by the camera, fully utilizes the advantages of the camera communication, and is a brand-new positioning means.
本发明所述系统有两种实施方案,分别如图3所示的第一实施例和如图4所示的第二实施例。The system of the present invention has two implementations, respectively the first embodiment shown in FIG. 3 and the second embodiment shown in FIG. 4 .
本发明所述实施例的实施环境是:The implementation environment of the embodiment of the present invention is:
发射端编码器为GeoHash编码器,调制器为UPSOOK调制器,光源为LED光源。The transmitter encoder is a GeoHash encoder, the modulator is a UPSOOK modulator, and the light source is an LED light source.
在需要定位的建筑室内区域的顶上按预定规则安装具有编码调制功能的LED灯,这些LED灯具有固定的坐标和位置,LED灯之间的距离通过安装已知。LED lights with coded modulation function are installed on the top of the indoor area of the building that needs to be positioned according to predetermined rules. These LED lights have fixed coordinates and positions, and the distance between the LED lights is known through installation.
对于LED灯的坐标,使用传统的直角坐标系,即各个LED的坐标为(x,y)。For the coordinates of the LED lights, a traditional Cartesian coordinate system is used, that is, the coordinates of each LED are (x, y).
同时,如果直接发送(x,y)坐标的话,需要将横纵坐标分开发送,发送难度较大,且直角坐标系并不适合用做定位,因此需要将LED灯的(x,y)坐标信息进行编码后发送。本发明采用GeoHash算法对LED灯的坐标进行编码。At the same time, if you send the (x, y) coordinates directly, you need to send the horizontal and vertical coordinates separately, which is difficult to send, and the Cartesian coordinate system is not suitable for positioning, so you need to send the (x, y) coordinate information of the LED light Encoded and sent. The invention adopts the GeoHash algorithm to encode the coordinates of the LED lights.
GeoHash编码方法有如下优点:The GeoHash encoding method has the following advantages:
首先,如直接使用直角坐标,需要在横纵坐标两列上同时应用索引,某些情况下无法在两列上同时应用索引(例如MySQL4之前的版本,Google App Engine的数据层等)。而GeoHash用一个字符串表示横、纵两个坐标。只需在一列上应用索引即可。First of all, if you use Cartesian coordinates directly, you need to apply indexes to both horizontal and vertical coordinates at the same time. In some cases, you cannot apply indexes to both columns at the same time (for example, versions before MySQL4, the data layer of Google App Engine, etc.). GeoHash uses a string to represent the horizontal and vertical coordinates. Just apply an index on one column.
其次,GeoHash表示的并不是一个点,而是一个矩形区域。比如编码11110101,它表示的是一个矩形区域。编码越长,表示的矩形区域越小,定位精度越高,同时通信的代价和成本也越高;编码越短,表示的矩形区域越大,定位精度低,但是可以不暴露用户的精确坐标信息,维护了用户隐私,同时通信成本也降低了。使用者可以根据实际定位要求灵活调整GeoHash编码长度。Secondly, what GeoHash represents is not a point, but a rectangular area. For example, the code 11110101 represents a rectangular area. The longer the code, the smaller the rectangular area represented, the higher the positioning accuracy, and the higher the communication cost and cost; the shorter the code, the larger the rectangular area represented, and the lower the positioning accuracy, but the precise coordinate information of the user may not be exposed , maintaining user privacy and reducing communication costs. Users can flexibly adjust the GeoHash encoding length according to actual positioning requirements.
第三,编码的前缀可以表示更大的区域。例如11110101,它的前缀1111表示包含编码11110101在内的更大范围。这个特性可以用于附近地点搜索。根据用户当前坐标计算GeoHash(例如11110101)然后取其前缀进行查询,即可查询附近的所有地点。同时,根据这一特性,GeoHash编码具有一定的纠错功能,因为相邻灯的码字前缀相同,如解码后,相邻灯前缀不同,即可判断解码出现了错误。Third, coded prefixes can represent larger regions. For example, 11110101, its prefix 1111 indicates a larger range including the code 11110101. This feature can be used for nearby place searches. Calculate GeoHash (for example, 11110101) based on the user's current coordinates and then take its prefix to query, and you can query all nearby locations. At the same time, according to this feature, GeoHash coding has a certain error correction function, because the code word prefixes of adjacent lights are the same. If the prefixes of adjacent lights are different after decoding, it can be judged that there is an error in decoding.
对LED灯的坐标进行GeoHash编码比直接用直角坐标高效很多。GeoHash encoding the coordinates of LED lights is much more efficient than directly using rectangular coordinates.
各LED灯发光前,对各自位置进行GeoHash编码后,进行调制后发射,所述调制为UPSOOK调制。UPSOOK为相机通信中较为成功的调制方式,它是一种基于LED灯亮灭状态的调制方式。Before each LED lamp emits light, after performing GeoHash encoding on each position, it is modulated and then emitted, and the modulation is UPSOOK modulation. UPSOOK is a relatively successful modulation method in camera communication. It is a modulation method based on the state of the LED light on and off.
UPSOOK调制LED灯波形示意图如图5所示,虽然相机帧率和发送信号波特率及载波频率有精确的对应关系,但因相机的采样相位和发送信号相位无法同步,因此相机采样时刻具有随机性,这样会导致采样到的LED亮灭状态存在两种可能。The schematic diagram of UPSOOK modulated LED light waveform is shown in Figure 5. Although the frame rate of the camera has a precise correspondence with the baud rate of the transmitted signal and the carrier frequency, the sampling phase of the camera and the phase of the transmitted signal cannot be synchronized, so the sampling time of the camera is random. In this way, there are two possibilities for the sampled LED on and off states.
如图5(b)和5(c)所示,对于发送相同信号的LED灯+摄像头接收系统,因图像传感器采样位置不同,导致接收到的LED状态除FH状态除外其他状态完全相反。As shown in Figures 5(b) and 5(c), for the LED light + camera receiving system that sends the same signal, the received LED states are completely opposite except for the FH state due to the different sampling positions of the image sensor.
由图可知图5(b)中探测到的LED状态和图5(a)中原始数据一一对应(“亮”对应“1”;“灭”对应“0”),但图5(c)中探测到的LED状态和图5(a)中原始数据完全相反(“亮”对应“0”;“灭”对应“1”),因此可增加一位标志位来检查接收端是否出现相位差错。本发明事先规定了标志位必须为比特1,如标志位LED灯状态与原始数据(即比特1)相同,则意味着采样相位正确;如标志位LED灯状态与原始数据(比特1)相反,则意味着采样相位不正确,需要将接收到的比特进行反转(即0变为1,1变为0)。It can be seen from the figure that the LED state detected in Figure 5(b) corresponds to the original data in Figure 5(a) one by one ("on" corresponds to "1"; "off" corresponds to "0"), but in Figure 5(c) The detected LED state is completely opposite to the original data in Figure 5(a) ("on" corresponds to "0"; "off" corresponds to "1"), so a flag bit can be added to check whether there is a phase error at the receiving end . The present invention has stipulated that the flag must be bit 1 in advance, as the state of the LED light of the flag is the same as the original data (i.e. bit 1), it means that the sampling phase is correct; as the state of the LED light of the flag is opposite to the original data (bit 1), It means that the sampling phase is incorrect, and the received bits need to be inverted (that is, 0 becomes 1, and 1 becomes 0).
接收端摄像头拍摄得到可见光LED的图像信息,如图5(d)所示。利用图像分割以及图像识别技术,识别出两盏灯,利用UPSOOK解调技术分别接收LED中包含的信息,每一副图片可接收得到一个比特信息。使用与GeoHash编码方法对应的GeoHash解码方法,得到对应LED灯的坐标位置。The image information of the visible light LED is captured by the camera at the receiving end, as shown in Figure 5(d). Use image segmentation and image recognition technology to identify two lights, use UPSOOK demodulation technology to receive the information contained in the LEDs, and each picture can receive one bit of information. Use the GeoHash decoding method corresponding to the GeoHash encoding method to obtain the coordinate position of the corresponding LED light.
如图3所示,基于相机通信与图像定位技术的室内定位系统第一实施例,包括发射端和接收端,所述接收端为移动终端,可以为任何带有摄像头的智能终端,包括智能手机、平板电脑等。As shown in Figure 3, the first embodiment of the indoor positioning system based on camera communication and image positioning technology includes a transmitting end and a receiving end, and the receiving end is a mobile terminal, which can be any intelligent terminal with a camera, including a smart phone , Tablet PC, etc.
发射端包括GeoHash编码器、UPSOOK调制器和LED光源。一个GeoHash编码器、一个UPSOOK调制器和一个LED光源为一套发光组件,发射端包括多个发光组件,其数量依据室内定位空间的大小及发光组件的安装布局决定。The transmitter includes GeoHash encoder, UPSOOK modulator and LED light source. A GeoHash encoder, a UPSOOK modulator and an LED light source are a set of light-emitting components. The transmitting end includes multiple light-emitting components. The number depends on the size of the indoor positioning space and the installation layout of the light-emitting components.
每个发光组件通过GeoHash编码器将自己的坐标位置进行GeoHash编码并通过UPSOOK调制器进行UPSOOK调制后向室内定位区域发射光信号。Each light-emitting component performs GeoHash encoding on its own coordinate position through the GeoHash encoder, performs UPSOOK modulation through the UPSOOK modulator, and then transmits an optical signal to the indoor positioning area.
移动终端包括图像传感器、UPSOOK解调器、GeoHash解码器、高度测量模块、BP神经网络模型和定位模块。The mobile terminal includes image sensor, UPSOOK demodulator, GeoHash decoder, altitude measurement module, BP neural network model and positioning module.
所述图像传感器接收光信号并生成图像信息,通过图像处理识别出的LED灯图像;然后经过UPSOOK解调器进行UPSOOK调制相对应的解调,此过程可以获得光信号强度。The image sensor receives the light signal and generates image information, and processes the recognized LED light image through image processing; then performs demodulation corresponding to UPSOOK modulation through the UPSOOK demodulator, and this process can obtain the light signal intensity.
此后分两个过程,一个过程经过GeoHash解码器对UPSOOK解调后的信息进行与GeoHash编码方法对应的GeoHash解码,得到对应LED灯的坐标位置。Thereafter, it is divided into two processes. In one process, the GeoHash decoder performs GeoHash decoding corresponding to the GeoHash encoding method on the information after UPSOOK demodulation, and obtains the coordinate position of the corresponding LED light.
另一个过程,首先由高度测量模块根据图像信息中两个LED的距离及图像传感器的物理焦距,获取接收端距离光源的垂直距离;然后根据测量的垂直距离及光信号强度,进行BP神经网络模型处理,得到移动终端偏离不同光源的水平距离。In another process, the height measurement module first obtains the vertical distance from the receiving end to the light source according to the distance between the two LEDs in the image information and the physical focal length of the image sensor; then, according to the measured vertical distance and optical signal strength, the BP neural network model processing to obtain the horizontal distance of the mobile terminal away from different light sources.
最后两个过程中得到的LED灯的坐标位置和移动终端偏离不同光源的水平距离需要经过定位模块处理,最终对移动终端进行定位。The coordinate position of the LED light and the horizontal distance of the mobile terminal from different light sources obtained in the last two processes need to be processed by the positioning module, and finally the mobile terminal is positioned.
高度测量的具体实现为:The specific implementation of height measurement is:
如图6所示,室内定位区域顶上两个LED灯分别为A和B,已知A和B之间的距离为AB。f为移动终端摄像头的物理焦距,可通过查询相机参数获取;O为焦点,CD为A和B被移动终端摄像头拍摄后在图片上的距离,图像像素点对应的实际大小由相机的图像传感器大小决定,可通过查询相机参数获得。As shown in Figure 6, the two LED lights on the top of the indoor positioning area are A and B, and the distance between A and B is known as AB. f is the physical focal length of the camera of the mobile terminal, which can be obtained by querying the camera parameters; O is the focal point, CD is the distance between A and B on the picture after being captured by the camera of the mobile terminal, and the actual size corresponding to the image pixel is determined by the size of the image sensor of the camera Decision, which can be obtained by querying the camera parameters.
则AOB、COD构成相似三角形,可得:Then AOB and COD form a similar triangle, and we can get:
移动终端距离LED灯的垂直高度为: The vertical height of the mobile terminal from the LED light is:
BP神经网络模型的具体实现为:The specific implementation of the BP neural network model is:
对于本发明所述的LED光源,特别的,对于朗伯型LED,第i个LED灯与移动终端之间的信道增益为Hi(0),其表达式为:For the LED light source described in the present invention, particularly, for the Lambertian LED, the channel gain between the i-th LED lamp and the mobile terminal is H i (0), and its expression is:
其中,m为LED灯Lambert阶数,AR为探测器面积,di为LED与探测器之间的距离,为LED发射角,ψi为LED灯入射光与探测器法线方向夹角,Ψc为探测器FOV,Ts(ψi)是接收滤光片透过率,g(ψi)是接收聚光器增益。Among them, m is the Lambert order of the LED lamp, AR is the area of the detector, d i is the distance between the LED and the detector, is the LED emission angle, ψ i is the angle between the incident light of the LED lamp and the normal direction of the detector, Ψ c is the detector FOV, T s (ψ i ) is the transmittance of the receiving filter, g(ψ i ) is the receiving Concentrator gain.
假设接收系统不使用滤光片和聚光器,因此(10)式变为:Assuming that the receiving system does not use filters and concentrators, the formula (10) becomes:
通过上述公式可得,距离与接收端光强的关系为非线性关系,通过常规方法来拟合距离与接收端信号强度的函数关系较为复杂,本发明通过BP神经网络来解决这一问题。It can be obtained from the above formula that the relationship between the distance and the light intensity at the receiving end is a nonlinear relationship, and it is relatively complicated to fit the functional relationship between the distance and the signal intensity at the receiving end by conventional methods. The present invention solves this problem through a BP neural network.
在相同距离时,高度不同,接收端LED的亮度明显不同。于是,单纯依靠接收端LED的信号强度并不足以得出接收端距离发光LED的距离,如果预先知道LED和接收端的垂直高度,则根据接收端发光LED的信号强度,就可以得出在这一高度下接收端距离LED的水平距离了。At the same distance, the height is different, and the brightness of the LED at the receiving end is obviously different. Therefore, relying solely on the signal strength of the LED at the receiving end is not enough to determine the distance between the receiving end and the light-emitting LED. The horizontal distance from the receiving end to the LED at the lower height.
因此需要测量在接收端距离光源不同垂直高度情况下,接收端与LED的水平距离以及对应的接收端信号强度,并用这些数据训练一个BP神经网络模型。Therefore, it is necessary to measure the horizontal distance between the receiving end and the LED and the corresponding signal strength of the receiving end when the receiving end is at different vertical heights from the light source, and use these data to train a BP neural network model.
在实际情况中,发光LED排布在建筑物的上方,所以接收端与发光LED的垂直高度,可以转换为接收端的高度坐标。In actual situations, the light-emitting LEDs are arranged above the building, so the vertical height between the receiving end and the light-emitting LEDs can be converted into the height coordinates of the receiving end.
这样,将接收端距离光源的垂直距离、接收端偏离发光LED的水平距离以及对应接收端收到的光信号强度信息作为一个数据集,并用这些数据集训练BP神经网络;训练后的BP神经网络模型便可根据接收端距离光源的垂直距离和接收端的收到的光信号强度,计算得到接收端偏离LED的水平距离。In this way, the vertical distance from the receiving end to the light source, the horizontal distance from the receiving end to the light-emitting LED, and the optical signal strength information received by the corresponding receiving end are used as a data set, and these data sets are used to train the BP neural network; the trained BP neural network The model can calculate the horizontal distance of the receiving end away from the LED according to the vertical distance from the receiving end to the light source and the received optical signal strength of the receiving end.
在对光信号强度进行计算时,移动终端的图像传感器接收到的光信号为图片,如果直接将接收端图片的图像各像素灰度值相加来表示接收端信号强度,则神经网络输入向量维度太低,不利于发挥神经网络的优势;而如果使用常见的灰度直方图来表示接收端图像的强度信息,则输入向量中,强度信息的维度有256维远远大于高度坐标的1维,强度信息会淹没高度信息,会大大影响神经网络输出的准确度。于是,我们将灰度直方图的信息进行压缩。具体实现为:1,将接收端彩色图片转换为灰度图片,且图像灰度值介于0-256。2,将灰度图像的灰度值划分为四个区间,分别为:0-64、64-128、128-192、192-256,并分别统计四个灰度区间的像素点的数量,构成一个四维向量,来表示接收端信号的强度值。When calculating the intensity of the optical signal, the optical signal received by the image sensor of the mobile terminal is a picture. If the gray value of each pixel of the image at the receiving end is directly added to represent the signal intensity at the receiving end, the neural network input vector dimension If it is too low, it is not conducive to taking advantage of the neural network; and if the common gray histogram is used to represent the intensity information of the image at the receiving end, then in the input vector, the dimension of the intensity information has 256 dimensions, which is much larger than the 1 dimension of the height coordinate. The intensity information will overwhelm the height information, which will greatly affect the accuracy of the neural network output. Therefore, we compress the information of the gray histogram. The specific implementation is: 1. Convert the color picture at the receiving end to a grayscale picture, and the grayscale value of the image is between 0-256. 2. Divide the grayscale value of the grayscale image into four intervals, which are: 0-64 , 64-128, 128-192, 192-256, and count the number of pixels in the four gray-scale intervals respectively to form a four-dimensional vector to represent the strength value of the signal at the receiving end.
所述BP神经网络的输入为一个五维向量,由接收端信号强度和接收端高度坐标构成;输出为接收端与对应发光LED的水平距离。即图1中BP神经网络的五维输入值X1,X2,…X5由接收端的高度坐标和信号强度构成,BP神经网络的预测输出Output为移动终端与对应发光LED的水平距离。The input of the BP neural network is a five-dimensional vector, which is composed of the signal strength of the receiving end and the height coordinate of the receiving end; the output is the horizontal distance between the receiving end and the corresponding light-emitting LED. That is, the five-dimensional input values X 1 , X 2 , ... X 5 of the BP neural network in Figure 1 are composed of the height coordinates and signal strength of the receiving end, and the predicted output of the BP neural network is the horizontal distance between the mobile terminal and the corresponding LED.
定位模块的具体实现为:The specific implementation of the positioning module is:
传统的基于强度测距的定位技术,通常采用三边定位法,而三边定位法要求同时接收三盏LED灯的信息,实际情况中,移动终端的摄像头同时拍到三盏LED灯的情况较少,一旦用户开始高速移动,移动终端持续接受三盏灯的信息极为困难,因此三边定位并不足以支撑接收端进行高速移动,有较大的局限性。The traditional positioning technology based on intensity ranging usually adopts the trilateral positioning method, and the trilateral positioning method requires the information of three LED lights to be received at the same time. Once the user starts to move at high speed, it is extremely difficult for the mobile terminal to continuously receive the information of the three lights. Therefore, trilateral positioning is not enough to support the high-speed movement of the receiving end, which has great limitations.
于是本发明创新性的提出了一种全新的基于图像处理的室内定位方法,该方法采用坐标定位的方法,仅需两盏LED灯即可实现定位。该定位方法更为灵活,很好的利用了相机通信的优点,且在一定情况下可以支持接收端的高速移动。Therefore, the present invention innovatively proposes a brand-new indoor positioning method based on image processing, which adopts the method of coordinate positioning, and only needs two LED lights to realize positioning. This positioning method is more flexible, makes good use of the advantages of camera communication, and can support high-speed movement of the receiving end under certain circumstances.
可以将定位模块分为坐标定位单元和坐标筛选单元。The positioning module can be divided into a coordinate positioning unit and a coordinate screening unit.
如图7所示,经过BP神经网络模型已经获得两个LED灯A和B的坐标,以及移动终端和A、B的水平距离dA、dB。所述坐标定位单元通过以A、B为圆心,以dA、dB为半径的圆来计算坐标。两圆的交点为P1、P2,接收端的坐标为P1、P2当中的一个。As shown in Figure 7, the coordinates of two LED lights A and B, and the horizontal distances d A and d B between the mobile terminal and A and B have been obtained through the BP neural network model. The coordinate positioning unit calculates coordinates by using a circle with A and B as centers and d A and d B as radii. The intersection points of the two circles are P 1 and P 2 , and the coordinates of the receiving end are one of P 1 and P 2 .
P1、P2的坐标可由上述二元二次方程求得。The coordinates of P 1 and P 2 can be obtained from the above binary quadratic equation.
然后坐标筛选单元需要筛选出正确的坐标。以智能手机为例,使用手机前置摄像头拍摄的图片,左右发生了调转(原理如同照镜子),而且上下不变。在对发光LED的坐标进行排布时,本发明规定由南向北LED的纵坐标y依次变大,由西向东LED的横坐标x依次变大。在一种实施例中,LED的排布为正方形排布,相邻LED必然横坐标相同,纵坐标不同;或者纵坐标相同,横坐标不同。Then the coordinate filtering unit needs to filter out the correct coordinates. Taking a smart phone as an example, the pictures taken by the front camera of the mobile phone are reversed left and right (the principle is like looking in a mirror), and the up and down remain unchanged. When arranging the coordinates of the light-emitting LEDs, the present invention stipulates that the vertical coordinate y of the LEDs increases sequentially from south to north, and the horizontal coordinate x of the LEDs increases sequentially from west to east. In one embodiment, the LEDs are arranged in a square, and adjacent LEDs must have the same abscissa and different ordinates; or the same ordinate but different abscissas.
在定位过程中,假定移动接收端摆放为移动接收端的前端指向正北方向,反映到前置拍摄头拍摄出的图片中为:如果接收端处在两个发光LED的西侧,即接收端横坐标小于两个发光LED的横坐标时,摄像头拍摄的图片中两个发光LED位于图片中的左半部分;如果接收端处在两个发光LED的东侧,即接收端横坐标大于两个发光LED时,图片中两个发光LED位于图片中的右半部分。当接收端处在两个发光LED的北侧或者南侧时,具有相似的原理。In the process of positioning, it is assumed that the mobile receiving end is placed so that the front end of the mobile receiving end points to the north direction, which is reflected in the picture taken by the front camera as: if the receiving end is on the west side of the two light-emitting LEDs, that is, the receiving end When the abscissa is smaller than the abscissa of the two light-emitting LEDs, the two light-emitting LEDs in the picture taken by the camera are located in the left half of the picture; if the receiving end is on the east side of the two light-emitting LEDs, that is, the abscissa of the receiving end is greater than two When lighting LEDs, the two lighted LEDs in the picture are located in the right half of the picture. When the receiving end is on the north or south side of the two light-emitting LEDs, it has a similar principle.
根据这一特性,归纳出如下定位算法:According to this characteristic, the following positioning algorithm is summarized:
以图片中心为原点建立直角坐标系,每一个像素点为一个单位,则图片上各点的直角坐标很容易求出。由于在图片拍摄过程中会出现旋转等情况,所以直接使用直角坐标系进行计算较为复杂,具体实施时可将直角坐标系转换为极坐标(ρ,θ)。本发明使用极坐标中的θ。Establish a Cartesian coordinate system with the center of the picture as the origin, and each pixel is a unit, then the Cartesian coordinates of each point on the picture can be easily calculated. Due to the occurrence of rotation and other situations during the picture shooting process, it is more complicated to directly use the Cartesian coordinate system for calculation, and the Cartesian coordinate system can be converted into polar coordinates (ρ, θ) during specific implementation. The present invention uses θ in polar coordinates.
当接收端在某一位置时,假设接收端在LED灯A和LED灯B的一侧,则可能由于旋转角度不同而拍摄的图像不同。假设图8所示为接收端坐标正常时与LED灯的位置示意图,图9为接收端发生角度旋转时与LED灯的位置示意图。When the receiving end is at a certain position, assuming that the receiving end is on the side of LED light A and LED light B, the captured images may be different due to different rotation angles. Assume that FIG. 8 is a schematic diagram of the position of the receiving end and the LED light when the coordinates are normal, and FIG. 9 is a schematic diagram of the position of the receiving end and the LED light when the angular rotation occurs.
本实施例中规定实际坐标较大的LED在图片上夹角为θ1,实际坐标较小的LED在图片上夹角为θ2。P1点坐标为(x1,y1),P2点坐标为(x2,y2)。设Δθ=θ2-θ1。接收端坐标为M(x,y)。In this embodiment, it is stipulated that the included angle of LEDs with larger actual coordinates on the picture is θ 1 , and the included angle of LEDs with smaller actual coordinates on the picture is θ 2 . The coordinates of point P 1 are (x 1 , y 1 ), and the coordinates of point P 2 are (x 2 , y 2 ). Let Δθ=θ 2 −θ 1 . The coordinates of the receiving end are M(x,y).
若0°<Δθ<180°或Δθ<-180°,If 0°<Δθ<180° or Δθ<-180°,
x=min(x1,x2)x=min(x 1 , x 2 )
y=min(y1,y2)y=min(y 1 , y 2 )
若Δθ>180°或-180°<Δθ<0°,If Δθ>180° or -180°<Δθ<0°,
x=max(x1,x2)x=max(x 1 , x 2 )
y=max(y1,y2)y=max(y 1 , y 2 )
结合第二步中得出的接收端高度坐标,即可得出接收端的坐标:(x,y,z)。Combined with the height coordinates of the receiving end obtained in the second step, the coordinates of the receiving end can be obtained: (x, y, z).
如图4所示,基于相机通信与图像定位技术的室内定位系统第二实施例,所述第二实施例的发射端与第一实施例相同;接收端包括移动终端和服务端,移动终端包括图像传感器,而UPSOOK解调器、GeoHash解码器、高度测量模块、BP神经网络模型和定位模块则布置于远程服务端上。各模块作用与定位系统工作流程,和第一实施例相同。As shown in Figure 4, the second embodiment of the indoor positioning system based on camera communication and image positioning technology, the transmitting end of the second embodiment is the same as the first embodiment; the receiving end includes a mobile terminal and a server, and the mobile terminal includes Image sensor, while UPSOOK demodulator, GeoHash decoder, altitude measurement module, BP neural network model and positioning module are arranged on the remote server. The functions of each module and the workflow of the positioning system are the same as those in the first embodiment.
相比较而言,第一实施例直接将解码解调与图像处理模块都集成在移动终端上,而不用将图像传感器采集的LED灯的光信号图像传输到服务端,比较节省网络开销,可以快速的实现定位。In comparison, the first embodiment directly integrates the decoding, demodulation and image processing modules on the mobile terminal without transmitting the light signal image of the LED light collected by the image sensor to the server, which saves network overhead and can quickly realization of positioning.
第二实施例由于将主要处理过程集成在服务端,相比于移动终端具有更大的处理容量和更强的处理能力,能够处理更大量的数据,可以同时处理多个移动终端的定位需求,可以在此基础上实现其他更复杂的定位技术应用。In the second embodiment, since the main processing process is integrated on the server side, it has larger processing capacity and stronger processing capability than the mobile terminal, can handle a larger amount of data, and can simultaneously handle the positioning requirements of multiple mobile terminals. Other more complex positioning technology applications can be realized on this basis.
如图10所示,基于相机通信与图像定位技术的室内定位方法,包括:As shown in Figure 10, the indoor positioning method based on camera communication and image positioning technology includes:
S1,接收带有位置编码信息并且经过调制的光信号,生成图像信息;S1, receiving a modulated optical signal with position coding information to generate image information;
S2,从所述图像信息中提取接收端距离光源的垂直距离、光源的位置信息和光信号强度,获取接收端距离光源的水平距离;S2. Extract the vertical distance from the receiving end to the light source, the position information of the light source, and the optical signal strength from the image information, and obtain the horizontal distance from the receiving end to the light source;
S3,根据图像信息中两个光源的位置信息和接收端偏离光源的水平距离进行坐标定位及坐标筛选,以定位接收端的位置坐标。S3. Perform coordinate positioning and coordinate screening according to the position information of the two light sources in the image information and the horizontal distance of the receiving end from the light source, so as to locate the position coordinates of the receiving end.
以上方法对应基于相机通信与图像定位技术的室内定位系统的接收端方法,S1通过接收端图像传感器实现,S2通过接收端UPSOOK解调器、GeoHash解码器、高度测量模块和BP神经网络模型实现,S3通过接收端定位模块实现。The above method corresponds to the receiving end method of the indoor positioning system based on camera communication and image positioning technology. S1 is realized through the receiving end image sensor, and S2 is realized through the receiving end UPSOOK demodulator, GeoHash decoder, height measurement module and BP neural network model. S3 is realized through the positioning module of the receiving end.
与之对应的发射端方法是:对LED光信号进行调制后发射,其中包括有LED灯位置的编码信息。The method at the transmitting end corresponding thereto is: modulate the LED light signal and then transmit it, which includes coded information on the position of the LED light.
所述S2进一步包括:Said S2 further includes:
S2.1,根据图像信息中两个光源的距离及图像传感器的物理焦距,获取接收端距离光源的垂直距离;S2.1, according to the distance between the two light sources in the image information and the physical focal length of the image sensor, obtain the vertical distance from the receiving end to the light source;
通过本发明所述系统中的高度测量模块实现,需要先通过UPSOOK解调器对信息进行解调。Realized by the altitude measurement module in the system of the present invention, the information needs to be demodulated by the UPSOOK demodulator first.
S2.2,对光信号进行对应的解调以获取光信号强度,进一步进行对应的解码以获取光源的位置信息;S2.2, performing corresponding demodulation on the optical signal to obtain the intensity of the optical signal, and further performing corresponding decoding to obtain the position information of the light source;
通过本发明所述系统中的GeoHash解码器实现。Realized by the GeoHash decoder in the system of the present invention.
S2.3,基于BP神经网络模型,根据接收端距离光源的垂直距离及光信号强度,获取接收端偏离不同光源的水平距离。S2.3, based on the BP neural network model, according to the vertical distance from the receiving end to the light source and the optical signal strength, obtain the horizontal distance of the receiving end from different light sources.
通过本发明所述系统中的BP神经网络模型实现。Realized by the BP neural network model in the system of the present invention.
最后,本申请的方法仅为较佳的实施方案,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。Finally, the method of the present application is only a preferred embodiment, and is not intended to limit the protection scope of the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201611143114.7A CN106767822B (en) | 2016-12-07 | 2016-12-07 | Indoor locating system and method based on camera communication and framing technology |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201611143114.7A CN106767822B (en) | 2016-12-07 | 2016-12-07 | Indoor locating system and method based on camera communication and framing technology |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN106767822A true CN106767822A (en) | 2017-05-31 |
| CN106767822B CN106767822B (en) | 2019-07-16 |
Family
ID=58880455
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201611143114.7A Expired - Fee Related CN106767822B (en) | 2016-12-07 | 2016-12-07 | Indoor locating system and method based on camera communication and framing technology |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN106767822B (en) |
Cited By (12)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107831470A (en) * | 2017-11-07 | 2018-03-23 | 华南理工大学 | A kind of visible ray localization method and its hardware system based on polarization |
| CN109597030A (en) * | 2018-12-14 | 2019-04-09 | 西北工业大学 | A kind of storage interior object positioning method and device based on visible light signal |
| CN109636850A (en) * | 2019-01-14 | 2019-04-16 | 刘翔宇 | Visible light positioning method for indoor smart lights |
| CN109696176A (en) * | 2017-10-24 | 2019-04-30 | 珠海横琴华策光通信科技有限公司 | A kind of inertial navigation localization method based on LED light emission device light-seeking correction |
| CN110726968A (en) * | 2019-09-08 | 2020-01-24 | 天津大学 | A passive indoor positioning method for visible light sensing based on clustering fingerprint method |
| CN111382841A (en) * | 2020-03-04 | 2020-07-07 | 卡莱特(深圳)云科技有限公司 | Method for estimating lamp point distance of screen body |
| CN111762237A (en) * | 2020-06-29 | 2020-10-13 | 交控科技股份有限公司 | Rail transit train positioning method, device and system |
| CN112037158A (en) * | 2020-07-22 | 2020-12-04 | 四川长宁天然气开发有限责任公司 | Image enhancement labeling method based on shale gas field production equipment |
| CN114157357A (en) * | 2022-01-07 | 2022-03-08 | 吉林大学 | Multi-amplitude visible light signal imaging communication demodulation method supporting terminal rotation translation |
| CN114485682A (en) * | 2021-12-30 | 2022-05-13 | 武汉光庭信息技术股份有限公司 | Positioning method based on SLAM technology |
| CN115096312A (en) * | 2022-06-17 | 2022-09-23 | 北京中科深智科技有限公司 | Indoor space positioning system based on scanning optics |
| CN116466335A (en) * | 2023-04-10 | 2023-07-21 | 北京科技大学 | Indoor visible light positioning method and system based on clustering and deep neural network |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103869284A (en) * | 2014-02-28 | 2014-06-18 | 北京邮电大学 | Visible light communication-based indoor positioning system and method |
| CN104991228A (en) * | 2015-02-06 | 2015-10-21 | 北京理工大学 | Three dimensions indoor positioning method based on visible light signal intensity |
| CN105783914A (en) * | 2016-03-20 | 2016-07-20 | 文成县刀锋科技有限公司 | Visible light communication-based indoor navigation system |
| CN105953786A (en) * | 2016-04-20 | 2016-09-21 | 清华大学 | Indoor precise positioning method and system based on imaging communication |
| CN106100734A (en) * | 2016-08-15 | 2016-11-09 | 北京理工大学 | A kind of high accuracy indoor visible light localization method based on artificial neural network |
-
2016
- 2016-12-07 CN CN201611143114.7A patent/CN106767822B/en not_active Expired - Fee Related
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103869284A (en) * | 2014-02-28 | 2014-06-18 | 北京邮电大学 | Visible light communication-based indoor positioning system and method |
| CN104991228A (en) * | 2015-02-06 | 2015-10-21 | 北京理工大学 | Three dimensions indoor positioning method based on visible light signal intensity |
| CN105783914A (en) * | 2016-03-20 | 2016-07-20 | 文成县刀锋科技有限公司 | Visible light communication-based indoor navigation system |
| CN105953786A (en) * | 2016-04-20 | 2016-09-21 | 清华大学 | Indoor precise positioning method and system based on imaging communication |
| CN106100734A (en) * | 2016-08-15 | 2016-11-09 | 北京理工大学 | A kind of high accuracy indoor visible light localization method based on artificial neural network |
Cited By (18)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109696176A (en) * | 2017-10-24 | 2019-04-30 | 珠海横琴华策光通信科技有限公司 | A kind of inertial navigation localization method based on LED light emission device light-seeking correction |
| CN107831470A (en) * | 2017-11-07 | 2018-03-23 | 华南理工大学 | A kind of visible ray localization method and its hardware system based on polarization |
| CN107831470B (en) * | 2017-11-07 | 2023-08-18 | 华南理工大学 | Visible light positioning method based on polarization and hardware system thereof |
| CN109597030A (en) * | 2018-12-14 | 2019-04-09 | 西北工业大学 | A kind of storage interior object positioning method and device based on visible light signal |
| CN109597030B (en) * | 2018-12-14 | 2023-04-07 | 国网吉林省电力有限公司信息通信公司 | Method and device for positioning objects in storage room based on visible light signals |
| CN109636850A (en) * | 2019-01-14 | 2019-04-16 | 刘翔宇 | Visible light positioning method for indoor smart lights |
| CN110726968A (en) * | 2019-09-08 | 2020-01-24 | 天津大学 | A passive indoor positioning method for visible light sensing based on clustering fingerprint method |
| CN111382841B (en) * | 2020-03-04 | 2021-02-19 | 卡莱特(深圳)云科技有限公司 | Method for estimating lamp point distance of screen body |
| CN111382841A (en) * | 2020-03-04 | 2020-07-07 | 卡莱特(深圳)云科技有限公司 | Method for estimating lamp point distance of screen body |
| CN111762237B (en) * | 2020-06-29 | 2022-07-19 | 交控科技股份有限公司 | Rail transit train positioning method, device and system |
| CN111762237A (en) * | 2020-06-29 | 2020-10-13 | 交控科技股份有限公司 | Rail transit train positioning method, device and system |
| CN112037158A (en) * | 2020-07-22 | 2020-12-04 | 四川长宁天然气开发有限责任公司 | Image enhancement labeling method based on shale gas field production equipment |
| CN112037158B (en) * | 2020-07-22 | 2023-09-15 | 四川长宁天然气开发有限责任公司 | A method of enhanced annotation based on images of shale gas field production equipment |
| CN114485682A (en) * | 2021-12-30 | 2022-05-13 | 武汉光庭信息技术股份有限公司 | Positioning method based on SLAM technology |
| CN114157357A (en) * | 2022-01-07 | 2022-03-08 | 吉林大学 | Multi-amplitude visible light signal imaging communication demodulation method supporting terminal rotation translation |
| CN114157357B (en) * | 2022-01-07 | 2023-08-22 | 吉林大学 | Multi-amplitude visible light signal imaging communication demodulation method supporting terminal rotation translation |
| CN115096312A (en) * | 2022-06-17 | 2022-09-23 | 北京中科深智科技有限公司 | Indoor space positioning system based on scanning optics |
| CN116466335A (en) * | 2023-04-10 | 2023-07-21 | 北京科技大学 | Indoor visible light positioning method and system based on clustering and deep neural network |
Also Published As
| Publication number | Publication date |
|---|---|
| CN106767822B (en) | 2019-07-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN106767822B (en) | Indoor locating system and method based on camera communication and framing technology | |
| US11050489B2 (en) | Indoor visible light positioning method and system based on single LED lamp | |
| US11580753B2 (en) | License plate detection and recognition system | |
| Nakazawa et al. | Indoor positioning using a high-speed, fish-eye lens-equipped camera in visible light communication | |
| CN107421506B (en) | Visual tracking and positioning system and method based on indoor visible light communication | |
| CN102749072B (en) | Indoor positioning method, indoor positioning apparatus and indoor positioning system | |
| Huang et al. | VWR-SLAM: Tightly coupled SLAM system based on visible light positioning landmark, wheel odometer, and RGB-D camera | |
| CN110296707A (en) | Indoor service robot based on VLC technology | |
| Liu et al. | Indoor visible light applications for communication, positioning, and security | |
| Liu et al. | Visible light positioning based on collaborative LEDs and edge computing | |
| CN110516647A (en) | Method and system for moving target location based on image recognition | |
| Tofighi et al. | A Survey on Event-based Optical Marker Systems | |
| CN116071394B (en) | Real-time navigation method and system for indoor logistics robot with two-dimensional code passive positioning enhancement | |
| CN119559378A (en) | An improved YOLOv8 vehicle-to-vehicle OCC system target recognition method | |
| Kampmann et al. | Investigating outdoor recognition performance of infrared beacons for infrastructure-based localization | |
| Liu et al. | Dynamic visible light positioning based on enhanced visual target tracking | |
| Kampmann et al. | Infrared beacons for robust localization | |
| CN108629384A (en) | A kind of LIFI indoor locating systems based on image recognition | |
| CN109004981B (en) | A visual and visible light communication detection method based on blur effect | |
| Zhang et al. | Indoor visible light localization method based on embedded artificial intelligence | |
| KR102879625B1 (en) | Apparatus and method for distance-color code on-off keying optical camera communication modulation and demodulation | |
| KR102879620B1 (en) | Apparatus and system for distance-color code on-off keying optical camera communication | |
| Salvi et al. | A Novel 2D LED Matrix and Aztec Pattern Inspired Optical Camera Communication for Industrial IoT | |
| Xu et al. | Indoor localization using region-based convolutional neural network | |
| KR102879646B1 (en) | Apparatus and method for receiving optical camera communication signals based on deep learning |
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 | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20190716 |
|
| CF01 | Termination of patent right due to non-payment of annual fee |