Skip to content

Commit 2c6ef77

Browse files
authored
Update oil_painting.py
1 parent 7701481 commit 2c6ef77

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

oil_painting.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import cv2
33
import argparse
44
import sys
5-
5+
from tqdm import tqdm as tqdm
66
# construct the argument parse and parse the arguments
77
ap = argparse.ArgumentParser()
88
ap.add_argument("-i", "--image", required=True, help="path to input image")
@@ -16,11 +16,11 @@
1616
print("Can't read the image file."+
1717
"\nPlease make sure you are passing a valid path and it points to an image.")
1818
sys.exit()
19-
20-
oil_painting_img = cv2.xphoto.oilPainting(img,7,1)
19+
for j in tqdm(range(1,10),desc = 'Generating'):
20+
oil_painting_img = cv2.xphoto.oilPainting(img,7,1)
2121

2222
#create Window to display images
23-
cv2.imshow('Oil Painting', oil_painting_img)
23+
cv2.imshow('Oil Painting', oil_painting_img)
2424

2525
# Input keypress
2626
k = cv2.waitKey(0)

0 commit comments

Comments
 (0)