Skip to content

detectObjectOnImage for model with 1 class detects maximum 10 occurences #26

@ppeelman

Description

@ppeelman

Hi,

Thank you for this library!
I am using my own trained object-detection model (using "SSD Inception v1 coco" as a starting point).
I have only 1 class, and the goal is to count the number of occurences of that item in a picture.

My issue is the following: running the tflite model returns only a maximum of 10 occurences.
Even if I set 'numResultsPerClass' to a number higher than 10, I still get only a maximum of 10 occurences:

My code:

tflite.detectObjectOnImage( { path: imagePath, model: 'SSDMobileNet', imageMean: 127.5, imageStd: 127.5, threshold: 0.5, numResultsPerClass: 60 }, (err: Error, res: any) => { if (err) { reject(err); } else { resolve(res); } } );

Could you please help me find what is causing this?
Thanks!

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