Esempio n. 1
0
        private FaceData faceStates; //data field

        //TO DO: make it work with files



        public Analyser(FaceData _faceStates, string[] boundsConfig)
        {
            bounds = new Dictionary <string, double>();
            isOn   = new Dictionary <string, bool>();
            foreach (string bound in boundsConfig)
            {
                bounds.Add(bound.Split(':')[0], Convert.ToDouble(bound.Split(':')[1]));
                isOn.Add(bound.Split(':')[0], true);
            }

            faceStates = _faceStates;
        }
        public ProcessVideoFeed(VideoDetector detector,
                                GetInfo showMessage, GetInfo writeInfoExpressions,
                                GetInfo writeInfoEmotions, GetInfo writeInfoFeaturePoints)
        {
            ShowMessage            = showMessage;
            WriteInfoExpressions   = writeInfoExpressions;
            WriteInfoEmotions      = writeInfoEmotions;
            WriteInfoFeaturePoints = writeInfoFeaturePoints;

            faceStates = new FaceData();

            detector.setImageListener(this);
        }