How to makebox plots in Ubuntu 14.04? - ubuntu-14.04

How to make boxplot in ubuntu.
I have .csv format file.
I made it on LibreOffice. But it took a long time.
I need thorugh simplest way/software like SPSS.
Can I install SPSS on ubuntu 14.04?
I am beginner.Please guide me

Related

How to do image processing using gstreamer like opencv?

I have one project in which I am doing some object detection using deep learning. I have tried to read video frames using OpenCV,but it was too slow. May be near to 1fps. I have switched on gstreamer but I do not know how I can read frame by frame a video file using it, after reading in that way i want to do object detection as well. How can I do that? any source code is appreciated. I am on windows 10 and Python 3.6 on Anaconda environment.

Progress bar in Python for varying loops

I'm assuming this can't be done easily but atm I've written for loops in python that take in multiple files from a folder and runs them against an executable to convert them into a readable format. Problem is, the number of files will be different almost every time I run the script. The whole process takes a while so a progress bar would be nice. I've been trying tqdm, progress, etc. modules, but they all seem to work based on a fixed number of iterations, which doesn't work for me.
Basically, is there any possible way to easily implement a progress bar which either calculates progress based on how long the process will take to perform the conversions, or based on how many there are to convert?
Though having said this, for one part of the code, instead of taking in files, it was easier to run a powershell script in cmd through python to keep it part of the same code. This script iterates through many many files and outputs 1 file. Again, is there a way to monitor the progress of this in python, even though in python the code is just running something in cmd?
Try PyProg! PyProg is an open-source library for Python to create super customizable progress indicators & bars.
It is currently at version 1.0.2; it is hosted on Github and available on PyPI (Links down below). It is compatible with Python 3 and 2.
I actually made PyProg because I needed a simple but super customizable progress bar library. And I made it super flexible as well, so you can use set_total(<total>) to set the total number of files you need to convert and use set_stat(<status>) to set the current progress, and it will calculate the percentage for you!
You can easily install it with: pip install pyprog. Some examples of using it is on the Github page for this project.
PyProg Github: https://github.com/Bill13579/pyprog
PyPI: https://pypi.python.org/pypi/pyprog/

Webcam capture in Python 3.4 on Windows

I have seen different modules like OpenCV and Videocapture for taking fast shots from the computer webcam, but these are only for Python 2. I thought I would make one work with Pygame, but I got many errors. I found different pages including pygame's website that said it only works with Linux.
Are there any modules for Python 3.4 for Windows that can quickly take shots from the webcam?
OpenCV can apparently be installed on Windows with Python 3, according to this answer here.
After OpenCV, my 2nd recommendation is to use GStreamer, and this is apparently possible on your specific platform according to this answer.

Creating a command line graphic setup/install

I have custom scripts that I have added to my raspberry pi using Raspbian. I would like to make a graphic install/config for my software preferences, such as that in the image below. I have found some other posts on Stack Overflow on dialog(1) utility, but It appears old and outdated since the date is 2009. Is there a newer or better program for accomplishing this?

Extracting descriptive information from a LiDAR cloud (.las files)

I have .las (lidar data) file, now I wanted to know the size of it, for example how long it's width and height in kilometers.
How is it possible to retrieve these kind of info?
tl;dr: install libLAS and run lasinfo myfile.las.
Lasfile headers, in general, shouldn't be trusted since they may not agree with the true data bounds. A more robust approach is to calculate the spatial extents of the data by reading the points themselves. Here's a few free and open-source ways to calculate the true bounds of a lasfile:
libLAS, via lasinfo mylasfile.las
libLAS can also be compiled with LASzip support to read .laz files
PDAL, via pdal info myfile.las
PDAL can also be configured to read other types of pointcloud files, including compressed .laz and more
If you want to inspect the lasfile's extents (and other properties) programically with Python, you can use laspy
Many of these software projects are available via package managers for your system:
Windows: OSGeo4W includes libLAS, LASzip, and PDAL
Ubuntu: sudo apt-get install liblas-bin will install lasinfo on Ubuntu 14.04, 12.04, and others
OSX: brew install pdal liblas using Homebrew
laspy can be installed via pip install laspy
You best bet is to use a specific software to find out the extent of this lidar file.
Another way you can probably do it is to look at the header section of the file (if you have the raw file), which must state the extent as well.
Otherwise, talk to the data provider (if you canĀ“t find out the extent any other way). He probably has the software and knows the extension of your dataset.
George
You can use the lasinfo utility from lastools which will return the .las header information (including the extent):
http://www.cs.unc.edu/~isenburg/lastools/
The lasinfo module in SAGA GIS will provide the same information:
http://www.saga-gis.org/
With Fusion, an option is the command line Catalog to retrieve descriptive statistics.
Suppose Fusion is installed under the directory c:\fusionand the las file is stored in c:\lidar\point_cloud.las. Write and run:
c:\fusion\catalog c:\lidar\point_cloud.las c:\lidar\point_cloud
An output example is:
Add switches to obtain more information or to adapt the command to specific needs (e.g.; switch 'coverage' will show nominal coverage area of the entire lidar cloud).

Resources