{"id":15173904,"url":"https://github.com/fishingisgood/sql-finalproject-egg-db","last_synced_at":"2026-02-21T22:31:20.453Z","repository":{"id":245582939,"uuid":"808923176","full_name":"fishingisgood/SQL-finalproject-Egg-DB","owner":"fishingisgood","description":null,"archived":false,"fork":false,"pushed_at":"2024-06-25T14:18:12.000Z","size":22710,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-21T23:13:58.203Z","etag":null,"topics":["mariadb","python","sql"],"latest_commit_sha":null,"homepage":"","language":"Scheme","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fishingisgood.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-01T07:04:23.000Z","updated_at":"2024-06-25T14:05:37.000Z","dependencies_parsed_at":"2024-06-25T15:46:59.217Z","dependency_job_id":null,"html_url":"https://github.com/fishingisgood/SQL-finalproject-Egg-DB","commit_stats":{"total_commits":3,"total_committers":2,"mean_commits":1.5,"dds":"0.33333333333333337","last_synced_commit":"40226e243d94f85c42a5d830d9cb1b4845b4bcf7"},"previous_names":["fishingisgood/sql-finalproject-egg-db"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fishingisgood/SQL-finalproject-Egg-DB","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fishingisgood%2FSQL-finalproject-Egg-DB","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fishingisgood%2FSQL-finalproject-Egg-DB/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fishingisgood%2FSQL-finalproject-Egg-DB/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fishingisgood%2FSQL-finalproject-Egg-DB/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fishingisgood","download_url":"https://codeload.github.com/fishingisgood/SQL-finalproject-Egg-DB/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fishingisgood%2FSQL-finalproject-Egg-DB/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281185696,"owners_count":26457801,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-26T02:00:06.575Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mariadb","python","sql"],"created_at":"2024-09-27T11:04:28.524Z","updated_at":"2025-10-26T23:13:50.740Z","avatar_url":"https://github.com/fishingisgood.png","language":"Scheme","funding_links":[],"categories":[],"sub_categories":[],"readme":"資料探勘期末功課\r\nR1231003 陳通, R1231001 高義順, B0831035 楊植翔 \r\nA.\t背景說明\r\n資料來源於對實驗雞蛋進行非破壞檢測，依照實驗設計，每批次雞蛋會有16顆，需對每顆雞蛋的5個光源照射(尖端、鈍端、側面*3)面進行照射，並量測出其不同波長(wavelength)下的反射率(reflectance)，實驗共進行一個月，觀察不同影響因子下的反射率變化。\r\n由於每照射結果會有1937組反射率對應特定波長段，一天內進行16顆雞蛋實驗，共執行一個月的實驗，期間可能會不同雞蛋處理方式，因此資料數量是極其龐大的，若以excel處存首先軟體處存空間會不足，另外後續資料調度及分析會變得很困難，sql的關聯式資料庫就很好的解決了這些問題，關聯式資料庫以不同實驗因子建表，再用python聯結sql資料庫，對資料庫進行探勘，達成對後續數據分析的應用。\r\nB.\t資料類型與處理方法\r\n1.文字檔前處理+資料庫建立\r\n光譜套裝軟體輸出的資料類型為.sps檔,將.sps檔視為.txt檔處理，在其輸出的文字檔裡首先排除檔案前26行的文字說明，並分別將波長和反射率以串列方式處存。\r\n在資料庫端以不同日期的光譜實驗做資料庫，每個以日期命名的資料庫下有當日實驗的所有雞蛋編號，每個雞蛋表的首欄為波長，後5欄為波長所對應的不同照射面的反射率。\r\n2.資料分析+繪圖\r\n依照要分析的項目做變數替換，選取感興趣的變數因子從資料表中選取，在python做數值計算及繪圖\r\nC.\t程式使用說明\r\na.readonefolderzip.py:程式匯入DB資料庫，第50行改路經即可執行\r\n \r\nb. 調用資料函式庫.py: \r\ndef query_1_2(date, color, egg_serial, direction, wavelength)\r\n(date:雞蛋實驗日期list, color:雞蛋顏色, egg_serial:選擇雞蛋編號, direction:雞蛋照射方向list, wavelength:選擇波長區間)\r\n返回值:[retern1, retern2]\r\n[retern1:波長list, retern2:對應反射率強度list]\r\nc.main.py:手動輸入查詢引索\r\nD.\t資料處理結果與說明\r\n使用tkinter套件做一個UI介面方便操作，有內建預設值可以直接顯示圖表。修改數據後在按下修改數據，可以顯示修改過後的顯示圖表。\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffishingisgood%2Fsql-finalproject-egg-db","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffishingisgood%2Fsql-finalproject-egg-db","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffishingisgood%2Fsql-finalproject-egg-db/lists"}