Here’s a Python code snippet that you can use in Google Colab. This code will read all the images in a directory from your Google Drive, apply Adaptive Histogram Equalization to them while preserving the color, and then save them to a new directory in your Google Drive.