Commit a5697ea2 authored by Ivan Tyagov's avatar Ivan Tyagov

Update.

parent cbc88c45
"""
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)
......
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
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
[console_scripts]
pymodbus_server = osie_plc.modbus_server:main
bitarray
click
cython
numpy
pandas
prompt_toolkit
pyA20Lime2
pygments
pymodbus[twisted]
#!/usr/bin/env python #!/usr/bin/env python3
""" """
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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment