Category : performance

I have a point in 3D p = [0,1,0] and a list of line segments defined by their starting and ending co-ordinates. line_starts = [[1,1,1], [2,2,2], [3,3,3]] line_ends = [[5,1,3], [3,2,1], [3, 1, 1]] I tried adapting the first two algorithms detailed over here in this post: Find the shortest distance between a point and ..

Read more

I have written a code which is detecting contours of specific objects and draws contours around this objects by using a ultrawide webcam. import cv2 from time import sleep import numpy as np while True: success1, frame = capture.read() gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY) ret, binary = cv2.threshold(gray, 100, 255, cv2.THRESH_OTSU) sleep(0.05) if success1: #mask = ..

Read more