Showing posts with label Python. Show all posts
Showing posts with label Python. Show all posts
Thursday, August 22, 2019
Audio Feature Extraction
https://github.com/tuwien-musicir/rp_extract
https://github.com/tyiannak/pyAudioAnalysis
Thursday, August 01, 2019
To read
https://www.maxwell.vrac.puc-rio.br/colecao.php?strSecao=resultado&nrSeq=12140@1
https://www.maxwell.vrac.puc-rio.br/colecao.php?strSecao=resultado&nrSeq=11074@2
Code:
[3] https://github.com/NCCA/NGL
https://www.sidefx.com/download/houdini-for-linux/
[4] SPH/Muller https://github.com/bigthetaio/mueller-sph
Tutorial https://bigtheta.io/2017/07/08/implementing-sph-in-2d.html
Dependences:
sudo apt install freeglut3-dev
sudo apt install libeigen3-dev
Surface Reconstruction :
[1] Detail Preserved Surface Reconstruction from
Point Cloud
{2}Deep Level Sets: Implicit Surface Representations for 3D Shape Inference
https://math.berkeley.edu/~sethian/2006/Papers/sethian.annualreview.2003.pdf
https://ascelibrary.org/doi/10.1061/%28ASCE%29SU.1943-5428.0000159
[3] surface reconstruction from volume fraction https://arxiv.org/pdf/1801.05382.pdf
[4] Level Set methods for fluid interfaces https://www.ljll.math.upmc.fr/~frey/ftp/NM491/11.Sethian%20J.A.,%20Smereka%20P.,%20Level%20set%20methods%20for%20fluid%20interfaces.pdf
Write Scheme
[1] Fluid Simulation on AR https://cgl.ethz.ch/Downloads/Publications/Papers/2019/Tia19a/Tia19a.pdf
Model 3D:
Scene to 3D pose model
https://www.profillic.com/paper/arxiv:1907.11346
Thesis:
[0] https://nccastaff.bournemouth.ac.uk/jmacey/MastersProjects/
[1] Position Based Fluid https://nccastaff.bournemouth.ac.uk/jmacey/MastersProjects/MSc16/09/mpthesis.pdf
[2] https://nccastaff.bournemouth.ac.uk/jmacey/MastersProjects/MSc18/07/M_Volpicelli_i7630684_MScMajorProject_Report.pdf
[3] https://nccastaff.bournemouth.ac.uk/jmacey/MastersProjects/MSc16/15/thesis.pdf
[4] Museth http://www.museth.org/Ken/Publications_files/meis2013_abstract_museth.pdf
Relate Concepts:
https://en.wikipedia.org/wiki/Volume_rendering
https://link.springer.com/chapter/10.1007/978-3-642-76286-4_5#citeas
https://arxiv.org/pdf/1812.04233.pdf
http://pages.mtu.edu/~chaoliw/research/vg05-pmvrt.pdf
http://idav.ucdavis.edu/~okreylos/ResDev/VolVis/index.html
http://faculty.cs.tamu.edu/schaefer/research/wavelet_rasterization.pdf
https://en.wikipedia.org/wiki/Rasterisation
https://en.wikipedia.org/wiki/Voxel
https://en.wikipedia.org/wiki/3D_rendering
https://en.wikipedia.org/wiki/3D_computer_graphics
https://en.wikipedia.org/wiki/Computer_animation
Others
[2] mapreduce on Python http://hplgit.github.io/map-reduce4sci/doc/pub/MapReduce.html
https://www.maxwell.vrac.puc-rio.br/colecao.php?strSecao=resultado&nrSeq=11074@2
Code:
[3] https://github.com/NCCA/NGL
https://www.sidefx.com/download/houdini-for-linux/
[4] SPH/Muller https://github.com/bigthetaio/mueller-sph
Tutorial https://bigtheta.io/2017/07/08/implementing-sph-in-2d.html
Dependences:
sudo apt install freeglut3-dev
sudo apt install libeigen3-dev
Surface Reconstruction :
[1] Detail Preserved Surface Reconstruction from
Point Cloud
{2}Deep Level Sets: Implicit Surface Representations for 3D Shape Inference
https://math.berkeley.edu/~sethian/2006/Papers/sethian.annualreview.2003.pdf
https://ascelibrary.org/doi/10.1061/%28ASCE%29SU.1943-5428.0000159
[3] surface reconstruction from volume fraction https://arxiv.org/pdf/1801.05382.pdf
[4] Level Set methods for fluid interfaces https://www.ljll.math.upmc.fr/~frey/ftp/NM491/11.Sethian%20J.A.,%20Smereka%20P.,%20Level%20set%20methods%20for%20fluid%20interfaces.pdf
Write Scheme
[1] Fluid Simulation on AR https://cgl.ethz.ch/Downloads/Publications/Papers/2019/Tia19a/Tia19a.pdf
Model 3D:
Scene to 3D pose model
https://www.profillic.com/paper/arxiv:1907.11346
Thesis:
[0] https://nccastaff.bournemouth.ac.uk/jmacey/MastersProjects/
[1] Position Based Fluid https://nccastaff.bournemouth.ac.uk/jmacey/MastersProjects/MSc16/09/mpthesis.pdf
[2] https://nccastaff.bournemouth.ac.uk/jmacey/MastersProjects/MSc18/07/M_Volpicelli_i7630684_MScMajorProject_Report.pdf
[3] https://nccastaff.bournemouth.ac.uk/jmacey/MastersProjects/MSc16/15/thesis.pdf
[4] Museth http://www.museth.org/Ken/Publications_files/meis2013_abstract_museth.pdf
Relate Concepts:
https://en.wikipedia.org/wiki/Volume_rendering
https://link.springer.com/chapter/10.1007/978-3-642-76286-4_5#citeas
https://arxiv.org/pdf/1812.04233.pdf
http://pages.mtu.edu/~chaoliw/research/vg05-pmvrt.pdf
http://idav.ucdavis.edu/~okreylos/ResDev/VolVis/index.html
http://faculty.cs.tamu.edu/schaefer/research/wavelet_rasterization.pdf
https://en.wikipedia.org/wiki/Rasterisation
https://en.wikipedia.org/wiki/Voxel
https://en.wikipedia.org/wiki/3D_rendering
https://en.wikipedia.org/wiki/3D_computer_graphics
https://en.wikipedia.org/wiki/Computer_animation
Others
[2] mapreduce on Python http://hplgit.github.io/map-reduce4sci/doc/pub/MapReduce.html
Labels:
C/C++,
Computer Graphics,
Fluids,
Python
Monday, April 29, 2019
Python plot maps and polygons
Map Resources:
[1] http://www.arcgis.com/home/item.html?id=3fd6eb2de569477ca83b2b65da8ecb6f
Source for plot:
[1]
Aditional Lectures
[1] http://dan-scientia.blogspot.com/2009/10/centroide-de-um-poligono.html
[2] https://www.matematica.pt/faq/poligono-convexo.php
[3] https://github.com/deparkes/shapely_tests
[4] https://shapely.readthedocs.io/en/stable/manual.html
[5] https://en.wikipedia.org/wiki/Centroid#Centroid_of_polygon
[6] Centro Geodesico https://ww2.ibge.gov.br/home/geociencias/geodesia/artigos/1996_Centro_Geodesico_Centroide.pdf
Visual Center
[1] https://blog.mapbox.com/a-new-algorithm-for-finding-a-visual-center-of-a-polygon-7c77e6492fbc
[2] https://github.com/mapbox/polylabel
[3] Poly Decomp https://mpen.ca/406/motivation
Python basemap
[1] https://matplotlib.org/basemap/users/examples.html
[2] https://github.com/matplotlib/basemap/tree/master/examples
sudo apt-get install libgeos-3.5.0
sudo apt-get install libgeos-dev
sudo pip install https://github.com/matplotlib/basemap/archive/master.zip
Results:
https://github.com/fincahuanaco/covid19peru
Next Step
https://towardsdatascience.com/easy-steps-to-plot-geographic-data-on-a-map-python-11217859a2db
Monday, February 25, 2019
Fixing geopandas and osmnx problem: Could not find libspatialindex_c library file
For secondary problem trying to resolve (trying to find the library i got):
Traceback (most recent call last):
File "", line 1, in
NameError: name 'find_library' is not defined
The solution is:
$python
>>> import rtree
Traceback (most recent call last):
File "", line 1, in
File "/var/www/sampleapp/crivist/myEnv/lib/python3.5/site-packages/rtree/__init__.py", line 1, in
from .index import Rtree
File "/var/www/sampleapp/crivist/myEnv/lib/python3.5/site-packages/rtree/index.py", line 5, in
from . import core
File "/var/www/sampleapp/crivist/myEnv/lib/python3.5/site-packages/rtree/core.py", line 125, in
raise OSError("Could not find libspatialindex_c library file")
OSError: Could not find libspatialindex_c library file
You can solve using:
sudo apt install python3-rtree
But in some servers, you can't access to apt, then you decide do next commands:
$git clone https://github.com/libspatialindex/libspatialindex.git
$cd libspatialindex
$cmake --prefix=/usr .
$make
$sudo make install #You cannot install on system
CMake Error at src/cmake_install.cmake:52 (file):
file INSTALL cannot copy file
"/home/fincahuanaco/Temp/libspatialindex/bin/libspatialindex.so.5.0.0" to
"/usr/local/lib/libspatialindex.so.5.0.0".
Call Stack (most recent call first):
cmake_install.cmake:42 (include)
But you compile, then you have the link to file, then set next variable
export SPATIALINDEX_C_LIBRARY=environmentpath/lib/libspatialindex_c.so
Enjoy
References:
[1] geopandas http://geopandas.org/install.html
[2] python environment https://docs.python-guide.org/dev/virtualenvs/
[3] python environment 2 https://docs.python.org/3/tutorial/venv.html
Traceback (most recent call last):
File "
NameError: name 'find_library' is not defined
The solution is:
import ctypes
from ctypes.util import find_library
When you install environment and install geopandas, rtree and osmnx
pip install git+git://github.com/geopandas/geopandas.git
pip install rtree
pip install osmnx
No error, everythong aparently is ok, and you try to test$python
>>> import rtree
Traceback (most recent call last):
File "
File "/var/www/sampleapp/crivist/myEnv/lib/python3.5/site-packages/rtree/__init__.py", line 1, in
from .index import Rtree
File "/var/www/sampleapp/crivist/myEnv/lib/python3.5/site-packages/rtree/index.py", line 5, in
from . import core
File "/var/www/sampleapp/crivist/myEnv/lib/python3.5/site-packages/rtree/core.py", line 125, in
raise OSError("Could not find libspatialindex_c library file")
OSError: Could not find libspatialindex_c library file
You can solve using:
sudo apt install python3-rtree
But in some servers, you can't access to apt, then you decide do next commands:
$git clone https://github.com/libspatialindex/libspatialindex.git
$cd libspatialindex
$cmake --prefix=/usr .
$make
$sudo make install #You cannot install on system
CMake Error at src/cmake_install.cmake:52 (file):
file INSTALL cannot copy file
"/home/fincahuanaco/Temp/libspatialindex/bin/libspatialindex.so.5.0.0" to
"/usr/local/lib/libspatialindex.so.5.0.0".
Call Stack (most recent call first):
cmake_install.cmake:42 (include)
But you compile, then you have the link to file, then set next variable
export SPATIALINDEX_C_LIBRARY=environmentpath/lib/libspatialindex_c.so
Enjoy
References:
[1] geopandas http://geopandas.org/install.html
[2] python environment https://docs.python-guide.org/dev/virtualenvs/
[3] python environment 2 https://docs.python.org/3/tutorial/venv.html
Wednesday, February 20, 2019
Python 3D Interactive
[1] Python draw 2d and 3d http://jeffskinnerbox.me/notebooks/matplotlib-2d-and-3d-plotting-in-ipython.html
[2] Python 3D picking https://stackoverflow.com/questions/10424517/how-to-get-properties-of-picked-object-in-mplot3d-matplotlib-python
[3] Python mayavi picking http://docs.enthought.com/mayavi/mayavi/auto/example_pick_on_surface.html
[4] Python mayavi for 3D https://docs.enthought.com/mayavi/mayavi/mlab.html
Tuesday, December 04, 2018
Tensor resources
References:
[1] Tensor decomposition https://www.slideshare.net/panisson/tensor-decomposition-with-python
[2] Tensores (sp) http://bibing.us.es/proyectos/abreproy/12082/fichero/Cap%C3%ADtulo3.pdf
Monday, November 26, 2018
python3 using mysql connection
$pip3 install mysql-connector-python --user
from mysql.connector import (connection)
cnx=connection.MySQLConnection(user='user', password='*******',
host='ip', database='db')
cnx.close()
Resources:
[1] https://dev.mysql.com/doc/connector-python/en/connector-python-installation.html
Thursday, September 13, 2018
Python extending functions from C/C++
References
[1] https://docs.python.org/3/library/ctypes.html
https://cython.readthedocs.io/en/latest/src/tutorial/cython_tutorial.html
https://opensourceforu.com/2010/05/extending-python-via-shared-libraries/
https://en.wikibooks.org/wiki/Python_Programming/Extending_with_C%2B%2B
Wednesday, September 05, 2018
pip3 ImportError: cannot import name 'main'
In linux you need to change the file: /usr/bin/pip3 from:
to:
from pip import main
if __name__ == '__main__':
sys.exit(main())
to:
from pip import __main__
if __name__ == '__main__':
sys.exit(__main__._main())
Subscribe to:
Posts (Atom)
-
Resources: [1] Hela https://ome.grc.nia.nih.gov/iicbu2008/hela/index.html
-
Sunedu Renacyt 1) https://ctivitae.concytec.gob.pe/appDirectorioCTI/ 2) http://regina.concytec.gob.pe 3) https://www.gob.pe/9648-ser-p...
-
en inglés se llama “A potentially dangerous Request.Form value was detected from the client”. varias páginas indican dos cosas: 1. agrega...
Running apps
Runtastic (I uninstalled because force to update your device - Internet connection problems) Runkeeper (Wrong GPS tracking) Strava (Curr...