// Update is called once per frame void Update() { if (image != null) { byte[] bytes = image; image = null; StartCoroutine(VisionAPIUtils.MakeAnalysisRequest(bytes, "txtImageInfo", typeof(Text))); } }
// Update is called once per frame void Update() { if (image != null) { byte[] bytes = image; image = null; Dropdown ddAction = GameObject.Find("ddAction").GetComponent <Dropdown>(); int selectedAction = ddAction.value; switch (selectedAction) { case 0: // identify StartCoroutine(VisionAPIUtils.MakeAnalysisRequest(bytes, "txtImageInfo", typeof(Text))); break; } } }
// Use this for initialization void Start() { StartCoroutine(VisionAPIUtils.MakeAnalysisRequest(IMAGE_PATH, TEXT_COMPONENT, typeof(TextMesh))); }