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
0
Merge Requests
0
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
Martin Manchev
osie
Commits
a5697ea2
Commit
a5697ea2
authored
Oct 05, 2020
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update.
parent
cbc88c45
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
40 additions
and
5 deletions
+40
-5
eggs/osie_plc/osie_ocr.py
eggs/osie_plc/osie_ocr.py
+7
-3
eggs/osie_plc/osie_plc.egg-info/PKG-INFO
eggs/osie_plc/osie_plc.egg-info/PKG-INFO
+10
-0
eggs/osie_plc/osie_plc.egg-info/SOURCES.txt
eggs/osie_plc/osie_plc.egg-info/SOURCES.txt
+7
-0
eggs/osie_plc/osie_plc.egg-info/dependency_links.txt
eggs/osie_plc/osie_plc.egg-info/dependency_links.txt
+1
-0
eggs/osie_plc/osie_plc.egg-info/entry_points.txt
eggs/osie_plc/osie_plc.egg-info/entry_points.txt
+3
-0
eggs/osie_plc/osie_plc.egg-info/requires.txt
eggs/osie_plc/osie_plc.egg-info/requires.txt
+9
-0
eggs/osie_plc/osie_plc.egg-info/top_level.txt
eggs/osie_plc/osie_plc.egg-info/top_level.txt
+1
-0
eggs/osie_plc/osie_plc.py
eggs/osie_plc/osie_plc.py
+2
-2
No files found.
eggs/osie_plc/osie_ocr.py
100644 → 100755
View file @
a5697ea2
"""
Implement a basic OCR app that can find countour sin image and
based on number of countours control a modbus server remotely.
"""
import
cv2
import
cv2
import
numpy
as
np
import
numpy
as
np
import
pymodbus
def
nothing
(
x
):
def
nothing
(
x
):
# any operation
# any operation
pass
pass
cap
=
cv2
.
VideoCapture
(
1
)
cap
=
cv2
.
VideoCapture
(
1
)
cv2
.
namedWindow
(
"Trackbars"
)
cv2
.
namedWindow
(
"Trackbars"
)
...
@@ -61,7 +66,6 @@ while True:
...
@@ -61,7 +66,6 @@ while True:
elif
10
<
len
(
approx
)
<
20
:
elif
10
<
len
(
approx
)
<
20
:
cv2
.
putText
(
frame
,
"Circle"
,
(
x
,
y
),
font
,
1
,
(
0
,
0
,
0
))
cv2
.
putText
(
frame
,
"Circle"
,
(
x
,
y
),
font
,
1
,
(
0
,
0
,
0
))
cv2
.
imshow
(
"Frame"
,
frame
)
cv2
.
imshow
(
"Frame"
,
frame
)
cv2
.
imshow
(
"Mask"
,
mask
)
cv2
.
imshow
(
"Mask"
,
mask
)
...
...
eggs/osie_plc/osie_plc.egg-info/PKG-INFO
0 → 100644
View file @
a5697ea2
Metadata-Version: 1.0
Name: osie-plc
Version: 0.1
Summary: UNKNOWN
Home-page: UNKNOWN
Author: UNKNOWN
Author-email: UNKNOWN
License: UNKNOWN
Description: UNKNOWN
Platform: UNKNOWN
eggs/osie_plc/osie_plc.egg-info/SOURCES.txt
0 → 100644
View file @
a5697ea2
setup.py
osie_plc.egg-info/PKG-INFO
osie_plc.egg-info/SOURCES.txt
osie_plc.egg-info/dependency_links.txt
osie_plc.egg-info/entry_points.txt
osie_plc.egg-info/requires.txt
osie_plc.egg-info/top_level.txt
\ No newline at end of file
eggs/osie_plc/osie_plc.egg-info/dependency_links.txt
0 → 100644
View file @
a5697ea2
eggs/osie_plc/osie_plc.egg-info/entry_points.txt
0 → 100644
View file @
a5697ea2
[console_scripts]
pymodbus_server = osie_plc.modbus_server:main
eggs/osie_plc/osie_plc.egg-info/requires.txt
0 → 100644
View file @
a5697ea2
bitarray
click
cython
numpy
pandas
prompt_toolkit
pyA20Lime2
pygments
pymodbus[twisted]
eggs/osie_plc/osie_plc.egg-info/top_level.txt
0 → 100644
View file @
a5697ea2
eggs/osie_plc/osie_plc.py
100644 → 100755
View file @
a5697ea2
#!/usr/bin/env python
#!/usr/bin/env python
3
"""
"""
Modbus implementation for Lime2 -> MOD-IO which controls relays.
Modbus
server
implementation for Lime2 -> MOD-IO which controls relays.
root@a20:~/osie/examples/modbus# pymodbus.console tcp --host localhost --port 502
root@a20:~/osie/examples/modbus# pymodbus.console tcp --host localhost --port 502
...
...
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