/// <summary> /// Add keypoints to imageView /// </summary> private void ProcessSuccess(IList <MLHandKeypoints> results) { mGraphicOverlay.Clear(); HandKeypointGraphic handGraphic = new HandKeypointGraphic(mGraphicOverlay, results); mGraphicOverlay.Add(handGraphic); }
public void TransactResult(MLAnalyzer.Result result) { this.mGraphicOverlay.Clear(); SparseArray handKeypointsSparseArray = result.AnalyseList; List <MLHandKeypoints> list = new List <MLHandKeypoints>(); for (int i = 0; i < handKeypointsSparseArray.Size(); i++) { list.Add((MLHandKeypoints)handKeypointsSparseArray.ValueAt(i)); } HandKeypointGraphic graphic = new HandKeypointGraphic(this.mGraphicOverlay, list); this.mGraphicOverlay.Add(graphic); }