im using the following code to detect image on a local image file, but i want to instead use a base-64 encoded string version. what is the best way to do this?
def detect