mirror of
https://github.com/wassname/IndicoIo-python.git
synced 2026-08-07 11:17:17 +08:00
ADD: content filtering
This commit is contained in:
@@ -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