edgarriba jqsu1 commited on
Commit
679163e
1 Parent(s): d21e975

Update app.py (#1)

Browse files

- Update app.py (7c2dca5fdfb979130d8c601c83e3121c4130918b)


Co-authored-by: pengjq <[email protected]>

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -40,7 +40,7 @@ def simple_edge_detector(file, order, direction):
40
  return K.utils.tensor_to_image(img_out)
41
 
42
 
43
- def laplacian_edge_detector(file, kernel):
44
  x_gray = load_img(file)
45
  x_laplacian: Tensor = K.filters.laplacian(x_gray, kernel_size=kernel)
46
  img_out = 1.0 - x_laplacian.clamp(0.0, 1.0)
 
40
  return K.utils.tensor_to_image(img_out)
41
 
42
 
43
+ def laplacian_edge_detector(file, kernel=9):
44
  x_gray = load_img(file)
45
  x_laplacian: Tensor = K.filters.laplacian(x_gray, kernel_size=kernel)
46
  img_out = 1.0 - x_laplacian.clamp(0.0, 1.0)