Skip to content

classifyGif() - server side #305

@ghnp5

Description

@ghnp5

Hello,

Thank you very much for implementing NSFWJS, which works very well!

I use this as a Node.JS microservice app, doing Server-Side validation of photos uploaded to my website.

Works well for JPG images. The Node app retrieves an image from a URL, converts to buffer, runs tf.tensor3d(), then classify().

However, I am not sure how to classify GIF images, server side.
From looking at your code, it appears that the "gif" parameter must be a DOM img element.

Is it possible to classify GIF images server side?

I suppose I can manually go through every frame of the GIF and run classify(), but if this could be natively implemented in NSFWJS, that would be perfect!

Have a great day. Thank you.

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