private void UpdateImage() { Texture2D t = CreateTextureFromImageGestureImage(LastImage); Image.texture = t; if (MatchedImage == null) { MatchLabel.text = "No match"; // no match add a script entry if (ScriptText != null) { ScriptText.text += LastImage.GetCodeForRowsInitialize(ImageNameText == null ? null : ImageNameText.text) + "," + System.Environment.NewLine; if (AutoAddImages && ImageNameText != null && ImageNameText.text.Length != 0) { ImageGesture.GestureImages.Add(LastImage); RecognizableImages[LastImage] = ImageNameText.text; } } } else { MatchLabel.text = "Match: " + RecognizableImages[MatchedImage]; } MatchLabel.text += " (" + ImageGesture.MatchedGestureCalculationTimeMilliseconds + " ms)"; ImageGesture.Reset(); }
private void ResetLines() { currentPointList = null; lineSet.Clear(); ImageGesture.Reset(); }