Ask Your Question

Agribot's profile - activity

2020-09-22 08:15:45 -0500 received badge  Popular Question (source)
2019-06-10 07:52:33 -0500 asked a question How to recognize outdoor objects from different angles

How to recognize outdoor objects from different angles Hi, I'd like to get my wheeled robot with it's vision system to

2018-12-14 03:30:37 -0500 received badge  Famous Question (source)
2017-08-29 17:53:43 -0500 received badge  Student (source)
2017-04-27 09:18:30 -0500 received badge  Notable Question (source)
2016-10-27 00:19:10 -0500 received badge  Popular Question (source)
2014-11-19 12:47:02 -0500 received badge  Editor (source)
2014-11-19 12:42:56 -0500 asked a question How to capture the coordinates of lines

I’m a newby interested in learning how to use opencv and python programming I’m trying to learn how to capture the coordinates (x and y points) of the start and finish of a grid of vertical and horizontal lines drawing in a picture and then store those coordinates in a text file for use by another program. Outline of Logic;- import cv2 import numpy as np ) Read-in the picture to an image im = cv2.imread ('grid1.jpg') ( the picture can be a simple grid of black lines on a white background, so it may not be necessary to process it to clarify the lines) ) Scan the image find the lines ?? ) Identify, or calculate the coordinates where the vertical and horizontal lines start and end ?? ) Write the coordinate of each intersection, one at a time, into a list ?? ) Write that list to a text file np.savetxt('output_file', list) Can someone show some python code that would do that ?

I’ve started to read about some of the standard opencv library methods, such as the information about SimpleBlobDetector and FeatureDetector¶ provided at

http://docs.opencv.org/modules/features2d/doc/common_interfaces_of_feature_detectors.html#simpleblobdetector

and about moments at http://docs.opencv.org/doc/tutorials/imgproc/shapedescriptors/moments/moments.html python-opencv, finding centroid of an image

but that information is beyond me at the moment ( and some of it is for C++, not for someone learning Python ) My environment is;- Opencv 2.4 Windows 7 Visual Studio 2013 express for Windows Desktop Anaconda Python 2.7

Now, I know that many of you might think the problem is basic, but I believe many newbies trying to get develop an understanding of opencv for Python will appreciate your answers !

Many Thanks for your help

2014-11-19 06:46:31 -0500 asked a question How to capture x y coordinates of a grid with Python

I’m a newby interested in learning how to use opencv and python programming

I’m trying to learn how to capture the coordinates (x and y points) of the start and finish of a grid of vertical and horizontal lines drawing in a picture and then store those coordinates in a text file for use by another program. Outline of Logic;- import cv2 import numpy as np ) Read-in the picture to an image im = cv2.imread ('grid1.jpg') ( the picture can be a simple grid of black lines on a white background, so it may not be necessary to process it to clarify the lines) ) Scan the image find the lines ?? ) Identify, or calculate the coordinates where the vertical and horizontal lines start and finish ?? ) Write the coordinate of each, one at a time, into a list ?? ) Write that list to a text file np.savetxt('output_file', list)

Can someone show some python code that would do that ?

I’ve started to read about some of the standard opencv library methods, such as the information about SimpleBlobDetector and FeatureDetector¶ provided at

http://docs.opencv.org/modules/features2d/doc/common_interfaces_of_feature_detectors.html#simpleblobdetector

and about moments at

http://docs.opencv.org/doc/tutorials/imgproc/shapedescriptors/moments/moments.html

python-opencv, finding centroid of an image but that information is beyond me at the moment ( and some of it is for C++, not for someone learning Python ) My environment setting are;- I’m using;- Opencv 2.4 Windows 7 Visual Studio 2013 express for Windows Desktop Anaconda Python 2.7

Many Thanks for your help

2014-11-17 10:18:11 -0500 received badge  Supporter (source)
2014-11-17 10:15:03 -0500 asked a question How to capture and record the coordinates of a grid

OpenCV How to capture and record the coordinates of a grid

Hi

I’m a newby interested in learning how to use opencv and python programming

I’m trying to learn how to capture the coordinates (x and y points) of the intersections of a grid of vertical and horizontal lines drawing in a picture and then store those coordinates in a text file for use by another program

Outline of Logic;- import cv2 import numpy as np

) Read-in the picture to an image im = cv2.imread ('grid1.jpg')

( the picture can be a simple grid of black lines on a white background, so it may not be necessary to process it to clarify the lines)

) Scan the image find the lines ??

) Identify, or calculate the coordinates where the vertical and horizontal lines intersect ??

) Write the coordinate of each intersection, one at a time into a list ??

) Write that list to a text file np.savetxt('output_file', list)

Can someone show some python code that would do that ? I’ve started to read about some of the standard opencv library methods, such as

I’ve read the information about SimpleBlobDetector and FeatureDetector¶ provided at http://docs.opencv.org/modules/features2d/doc/common_interfaces_of_feature_detectors.html#simpleblobdetector

and about moments at http://docs.opencv.org/doc/tutorials/imgproc/shapedescriptors/moments/moments.html

python-opencv, finding centroid of an image

and http://en.wikipedia.org/wiki/Image_moment#Raw_moments

but that information is beyond me at the moment ( and some of it is for C++, not for someone learning Python )

My environment setting are;- I’m using;- Windows 7 Visual Studio 2013 express for Windows Desktop Anaconda Python 2.7

I think that the answer to this simple question would be useful to many newbies trying to get started with opencv.

Many Thanks for your help !

2014-02-07 04:29:56 -0500 asked a question What forums exist for newbys learning opencv

Hi, Which good forums exist for newbys tryin to learn how to use opencv with C++ ?

This is a good forum, but cannot cover all questions and topics. Which other forums are good ?

2014-02-07 04:26:39 -0500 asked a question How to create a chess-board

Hi I'm a newby starting to understand openCV and it's use to create and display graphics on the screen of my laptop.

I'd like to use opencv to draw a chess-board (not the checker pattern often used to calibrate, that's not a chess board) and to display that.

Then I'd like to create small images for each of the chess pieces and then then place each on the chess board.

create a chess board display it create each piece select a position on the board place the piece at that position display that

Can you point me towards some example opencv solution in C or C++ code that could show me how that can be done ?

I'm using Microsoft Visual Studio 2010 Express for C++ version

Thanks