Spaces:
Runtime error
Runtime error
Update util/img2pixl.py
Browse files- util/img2pixl.py +4 -1
util/img2pixl.py
CHANGED
@@ -23,7 +23,10 @@ class pixL:
|
|
23 |
self.ImgW, self.ImgH = self.image.size
|
24 |
self.image = pixL.colorPicker(self)
|
25 |
pixL.complier(self)
|
26 |
-
|
|
|
|
|
|
|
27 |
|
28 |
def postprocess(self):
|
29 |
image = self.background
|
|
|
23 |
self.ImgW, self.ImgH = self.image.size
|
24 |
self.image = pixL.colorPicker(self)
|
25 |
pixL.complier(self)
|
26 |
+
if segMode == True:
|
27 |
+
return pixL.postprocess(self), self.pixValues
|
28 |
+
else:
|
29 |
+
return pixL.postprocess(self)
|
30 |
|
31 |
def postprocess(self):
|
32 |
image = self.background
|