コード例 #1
0
        public static List <string> signList = new List <string>();//创建了一个空签到列表
        public Form1()
        {
            InitializeComponent();

            client2         = new Tts(API_KEY2, SECRET_KEY2);
            client2.Timeout = 60000; // 修改超时时间
            client          = new Face(API_KEY, SECRET_KEY);
            client.Timeout  = 60000; // 修改超时时间

            signControl    = new SignControl(client, client2);
            faceLibControl = new FaceLibControl(client, client2);
            signControl.Show();
            groupBox1.Controls.Clear();
            groupBox1.Controls.Add(signControl);

            form = this;
        }
コード例 #2
0
        public SignControl(Face clientAll, Tts client2All)
        {
            try
            {
                InitializeComponent();
                client  = clientAll;
                client2 = client2All;

                g_playsound.StartThred();

                pbHWND = pictureBox1.Handle;
                tmpBmp = new Bitmap(640, 480);
                openCapture();
            }
            catch (Exception e1)
            {
                MessageBox.Show(e1.ToString());
            }
            form = this;
        }