GetScore($_FILES['img']['tmp_name']);
/*If the $score variable is set*/
if (isset($score)) {
/*If the image contains nudity, display image score and message. Score value if more than 60%, it is considered an adult image.*/
if ($score >= 60) {
echo "Image scored " . $score . "%, It seems that you have uploaded a nude picture.";
/*If the image doesn't contain nudity*/
} else if ($score
标记语言
我们可以使用一个基础的HTML表单上传图片.