This repository was archived by the owner on Oct 27, 2022. It is now read-only.
This repository was archived by the owner on Oct 27, 2022. It is now read-only.
change it to working on any size #15
Open
Description
int heig = bitmap.getHeight();
int wid = bitmap.getWidth();
Bitmap scaledBitmap =scaleBitmap(bitmap,wid,heig);
intValues=new int[heig * wid];
floatValues = new float[heig * wid * 3];
scaledBitmap.getPixels(intValues, 0, scaledBitmap.getWidth(), 0, 0,
scaledBitmap.getWidth(), scaledBitmap.getHeight());`
I change there
inferenceInterface.feed(INPUT_NODE, floatValues, heig, wid, 3);
but it does't work
Metadata
Metadata
Assignees
Labels
No labels