ADD: content filtering

This commit is contained in:
jagreene
2015-07-10 02:43:28 -04:00
committed by Madison May
parent 024e4a0432
commit d1f2c37a39
5 changed files with 47 additions and 4 deletions
+2 -1
View File
@@ -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()