Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@sqwid/rekognition-wrapper

Package Overview
Dependencies
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sqwid/rekognition-wrapper

AWS Rekognition SDK wrapper for Sqwid

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
2
Weekly downloads
 
Created
Source

rekognition-wrapper

Moderating image content through AWS Rekognition SDK

Prerequisites

  • PySceneDetect (Only required for video moderation)
  • Amazon AWS Account

Installation

Use either npm or yarn to install rekognition-wrapper.

npm  i @sqwid/rekognition-wrapper

or

yarn add @sqwid/rekognition-wrapper

Usage

const RekognitionWrapper = require("@sqwid/rekognition-wrapper");

/*
    https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys
    https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html
*/

const config = {
	accessKeyId: "your-aws-access-key-id",
	secretAccessKey: "your-aws-secret-access-key",
	region: "region-closest-to-your-server-location-for-minimum-latency",
};

const verifier = new RekognitionWrapper(config);

verifier.detectExplicitContent({
	url: "https://img.huffingtonpost.com/asset/6197f71f20000047aa8d3089.jpeg?cache=dLXWffeF86&ops=scalefit_720_noupscale",
})
.then(result => {
	console.log(result);
})
.catch(error => {
	console.log(error);
});

For more examples, see examples

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

Keywords

FAQs

Package last updated on 28 Jun 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc