-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpom.xml
More file actions
235 lines (222 loc) · 9.74 KB
/
pom.xml
File metadata and controls
235 lines (222 loc) · 9.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<!--
ALPR (Automatic License Plate Recognition) System
Academic Project - Monolithic Console Application
-->
<groupId>com.alpr</groupId>
<artifactId>license-plate-recognition</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<name>Automatic License Plate Recognition System</name>
<description>
An academic project demonstrating license plate detection and OCR
using OpenCV for image processing and Tesseract for text recognition.
</description>
<properties>
<!-- Java Version Configuration -->
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<!-- Dependency Versions -->
<opencv.version>4.9.0-0</opencv.version>
<tess4j.version>5.11.0</tess4j.version>
<slf4j.version>2.0.9</slf4j.version>
<logback.version>1.4.14</logback.version>
</properties>
<dependencies>
<!--
OpenCV Java Bindings (org.openpnp)
- Provides computer vision capabilities for image processing
- Used for license plate detection, edge detection, contour analysis
- The openpnp variant includes native libraries for all platforms
-->
<dependency>
<groupId>org.openpnp</groupId>
<artifactId>opencv</artifactId>
<version>${opencv.version}</version>
</dependency>
<!--
Tess4J - Tesseract OCR Wrapper for Java
- Provides Optical Character Recognition capabilities
- Used to extract text (license plate numbers) from detected plate regions
- Wraps the native Tesseract OCR engine
-->
<dependency>
<groupId>net.sourceforge.tess4j</groupId>
<artifactId>tess4j</artifactId>
<version>${tess4j.version}</version>
</dependency>
<!--
SLF4J API - Simple Logging Facade for Java
- Provides a simple facade for various logging frameworks
- Required by Tess4J for logging operations
-->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${slf4j.version}</version>
</dependency>
<!--
Logback Classic - Logging Implementation
- Native implementation of SLF4J
- Provides actual logging functionality at runtime
-->
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>${logback.version}</version>
</dependency>
</dependencies>
<build>
<plugins>
<!--
Maven Compiler Plugin
- Ensures Java 17 compilation with proper encoding
-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.11.0</version>
<configuration>
<source>17</source>
<target>17</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<!--
Maven JAR Plugin
- Configures the main class for executable JAR
-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.3.0</version>
<configuration>
<archive>
<manifest>
<mainClass>com.alpr.Main</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
<!--
Maven Shade Plugin
- Creates an uber-jar with all dependencies included
- Makes the application easily distributable
-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.5.1</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>com.alpr.Main</mainClass>
</transformer>
</transformers>
</configuration>
</execution>
</executions>
</plugin>
<!--
Maven Exec Plugin
- Allows running the application directly
-->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>3.1.0</version>
<configuration>
<mainClass>com.alpr.Main</mainClass>
</configuration>
</plugin>
<!--
Launch4j Maven Plugin
- Creates Windows executable (.exe) from JAR
- Bundles JRE or uses system Java
-->
<plugin>
<groupId>com.akathist.maven.plugins.launch4j</groupId>
<artifactId>launch4j-maven-plugin</artifactId>
<version>2.5.0</version>
<executions>
<!-- CLI Executable -->
<execution>
<id>create-cli-exe</id>
<phase>package</phase>
<goals>
<goal>launch4j</goal>
</goals>
<configuration>
<headerType>console</headerType>
<jar>${project.build.directory}/${project.artifactId}-${project.version}.jar</jar>
<outfile>${project.build.directory}/alpr-cli.exe</outfile>
<classPath>
<mainClass>com.alpr.Main</mainClass>
</classPath>
<icon>icon.ico</icon>
<jre>
<path>%JAVA_HOME%</path>
<minVersion>17</minVersion>
</jre>
<versionInfo>
<fileVersion>1.0.0.0</fileVersion>
<txtFileVersion>1.0.0</txtFileVersion>
<fileDescription>ALPR - License Plate Recognition CLI</fileDescription>
<copyright>GPL-3.0</copyright>
<productVersion>1.0.0.0</productVersion>
<txtProductVersion>1.0.0</txtProductVersion>
<productName>ALPR Tuning Tool</productName>
<internalName>alpr-cli</internalName>
<originalFilename>alpr-cli.exe</originalFilename>
</versionInfo>
</configuration>
</execution>
<!-- GUI Executable -->
<execution>
<id>create-gui-exe</id>
<phase>package</phase>
<goals>
<goal>launch4j</goal>
</goals>
<configuration>
<headerType>gui</headerType>
<jar>${project.build.directory}/${project.artifactId}-${project.version}.jar</jar>
<outfile>${project.build.directory}/alpr-gui.exe</outfile>
<classPath>
<mainClass>com.alpr.TuningGUI</mainClass>
</classPath>
<icon>icon.ico</icon>
<jre>
<path>%JAVA_HOME%</path>
<minVersion>17</minVersion>
</jre>
<versionInfo>
<fileVersion>1.0.0.0</fileVersion>
<txtFileVersion>1.0.0</txtFileVersion>
<fileDescription>ALPR - License Plate Recognition GUI</fileDescription>
<copyright>GPL-3.0</copyright>
<productVersion>1.0.0.0</productVersion>
<txtProductVersion>1.0.0</txtProductVersion>
<productName>ALPR Tuning Tool</productName>
<internalName>alpr-gui</internalName>
<originalFilename>alpr-gui.exe</originalFilename>
</versionInfo>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>