def all_proc(new_string_json,uid): import cv2 from oct2py import octave d_status = octave.download_images(new_string_json) if d_status.find("failed")>=0: aa = uid+'failed4' return aa else: B4 = cv2.imread('TileB4.jp2',0) B5 = cv2.imread('TileB5.jp2',0) B8 = cv2.imread('TileB8.jp2',0) B8A = cv2.imread('TileB8A.jp2',0) B11 = cv2.imread('TileB11.jp2',0) TCI = cv2.imread('TileTCI.jp2') r_status = octave.proc_paid_images(B4,B5,B8,B8A,B11,TCI,new_string_json) return r_status