diff --git a/model/01_垃圾分类系统_行业和领域调研分析报告.docx b/model/01_垃圾分类系统_行业和领域调研分析报告.docx new file mode 100644 index 0000000..9741303 Binary files /dev/null and b/model/01_垃圾分类系统_行业和领域调研分析报告.docx differ diff --git a/model/01_垃圾分类系统_需求模型.docx b/model/01_垃圾分类系统_需求模型.docx new file mode 100644 index 0000000..baf91b2 Binary files /dev/null and b/model/01_垃圾分类系统_需求模型.docx differ diff --git a/model/02_垃圾分类系统_设计模型.docx b/model/02_垃圾分类系统_设计模型.docx new file mode 100644 index 0000000..84e57a1 Binary files /dev/null and b/model/02_垃圾分类系统_设计模型.docx differ diff --git a/model/02_垃圾分类系统_软件系统的需求构思及描述.docx b/model/02_垃圾分类系统_软件系统的需求构思及描述.docx new file mode 100644 index 0000000..46f913d Binary files /dev/null and b/model/02_垃圾分类系统_软件系统的需求构思及描述.docx differ diff --git a/other/05_垃圾分类识别系统_软件工程课程设计汇报.pptx b/other/05_垃圾分类识别系统_软件工程课程设计汇报.pptx new file mode 100644 index 0000000..b93c815 Binary files /dev/null and b/other/05_垃圾分类识别系统_软件工程课程设计汇报.pptx differ diff --git a/other/06_软件开发项目的个人自评报告 .xlsx b/other/06_软件开发项目的个人自评报告 .xlsx new file mode 100644 index 0000000..b30608d Binary files /dev/null and b/other/06_软件开发项目的个人自评报告 .xlsx differ diff --git a/other/07_软件开发项目的团队自评报告.xlsx b/other/07_软件开发项目的团队自评报告.xlsx new file mode 100644 index 0000000..bb3a48c Binary files /dev/null and b/other/07_软件开发项目的团队自评报告.xlsx differ diff --git a/other/08_210340049葛朋林-实践总结报告.docx b/other/08_210340049葛朋林-实践总结报告.docx new file mode 100644 index 0000000..f510599 Binary files /dev/null and b/other/08_210340049葛朋林-实践总结报告.docx differ diff --git a/other/08_210340054金佳艺-实践总结报告.docx b/other/08_210340054金佳艺-实践总结报告.docx new file mode 100644 index 0000000..dfc56d3 Binary files /dev/null and b/other/08_210340054金佳艺-实践总结报告.docx differ diff --git a/other/08_210340061林亭旭_实践报告总结.docx b/other/08_210340061林亭旭_实践报告总结.docx new file mode 100644 index 0000000..ec14aef Binary files /dev/null and b/other/08_210340061林亭旭_实践报告总结.docx differ diff --git a/other/08_210340062刘瑞轩_实践报告总结.docx b/other/08_210340062刘瑞轩_实践报告总结.docx new file mode 100644 index 0000000..5af207f Binary files /dev/null and b/other/08_210340062刘瑞轩_实践报告总结.docx differ diff --git a/other/08_210340071舒小刚-实践总结报告.docx b/other/08_210340071舒小刚-实践总结报告.docx new file mode 100644 index 0000000..ddfff2c Binary files /dev/null and b/other/08_210340071舒小刚-实践总结报告.docx differ diff --git a/other/09_垃圾分类系统_演示录屏.mp4 b/other/09_垃圾分类系统_演示录屏.mp4 new file mode 100644 index 0000000..56f5ab5 Binary files /dev/null and b/other/09_垃圾分类系统_演示录屏.mp4 differ diff --git a/other/10_垃圾分类系统_宣传海报.png b/other/10_垃圾分类系统_宣传海报.png new file mode 100644 index 0000000..44ca596 Binary files /dev/null and b/other/10_垃圾分类系统_宣传海报.png differ diff --git a/src/flask/demo.py b/src/flask/demo.py index 70b3bf8..23cbca4 100644 --- a/src/flask/demo.py +++ b/src/flask/demo.py @@ -5,10 +5,6 @@ import io from flask import Flask, request from urllib.parse import urlparse from urllib.request import urlopen -from alibabacloud_imagerecog20190930.client import Client -from alibabacloud_imagerecog20190930.models import ClassifyingRubbishAdvanceRequest -from alibabacloud_tea_openapi.models import Config -from alibabacloud_tea_util.models import RuntimeOptions import mysql.connector from mysql.connector import Error @@ -55,32 +51,6 @@ def insert_feedback(feedbackInfo,feedbackType): connection.close() -def recognition(url): - config = Config( - access_key_id='LTAI5tHR7LEUHziRSK4TLSnM', - access_key_secret='uq7sZKEixU5osl54GVzcj4Yb1Yb7XA', - endpoint='imagerecog.cn-shanghai.aliyuncs.com', - region_id='cn-shanghai' - ) - # img = open(r'tmp.jpg', 'rb') - img = io.BytesIO(urlopen(url).read()) - classifying_rubbish_request = ClassifyingRubbishAdvanceRequest() - classifying_rubbish_request.image_urlobject = img - - runtime = RuntimeOptions() - try: - client = Client(config) - response = client.classifying_rubbish_advance(classifying_rubbish_request, runtime) - # result = response.body - category = response.body.data.elements[0].category; - return category - # return JsonResponse({'result': result}) - except Exception as error: - print(error) - # print(error.code) - # return JsonResponse({'error': str(error)}, status=500) - - #垃圾识别接口 app = Flask(__name__) # 保存上传文件的目标目录