Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: python and Open cv

50 views
Skip to first unread message

Stefan H. Holek

unread,
Nov 1, 2012, 5:57:18 AM11/1/12
to inshu chauhan, pytho...@python.org
On 01.11.2012, at 09:55, inshu chauhan wrote:

> How to load a yml file in python and work with it ??
>

Try one of these:

http://pypi.python.org/pypi?%3Aaction=search&term=yaml&submit=search

--
Stefan H. Holek
ste...@epy.co.at

Mark Lawrence

unread,
Nov 1, 2012, 7:15:23 AM11/1/12
to pytho...@python.org
On 01/11/2012 08:55, inshu chauhan wrote:
> How to load a yml file in python and work with it ??
>
> I used : import cv
> data = cv.Load("Z:/data/xyz_00000_
> 300.yml")
>
> But when I print data.. it just gives the detail of the image like number
> of rows and columns etc....
> I want read what is there in the pixel of the image..
>
> I tried to use the following code .. but it gives me only the pixel values
> not the information contained in pixel ??
>
> def AccessPixels(img):
> for y in range(0, img.height):
> for x in range(0, img.width):
> cv.Get2D(img, y, x) # Slow get pixel value.
> cv.Set2D(img, y, x, (0, 0, 0, 0)) # Slow set pixel value.
>
>
> can somebody help.. thanx in advance !!!
>

I think the subject should be changed to "Obnoxious postings from Google
Groups", given this is the same question from the same person within 24
hours but a different subject line, and from a gmail address.


--
Cheers.

Mark Lawrence.

Zero Piraeus

unread,
Nov 1, 2012, 1:04:42 PM11/1/12
to pytho...@python.org
:

On 1 November 2012 08:48, inshu chauhan <insid...@gmail.com> wrote:
> I am sorry.. but I need to know what are the rules and what about gmail ??
> Many people are using gmail to mail to the list.

There aren't any rules about gmail (except the unwritten rule that to
be a "real" geek you need to use a mail client that takes a whole
weekend to configure, and another three years to properly understand).

It's helpful to other people on the list, though, if you post
follow-up questions in the same thread - finding the last relevant
message and hitting "reply to all" will do this in gmail.

-[]z.

Paul Rudin

unread,
Nov 1, 2012, 2:02:01 PM11/1/12
to
Zero Piraeus <sch...@gmail.com> writes:

> There aren't any rules about gmail (except the unwritten rule that to
> be a "real" geek you need to use a mail client that takes a whole
> weekend to configure, and another three years to properly understand).

Ha! 3 years? I've been using gnus for nearly 20 years and I still don't
understand it!
0 new messages