With the development of the economy and modern technology, location information has become more and more critical in recent years. Global Positioning System (GPS) has become an essential tool for outdoor positioning, navigation, and path planning, but GPS cannot be applied to indoor scenarios due to the blockage by buildings. In the context of "Industry 4.0" , the traditional industrial model is replaced by intelligent manufacturing. For example, a smart warehouse facilitates the optimization of transport routes, the full utilization of storage space, and advance planning. The high efficiency and low scrap rate of smart production lines also attract more industries to transform. Location information plays a crucial role in information exchange. Indoor positioning based on Bluetooth, Radio Frequency Identification (RFID), and other technologies is difficult to be widely used because of high cost, low positioning accuracy, and potential interference. As traditional incandescent lamps are gradually replaced by Light-Emitting Diodes (LEDs), LED-based Visible Light Positioning (VLP) has become an increasingly attractive alternative for indoor positioning. Additionally, NIR emitters of high-speed LiFi links can also be exploited for NIR Optical Wireless Positioning (OWP). So far, receivers in VLP systems can be divided into two categories: one is the photodiode (PD), and the other are the Image Sensors (ISs), which sample in the temporal and spatial domains, respectively.With the development of digital imaging technology, cameras have been studied as the sensor of choice in a wide range of applications. With the application of Time-of-Flight (ToF) cameras in a wide variety of products, ToF cameras are also becoming widely spread. ToF camera modules generate an illumination control signal, which is used to drive a fast light source, so that it emits high-frequency amplitude-modulated near-infrared light. After the light is scattered by the scene objects, the receiver calculates the depth information by the phase shift or time difference between transmitted and received signals.ToF cameras can provide both temporal and spatial resolution in a single sensor, thus posing a superior alternative to either PD or IS. The use of ToF cameras has attracted increasing attention in VLP systems. Provided that external LEDs or Vertical Cavity Surface Emitting Lasers (VCSELs) are used as signal sources, so the illumination control system of ToF cameras is no longer required. We have demonstrated by a mathematical model that the intensity pattern of LED in the amplitude image approximately follows a Gaussian distribution. Therefore, the coordinates of the LED center point can be obtained using Maximum Likelihood Estimation (MLE) or Expectation-Maximization (EM) estimation for the amplitude image, and thus the distance information of the corresponding point can be found from the depth image.We have successfully simulated indoor positioning using the Angle Of Arrival (AOA) algorithm leveraging knowledge of the lens normals of the ToF cam...