Exemplo n.º 1
0
        public void DrawGraphics(PXCMFaceData moduleOutput)
        {
            Debug.Assert(moduleOutput != null);

            for (var i = 0; i < moduleOutput.QueryNumberOfDetectedFaces(); i++)
            {
                PXCMFaceData.Face face = moduleOutput.QueryFaceByIndex(i);
                if (face == null)
                {
                    throw new Exception("DrawGraphics::PXCMFaceData.Face null");
                }

                lock (m_bitmapLock)
                {
                    m_faceTextOrganizer.ChangeFace(i, face, m_bitmap.Height, m_bitmap.Width);
                }

                DrawLocation(face);
                DrawLandmark(face);
                DrawPose(face);
                DrawPulse(face);
                DrawExpressions(face);
                DrawRecognition(face);
            }
        }
Exemplo n.º 2
0
        public void DrawGraphics(PXCMFaceData moduleOutput, PXCMFaceData lastmoduleOutput)
        {
            Debug.Assert(moduleOutput != null);

            //zz


            for (var i = 0; i < moduleOutput.QueryNumberOfDetectedFaces(); i++)
            {
                PXCMFaceData.Face face     = moduleOutput.QueryFaceByIndex(i);
                PXCMFaceData.Face lastface = moduleOutput.QueryFaceByIndex(i);


                if (face == null)
                {
                    throw new Exception("DrawGraphics::PXCMFaceData.Face null");
                }
                //
                //Savedata(moduleOutput);


                lock (m_bitmapLock)
                {
                    m_faceTextOrganizer.ChangeFace(i, face, m_bitmap.Height, m_bitmap.Width);
                }

                DrawLocation(face);
                DrawLandmark(face);
                DrawPose(face);
                //绘制分辨率为1280*720的图像,drawpulse已删除
                DrawExpressions(face);
            }
        }