✔ Offer a safe platform to your visitors
Online marketplaces and e-commerce platforms are the best places to gather sellers and people looking for specific products / services. But it’s necessary to keep an eye on products' compliance if you want to strengthen your website’s reputation. PicPurify image moderation service instantly filters pictures not compliant with your guidelines.
✔ A tailor-made image moderation service
Our image moderation API was created to automatically detect and filter any inappropriate content. We use the most advanced deep learning technology to instantly analyze user generated pictures and block the ones that don’t respect your policy. With only 0.1s necessary for PicPurify to classify an image with an accuracy rate of 95%, this level of speed and efficiency allows you to reduce the cost implied by manual moderation, gain in speed and productivity, strengthen your website’s security.
As soon as a user posts a picture on your platform, our algorithms automatically analyze it and remove it if there is any sign of weapon
, drug
or porn
. Below an example of POST request for task=weapon_detection,drug_detection,porn_detection
.
curl -X POST 'https://www.picpurify.com/analyse.php' -F 'API_KEY=XXX' -F 'task=weapon_detection,drug_detection,porn_detection' -F 'origin_id=xxxxxxxxx' -F 'reference_id=yyyyyyyy' -F 'file_image=@/path/to/local/file.jpg'
curl -X POST 'https://www.picpurify.com/analyse.php' -F 'API_KEY=XXX' -F 'task=weapon_detection,drug_detection,porn_detection' -F 'origin_id=xxxxxxxxx' -F 'reference_id=yyyyyyyy' -F 'url_image=http://url_image_to_analyse'
picpurify_url = 'https://www.picpurify.com/analyse.php'
img_data = {'file_image': open('/path/to/local/file.jpg', 'rb')}
# if you are using non acsii file names, use the following code instead of the previous line
# img_data = {'file_image': (os.path.basename('/path/to/local/file_speciàl_chàr.jpg').encode('ascii', 'replace'),open('/path/to/local/file_speciàl_chàr.jpg'.decode('utf-8'), 'rb').read())}
result_data = requests.post(picpurify_url,files = img_data, data = {"API_KEY":"XXX", "task":"weapon_detection,drug_detection,porn_detection", "origin_id":"xxxxxxxxx", "reference_id":"yyyyyyyy" })
print result_data.content
picpurify_url = 'https://www.picpurify.com/analyse.php'
result_url = requests.post(picpurify_url,data = {"url_image":"http://url_image_to_analyse", "API_KEY":"XXX", "task":"weapon_detection,drug_detection,porn_detection", "origin_id":"xxxxxxxxx", "reference_id":"yyyyyyyy"})
print result_url.content
var request = require('request'),
fs = require('fs');
var picpurifyUrl = 'https://www.picpurify.com/analyse.php';
var imagePath = '/path/to/local/file.jpg'
var data = {
file_image: fs.createReadStream(imagePath),
API_KEY: 'XXX',
task:"weapon_detection,drug_detection,porn_detection",
origin_id:"xxxxxxxxx",
reference_id:"yyyyyyyy"
};
request.post({ url: picpurifyUrl, formData: data }, function (err, httpResponse, body) {
if (!err && httpResponse.statusCode == 200) {
console.log(body)
}
});
var request = require('request');
var picpurifyUrl = 'https://www.picpurify.com/analyse.php';
request.post(
picpurifyUrl,
{ form: {url_image:'http://url_image_to_analyse',API_KEY: 'XXX',task:"weapon_detection,drug_detection,porn_detection", origin_id:"xxxxxxxxx", reference_id:"yyyyyyyy" } },
function (error, response, body) {
if (!error && response.statusCode == 200) {
console.log(body)
}
}
);
$ch = curl_init();
$image_path = "/path/to/local/file.png";
$mime = "image/png";
$cfile = curl_file_create($image_path,$mime);
$data = array('file_image' => $cfile,
'API_KEY' => "XXX",
'task' => 'weapon_detection,drug_detection,porn_detection',
'origin_id' => "xxxxxx",
'reference_id' => "yyyyyy"
);
curl_setopt($ch, CURLOPT_URL,'https://www.picpurify.com/analyse.php');
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER , true);
curl_setopt($ch,CURLOPT_SAFE_UPLOAD,true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
//curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_HEADER, 0);
$output = curl_exec($ch);
echo $output;
$ch = curl_init();
$data = array('url_image' => "http://url_image_to_analyse",
'API_KEY' => "XXX",
'task' => 'weapon_detection,drug_detection,porn_detection',
'origin_id' => "xxxxx",
'reference_id' => "yyyyyy"
);
curl_setopt($ch, CURLOPT_URL,'https://www.picpurify.com/analyse.php');
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER , true);
curl_setopt($ch,CURLOPT_SAFE_UPLOAD,true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
//curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_HEADER, 0);
$output = curl_exec($ch);
echo $output;
Interested? Get a taste of PicPurify efficiency by trying our online demo. |
Convinced? Sign up now and start using your 2000 free units! |