Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

color to black and white cv2

import cv2

originalImage = cv2.imread("PATH/TO/IMG")
grayImage = cv2.cvtColor(originalImage, cv2.COLOR_BGR2GRAY)
Comment

PREVIOUS NEXT
Code Example
Python :: format to 2 or n decimal places python 
Python :: python list of random values 
Python :: plt to png python 
Python :: how to autosave in python 
Python :: python log with timestamp 
Python :: importlib.reload not working 
Python :: random boolean python 
Python :: how to make a tkinter window 
Python :: python euclidean algorithm 
Python :: min max scaler sklearn 
Python :: python decrease gap between subplot rows 
Python :: python convert number to list of digits 
Python :: python nested functions get variables from function scope 
Python :: pandas columns to int64 with nan 
Python :: python pip graphviz 
Python :: How to config your flask for gmail 
Python :: sort python nested list according to a value 
Python :: center button in tkinter 
Python :: create a relu function in python 
Python :: discord.py aliases 
Python :: pygame get mouse position 
Python :: python open each file in directory 
Python :: pipenv freeze requirements.txt 
Python :: save list pickle 
Python :: alphabet list python 
Python :: python filter array 
Python :: put text on image python 
Python :: how to install python3 in ubuntu 
Python :: tqdm for jupyter notebook 
Python :: python requirments.txt 
ADD CONTENT
Topic
Content
Source link
Name
5+1 =