JohnChiu commited on
Commit
3c6dc95
·
1 Parent(s): 7f3fe49

Add application file

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -3,6 +3,7 @@ import numpy as np
3
  import plotly.graph_objs as go
4
  from scipy.ndimage import convolve
5
  from gradio_imageslider import ImageSlider
 
6
 
7
 
8
  def load_bin(file):
@@ -113,10 +114,10 @@ with gr.Blocks() as demo:
113
 
114
  file_input = gr.File(label="上传 .raw/.bin 文件", file_types=[".raw", ".bin"])
115
  image_display = gr.Image(interactive=True, label="点击像素显示强度曲线")
116
-
117
  depth_image_slider = ImageSlider(label="Filter Depth Map with Slider View", elem_id='img-display-output', position=0.5)
118
 
119
- histogram = gr.Plot(label="像素强度曲线")
120
  raw_hist = gr.State()
121
  nor_hist = gr.State()
122
 
 
3
  import plotly.graph_objs as go
4
  from scipy.ndimage import convolve
5
  from gradio_imageslider import ImageSlider
6
+ import cv2
7
 
8
 
9
  def load_bin(file):
 
114
 
115
  file_input = gr.File(label="上传 .raw/.bin 文件", file_types=[".raw", ".bin"])
116
  image_display = gr.Image(interactive=True, label="点击像素显示强度曲线")
117
+ histogram = gr.Plot(label="像素强度曲线")
118
  depth_image_slider = ImageSlider(label="Filter Depth Map with Slider View", elem_id='img-display-output', position=0.5)
119
 
120
+
121
  raw_hist = gr.State()
122
  nor_hist = gr.State()
123