Library for reading, processing and writing .lvx files
Project description
livox_lvx
Library for reading, processing and writing .lvx files.
Usage
from lvx import LvxFileReader, LvxFileWriter
INPUT = '370132276011LIDAR.lvx'
with open(INPUT, 'rb') as fi, open(INPUT + '.other', 'wb') as fo:
lvx_in = LvxFileReader(fi)
header = lvx_in.header
lvx_out = LvxFileWriter(header, fo)
for frame in lvx_in:
lvx_out.write_frame(frame, True)
lvx.clean_file
The lvx.clean_file will remove any duplicate devices in the header device
block and updates the frame offsets while writing.
from lvx import clean_devices
clean_devices('input.lvx', 'output.lvx')
Script
python -m lvx.clean_devices -h # Show script help
python -m lvx.clean_devices input.lvx -o output.lvx
lvx.diff
The lvx.diff function will write a plain text file with information about the
structure of the input file.
from lvx import diff
diff('input.lvx', 'output.diff', header_only=False)
Script
python -m lvx.diff -h # Show script help
python -m lvx.diff input.lvx -o output.diff
Install
git clone https://gitlab.com/twh2898/livox_lvx
cd livox_lvx
pip install .
Development Install
Replace the pip command in the above code with the following (note the -e).
pip install -e .
Building
git clone https://gitlab.com/twh2898/livox_lvx
cd livox_lvx
pip install build
python -m build
License
livox_lvx uses the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file livox-lvx-0.2.1.tar.gz.
File metadata
- Download URL: livox-lvx-0.2.1.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eb57119cc2c6964adec293df6c3ffef42b3decb19e2a5993c6a5dd414d720f7d
|
|
| MD5 |
277ddacfc8e06793b97e2aa28ab9fcb2
|
|
| BLAKE2b-256 |
c6f3461bfc88f9ea9f8435f28319d0ed5565fa4c07556def8bf21a2d6b63c303
|
File details
Details for the file livox_lvx-0.2.1-py3-none-any.whl.
File metadata
- Download URL: livox_lvx-0.2.1-py3-none-any.whl
- Upload date:
- Size: 9.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e7fca6fda93f75db9bc5fe39037fbafa7464d44d66fdffd54a571766b9e8eddb
|
|
| MD5 |
9d9099332cdc97287c4210977828e803
|
|
| BLAKE2b-256 |
b41b93d7e366a12a178c5e27b3c5f62daf51250ef19a4e2ef836fae1eff0911a
|