OSMNX animation networks - animation

I have a network graph plotted using OSMNX package on python, and I would like to make an animation of traveling through the network. Is there a package I can use in Python to make this work?

As OSMnx is a street network analysis package with some static visualization functionality, this question would appear to be about how to work with animation in Python generally. Good places to start include:
matplotlib's animation API
plotly's animations
Or consider using OSMnx to produce snapshots of your route traversal, one step at a time, then assemble them into an animated GIF, similar to the process described here.

Related

About VTK and ThreeJs develop

I want to do a VTK + Three.js development project, mainly to use the streamline function part of VTK, but I don’t know what the feasibility is, do you have any experience in this area?Thank you
three.js provides a VTKLoader which can be used to import VTK assets into a scene. There is also an official example demonstrating the basic usage:
https://threejs.org/examples/webgl_loader_vtk
However, the loader only supports a subset of the VTK standard. For example VTK supports five different dataset formats: structured points, structured grid, rectilinear grid, unstructured grid, and polygonal data. VTKLoader can only process the last one (POLYDATA) right now. Depending on your project requirements, you have to enhance the loader by yourself.
three.js R112

python curve fitting optimization GUI

I'm new to programming but i have to do a project in python which is about to make a GUI for curve fitting. My inputs are the data points and the functions that should be fitted. The method of fitting is suggested to be chooseable for example least squares method or other fitting methods in the GUI. My problem is when i find some decent resource i get an error code when installing some packages that will be used. I use anaconda for python. My question is where should i start this project ? Could you guys suggest some decent resource for this kind of problem?
Thanks,
Adam
I have several of these done with different GUI frameworks, all have curve fitting and surface fitting with plots of fitted curves and surfaces. All have the same functionality, and should make a good example for a similar project. My personal recommendation is tkinter.
https://github.com/zunzun/tkInterFit (tkinter)
https://github.com/zunzun/wxPythonFit (wxpython)
https://github.com/zunzun/pyQt5Fit (pyqt5)
https://github.com/zunzun/pyGtkFit (pygtk)

Image analysis - how can I extract image label out of bottle

I am thinking of using OpenCV library for image analysis. Basically I want to automate in my project the extraction of image label from wine bottle.
This is the sample input image:
This is the sample output:
I am thinking what should be my general strategy to extract the image. I am not asking for direct code. Just want to know the general approach to solve the problem.
Thanks!
Sorry for vage answer but in applied computer vision is no such thing like general approach.
some will disagree of course but in reality
all CV applications are custom made for some specific purpose/task
in your case is the idea to find cylindric and probably standing object (bottle)
and then finding of irregular parts in it
I would do it like this:
1.remove noise as much as possible (smooth/sharpen filters)
2.(optionaly) reduce image data (via (i)FT or (i)DCT for example)
3.segmentate objects (usually by homogenity of color or by edge detection or by booth)
4.identify bottle object (by color,shape,or illumination (glass is transparent))
5.identify objects inside bottle (homogenity,not transparent,usually sharp edges,color is not good some labels are black on dark glass)
6.(optional) project label back from cylindric space to flat texture
[notes]
create app with many scrollbars and checkboxes
to be able to change all tresholds and enable disable filters or their order on the run
all parts will take a lot of tweaking of tresholds and weights
you have to do a lot of trial and error runs to find the best filters and their config for your task

What kind of cool graphics algorithms can I implement?

I'm going to program a fancy (animated) about-box for an app I'm working on. Since this is where programmers are often allowed to shine and play with code, I'm eager to find out what kind of cool algorithms the community has implemented.
The algorithms can be animated fractals, sine blobs, flames, smoke, particle systems etc.
However, a few natural constraints come to mind: It should be possible to implement the algorithm in virtually any language. Thus advanced directx code or XNA code that utilizes libraries that aren't accessible in most languages should not be posted. 3D is most welcome, but it shouldn't rely on lots of extra installs.
If you could post an image along with your code effect, it would be awesome.
Here's an example of a cool about box with an animated 3D figure and some animated sine blobs on the titlebar:
And here's an image of the about box used in Winamp, complete with 3D animations:
I tested and ran the code on this page. It produces an old-school 2D flame effect. Even when I ran it on an N270 in HD fullscreen it seemed to work fine with no lag. The code and all source is posted on the given webpage.
Metaballs is another possibly interesting approach. They define an energy field around a blob and will melt two shapes together when they are close enough. A link to an article can be found here.
Something called a Wolfram Worm seems so be an awesome project to attempt. It would be easy to calculate random smooth movement by using movement along two connected bezier curves. Loads of awesome demos can be found on this page:
http://levitated.net/daily/index.html
(source: levitated.net)
I like a lot the Julia 4D quaternion fractal.
(source: macromedia.com)
Video: Julia 4D animation in F#

Graphical interface for Graphiz for Mac OS?

I installed the Graphviz GUI from pizelmap.com, but it appears to only be a viewer for .dot Graphviz files. I am looking for a graphical editor, where I can create diagrams by pointing and clicking--just like the iPhone app Instaviz.
I would rather not code graphs by hand.
Does anyone know of anything--preferably free?
Have you looked at the Mac port of Graphviz from the same people who do Instaviz? Otherwise, a not cost-free option is OmniGraffle which has been the graphical editor of choice on OS X for years; it uses Graphviz under the covers and understands .dot files. If you want to go hard-core, there's a port of the basic AT&T graphviz and some language wrappers available through MacPorts.
Graph Galaxy is an interactive program to edit graphs.
Graph Galaxy builds on top of the Graphviz, and provides an out-of-the-box environment to edit graphs. We are able to quickly sketch graphs on canvas without thinking the DOT source code. In addition, Graph Galaxy provides some features to help editing graphs for better experience:
Outline. The outline panel shows the table of contents, which gives us a quick insight about how the graphs are structured.
Import and Export. Graph Galaxy can read the .gv files, and export the graphs to various formats like PDF, SVG, JPEG, PNG, and DOT.
Table Editing. The elaborate table operations allow us to create a complex and irregular table easily.
Hand-Drawn. The stroke can be transformed to hand-drawn, which is useful for prototyping.

Resources