Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
osie
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
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
nexedi
osie
Commits
24a55c54
Commit
24a55c54
authored
Jun 14, 2024
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Lower default threshold.
parent
2075d848
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
oi-sensor/oi-sensor.py
oi-sensor/oi-sensor.py
+2
-2
No files found.
oi-sensor/oi-sensor.py
View file @
24a55c54
...
...
@@ -31,7 +31,7 @@ DEFAULT_US = (190, 255,)
DEFAULT_UV
=
(
190
,
255
,)
# the minimal number of pixes which we consider as a shape
# and the maximal (configurable) such
DEFAULT_AREA
=
(
10
000
,
50000
,)
DEFAULT_AREA
=
(
6
000
,
50000
,)
# command line handling
parser
=
argparse
.
ArgumentParser
(
description
=
'Run optical inspection OPC UA server.'
)
...
...
@@ -165,7 +165,7 @@ async def main():
result_stack
=
result_stack
[
-
default_occurence_number
:]
# to avoid sometimes errors in detection algorithm we change OPC UA node
# variable only if at least we have
40% (2) of last 5
items detected as this
# variable only if at least we have
2 (40%) of last 5 (100%)
items detected as this
# shape. Not complex but avoid false results.
count
=
result_stack
.
count
(
result
)
if
count
>=
2
:
...
...
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