Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

opencv show image jupyter

from matplotlib import pyplot as plt
import cv2

img = cv2.imread('/Users/barisx/test.jpg')
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)

plt.imshow(gray)
plt.title('my picture')
plt.show()
# Problem, More Help -> linkedin.com/in/barisx
Comment

PREVIOUS NEXT
Code Example
Python :: matplotlib plot title font size 
Python :: python 2.7 ubuntu command 
Python :: how to find element in selenium by class 
Python :: label encoder python 
Python :: install python 3.9 ubuntu 
Python :: python bytes to dict 
Python :: discord py bot status 
Python :: input spaces seperated integers in python 
Python :: pygame how to make a transparent surface 
Python :: how to read tsv file python 
Python :: print random string from list python 
Python :: how to find the most frequent value in a column in pandas dataframe 
Python :: save and load a dictionary python 
Python :: tk table python 
Python :: draw a line pygame 
Python :: how to print image with cv2 
Python :: python get newest file in directory 
Python :: python selenium switch to window 
Python :: how to replace a word in csv file using python 
Python :: remove r and n from string python 
Python :: python how to get number of strings in a list 
Python :: convert epoch to date time in python 
Python :: cannot remove column in pandas 
Python :: no python 3.10 installation was detected 
Python :: install magic python 2 
Python :: show jpg in jupyter notebook 
Python :: only keep few key value from dict 
Python :: string of numbers to list of integers python 
Python :: python beautifulsoup write to file 
Python :: python matplotlib plot thickness 
ADD CONTENT
Topic
Content
Source link
Name
8+7 =