GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — optimus code · ljd2000/EasyPR-Java@102547f

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src/org/easypr
    • core
      • PlateLocate.java
      • PlateRecognize.java
      • SVMCallback.java
    • util
      • Util.java
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/org/easypr/core/PlateLocate.java‎

Copy file name to clipboardExpand all lines: src/org/easypr/core/PlateLocate.java
+7-5Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@
66
import static org.bytedeco.javacpp.opencv_highgui.*;
77
import static org.bytedeco.javacpp.opencv_imgproc.*;
88

9-
/**
10-
* Created by fanwenjie on 15/3/16.
9+
/*
10+
* Created by fanwenjie
11+
* @version 1.1
1112
*/
13+
1214
public class PlateLocate {
1315

1416
public PlateLocate()
@@ -69,8 +71,8 @@ public boolean verifySizes(RotatedRect mr)
6971
float rmax= aspect+aspect*error;
7072

7173
int area= (int)(mr.size().height() * mr.size().width());
72-
float r = (float)mr.size().width() / (float)mr.size().height();
73-
if(r < 1) r= (float)mr.size().height() / (float)mr.size().width();
74+
float r = mr.size().width() / mr.size().height();
75+
if(r < 1) r= mr.size().height() / mr.size().width();
7476
return area >= min && area <= max && r >= rmin && r <= rmax;
7577
}
7678

@@ -230,7 +232,7 @@ public int plateLocate(Mat src, MatVector resultVec)
230232
line( result, rect_points[j], rect_points[(j+1)%4], new Scalar(0,255,255,255), 1, 8 ,0);
231233
}*/
232234

233-
float r = (float)minRect.size().width() / (float)minRect.size().height();
235+
float r = minRect.size().width() / minRect.size().height();
234236
float angle = minRect.angle();
235237
Size rect_size = new Size((int)minRect.size().width(),(int)minRect.size().height());
236238
if (r < 1)
Collapse file

‎src/org/easypr/core/PlateRecognize.java‎

Copy file name to clipboardExpand all lines: src/org/easypr/core/PlateRecognize.java
+4-2Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@
44

55
import java.util.Vector;
66

7-
/**
8-
* Created by Anonymous on 2015-03-17.
7+
/*
8+
* Created by fanwenjie
9+
* @version 1.1
910
*/
11+
1012
public class PlateRecognize {
1113

1214
public int plateRecognize(Mat src, Vector<String> licenseVec) {
Collapse file

‎src/org/easypr/core/SVMCallback.java‎

Copy file name to clipboardExpand all lines: src/org/easypr/core/SVMCallback.java
+4-2Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22

33
import org.bytedeco.javacpp.opencv_core.Mat;
44

5-
/**
6-
* Created by Anonymous on 2015-03-17.
5+
/*
6+
* Created by fanwenjie
7+
* @version 1.1
78
*/
9+
810
public interface SVMCallback {
911

1012
/***
Collapse file

‎src/org/easypr/util/Util.java‎

Copy file name to clipboardExpand all lines: src/org/easypr/util/Util.java
+4-2Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33
import java.io.File;
44
import java.util.Vector;
55

6-
/**
7-
* Created by Anonymous on 2015-03-17.
6+
/*
7+
* Created by fanwenjie
8+
* @version 1.1
89
*/
10+
911
public class Util {
1012

1113
public static void getFiles(File dir,Vector<String> files){

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.