Hi again
I need to infer an image obtained from byte data stored in a memory space (https://docs.python.org/3/library/mmap.html) and after converting the bytes I get an image.
I've seen the sources available for create_inference_stream and I know that I can make inferences to images (https://github.com/axelera-ai-hub/voyager-sdk/blob/release/v1.2.5/docs/tutorials/application.md), but I have to specify the/path/to/file
. But in this case I won't have that information.
In the code I'll have this line where I read the bytes in the memory space:
frame_size=image_width*image_height*3 //RGB
frame_bytes = mm.read(frame_size)
And then I get the new image:
frame = np.frombuffer(frame_bytes,dtype=np.uint8).reshape((image_height,image_width, 3))
Is there any way to infer “frame”?
Thank you!