Skip to content

tfImageRecognition.recognize(data) not returning a resultΒ #38

@azanli

Description

@azanli
      const results = await tfImageRecognition.recognize({
        image: require('../../assets/earth-alighted.jpeg'), // Also tried using "file://image_ocation.jpg" of cached image location from React-Native-Camera `takePictureAsync()`
        inputName: "input",
        inputSize: 224,
        outputName: "output",
        maxResults: 3,
        threshold: 0.1,
      });

Could it be because the property values inputSize, outputName... are not correct? How would I determine what those values are?

I saw in issue #11 that the outputName needs to be the same output name as the model used - I'm using the YOLO2 model. Could this maybe be the issue, that it's not mapping the return result correctly?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions