Faceplusplus face detection

무료
분류별 faceplusplus | 업데이트됨 il y a 21 jours | Media
인기

9.2 / 10

지연 시간

1,481ms

서비스 수준

100%

Health Check

N/A

모든 토론으로 돌아가기

File URL as url

Rapid account: Rkissac
rkissac
il y a 10 ans

Hi,

I am using Facedetection in a Windows application in VB 2010.

My code as follows:
Dim fileurl As String = UrlEncode(URL_ServiceTab_TextBox_Preferences.Text)
Dim url As String = “https://faceplusplus-faceplusplus.p.mashape.com/detection/detect?url=” & fileurl
Dim req As HttpWebRequest = CType(WebRequest.Create(url), HttpWebRequest)
Dim hed As WebHeaderCollection = req.Headers
hed.Add(“X-Mashape-Authorization:2hGIFmZREbw8L0uMjDKMdWFysoOsP7Ph”)
Dim res As HttpWebResponse
req.Method = "GET"
res = CType(req.GetResponse(), HttpWebResponse) ’ Send Request
webStream = res.GetResponseStream() ’ Get Response
Dim webStreamReader As New StreamReader(webStream)
While webStreamReader.Peek >= 0
webResponse = webStreamReader.ReadToEnd()
End While
Dim i As Integer = 0
MsgBox(webResponse)

My app is working perfectly on HTTP URLs.
Please advise how i can use the app for a local file : eg. “D:\test.jpg”

Rapid account: Jyc 66
jyc66 Commented il y a 10 ans

You probably need to host it on webserver using a third party api

아래에 의견을 추가하고 토론에 참여하세요.

새 댓글을 게시하려면 로그인 / 가입