Related
coffeewin: I have an image of this statue. I'm trying to find the topmost, bottommost, leftmost and rightmost points on a statue. Is there a way to measure the edge of each side to determine the outermost point on the statue? I want to get the (x,y)coordinates
O.rka: I am trying to draw contour( ) linestyle=":"on the networkxedge . I can't seem to figure out how to do this with matplotlib patchobjects ? Does anyone now how to manipulate these patchobjects to draw contours on these "edges"? If this is not possible, d
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.
Retric Here is what I get: draw.line([(x1,y1),(x2,y2)],fill = (255, 255, 255))
The result is a white line, but I want a transparent line, what should I do? Kay Patel As far as I know, the line function takes RGB or RGBA values. try: draw.line([(x1,y1),(x2,y2)
smoked The program reads the image located at C:/Square.png and draws lines on it. Also defines the plot title. I want to display the whole image in a tkinter window. what should I do? Here is the image. The name has to be changed and we can run the code. http
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.
KhoaLearnToCode I'm having a problem here when trying to draw multiple lines on an image. So, here is my code: fig=plt.figure()
final = cv2.imread('frame9.jpg')
for p in polar:
plt.plot([0,1],[p[0],p[0]],c='red')
plt.imshow(final,cmap=plt.cm.gray)
plt.show
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
user 300058 I'm having a problem with this: I can't draw a line on an image with a certain color, nor can I find out the distance to the place. Help make it look like the image below: my code: import cv2
import numpy as np
from PIL import ImageGrab
whil
Retric Here is what I get: draw.line([(x1,y1),(x2,y2)],fill = (255, 255, 255))
The result is a white line, but I want a transparent line, what should I do? Kay Patel As far as I know, the line function takes RGB or RGBA values. try: draw.line([(x1,y1),(x2,y2)
Retric Here is what I get: draw.line([(x1,y1),(x2,y2)],fill = (255, 255, 255))
The result is a white line, but I want a transparent line, what should I do? Kay Patel As far as I know, the line function takes RGB or RGBA values. try: draw.line([(x1,y1),(x2,y2)
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
Retric Here is what I get: draw.line([(x1,y1),(x2,y2)],fill = (255, 255, 255))
The result is a white line, but I want a transparent line, what should I do? Kay Patel As far as I know, the line function takes RGB or RGBA values. try: draw.line([(x1,y1),(x2,y2)
Nasim I have color image and should use opencv LineSegmentDetector algorithm to detect lines of rectangles in image this is my picture: I am using this code: import cv2
img = cv2.imread("rectangles.jpg",0)
#Create default parametrization LSD
lsd = cv2.createL
Open V I have a set of tuples: a = [(375, 193)
(364, 113)
(277, 20)
(271, 16)
(52, 106)
(133, 266)
(289, 296)
(372, 282)]
How to draw lines between points in OpenCV? Here is my code that doesn't work: for index, item in enumerate(a):
print (item[index])
smoked The program reads the image located at C:/Square.png and draws lines on it. Also defines the plot title. I want to display the whole image in a tkinter window. what should I do? Here is the image. The name has to be changed and we can run the code. http
KhoaLearnToCode I'm having a problem here when trying to draw multiple lines on an image. So, here is my code: fig=plt.figure()
final = cv2.imread('frame9.jpg')
for p in polar:
plt.plot([0,1],[p[0],p[0]],c='red')
plt.imshow(final,cmap=plt.cm.gray)
plt.show
McMad I am using OpenCV camera preview. I want to draw a rectangle on live preview. I've tried to override the ondraw method but I can't see a line. please help. package com.example.easymeasure;
import org.opencv.android.JavaCameraView;
import android.conten
stack I'm trying to draw a rectangle that is basically a circle, with a square on one end. Kind of like a battery. I have some limitations, basically this can only be done with a single paint object and should be able to support strokes. Here is my code so far
coffeewin: I have an image of this statue. I'm trying to find the topmost, bottommost, leftmost and rightmost points on a statue. Is there a way to measure the edge of each side to determine the outermost point on the statue? I want to get the (x,y)coordinates
O.rka: I am trying to draw contour( ) linestyle=":"on the networkxedge . I can't seem to figure out how to do this with matplotlib patchobjects ? Does anyone now how to manipulate these patchobjects to draw contours on these "edges"? If this is not possible, d
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.
KhoaLearnToCode I'm having a problem here when trying to draw multiple lines on an image. So, here is my code: fig=plt.figure()
final = cv2.imread('frame9.jpg')
for p in polar:
plt.plot([0,1],[p[0],p[0]],c='red')
plt.imshow(final,cmap=plt.cm.gray)
plt.show
smoked The program reads the image located at C:/Square.png and draws lines on it. Also defines the plot title. I want to display the whole image in a tkinter window. what should I do? Here is the image. The name has to be changed and we can run the code. http
Retric Here is what I get: draw.line([(x1,y1),(x2,y2)],fill = (255, 255, 255))
The result is a white line, but I want a transparent line, what should I do? Kay Patel As far as I know, the line function takes RGB or RGBA values. try: draw.line([(x1,y1),(x2,y2)
Retric Here is what I get: draw.line([(x1,y1),(x2,y2)],fill = (255, 255, 255))
The result is a white line, but I want a transparent line, what should I do? Kay Patel As far as I know, the line function takes RGB or RGBA values. try: draw.line([(x1,y1),(x2,y2)
Nasim I have color image and should use opencv LineSegmentDetector algorithm to detect lines of rectangles in image this is my picture: I am using this code: import cv2
img = cv2.imread("rectangles.jpg",0)
#Create default parametrization LSD
lsd = cv2.createL
smoked The program reads the image located at C:/Square.png and draws lines on it. Also defines the plot title. I want to display the whole image in a tkinter window. what should I do? Here is the image. The name has to be changed and we can run the code. http
KhoaLearnToCode I'm having a problem here when trying to draw multiple lines on an image. So, here is my code: fig=plt.figure()
final = cv2.imread('frame9.jpg')
for p in polar:
plt.plot([0,1],[p[0],p[0]],c='red')
plt.imshow(final,cmap=plt.cm.gray)
plt.show