(a)
| 5 | import sys |
| 6 | |
| 7 | def base64_encode_image(a): |
| 8 | # return a JSON-encoded list of the base64 encoded image, image data |
| 9 | # type, and image shape |
| 10 | #return json.dumps([base64_encode_array(a), str(a.dtype), a.shape]) |
| 11 | return json.dumps([base64_encode_array(a).decode("utf-8"), str(a.dtype), |
| 12 | a.shape]) |
| 13 | |
| 14 | def base64_decode_image(a): |
| 15 | # grab the array, data type, and shape from the JSON-decoded object |
nothing calls this directly
no test coverage detected
searching dependent graphs…