List of objects X Database
I am writing a script that has to read data from an ASCII file of about 50 Mb and do a lot of searches and calculations with that data. That would be a classic problem solved by the use of a database (SQLite would suit just fine), but that would require the user to install more packages other than python itself, and that I am trying to avoid. Since the data is not too large, I wonder if there is another way to store all data in memory and work with it more or less like a database, doing searches and working with datafields. This is not clear to me how can be implemented. I thought of creating a class with the data structure, and creating a list of objects of that class, each one containing one line of data from the "database". Any thoughts or suggestions? Thanks! Eduardo -- http://mail.python.org/mailman/listinfo/python-list
Movement recognition in video file
Hi, I am looking for a python tool or module that helps me build a script that can perceive object moves in a video file captured by a (web) camera. My main goal is to be able to count people entering a store using the store's surveillance camera. I know of some packages like Eyesweb (gestural recognition package) or Pure Data's module called GEM, but I don't know any written in python. Thanks -- http://mail.python.org/mailman/listinfo/python-list
Re: Movement recognition in video file
Thanks guys, I will give those solutions a try! [EMAIL PROTECTED] escreveu: > On Nov 15, 8:29 am, [EMAIL PROTECTED] wrote: > > Hi, > > > > I am looking for a python tool or module that helps me build a script > > that can perceive object moves in a video file captured by a (web) > > camera. My main goal is to be able to count people entering a store > > using the store's surveillance camera. > > > > I know of some packages like Eyesweb (gestural recognition package) or > > Pure Data's module called GEM, but I don't know any written in python. > > > > Thanks > > You could use something like PyMedia to iterate the frames in the > video, then process the image using something like PIL or numpy. > Other possibilities might include gstreamer, or any other multimedia > library that has python bindings. Depending on your exact needs, > python may be too slow for the "guts" of the algorithm, but certainly > could be used for prototyping and/or glue code. > > I've used PyMedia with both PIL and numpy to do some video processing > in the past. If you need help getting started, just ask. > > --Nathan Davis -- http://mail.python.org/mailman/listinfo/python-list
