Update ImagesProcessing.py
Browse files- ImagesProcessing.py +2 -2
ImagesProcessing.py
CHANGED
@@ -11,7 +11,7 @@ def show_image(img):
|
|
11 |
plt.axis('off')
|
12 |
plt.show()
|
13 |
def save_processed_image(img):
|
14 |
-
output_path = "
|
15 |
cv2.imwrite(output_path, img)
|
16 |
return output_path
|
17 |
'''def createBoundingBox(img):
|
@@ -32,7 +32,7 @@ def super_resolution(img):
|
|
32 |
inputs = ImageLoader.load_image(pil_img)
|
33 |
preds = model(inputs)
|
34 |
|
35 |
-
ImageLoader.save_image(preds, '
|
36 |
def process_image(image_path):
|
37 |
img = preprocess_image(image_path)
|
38 |
super_resolution(img)
|
|
|
11 |
plt.axis('off')
|
12 |
plt.show()
|
13 |
def save_processed_image(img):
|
14 |
+
output_path = "processed_images/processed_image.jpg"
|
15 |
cv2.imwrite(output_path, img)
|
16 |
return output_path
|
17 |
'''def createBoundingBox(img):
|
|
|
32 |
inputs = ImageLoader.load_image(pil_img)
|
33 |
preds = model(inputs)
|
34 |
|
35 |
+
ImageLoader.save_image(preds, 'processed_images/processed_image.jpg')
|
36 |
def process_image(image_path):
|
37 |
img = preprocess_image(image_path)
|
38 |
super_resolution(img)
|