Object Detection in Tensorflow in Real-Time Detection

Github

So in this blog post, I won’t not show a effect picture or video, because it’s like my first article and second article

I’m going to say, I’m using opencv and camera for object detection in real-time, but most of the code have implemented in previous article, so here I just write the important code for real-time detect

# import open cv 2
import cv2

# initialize a camera object
cap = cv2.VideoCapture(0)

# read image from camera 
ret,image_np = cap.read()

# show video in a window with size (960, 700)
cv2.imshow('image',cv2.resize(image_np,(960,700)))

For detailed information on above all the code and tutorials, see my Github

References

https://towardsdatascience.com/real-time-and-video-processing-object-detection-using-tensorflow-opencv-and-docker-2be1694726e5

https://towardsdatascience.com/real-time-object-detection-api-using-tensorflow-and-opencv-47b505d745c4