Horje
tiff to jpg in python Code Example
tiff to jpg in python
import cv2, os
base_path = "data/images/"
new_path = "data/ims/"
for infile in os.listdir(base_path):
    print ("file : " + infile)
    read = cv2.imread(base_path + infile)
    outfile = infile.split('.')[0] + '.jpg'
    cv2.imwrite(new_path+outfile,read,[int(cv2.IMWRITE_JPEG_QUALITY), 200])




Python

Related
how to connect wifi using python Code Example how to connect wifi using python Code Example
force garbage collection in python Code Example force garbage collection in python Code Example
list methods append in python Code Example list methods append in python Code Example
python date and time to datetime Code Example python date and time to datetime Code Example
how to change dtype object to int Code Example how to change dtype object to int Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7