Marthee commited on
Commit
0fddb89
·
1 Parent(s): e7910ec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -1,5 +1,5 @@
1
  from __future__ import print_function
2
- from flask import Flask, render_template,request , json , jsonify
3
  import os
4
  import json
5
  import fitz
@@ -86,7 +86,7 @@ def update_dropdown(section):
86
  def getInfotoMeasure():
87
  # db.create_folder()
88
  mylist=[1,2,3,4]
89
- return render_template("proposed-GUI.html",mylist=mylist)
90
  #_________________________________________________________________________________________________________________________
91
  #_________________________________________________________________________________________________________________________
92
  #Hex value to RGB value
@@ -184,7 +184,7 @@ def plan2img(path):
184
 
185
  doc = fitz.open(path)
186
  page=doc[0]
187
- pix = page.get_pixmap(dpi=200) # render page to an image
188
  pl=Image.frombytes('RGB', [pix.width,pix.height],pix.samples)
189
  img=np.array(pl)
190
  print(img.shape)
 
1
  from __future__ import print_function
2
+ from flask import Flask, render_template,request,flash , json, url_for,g , redirect , jsonify
3
  import os
4
  import json
5
  import fitz
 
86
  def getInfotoMeasure():
87
  # db.create_folder()
88
  mylist=[1,2,3,4]
89
+ return render_template("proposed-GUI2.html",mylist=mylist)
90
  #_________________________________________________________________________________________________________________________
91
  #_________________________________________________________________________________________________________________________
92
  #Hex value to RGB value
 
184
 
185
  doc = fitz.open(path)
186
  page=doc[0]
187
+ pix = page.get_pixmap(dpi=300) # render page to an image
188
  pl=Image.frombytes('RGB', [pix.width,pix.height],pix.samples)
189
  img=np.array(pl)
190
  print(img.shape)