face regonition refine
This commit is contained in:
@@ -317,4 +317,17 @@ object FileHelper {
|
||||
connection.disconnect()
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 下载测试图片
|
||||
*/
|
||||
fun downloadTestImage(url: String, destination: File): Boolean {
|
||||
return try {
|
||||
downloadFile(url, destination)
|
||||
true
|
||||
} catch (e: Exception) {
|
||||
Log.e(TAG, "Failed to download test image: ${e.message}", e)
|
||||
false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user