Skip to content

Commit

Permalink
update Obj
Browse files Browse the repository at this point in the history
  • Loading branch information
1165048017 committed Oct 29, 2020
1 parent a51ba84 commit 19869ac
Show file tree
Hide file tree
Showing 10 changed files with 191 additions and 2 deletions.
9 changes: 9 additions & 0 deletions ObjBodyFile/Sample/aa.mtl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

newmtl material_0
Ka 0.200000 0.200000 0.200000
Kd 1.000000 1.000000 1.000000
Ks 1.000000 1.000000 1.000000
Tr 0.000000
illum 2
Ns 1.000000
map_Kd aa.png
17 changes: 17 additions & 0 deletions ObjBodyFile/Sample/aa.obj
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@

mtllib aa.mtl

v 0 0 0
v 1 0 0
v 1 1 0
v 0 1 0

vt 0 0
vt 2 0
vt 2 1
vt 0 1

usemtl material_0

f 1/1 2/2 3/3
f 1/1 3/3 4/4
Binary file added ObjBodyFile/Sample/aa.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added OpenCV/contours/blackBG.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added OpenCV/contours/image.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
163 changes: 163 additions & 0 deletions OpenCV/contours/test.ipynb

Large diffs are not rendered by default.

Binary file added OpenCV/contours/whiteBG.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions flaskfile/server.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from werkzeug.utils import secure_filename
from flask import Flask,render_template,jsonify,request,url_for,send_from_directory
from flask import Flask,render_template,jsonify,request,url_for,send_from_directory,redirect
import time
import os
import base64
Expand Down Expand Up @@ -30,7 +30,7 @@ def api_upload():
fname = request.form["name"]
if f and allowed_file(fname): # 判断是否是允许上传的文件类型
f.save(os.path.join(file_dir,fname)) #保存文件到upload目录
print(url_for('uploaded_file',filename=fname))
#return redirect(url_for('uploaded_file',filename=fname))
return jsonify({"succeed":'True',"msg":"upload succeed"})
else:
return jsonify({"succeed":'False',"msg":"upload failed"})
Expand Down
Binary file removed flaskfile/upload/1.jpg
Binary file not shown.
Binary file added flaskfile/upload/3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 19869ac

Please sign in to comment.