mirror of
https://github.com/wassname/IndicoIo-python.git
synced 2026-10-03 12:00:44 +08:00
ADD: content filtering
This commit is contained in:
1 parent
024e4a0432
commit
d1f2c37a39
5 files changed
+47
-4
No files matched your search
@@ -48,7 +48,8 @@ def image_preprocess(image, size=(48,48), batch=False):
|
||||
raise IndicoError("Image must be a filepath, base64 encoded string, or a numpy array")
|
||||
|
||||
# image resizing
|
||||
out_image = out_image.resize(size)
|
||||
if size:
|
||||
out_image = out_image.resize(size)
|
||||
|
||||
# convert to base64
|
||||
temp_output = StringIO.StringIO()
|
||||
|
||||
Reference in new issue
Block a user