人工智能作業——動物識別系統_第1頁
人工智能作業——動物識別系統_第2頁
人工智能作業——動物識別系統_第3頁
人工智能作業——動物識別系統_第4頁
人工智能作業——動物識別系統_第5頁
全文預覽已結束

下載本文檔

版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領

文檔簡介

1、精選優質文檔-傾情為你奉上動物識別專家系統 -胡滄粟動物識別系統由多種規則來判別,首先原則是根據是哺乳動物還是鳥類來區別大類。然后根據在哺乳動物類里建立規則:食肉動物,非食肉,黃褐色,有斑點,長脖子,黑白兩色來區分老虎,金錢豹,長頸鹿和斑馬。鳥類里面建議規則:會飛,不會飛,長腿,黑白兩色來區分信天翁,企鵝和鴕鳥。將書本上的規則適當進行了簡化,并利用界面的人性化來誘導人們更好的使用軟件。程序由c#語言編寫。本程序系統在考慮到整體結構相同的結構下,將規則進行了優化。先將哺乳動物與非哺乳動物進行了區分,從而在選取完第一條規則后可以篩選掉很多不用的規則。在哺乳動物里,規則如下:1. 老虎=食肉+黃褐色

2、2. 金錢豹=食肉+有斑點3. 長頸鹿=非食肉+長脖子4. 斑馬=非食肉+黑白兩色鳥類動物里面,規則如下:1. 信天翁=會飛2. 企鵝=不會飛+黑白兩色3. 鴕鳥=不會飛+長腿程序實際操作圖:1.程序界面通過選取哺乳動物和鳥類可以篩選掉很多不需要的信息。2.當按以上的規則描述時可以通過下面的顯示欄顯示判定的動物。3.當錯誤輸入或者選取規則過多時則會顯示錯誤提醒。部分程序代碼:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawin

3、g;using System.Linq;using System.Text;using System.Windows.Forms;namespace 人工智能作業; public partial class form1 : Form public form1() InitializeComponent(); panel1.Visible = true; panel2.Visible = false; this.label3.Text = str1; radioButton1.Checked = true; private void button1_Click(object sender, Ev

4、entArgs e) /this.label3.Text = str1; this.button1.Enabled = false; if (checkBox01.Checked = true) && (checkBox03.Checked = true) && (checkBox02.Checked = false) && (checkBox04.Checked = false) && (checkBox05.Checked = false) && (checkBox06.Checked = false) thi

5、s.label3.Text = str1 + "老虎" if (checkBox01.Checked = true) && (checkBox02.Checked = true) && (checkBox03.Checked = false) && (checkBox04.Checked = false) && (checkBox05.Checked = false) && (checkBox06.Checked = false) this.label3.Text = str1 + "

6、金錢豹" if (checkBox04.Checked = true) && (checkBox05.Checked = true) && (checkBox02.Checked = false) && (checkBox01.Checked = false) && (checkBox03.Checked = false) && (checkBox06.Checked = false) this.label3.Text = str1 + "長頸鹿" if (checkBox04.Che

7、cked = true) && (checkBox06.Checked = true) && (checkBox02.Checked = false) && (checkBox01.Checked = false) && (checkBox05.Checked = false) && (checkBox03.Checked = false) this.label3.Text = str1 + "斑馬" if (checkBox07.Checked = true) && (chec

8、kBox08.Checked = false) && (checkBox09.Checked = false) && (checkBox10.Checked = false) ) this.label3.Text = str1 + "信天翁" if (checkBox09.Checked = true) && (checkBox08.Checked = true) && (checkBox07.Checked = false) && (checkBox10.Checked = false) th

9、is.label3.Text = str1 + "鴕鳥" if (checkBox09.Checked = true) && (checkBox10.Checked = true) && (checkBox08.Checked = false) && (checkBox07.Checked = false) this.label3.Text = str1 + "企鵝" if (this.label3.Text = str1) MessageBox.Show("動物類型描述錯誤,請重新輸入!&quo

10、t;); this.button1.Enabled = true; private void radioButton1_CheckedChanged(object sender, EventArgs e) if (radioButton1.Checked = true) panel1.Visible = true; panel2.Visible = false; private void radioButton2_CheckedChanged(object sender, EventArgs e) if (radioButton2.Checked = true) panel2.Visible = true; panel1.Visible = false; private void button2_Click(object sender, EventArgs e) this.label3.Text = str1; this.button1.Enabled = true; checkBox01.Checked = false; checkBox02.Checked = false; checkBox03.Checked = false; checkBox04.Checked = false; check

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯系上傳者。文件的所有權益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
  • 4. 未經權益所有人同意不得將文件中的內容挪作商業或盈利用途。
  • 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
  • 6. 下載文件中如有侵權或不適當內容,請與我們聯系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論