This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
testing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
from PIL import Image | |
from rawkit.raw import Raw | |
filename = '/path/to/your/image.cr2' | |
raw_image = Raw(filename) | |
buffered_image = np.array(raw_image.to_buffer()) | |
image = Image.frombytes('RGB', (raw_image.metadata.width, raw_image.metadata.height), buffered_image) | |
image.save('/path/to/your/new/image.png', format='png') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
""" | |
Created on Mon Jan 02 23:02:54 2017 | |
@author: perso | |
""" | |
import os | |
import subprocess | |
import shutil |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# import what we need | |
import numpy | |
import os | |
import glob | |
import time | |
import argparse | |
from PIL import Image | |
from rawkit import raw |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print('book reviewer') | |
from docx import Document | |
import os | |
root_folder = 'C:/Users/perso/Google Drive/Shahar_Project Reliability Engineering/' | |
paths = ['Ready for Editorial Approval', 'Ready for Author Review'] | |
def find_term(doc, *args): | |
for p in doc.paragraphs: | |
for term in args: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print('pdf reviewer') | |
import os | |
from PyPDF2.pdf import PdfFileReader | |
class color: | |
PURPLE = '\033[95m' | |
CYAN = '\033[96m' | |
DARKCYAN = '\033[36m' | |
BLUE = '\033[94m' | |
GREEN = '\033[92m' |