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


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

Parsing a graph image

Started byBastian Ballmann <balle@chaostal.de>
First post2011-05-13 12:19 +0200
Last post2011-05-13 13:31 +0000
Articles 14 — 7 participants

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


Contents

  Parsing a graph image Bastian Ballmann <balle@chaostal.de> - 2011-05-13 12:19 +0200
    Re: Parsing a graph image Ulrich Eckhardt <ulrich.eckhardt@dominolaser.com> - 2011-05-13 14:01 +0200
      Re: Parsing a graph image Bastian Ballmann <balle@chaostal.de> - 2011-05-13 14:24 +0200
        Re: Parsing a graph image Laurent Claessens <moky.math@gmail.com> - 2011-05-13 14:30 +0200
        Re: Parsing a graph image Laurent Claessens <moky.math@gmail.com> - 2011-05-13 14:30 +0200
        Re: Parsing a graph image Laurent Claessens <moky.math@gmail.com> - 2011-05-13 14:30 +0200
        Re: Parsing a graph image Laurent Claessens <moky.math@gmail.com> - 2011-05-13 14:30 +0200
        Re: Parsing a graph image Laurent Claessens <moky.math@gmail.com> - 2011-05-13 14:30 +0200
      Re: Parsing a graph image saurabh verma <nitw.saurabh@gmail.com> - 2011-05-13 18:12 +0530
        Re: Parsing a graph image Laurent Claessens <moky.math@gmail.com> - 2011-05-13 14:43 +0200
      Re: Parsing a graph image Robert Kern <robert.kern@gmail.com> - 2011-05-13 14:38 -0500
      Re: Parsing a graph image Bastian Ballmann <balle@chaostal.de> - 2011-05-16 15:38 +0200
        Re: Parsing a graph image John J Lee <jjl@pobox.com> - 2011-05-21 15:06 +0100
    Re: Parsing a graph image Neil Cerutti <neilc@norwich.edu> - 2011-05-13 13:31 +0000

#5287 — Parsing a graph image

FromBastian Ballmann <balle@chaostal.de>
Date2011-05-13 12:19 +0200
SubjectParsing a graph image
Message-ID<mailman.1510.1305281943.9059.python-list@python.org>

[Multipart message — attachments visible in raw view] — view raw

Hi python lovers out there,

I am searching for a library to parse data from a graph in an image file
something like http://pytseries.sourceforge.net/_images/yahoo.png
Any suggestions, hints, links?

TIA && have a nice day! :)

Basti

[toc] | [next] | [standalone]


#5291

FromUlrich Eckhardt <ulrich.eckhardt@dominolaser.com>
Date2011-05-13 14:01 +0200
Message-ID<90jv98-322.ln1@satorlaser.homedns.org>
In reply to#5287
Bastian Ballmann wrote:
> I am searching for a library to parse data from a graph in an image file
> something like http://pytseries.sourceforge.net/_images/yahoo.png
> Any suggestions, hints, links?

I'm not sure I understand 100% what you want. If you want to extract 
("parse") the data that is contained in an image file, I have no clue how to 
do that.

However, if you want to create such images and you already have the data, 
that should be as easy as picking the right library for that. I did a short 
search of Packages available for Debian and it gave me these:

python-magics++ - python support for Magics++
python-matplotlib - Python based plotting system in a style similar to 
Matlab
python-mpmath - library for arbitrary-precision floating-point arithmetic
python-plplot - Python support for PLplot, a plotting library
python-qwt3d-qt3 - Python bindings of the QwtPlot3D library
python-qwt3d-qt4 - Python bindings of the QwtPlot3D library
python-qwt5-qt3 - Python version of the Qwt5 technical widget library
python-qwt5-qt4 - Python version of the Qwt5 technical widget library
python-pybiggles - Scientific plotting package for Python
python-chaco - interactive plotting application toolkit
python-gnuplot - A Python interface to the gnuplot plotting program
python-pychart - Python library for creating high quality charts
python-simpy - python-based simulation package
python-scitools - Python library for scientific computing
python-sympy - Computer Algebra System (CAS) in Python
python-viper - minimalistic scientific plotter and run-time visualization 
module

Good luck!

Uli

-- 
Domino Laser GmbH
Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932

[toc] | [prev] | [next] | [standalone]


#5292

FromBastian Ballmann <balle@chaostal.de>
Date2011-05-13 14:24 +0200
Message-ID<mailman.1512.1305289472.9059.python-list@python.org>
In reply to#5291

[Multipart message — attachments visible in raw view] — view raw

Hi,

Am Fri, 13 May 2011 14:01:48 +0200
schrieb Ulrich Eckhardt <ulrich.eckhardt@dominolaser.com>:

> I'm not sure I understand 100% what you want. If you want to extract 
> ("parse") the data that is contained in an image file, I have no clue
> how to do that.

Yes, I want to extract the data that is contained in an image file.
Greets

Basti

[toc] | [prev] | [next] | [standalone]


#5293

FromLaurent Claessens <moky.math@gmail.com>
Date2011-05-13 14:30 +0200
Message-ID<4DCD2449.8010203@gmail.com>
In reply to#5292
> Yes, I want to extract the data that is contained in an image file.
> Greets

Maybe ask to imagemagick's or matplotlib. They should know if it is 
possible at all.

Good luck.
Laurent

[toc] | [prev] | [next] | [standalone]


#5294

FromLaurent Claessens <moky.math@gmail.com>
Date2011-05-13 14:30 +0200
Message-ID<4DCD2454.3080208@gmail.com>
In reply to#5292
> Yes, I want to extract the data that is contained in an image file.
> Greets

Maybe ask to imagemagick's or matplotlib. They should know if it is 
possible at all.

Good luck.
Laurent

[toc] | [prev] | [next] | [standalone]


#5295

FromLaurent Claessens <moky.math@gmail.com>
Date2011-05-13 14:30 +0200
Message-ID<4DCD245B.4000301@gmail.com>
In reply to#5292
> Yes, I want to extract the data that is contained in an image file.
> Greets

Maybe ask to imagemagick's or matplotlib. They should know if it is 
possible at all.

Good luck.
Laurent

[toc] | [prev] | [next] | [standalone]


#5296

FromLaurent Claessens <moky.math@gmail.com>
Date2011-05-13 14:30 +0200
Message-ID<4DCD246D.9030001@gmail.com>
In reply to#5292
> Yes, I want to extract the data that is contained in an image file.
> Greets

Maybe ask to imagemagick's or matplotlib. They should know if it is 
possible at all.

Good luck.
Laurent

[toc] | [prev] | [next] | [standalone]


#5297

FromLaurent Claessens <moky.math@gmail.com>
Date2011-05-13 14:30 +0200
Message-ID<4DCD2480.9030009@gmail.com>
In reply to#5292
> Yes, I want to extract the data that is contained in an image file.
> Greets
>
> Basti

 > Yes, I want to extract the data that is contained in an image file.
 > Greets

Maybe ask to imagemagick's or matplotlib. They should know if it is 
possible at all.

Good luck.
Laurent

[toc] | [prev] | [next] | [standalone]


#5298

Fromsaurabh verma <nitw.saurabh@gmail.com>
Date2011-05-13 18:12 +0530
Message-ID<mailman.1513.1305290304.9059.python-list@python.org>
In reply to#5291
On 13-May-2011, at 5:54 PM, Bastian Ballmann wrote:

> Hi,
> 
> Am Fri, 13 May 2011 14:01:48 +0200
> schrieb Ulrich Eckhardt <ulrich.eckhardt@dominolaser.com>:
> 
>> I'm not sure I understand 100% what you want. If you want to extract 
>> ("parse") the data that is contained in an image file, I have no clue
>> how to do that.
> 
> Yes, I want to extract the data that is contained in an image file.
> Greets
> 

I guess it requires some kind of image processing , where you can move around image pixel by pixel and somehow figure out what color is present in that pixel . If there isn’t much noise in the image you should sharp contrast and would be able to differentiate between two colors ? if yes ( I don’t know matlab might provide some tools ..  just guessing ) then its easy i think to pick (X,Y) as time and value ? 

~saurabh verma 

[toc] | [prev] | [next] | [standalone]


#5299

FromLaurent Claessens <moky.math@gmail.com>
Date2011-05-13 14:43 +0200
Message-ID<4DCD2782.2010803@gmail.com>
In reply to#5298
> I guess it requires some kind of image processing , where you can move around image pixel
>by pixel and somehow figure out what color is present in that pixel .
> If there isn’t much noise in the image you should sharp contrast and would
>be able to differentiate between two colors ? if yes ( I don’t know matlab
 >might provide some tools ..  just guessing ) then its easy i think to 
pick (X,Y) as time and value ?

You made me think that in addition to ask to imagemagick's and 
matplotlib, one can also as to Sage[1]

In order of pythonicity :
- matplotlib
- sage
- imagemagick's


Laurent

[1] www.sagemath.org

PS : Sorry for having send my previous answer 5 times. I don't understand :(

[toc] | [prev] | [next] | [standalone]


#5319

FromRobert Kern <robert.kern@gmail.com>
Date2011-05-13 14:38 -0500
Message-ID<mailman.1524.1305315540.9059.python-list@python.org>
In reply to#5291
On 5/13/11 7:24 AM, Bastian Ballmann wrote:
> Hi,
>
> Am Fri, 13 May 2011 14:01:48 +0200
> schrieb Ulrich Eckhardt<ulrich.eckhardt@dominolaser.com>:
>
>> I'm not sure I understand 100% what you want. If you want to extract
>> ("parse") the data that is contained in an image file, I have no clue
>> how to do that.
>
> Yes, I want to extract the data that is contained in an image file.

There is nothing in Python that solves this problem, per se, but there are free 
and open source tools for this out there. E.g.

   http://digitizer.sourceforge.net/

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
  that is made terrible by our own mad attempt to interpret it as though it had
  an underlying truth."
   -- Umberto Eco

[toc] | [prev] | [next] | [standalone]


#5516

FromBastian Ballmann <balle@chaostal.de>
Date2011-05-16 15:38 +0200
Message-ID<mailman.1641.1305553127.9059.python-list@python.org>
In reply to#5291

[Multipart message — attachments visible in raw view] — view raw

Hi,

the project sounds like the exact tool that i need but regarding the
user manual one has to mark the points on the graph manually. Therefore
it's more work to get the data out than doing it without a tool. Or may
I miss something here?
Greets

Basti


Am Fri, 13 May 2011 14:38:45 -0500
schrieb Robert Kern <robert.kern@gmail.com>:

> On 5/13/11 7:24 AM, Bastian Ballmann wrote:
> > Hi,
> >
> > Am Fri, 13 May 2011 14:01:48 +0200
> > schrieb Ulrich Eckhardt<ulrich.eckhardt@dominolaser.com>:
> >
> >> I'm not sure I understand 100% what you want. If you want to
> >> extract ("parse") the data that is contained in an image file, I
> >> have no clue how to do that.
> >
> > Yes, I want to extract the data that is contained in an image file.
> 
> There is nothing in Python that solves this problem, per se, but
> there are free and open source tools for this out there. E.g.
> 
>    http://digitizer.sourceforge.net/
> 

[toc] | [prev] | [next] | [standalone]


#5921

FromJohn J Lee <jjl@pobox.com>
Date2011-05-21 15:06 +0100
Message-ID<87wrhk6tby.fsf@pobox.com>
In reply to#5516
Bastian Ballmann <balle@chaostal.de> writes:

> Hi,
>
> the project sounds like the exact tool that i need but regarding the
> user manual one has to mark the points on the graph manually. Therefore
> it's more work to get the data out than doing it without a tool. Or may
> I miss something here?
> Greets

Read the documentation more carefully: it has features that allow
extracting points from line charts automatically.

If you want something fully automated, you just want jam on it ;-)


John

[toc] | [prev] | [next] | [standalone]


#5302

FromNeil Cerutti <neilc@norwich.edu>
Date2011-05-13 13:31 +0000
Message-ID<934q5dFrhdU6@mid.individual.net>
In reply to#5287
On 2011-05-13, Bastian Ballmann <balle@chaostal.de> wrote:
> Hi python lovers out there,
>
> I am searching for a library to parse data from a graph in an
> image file something like
> http://pytseries.sourceforge.net/_images/yahoo.png Any
> suggestions, hints, links?

You can do this with PIL <URL:http://www.pythonware.com/products/pil/>.
The technique is necessary in The Python Challenge, for example.
<URL:http://www.pythonchallenge.com/>

-- 
Neil Cerutti

[toc] | [prev] | [standalone]


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


csiph-web