Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #32555 > unrolled thread

Re: python and Open cv

Started byMark Lawrence <breamoreboy@yahoo.co.uk>
First post2012-11-01 11:15 +0000
Last post2012-11-01 11:15 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: python and Open cv Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-11-01 11:15 +0000

#32555 — Re: python and Open cv

FromMark Lawrence <breamoreboy@yahoo.co.uk>
Date2012-11-01 11:15 +0000
SubjectRe: python and Open cv
Message-ID<mailman.3144.1351768584.27098.python-list@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.

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web