@pieromqwerty/

Ohhhh Yeahhh

Python

No description

fork
loading
Files
  • main.py
  • opencv_transform
  • readmeimgs
  • .gitignore
  • fake.png
  • gan.py
  • input.png
  • README.md
  • requirements.txt
  • run.py

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.9924232441223897","path":"main.py","file":{"path":"main.py","content":{"asEncoding":{"base64":"aW1wb3J0IHN5cwppbXBvcnQgY3YyCgpmcm9tIHJ1biBpbXBvcnQgcHJvY2VzcwoKIiIiCm1haW4ucHkKCiBIb3cgdG8gcnVuOgogcHl0aG9uMyBtYWluLnB5CgoiIiIKCiMgLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLSBtYWluKCkKZGVmIG1haW4oKToKCgkjUmVhZCBpbnB1dCBpbWFnZQoJZHJlc3MgPSBjdjIuaW1yZWFkKCJpbnB1dC5wbmciKQoKCSNQcm9jZXNzCgl3YXRlcm1hcmsgPSBwcm9jZXNzKGRyZXNzKQoKCSMgV3JpdGUgb3V0cHV0IGltYWdlCgljdjIuaW13cml0ZSgib3V0cHV0LnBuZyIsIHdhdGVybWFyaykKCgkjRXhpdAoJc3lzLmV4aXQoKQoKaWYgX19uYW1lX18gPT0gJ19fbWFpbl9fJzoKCW1haW4oKQ=="},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import sys
import cv2

from run import process

"""
main.py

 How to run:
 python3 main.py

"""

# ------------------------------------------------- main()
def main():

	#Read input image
	dress = cv2.imread("input.png")

	#Process
	watermark = process(dress)

	# Write output image
	cv2.imwrite("output.png", watermark)

	#Exit
	sys.exit()

if __name__ == '__main__':
	main()