Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

opencv save image rgb

import skimage.io
import cv2

img = skimage.io.imread('sample.png')
cv2.imwrite('sample_out_2.png', cv2.cvtColor(img, cv2.COLOR_RGB2BGR))    
Comment

PREVIOUS NEXT
Code Example
Python :: 1052 uri solution 
Python :: pyqt expressions 
Python :: pyqt5 pylatex 
Python :: python wait until 
Python :: how to draw polygon in tkinter 
Python :: how to check if two columns match in pandas 
Python :: python reverse string 
Python :: pandas add column from list 
Python :: reset index with pandas 
Python :: how to take second largest value in pandas 
Python :: python check if image is corrupted 
Python :: sqrt python 
Python :: Resource punkt not found. Please use the NLTK Downloader to obtain the resource: 
Python :: pandas casting into integer 
Python :: python blowfish 
Python :: get all count rows pandas 
Python :: how to reomve certain row from dataframe pandas 
Python :: frequency unique pandas 
Python :: nested dict to df 
Python :: scipy correlation 
Python :: nb_occurence in list python 
Python :: python create a matrix with one in diagonal 
Python :: replace value column by another if missing pandas 
Python :: Python find inverse of matrix 
Python :: how to make a forever loop in python 
Python :: force utf-8 encoding python 
Python :: stringbuilder python 
Python :: rightclick in pygame 
Python :: round godot 
Python :: convert int to hex binary in python 
ADD CONTENT
Topic
Content
Source link
Name
9+2 =