Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!newsfeed.eweka.nl!eweka.nl!feeder3.eweka.nl!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:Open': 0.05; 'pixel': 0.07; 'python': 0.09; '(0,': 0.09; '0))': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'rows': 0.09; 'advance': 0.10; 'def': 0.10; 'subject:python': 0.11; 'value.': 0.15; 'columns': 0.16; 'etc....': 0.16; 'range(0,': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'thanx': 0.16; 'wrote:': 0.17; 'load': 0.19; 'import': 0.21; 'somebody': 0.23; 'tried': 0.25; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'values': 0.26; 'question': 0.27; 'header:X-Complaints-To:1': 0.28; 'code': 0.31; 'file': 0.32; 'from:addr:yahoo.co.uk': 0.32; 'print': 0.32; 'to:addr:python- list': 0.33; 'changed': 0.34; 'there': 0.35; 'received:org': 0.36; 'but': 0.36; 'should': 0.36; 'address.': 0.36; 'detail': 0.37; 'data': 0.37; 'subject:: ': 0.38; 'mark': 0.38; 'gives': 0.39; 'to:addr:python.org': 0.39; 'google': 0.39; 'header:Received:5': 0.40; 'think': 0.40; '!!!': 0.62; 'different': 0.63; 'information': 0.63; 'within': 0.64; 'subject': 0.66; 'hours': 0.66 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: python and Open cv Date: Thu, 01 Nov 2012 11:15:23 +0000 References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: host-78-146-13-94.as13285.net User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:16.0) Gecko/20121026 Thunderbird/16.0.2 In-Reply-To: X-Antivirus: avast! (VPS 121031-1, 31/10/2012), Outbound message X-Antivirus-Status: Clean X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 34 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1351768584 news.xs4all.nl 6870 [2001:888:2000:d::a6]:54380 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:32555 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.