Re: python and Open cv

Discussion in 'Python' started by Mark Lawrence, Nov 1, 2012.

  1. 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.
    Mark Lawrence, Nov 1, 2012
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Shilpa
    Replies:
    1
    Views:
    6,028
    Anubhav Jain
    Mar 22, 2006
  2. Simon Mullis
    Replies:
    0
    Views:
    606
    Simon Mullis
    Feb 5, 2009
  3. Scott

    open-uri and Kernel.open

    Scott, Aug 19, 2005, in forum: Ruby
    Replies:
    3
    Views:
    175
    Robert Klemme
    Aug 22, 2005
  4. Schüle Daniel

    File::open and File.open

    Schüle Daniel, Oct 23, 2006, in forum: Ruby
    Replies:
    4
    Views:
    178
    Rick DeNatale
    Oct 24, 2006
  5. iMelody Ooo
    Replies:
    5
    Views:
    408
    Charles Calvert
    Oct 21, 2010
Loading...

Share This Page