private void btn2_Click(object sender, EventArgs e)
        {
            ocr frm = new ocr();

            this.Hide();
            frm.ShowDialog();
            this.Show();
        }
Пример #2
0
    //  public LoadAndDisplayImages ladi;



    public void PostData(string st)
    {
        st = Regex.Replace(st, @"\t\n\r", "").Replace('[', ' ').Replace(']', ' ');

        ocr o = new ocr();

        o.data = st;

        string json = JsonUtility.ToJson(o);

        StartCoroutine(PostRequest("http://localhost:5000/list_add", json, st));
    }
Пример #3
0
    public void PostData( )
    {
        string st = ptr;

        st = st.Replace("\\n", " ").Replace('[', ' ').Replace(']', ' ');

        ocr o = new ocr();

        o.data = st;

        string json = JsonUtility.ToJson(o);

        StartCoroutine(PostRequest("http://localhost:5000/list_add", json));
    }