Browse Source

修复部分bug

fetches/jiege0525_admin/master
songer 6 years ago
parent
commit
3b65f7b6ac
4 changed files with 10 additions and 4 deletions
  1. +7
    -1
      README.md
  2. +1
    -1
      src/main/java/com/acts/opencv/base/CardPlusController.java
  3. +1
    -1
      src/main/webapp/view/base/adaptiveBinary.jsp
  4. +1
    -1
      src/main/webapp/view/base/sharpness.jsp

+ 7
- 1
README.md View File

@@ -37,4 +37,10 @@ SpringMVC+AdminLTE 2+maven。考虑到之前demo测试,要么都是生成图

![输入图片说明](https://gitee.com/uploads/images/2018/0507/182215_42dcefbf_102358.png "屏幕截图.png")
![输入图片说明](https://gitee.com/uploads/images/2018/0507/182320_394b0221_102358.png "屏幕截图.png")
![输入图片说明](https://gitee.com/uploads/images/2018/0507/182258_b64a9246_102358.png "屏幕截图.png")
![输入图片说明](https://gitee.com/uploads/images/2018/0507/182258_b64a9246_102358.png "屏幕截图.png")

#### 支持

有疑问想进行咨询可以通过如下方式,能帮到的尽量帮大家。
邮箱 ws01986@163.com
QQ 434923959

+ 1
- 1
src/main/java/com/acts/opencv/base/CardPlusController.java View File

@@ -400,7 +400,7 @@ public class CardPlusController extends BaseController {
* 图片切块
* @param srcMat 传入水平或垂直投影的图片对象Mat
* @param proType 传入投影Mat对象的 投影方式0:垂直投影图片,竖向切割;1:水平投影图片,横向切割
* @param rowY 由于传来的是原始图片的部分切片,要计算切块的实际坐标位置需要给出切片时所在的坐标,所以需要传递横向切片的y坐标或者纵向切片的横坐标
* @param rowY 由于传来的是可能是原始图片的部分切片,要计算切块的实际坐标位置需要给出切片时所在的坐标,所以需要传递横向切片的y坐标或者纵向切片的横坐标
* 如当proType==0时,传入的是切片的垂直投影,那么切成块后能得出x坐标及块宽高度,但是实际y坐标需要加上原切片的y坐标值,所以rowXY为切片的y坐标点,
* 同理当proType==1时,rowXY应该为x坐标
* @return


+ 1
- 1
src/main/webapp/view/base/adaptiveBinary.jsp View File

@@ -9,7 +9,7 @@
<link rel="stylesheet" href="${ctxStatic}/plugins/iCheck/minimal/blue.css?t=${version}">
<script type="text/javascript">
$(function(){
var baseImageFile = "/statics/sourceimage/ada.png"
var baseImageFile = "/statics/sourceimage/card111.png"//ada.png
var newImagePath = "/statics/distimage/lena.png"
$("#oldimg").attr("src",baseUrl+baseImageFile);
//$("#newimg").attr("src",baseUrl+baseImageFile);


+ 1
- 1
src/main/webapp/view/base/sharpness.jsp View File

@@ -7,7 +7,7 @@
<link rel="stylesheet" href="${ctxStatic}/plugins/bootstrap-slider/slider.css">
<script type="text/javascript">
$(function(){
var baseImageFile = "/statics/sourceimage/ticket1.png"
var baseImageFile = "/statics/sourceimage/card111.png"//ticket1.png
var newImagePath = "/statics/distimage/lena.png"
$("#oldimg").attr("src",baseUrl+baseImageFile);
//$("#newimg").attr("src",baseUrl+baseImageFile);


Loading…
Cancel
Save