Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
quality_check_gui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Wallenfang, Nils
quality_check_gui
Commits
cd51c170
Commit
cd51c170
authored
Jun 04, 2020
by
Wallenfang, Nils
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix typo
parent
4af601b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
generate_preview.py
generate_preview.py
+1
-1
No files found.
generate_preview.py
View file @
cd51c170
...
...
@@ -139,7 +139,7 @@ def insert_labels(preview, xdim, ydim):
avgColor
=
np
.
mean
(
preview
[
x
*
res_x
:
x
*
res_x
+
20
,
y
*
res_y
:
y
*
res_y
+
20
])
print
(
avgColor
,
(
0
if
avgColor
>
1000
else
255
))
# draw.text((y * res_y, x * res_x), f"{x:02d}_{y:02d}", fill=(255 if avgColor > 1000 else 0))
draw
.
text
((
y
*
res_y
,
x
*
res_x
),
f
"
{
xdim
-
x
-
1
:
02
d
}
_
{
ydim
-
y
-
1
git
:
02
d
}
"
,
(
255
if
avgColor
>
1000
else
0
))
draw
.
text
((
y
*
res_y
,
x
*
res_x
),
f
"
{
xdim
-
x
-
1
:
02
d
}
_
{
ydim
-
y
-
1
:
02
d
}
"
,
(
255
if
avgColor
>
1000
else
0
))
return
np
.
asarray
(
img
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment