Analytics Vidhya
Published in

Analytics Vidhya

How to calculate RGB values for some images in Python

A step-by-step guide.

Photo by KS KYUNG on Unsplash

A good exercise when studying Python is to calculate RGB values for some images.
If you’re asking yourself: “what the hell do RGB mean?”; don’t worry: this was the first question I’ve asked myself before coding for this exercise.
So, before the code, let’s talk about RGB.

--

--

--

Analytics Vidhya is a community of Analytics and Data Science professionals. We are building the next-gen data science ecosystem https://www.analyticsvidhya.com

Recommended from Medium

How to classify news articles in the “real world”?

Naive Bayes Classifier

High-Precision, Semi-Automatic Image Annotator by FORMCEPT

Urban Scene Matching & Interaction with a Human — Part 1

Na Lie — A SiriusLabs Case Study

How to preprocess text data for NLP tasks

Handwriting OCR: Line segmentation with Gluon

Neural Networks 101

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Federico Trotta

Federico Trotta

Data Scientist | Technical Writer. Let’s connect on LinkedIn: https://www.linkedin.com/in/federico-trotta

More from Medium

Multiple Linear Regression and Gradient Descent using Python

A few MATLAB table tricks I had to learn the hard way

Implementing Gradient Descent in Python from Scratch

Image by Author (created using matplotlib in python)

How I was checking to tell if there was convergence in my simulations.