Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SimpleHTR
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Fabian Mersch
SimpleHTR
Commits
a5e6d89c
Commit
a5e6d89c
authored
1 year ago
by
fabian
Browse files
Options
Downloads
Patches
Plain Diff
able to get all student infos
parent
8eeba10a
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/preprocessor.py
+1
-1
1 addition, 1 deletion
src/preprocessor.py
src/webserver.py
+3
-3
3 additions, 3 deletions
src/webserver.py
with
4 additions
and
4 deletions
src/preprocessor.py
+
1
−
1
View file @
a5e6d89c
...
...
@@ -143,7 +143,7 @@ class Preprocessor:
#cut out first horizontal line if it is white
img
=
255
-
img
try
:
while
np
.
sum
(
img
[
0
,:])
<
4096
:
while
np
.
sum
(
img
[
0
,:])
<
2048
:
img
=
img
[
1
:,:]
except
:
return
np
.
ones
((
ht
,
ht
))
...
...
This diff is collapsed.
Click to expand it.
src/webserver.py
+
3
−
3
View file @
a5e6d89c
...
...
@@ -146,7 +146,7 @@ def split_Student_Names():
vorname_file
=
open
(
'
../data/Vorname.txt
'
,
'
w
'
)
nachname_file
=
open
(
'
../data/Nachname.txt
'
,
'
w
'
)
matrikelnummer_file
=
open
(
'
../data/Matrikelnummer.txt
'
,
'
w
'
)
numb
er
s
=
[]
teilnehm
er
=
[]
with
open
(
csv_path
,
'
r
'
)
as
csv_file
:
lines
=
csv_file
.
readlines
()
for
line
in
lines
[
1
:]:
...
...
@@ -160,8 +160,8 @@ def split_Student_Names():
vorname_file
.
write
(
vorname
+
"
"
)
nachname_file
.
write
(
nachname
+
"
"
)
matrikelnummer_file
.
write
(
matrikelnummer
+
"
"
)
numb
er
s
.
append
(
matrikelnummer
)
return
numb
er
s
teilnehm
er
.
append
(
[
vorname
,
nachname
,
matrikelnummer
]
)
return
teilnehm
er
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment