Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

python show image opencv

import cv2
import matplotlib.pyplot as plt

image = cv2.imread('YOUR_FILEPATH')
image = cv2.cvtColor(image, cv2.COLOR_BGR2RGB)
plt.imshow(image)
plt.show()
Comment

PREVIOUS NEXT
Code Example
Python :: embed discord.py 
Python :: django ckeditor not working 
Python :: add to number in python 
Python :: python numpy array replace nan with string 
Python :: python fill a list 
Python :: django permission required 
Python :: how to hide turtle in python 
Python :: Python Creating string from a timestamp 
Python :: conda import django 
Python :: np confidence interval 
Python :: assignment 7.1 python data structures 
Python :: how to get input from list in python 
Python :: check if camera is being used python 
Python :: how to convert days into seconds in python using time.time() 
Python :: remove index from dataframe pandas 
Python :: numpy item size 
Python :: python datetime strftime 
Python :: basic calculator in python 
Python :: correlation python 
Python :: deleting dataframe row in pandas based on column value 
Python :: pi python 
Python :: how to check if a cell is empty in openpyxl 
Python :: python how to check if first character in string is number 
Python :: json to base64 python 
Python :: minecraft python code 
Python :: keys in python 
Python :: pandas plot move legend 
Python :: if list of columns exist pandas 
Python :: python delete text in text file 
Python :: beautifulsoup remove all html tags 
ADD CONTENT
Topic
Content
Source link
Name
6+4 =