PHP PicPurify API: Analyze picture to detect alarming characteristics

Recommend this page to a friend!
  Info   View files Documentation   View files View files (16)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog (1)    
Last Updated Ratings Unique User Downloads Download Rankings
2021-08-09 (1 month ago) RSS 2.0 feedNot yet rated by the usersTotal: 110 This week: 12All time: 9,388 This week: 13Up
Version License PHP version Categories
picpurify 1.0.0MIT/X Consortium ...5PHP 5, Graphics, Web services, Artifi...
Description Author

This package can analyze picture to detect alarming characteristics.

It can send HTTP requests to the PicPurify API to submit a picture to be analyzed to detect characteristic of the picture content that may be used to determine if the picture is suitable to be published in sites with certain rules.

Currently it can detect if pictures contain:

- Porn
- Nudity
- Gore
- Money
- Weapons
- Drugs
- Hate signs
- Obscene gestures
- QRCode
- Face
- Age of a person
- Gender of a person

Innovation Award
PHP Programming Innovation award nominee
August 2021
Nominee
Vote
Many sites accept user-contributed pictures to be published on their pages.

However, there is always the risk that some users may submit inadequate pictures.

This package helps developers detect if a picture may be of a type that is not acceptable for publication, so a human may review it later to confirm if the picture is inadequate and avoid being published.


Manuel Lemos
Picture of Isa Eken
  Performance   Level  
Innovation award
Innovation award
Nominee: 7x

 

Details

Picpurify API

> Work in progress

Usage

$picpurify = new \IsaEken\Picpurify\Picpurify;
$picpurify
    ->setApiKey('api-key')
    ->setTasks([
        \IsaEken\Picpurify\Tasks::DrugModeration,
        \IsaEken\Picpurify\Tasks::GoreModeration,
        \IsaEken\Picpurify\Tasks::PornModeration,
    ])
    ->setImage(\IsaEken\Picpurify\Image::createFromUrl('https://example.com/example.jpg'));

$response = $picpurify->run();

$response->getStatus();
$response->getTime();
$response->getMedia();
$response->getModerations();
$response->getModeration(\IsaEken\Picpurify\Tasks::DrugModeration)->detection;
$response->getData();

License

MIT

  Files folder image Files  
File Role Description
Files folder imagesrc (5 files, 2 directories)
Files folder imagetests (1 file, 1 directory)
Plain text file composer.json Data Auxiliary data
Plain text file phpunit.xml Data Auxiliary data
Plain text file README.md Doc. Documentation

 Version Control Unique User Downloads Download Rankings  
 100%
Total:110
This week:12
All time:9,388
This week:13Up

For more information send a message to info at phpclasses dot org.