This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import socket | |
import time | |
import struct | |
import cv2 | |
capture = cv2.VideoCapture(0) | |
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
sock.connect(('127.0.0.1', 5005)) | |
while True: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import socket | |
import cv2 | |
import numpy as np | |
import struct | |
HOST = '127.0.0.1' | |
PORT = 5005 | |
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
s.bind((HOST, PORT)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 2.8 FATAL_ERROR) | |
project(cv_plugin) | |
find_package(gazebo REQUIRED) | |
include_directories(${GAZEBO_INCLUDE_DIRS}) | |
link_directories(${GAZEBO_LIBRARY_DIRS}) | |
list(APPEND CMAKE_CXX_FLAGS "${GAZEBO_CXX_FLAGS}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cv2 | |
import numpy as np | |
from matplotlib import pyplot as plt | |
image = cv2.imread("berry.jpg") | |
image = cv2.cvtColor(image, cv2.COLOR_BGR2RGB) | |
plt.axis("off") | |
plt.imshow(image, interpolation="nearest") | |
plt.show() |
NewerOlder