# Performance Analysis of a Color-Code-Based Optical Camera Communication System
## 4 Conclusions and Outlook  
In this study, we present various methods to test the performance of an optical camera-based visible light communication system. A 21.5-inch AsusVP228 HE monitor connected to an AsusX540U laptop via an HDMI cable was used in the transmitting unit of the designed system, and a Redmi Note Pro 9 cell phone was used as the receiving unit. On the transmitter side, the Pydroid, Python, Tkinter, and OpenCV platforms were used to transmit the information messages as color-coded data packets. The PyCharm, Python, Tkinter, and NumPy platforms were used to reconstruct the original information messages from the images received by the camera.  
The parameters affecting the communication performance in the designed OCC system can be listed as follows: the amount of daylight in the environment of the transmitter and the color temperature of the external lighting, the distance between the transmitter and the receiver, the number of color channels in a frame, the distance between the channels, the frame repetition rate, the type of monitor, the number of dead pixels, light bleed, the image acquisition capacity of the camera at the receiver per second, the efficiency of the image processing algorithm, and the type of color space used.  
In the RGB color space, as the distance between the transmitter and receiver increases, the contrast values between the colors get closer to each other and the error rate increases during the decoding phase. It was also observed that as the communication speed increases, the error rate in the RGB color space increases more than in the HSV color space. Since the decoding process in the HSV color space is not based on the brightness level of the color, it is easier to distinguish between bright and dim colors in the HSV color space. Therefore, by choosing the HSV color space instead of RGB in the communication system, the negative effects caused by the environment or hardware parameters are minimized. The effects of the distance between color channels on communication performance are discussed in detail. It was found that when the color channels at the transmitter are too close to each other,  
Figure 16: CIE xy chromaticity diagram.  
it is difficult for the camera at the receiver to distinguish colors at a distance and causes incorrect perception of R, G, B values. The amount of color shift is shown on the CIE xy chromaticity diagram.  
In this study, it was shown that it is possible to communicate at a distance of 3.2 m at a rate of less than 1 kbps and that data can be transmitted to a distance of 1.2 m at 240 bps without error. Our suggestions for increasing the data communication speed and communication distance of the technique used are as follows:  
Increase the number of channels;  
Use the event camera;  
Use an imaging lens and image sensor;  
Choose an OLED monitor type instead of LCD;  
Create color channels with power LEDs arranged in matrix form;  
Enable automatic tuning of parameters with deep learning.  
It has been shown that the OCC-based system presented in this study has much better daylight communication performance than the OOK-modulated VLC systems with a photodiode. Therefore, it is envisaged that the designed system can be efficiently used for data communication between vehicles in environments exposed to RF noise and in military vehicle convoys where Wi-Fi, Bluetooth, GSM, and GPRS communication is interrupted.  
Methodology, Y.E. and H.Z.D.; data curation, software, H.Z.D.; investigation, visualization, Y.E. and H.Z.D.; validation, supervision, Y.E.; writing--original draft preparation, Y.E. and H.Z.D.; writing--review and editing, Y.E. and H.Z.D. All authors have read and agreed to the published version of the manuscript.  
This research was funded by FIRAT University Scientific Research Projects Unit (MF.24.61).  
Not applicable.  
The original contributions presented in the study are included in the article, further inquiries can be directed to the corresponding author.  
The authors declare no conflicts of interest.