First of all install update and upgrade your system:
$ sudo apt update
$ sudo apt upgrade
Then, install required libraries:
# Code adapted from Tensorflow Object Detection Framework | |
# https://github.com/tensorflow/models/blob/master/research/object_detection/object_detection_tutorial.ipynb | |
# Tensorflow Object Detection Detector | |
import numpy as np | |
import tensorflow as tf | |
import cv2 | |
import time | |
using System; | |
using System.Net; | |
using System.Net.Sockets; | |
using System.Text; | |
namespace UDP | |
{ | |
public class UDPSocket | |
{ | |
private Socket _socket = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp); |
PASCAL_CLASSES = [ | |
'none', | |
'aeroplane', | |
'bicycle', | |
'bird', | |
'boat', | |
'bottle', | |
'bus', | |
'car', | |
'cat', |