예제 #1
0
        private void SaveHandData(PXCMHandData handAnalysis)
        {
            int numOfHands = handAnalysis.QueryNumberOfHands();

            for (int j = 0; j < numOfHands; j++)
            {
                int id;
                PXCMImage.ImageData data;

                handAnalysis.QueryHandId(PXCMHandData.AccessOrderType.ACCESS_ORDER_BY_TIME, j, out id);
                //Get hand by time of appearance
                PXCMHandData.IHand handData;
                handAnalysis.QueryHandData(PXCMHandData.AccessOrderType.ACCESS_ORDER_BY_TIME, j, out handData);

                if (handData != null)
                {
                    HandData hd = new HandData();
                    hd.updateData(handData);

                    dbhelper.saveEntity(hd);
                }
            }
        }