private void faceDetectAndGreetToolStripMenuItem_Click(object sender, EventArgs e) { rr = new RoboRealm.RR_API(); if (!rr.start()) { return; } rr.execute("<Face_Detection><min_face_size>20</min_face_size><sort_array_y>1</sort_array_y><appearance_count>20</appearance_count><graphic_color/><result_type_index>0</result_type_index><display_orientation>1</display_orientation><display_y>1</display_y><minimum_tracking_confidence>30</minimum_tracking_confidence><text_size/><display_x>1</display_x><max_face_size>200</max_face_size><create_array>1</create_array><display_scale>1</display_scale><enable_tracking>1</enable_tracking><sort_array_x>1</sort_array_x><absent_count>20</absent_count></Face_Detection>"); Face_Detect_and_Greet dlg = new Face_Detect_and_Greet(rr, conductor); dlg.ShowDialog(); }
private void tellMeTheTemperatureToolStripMenuItem_Click(object sender, EventArgs e) { rr = new RoboRealm.RR_API(); if (!rr.start()) { return; } rr.execute("<HTTP><is_active>TRUE</is_active><url>http://weather.yahooapis.com/forecastrss?w=2502265</url><max_rate_index>9</max_rate_index><extract_expression_1><yweather:condition temp="*"></extract_expression_1><send_on_change_only>FALSE</send_on_change_only><extract_name_1>temperature</extract_name_1></HTTP>"); String textToSpeak = "The temperature is " + rr.getVariable("temperature") + " degrees"; rr.execute(""); Speak speak = new Speak(conductor, textToSpeak, 0); //rr.close(); }
private void tellMeTheTemperatureToolStripMenuItem_Click(object sender, EventArgs e) { rr = new RoboRealm.RR_API(); if (!rr.start()) return; rr.execute("<HTTP><is_active>TRUE</is_active><url>http://weather.yahooapis.com/forecastrss?w=2502265</url><max_rate_index>9</max_rate_index><extract_expression_1><yweather:condition temp="*"></extract_expression_1><send_on_change_only>FALSE</send_on_change_only><extract_name_1>temperature</extract_name_1></HTTP>"); String textToSpeak = "The temperature is "+rr.getVariable("temperature")+" degrees"; rr.execute(""); Speak speak = new Speak(conductor, textToSpeak, 0); //rr.close(); }
private void faceDetectAndGreetToolStripMenuItem_Click(object sender, EventArgs e) { rr = new RoboRealm.RR_API(); if (!rr.start()) return; rr.execute("<Face_Detection><min_face_size>20</min_face_size><sort_array_y>1</sort_array_y><appearance_count>20</appearance_count><graphic_color/><result_type_index>0</result_type_index><display_orientation>1</display_orientation><display_y>1</display_y><minimum_tracking_confidence>30</minimum_tracking_confidence><text_size/><display_x>1</display_x><max_face_size>200</max_face_size><create_array>1</create_array><display_scale>1</display_scale><enable_tracking>1</enable_tracking><sort_array_x>1</sort_array_x><absent_count>20</absent_count></Face_Detection>"); Face_Detect_and_Greet dlg = new Face_Detect_and_Greet(rr, conductor); dlg.ShowDialog(); }