Related
Rahul: If I have polar coordinates of a line, how can I draw it on an image in OpenCV and python? LineThe function takes 2 points, but only draws line segments. I want to draw a line from one edge of an image to the other. Robert Caspary: Just count 2 points.
Rahul: If I have polar coordinates of a line, how can I draw it on an image in OpenCV and python? LineThe function takes 2 points, but only draws line segments. I want to draw a line from one edge of an image to the other. Robert Caspary: Just count 2 points.
Rahul: If I have polar coordinates of a line, how can I draw it on an image in OpenCV and python? LineThe function takes 2 points, but only draws line segments. I want to draw a line from one edge of an image to the other. Robert Caspary: Just count 2 points.
Mr Programmer As i process the image(BEFORE) then i need its outer border and draw red line in openCV android (like AFTER image), If anyone knows about it, please let me know about advanced tanks. Costantino Grana This is a classic application of cv::findConto
Mr Programmer As i process the image(BEFORE) then i need its outer border and draw red line in openCV android (like AFTER image), If anyone knows about it, please let me know about advanced tanks. Costantino Grana This is a classic application of cv::findConto
Trojan War I am trying to draw perfect lines using mouse events by clicking and dragging the mouse. The problem is that multiple lines are printed when plotting. Here is the code I've been testing. import cv2
import numpy as np
drawing = False
x1,y1 = -1,-1
soup Suppose I have an image with dimensions 40 x 39. I need to add a row to this image so that the final image will be 40 x 40 in size. and how to do it horizontally and vertically? I tried, img = cv2.imread('image.jpg')
blank_image = np.zeros((1, 40, 3), np.
muaz faz I want to draw two arrows between two points using opencv. I have a function for single arrow graph as below import cv2
img = cv2.imread('image.jpg', cv2.IMREAD_COLOR)
pt1 = (x1, y1)
pt2 = (x2, y2)
cv2.arrowedLine(img_, pt1, pt2, (0,0,255), 5)
cv2.im
muaz faz I want to draw two arrows between two points using opencv. I have a function for single arrow graph as below import cv2
img = cv2.imread('image.jpg', cv2.IMREAD_COLOR)
pt1 = (x1, y1)
pt2 = (x2, y2)
cv2.arrowedLine(img_, pt1, pt2, (0,0,255), 5)
cv2.im
muaz faz I want to draw two arrows between two points using opencv. I have a function for single arrow graph as below import cv2
img = cv2.imread('image.jpg', cv2.IMREAD_COLOR)
pt1 = (x1, y1)
pt2 = (x2, y2)
cv2.arrowedLine(img_, pt1, pt2, (0,0,255), 5)
cv2.im
muaz faz I want to draw two arrows between two points using opencv. I have a function for single arrow graph as below import cv2
img = cv2.imread('image.jpg', cv2.IMREAD_COLOR)
pt1 = (x1, y1)
pt2 = (x2, y2)
cv2.arrowedLine(img_, pt1, pt2, (0,0,255), 5)
cv2.im
muaz faz I want to draw two arrows between two points using opencv. I have a function for single arrow graph as below import cv2
img = cv2.imread('image.jpg', cv2.IMREAD_COLOR)
pt1 = (x1, y1)
pt2 = (x2, y2)
cv2.arrowedLine(img_, pt1, pt2, (0,0,255), 5)
cv2.im
Lucian Using the following code, I can remove the horizontal lines in the image. See results below. import cv2
from matplotlib import pyplot as plt
img = cv2.imread('image.png',0)
laplacian = cv2.Laplacian(img,cv2.CV_64F)
sobelx = cv2.Sobel(img,cv2.CV_64F,1,
strangeness I'm trying to separate lines and circles instead of connecting some circles with curves. I tried using the contour to find the circle, but the contour included the line, so I also tried skeletonizing the image to see if the connection between the c
Lucian Using the following code, I can remove the horizontal lines in the image. See results below. import cv2
from matplotlib import pyplot as plt
img = cv2.imread('image.png',0)
laplacian = cv2.Laplacian(img,cv2.CV_64F)
sobelx = cv2.Sobel(img,cv2.CV_64F,1,
Lucian Using the following code, I can remove the horizontal lines in the image. See results below. import cv2
from matplotlib import pyplot as plt
img = cv2.imread('image.png',0)
laplacian = cv2.Laplacian(img,cv2.CV_64F)
sobelx = cv2.Sobel(img,cv2.CV_64F,1,
strangeness I'm trying to separate lines and circles instead of connecting some circles with curves. I tried using the contour to find the circle, but the contour included the line, so I also tried skeletonizing the image to see if the connection between the c
strangeness I'm trying to separate lines and circles instead of connecting some circles with curves. I tried using the contour to find the circle, but the contour included the line, so I also tried skeletonizing the image to see if the connection between the c
Lucian Using the following code, I can remove the horizontal lines in the image. See results below. import cv2
from matplotlib import pyplot as plt
img = cv2.imread('image.png',0)
laplacian = cv2.Laplacian(img,cv2.CV_64F)
sobelx = cv2.Sobel(img,cv2.CV_64F,1,
Lucian Using the following code, I can remove the horizontal lines in the image. See results below. import cv2
from matplotlib import pyplot as plt
img = cv2.imread('image.png',0)
laplacian = cv2.Laplacian(img,cv2.CV_64F)
sobelx = cv2.Sobel(img,cv2.CV_64F,1,
strangeness I'm trying to separate lines and circles instead of connecting some circles with curves. I tried using the contour to find the circle, but the contour included the line, so I also tried skeletonizing the image to see if the connection between the c
Lucian With this code, I create some bounding boxes around the characters in the image below: import csv
import cv2
from pytesseract import pytesseract as pt
pt.run_tesseract('bb.png', 'output', lang=None, boxes=True, config="hocr")
# To read the coordinates
Lucian With this code, I create some bounding boxes around the characters in the image below: import csv
import cv2
from pytesseract import pytesseract as pt
pt.run_tesseract('bb.png', 'output', lang=None, boxes=True, config="hocr")
# To read the coordinates
Lucian With this code, I create some bounding boxes around the characters in the image below: import csv
import cv2
from pytesseract import pytesseract as pt
pt.run_tesseract('bb.png', 'output', lang=None, boxes=True, config="hocr")
# To read the coordinates
learner I am trying to draw contours around an image. I can see that contours are found, but cannot draw contours. The color of the outline appears to be one of two (black and white). import cv2
import numpy as np
import matplotlib.pyplot as plt
from skimage i
learner I am trying to draw contours around an image. I can see that contours are found, but cannot draw contours. The color of the outline appears to be one of two (black and white). import cv2
import numpy as np
import matplotlib.pyplot as plt
from skimage i
learner I am trying to draw contours around an image. I can see that contours are found, but cannot draw contours. The color of the outline appears to be one of two (black and white). import cv2
import numpy as np
import matplotlib.pyplot as plt
from skimage i
learner I am trying to draw contours around an image. I can see that contours are found, but cannot draw contours. The color of the outline appears to be one of two (black and white). import cv2
import numpy as np
import matplotlib.pyplot as plt
from skimage i
Majid Azimi After searching online, I can't find a way to draw the bounding box in this figure using OpenCV in Python . It has two features, the first four corners are not connected to each other, and the second feature is a transparent bounding box. I know I