I had just finished a rant in another article where I forgot that OpenCV used BGR format and the output was checked in RGB for a CNN and how it had wasted a lot of time when I got an idea, what if passed images in different colorspaces to CNN’s and how will it affect the model? That is what we are going to find out in this article.

Table of Contents

  1. Requirements

  2. Colorspaces Used

  3. Code and Results

  • Imports and loading the dataset
  • Creating an image data generator
  • Results with normal CNN
  • Results with transfer learning
  • Creating an Ensemble model

If you are not interested in the process and just want to know the results you can jump straight down to the results with the normal CNN section.

#towards-data-science #color-space #computer-vision #tensorflow #opencv

Different Colorspaces as Inputs to CNNs
7.95 GEEK