Skip to content

Commit 2c3fdf0

Browse files
committed
Initial commit
1 parent 86cb254 commit 2c3fdf0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+5357
-0
lines changed

.gitignore

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
plates.exe
2+
*.app
3+
obj
4+
*.pro.user*
5+
*~
6+
*.autosave
7+
*.a
8+
*.core
9+
*.moc
10+
*.o
11+
*.obj
12+
*.orig
13+
*.rej
14+
*_pch.h.cpp
15+
*_resource.rc
16+
*.qm
17+
.#*
18+
*.*#
19+
core
20+
!core/
21+
tags
22+
.DS_Store
23+
.directory
24+
*.debug
25+
Makefile*
26+
*.prl
27+
*.app
28+
moc_*.cpp
29+
ui_*.h
30+
qrc_*.cpp
31+
Thumbs.db
32+
*.res
33+
/.qmake.cache
34+
/.qmake.stash
35+
build/

CMakeLists.txt

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
cmake_minimum_required(VERSION 2.8.11)
2+
3+
project(openalpr_tagger)
4+
5+
SET(VERSION_MAJOR 1)
6+
SET(VERSION_MINOR 0)
7+
SET(VERSION_PATCH 0)
8+
9+
SET (VERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}")
10+
add_definitions(-DVERSION_MAJOR=${VERSION_MAJOR})
11+
add_definitions(-DVERSION_MINOR=${VERSION_MINOR})
12+
add_definitions(-DVERSION_PATCH=${VERSION_PATCH})
13+
add_definitions(-DVERSION_STRING="${VERSION}")
14+
15+
16+
add_definitions(-DTARGET="openalpr_tagger")
17+
add_definitions(-DTARGET_STRING="openalpr_tagger")
18+
add_definitions(-DTARGET_UPPER_STRING="OPENALPR_TAGGER")
19+
add_definitions(-DTARGET_HUMAN_STRING="openalpr_tagger")
20+
21+
ADD_DEFINITIONS(
22+
-std=c++11
23+
)
24+
25+
26+
# Find the QtWidgets library
27+
find_package(Qt5Widgets)
28+
29+
set(CMAKE_AUTOMOC ON)
30+
set(CMAKE_AUTOUIC ON)
31+
set(CMAKE_INCLUDE_CURRENT_DIR ON)
32+
33+
# Tell CMake to create the helloworld executable
34+
add_executable(openalpr_tagger
35+
about.cpp
36+
directoryloader.cpp
37+
dot.cpp
38+
imagefile.cpp
39+
imageview.cpp
40+
imageviewerbase.cpp
41+
imageviewerobserver.cpp
42+
imageviewerplateselector.cpp
43+
main.cpp
44+
mainwindow.cpp
45+
options.cpp
46+
platefile.cpp
47+
plateselector.cpp
48+
polygons.cpp
49+
selection.cpp
50+
settings.cpp
51+
squeezedlabel.cpp
52+
threadedimageloader.cpp
53+
utils.cpp
54+
qprogressindicator/QProgressIndicator.cpp
55+
)
56+
57+
include_directories(${CMAKE_SOURCE_DIR}/qprogressindicator)
58+
# Use the Widgets module from Qt 5.
59+
target_link_libraries(openalpr_tagger Qt5::Widgets)

Info.plist

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>NSPrincipalClass</key>
6+
<string>NSApplication</string>
7+
<key>NSHumanReadableCopyright</key>
8+
<string>(C) 2017, Dmitry Baryshev</string>
9+
<key>CFBundleDevelopmentRegion</key>
10+
<string>en</string>
11+
<key>CFBundleInfoDictionaryVersion</key>
12+
<string>6.0</string>
13+
<key>CFBundleIconFile</key>
14+
<string>plates.icns</string>
15+
<key>CFBundlePackageType</key>
16+
<string>APPL</string>
17+
<key>CFBundleGetInfoString</key>
18+
<string>OpenALPR Training Utility</string>
19+
<key>CFBundleSignature</key>
20+
<string>????</string>
21+
<key>CFBundleExecutable</key>
22+
<string>plates</string>
23+
<key>CFBundleIdentifier</key>
24+
<string>net.plates</string>
25+
<key>CFBundleName</key>
26+
<string>OpenALPR Training Utility</string>
27+
<key>CFBundleDisplayName</key>
28+
<string>OpenALPR Training Utility</string>
29+
<key>CFBundleShortVersionString</key>
30+
<string>1.0.0</string>
31+
<key>CFBundleVersion</key>
32+
<string>1.0.0</string>
33+
</dict>
34+
</plist>

about.cpp

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#include <QtGui>
2+
3+
#include "about.h"
4+
#include "ui_about.h"
5+
6+
About::About(QWidget *parent)
7+
: QDialog(parent)
8+
, ui(new Ui::About)
9+
{
10+
ui->setupUi(this);
11+
12+
ui->labelProduct->setText(TARGET_HUMAN_STRING);
13+
ui->labelVersion->setText(tr("Version %1").arg(VERSION_STRING));
14+
ui->labelIcon->setPixmap(QIcon(":/images/" TARGET_STRING ".ico").pixmap(48, 48));
15+
16+
// %1 will be replaced with a product name
17+
ui->labelWarranty->setText(tr("%1 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.")
18+
.arg(TARGET_HUMAN_STRING));
19+
20+
#ifdef Q_OS_MAC
21+
ui->pushOK->hide();
22+
#else
23+
setWindowTitle(tr("About"));
24+
#endif
25+
26+
adjustSize();
27+
}
28+
29+
About::~About()
30+
{
31+
delete ui;
32+
}

about.h

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#ifndef ABOUT_H
2+
#define ABOUT_H
3+
4+
#include <QDialog>
5+
6+
namespace Ui
7+
{
8+
class About;
9+
}
10+
11+
class About : public QDialog
12+
{
13+
Q_OBJECT
14+
15+
public:
16+
explicit About(QWidget *parent = 0);
17+
~About();
18+
19+
private:
20+
Ui::About *ui;
21+
};
22+
23+
#endif // ABOUT_H

about.ui

Lines changed: 193 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,193 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<ui version="4.0">
3+
<class>About</class>
4+
<widget class="QDialog" name="About">
5+
<property name="geometry">
6+
<rect>
7+
<x>0</x>
8+
<y>0</y>
9+
<width>280</width>
10+
<height>124</height>
11+
</rect>
12+
</property>
13+
<layout class="QGridLayout" name="gridLayout">
14+
<item row="3" column="0" colspan="5">
15+
<layout class="QHBoxLayout" name="horizontalLayout">
16+
<item>
17+
<spacer name="horizontalSpacer">
18+
<property name="orientation">
19+
<enum>Qt::Horizontal</enum>
20+
</property>
21+
<property name="sizeHint" stdset="0">
22+
<size>
23+
<width>0</width>
24+
<height>20</height>
25+
</size>
26+
</property>
27+
</spacer>
28+
</item>
29+
<item>
30+
<widget class="QPushButton" name="pushOK">
31+
<property name="text">
32+
<string>OK</string>
33+
</property>
34+
<property name="default">
35+
<bool>true</bool>
36+
</property>
37+
</widget>
38+
</item>
39+
</layout>
40+
</item>
41+
<item row="0" column="0">
42+
<spacer name="horizontalSpacer_4">
43+
<property name="orientation">
44+
<enum>Qt::Horizontal</enum>
45+
</property>
46+
<property name="sizeHint" stdset="0">
47+
<size>
48+
<width>0</width>
49+
<height>20</height>
50+
</size>
51+
</property>
52+
</spacer>
53+
</item>
54+
<item row="0" column="2">
55+
<spacer name="horizontalSpacer_2">
56+
<property name="orientation">
57+
<enum>Qt::Horizontal</enum>
58+
</property>
59+
<property name="sizeHint" stdset="0">
60+
<size>
61+
<width>0</width>
62+
<height>20</height>
63+
</size>
64+
</property>
65+
</spacer>
66+
</item>
67+
<item row="2" column="0" colspan="5">
68+
<widget class="QLabel" name="labelWarranty">
69+
<property name="text">
70+
<string/>
71+
</property>
72+
<property name="alignment">
73+
<set>Qt::AlignJustify|Qt::AlignVCenter</set>
74+
</property>
75+
<property name="wordWrap">
76+
<bool>true</bool>
77+
</property>
78+
</widget>
79+
</item>
80+
<item row="0" column="1">
81+
<layout class="QVBoxLayout" name="verticalLayout_2">
82+
<item>
83+
<widget class="QLabel" name="labelIcon"/>
84+
</item>
85+
<item>
86+
<spacer name="verticalSpacer">
87+
<property name="orientation">
88+
<enum>Qt::Vertical</enum>
89+
</property>
90+
<property name="sizeHint" stdset="0">
91+
<size>
92+
<width>20</width>
93+
<height>0</height>
94+
</size>
95+
</property>
96+
</spacer>
97+
</item>
98+
</layout>
99+
</item>
100+
<item row="0" column="4">
101+
<spacer name="horizontalSpacer_5">
102+
<property name="orientation">
103+
<enum>Qt::Horizontal</enum>
104+
</property>
105+
<property name="sizeHint" stdset="0">
106+
<size>
107+
<width>0</width>
108+
<height>20</height>
109+
</size>
110+
</property>
111+
</spacer>
112+
</item>
113+
<item row="0" column="3">
114+
<layout class="QVBoxLayout" name="verticalLayout">
115+
<property name="spacing">
116+
<number>8</number>
117+
</property>
118+
<item>
119+
<widget class="QLabel" name="labelProduct">
120+
<property name="font">
121+
<font>
122+
<weight>75</weight>
123+
<bold>true</bold>
124+
</font>
125+
</property>
126+
<property name="alignment">
127+
<set>Qt::AlignCenter</set>
128+
</property>
129+
</widget>
130+
</item>
131+
<item>
132+
<widget class="QLabel" name="labelVersion">
133+
<property name="alignment">
134+
<set>Qt::AlignCenter</set>
135+
</property>
136+
</widget>
137+
</item>
138+
<item>
139+
<spacer name="verticalSpacer_2">
140+
<property name="orientation">
141+
<enum>Qt::Vertical</enum>
142+
</property>
143+
<property name="sizeHint" stdset="0">
144+
<size>
145+
<width>20</width>
146+
<height>0</height>
147+
</size>
148+
</property>
149+
</spacer>
150+
</item>
151+
</layout>
152+
</item>
153+
<item row="1" column="0">
154+
<spacer name="verticalSpacer_3">
155+
<property name="orientation">
156+
<enum>Qt::Vertical</enum>
157+
</property>
158+
<property name="sizeType">
159+
<enum>QSizePolicy::Fixed</enum>
160+
</property>
161+
<property name="sizeHint" stdset="0">
162+
<size>
163+
<width>20</width>
164+
<height>6</height>
165+
</size>
166+
</property>
167+
</spacer>
168+
</item>
169+
</layout>
170+
</widget>
171+
<resources/>
172+
<connections>
173+
<connection>
174+
<sender>pushOK</sender>
175+
<signal>clicked()</signal>
176+
<receiver>About</receiver>
177+
<slot>accept()</slot>
178+
<hints>
179+
<hint type="sourcelabel">
180+
<x>175</x>
181+
<y>131</y>
182+
</hint>
183+
<hint type="destinationlabel">
184+
<x>423</x>
185+
<y>230</y>
186+
</hint>
187+
</hints>
188+
</connection>
189+
</connections>
190+
<slots>
191+
<slot>slotShowIPs()</slot>
192+
</slots>
193+
</ui>

debian/changelog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
plates (1.0.0-1) unstable; urgency=medium
2+
3+
* Initial release.
4+
5+
-- Dmitry Baryshev <[email protected]> Fri, 07 Apr 2017 14:51:50 +0300

debian/compat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
9

0 commit comments

Comments
 (0)