Extracting float values from text
- This topic has 1 reply, 2 voices, and was last updated 2 months, 1 week ago by .
- You must be logged in to reply to this topic.
Welcome to Portals United! / Forums / Requests & Feedback / Extracting float values from text
Hi,
We send text data to the tensor flow server through the web request.
We get the JSON that looks like this:
{
"predictions": [[1.43343797e-07, 3.11937953e-07, 0.999999523]
]
}
How can we extract the values as floats or vector3 to use them to make decisions inside the Logic Editor of the World Builder?
Thanks!
Right now we can’t read JSON files yet, but we have a plan. About the release date for this feature, we hope to have it in our next release which is currently delayed due to our update to Unity V6000. Hopefully in 1 to 2 weeks (7. – 14. February).
You will be able to extract the data (e.g. the value of “predictions”) as a string and use it as a (x, y, z) vector.