人臉貞測為何反回結果是空白的呢!
Ta的回复 :沒有报錯信息,但就是空白的,我的程序內容如下: <?php require_once 'AipFace.php'; // 你的 APPID AK SK const APP_ID = '11418845'; const API_KEY = 'K6SlIp8Bvsd8vI7rn4NlGR7d'; const SECRET_KEY = 'f4Kbzhq7E06t5dkSx4gsrvszIxeYstOw'; $client = new AipFace(APP_ID, API_KEY, SECRET_KEY); $image = file_get_contents('test.jpg'); $imageType = "BASE64"; // 调用人脸检测 $client->detect($image, $imageType); // 如果有可选参数 $options = array(); $options["face_field"] = "age"; $options["max_face_num"] = 2; $options["face_type"] = "LIVE"; // 带参数调用人脸检测 $client->detect($image, $imageType, $options); ?> test.jpg 放置在同一目錄下的,還是有什麼要設定的嗎?請指教,謝謝!