Skip to content
This repository has been archived by the owner on Oct 27, 2022. It is now read-only.

change it to working on any size #15

Open
980202006 opened this issue Jun 21, 2019 · 0 comments
Open

change it to working on any size #15

980202006 opened this issue Jun 21, 2019 · 0 comments

Comments

@980202006
Copy link

    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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant