private void btn2_Click(object sender, EventArgs e) { ocr frm = new ocr(); this.Hide(); frm.ShowDialog(); this.Show(); }
// 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)); }
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)); }