Advertisement
Guest User

Untitled

a guest
Nov 14th, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. img2 = Image.open(r"H:\CSC1034 Programming Portfolio 1\csc1034-team-project\practical-3\resources\img\spec2-images\image02.jpg")
  2. img3 = Image.open(r"H:\CSC1034 Programming Portfolio 1\csc1034-team-project\practical-3\resources\img\spec2-images\image03.jpg")
  3. img4 = Image.open(r"H:\CSC1034 Programming Portfolio 1\csc1034-team-project\practical-3\resources\img\spec2-images\image04.jpg")
  4. img5 = Image.open(r"H:\CSC1034 Programming Portfolio 1\csc1034-team-project\practical-3\resources\img\spec2-images\image05.jpg")
  5.  
  6. def jpeg():
  7. for i in sys.argv[1:]:
  8. newimg = img.filter(ImageFilter.CONTOUR)
  9. newimg3 = img3.filter(ImageFilter.EMBOSS)
  10. newimg4 = img4.filter(ImageFilter.FIND_EDGES)
  11. newimg5 = img5.filter(ImageFilter.SHARPEN)
  12. #img.show()
  13. #img2.show()
  14. #newimg.show()
  15. #newimg3.show()
  16. newimg4.show()
  17.  
  18. #newimg4.show()
  19. newimg5.show()
  20. img5.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement