22-09-20 12:59 PM
Hi All,
While working with asset - Microsoft Azure Computer Vision v3.0
I am facing one issue in functionality of - Get Read Results.
I am able to run API to get results in JSON format (Response Content Data variable)
But the output collection ( Read Results Response ) is coming as blank.
That means this utility by itself is not converting response to collection and giving a blank collection in results.
I tried to use BP another asset to convert text to collection , but it is also giving me error
Any help would be much appreciated!!!
Answered! Go to Answer.
25-09-20 02:53 PM
$.readResults
Based on Microsoft's API documentation (Computer Vision 3.0 Reference) I believe it should be:
$.analyzeResult.readResults
I'll have someone take a look at the skill, verify the correct value, and get the skill updated. In the meantime, you can manually change the value in the Web API definition by going to System -> Objects -> Web API Services and editing the action within the Microsoft Computer Vision 3.0 object.
Cheers,
25-09-20 02:53 PM
$.readResults
Based on Microsoft's API documentation (Computer Vision 3.0 Reference) I believe it should be:
$.analyzeResult.readResults
I'll have someone take a look at the skill, verify the correct value, and get the skill updated. In the meantime, you can manually change the value in the Web API definition by going to System -> Objects -> Web API Services and editing the action within the Microsoft Computer Vision 3.0 object.
Cheers,
29-09-20 05:09 PM
29-09-20 05:39 PM
29-09-20 09:39 PM
29-09-20 11:03 PM
06-10-20 05:44 AM
12-10-20 05:52 PM
12-10-20 06:21 PM
Private Function DeserialiseArray(ByVal o As JArray, ByVal populate As Boolean) As DataTable
Dim dt As New DataTable
Dim isNumArray As Boolean
Dim first As Type = Nothing
For Each e As Object In o
If first Is Nothing Then
first = GetTypeOf(DeserialiseGeneric(e, False))
If (IsNumeric(e)) Then
isNumArray = True
End If
End If
If (GetTypeOf(DeserialiseGeneric(e, False)) IsNot first) Then
' Check the array type. If it's numeric we want to make sure the subsequent values are not simply differing number types (ex Int64 vs Double).
If (Not isNumArray) Or ((isNumArray) And (Not IsNumeric(e))) Then
Throw New Exception("Data Type mismatch in array")
End If
End If
Next
If first IsNot Nothing Then
dt.Columns.Add(JSON.Array, first)
End If
If populate Then
For Each e As Object In o
Dim dr As DataRow = dt.NewRow()
dr(JSON.Array) = DeserialiseGeneric(e, True)
dt.Rows.Add(dr)
Next
End If
Return dt
End Function
12-10-20 07:54 PM