Skip to content
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
@980202006

Description

@980202006
    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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions