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
livox-lvx-0.2.1.tar.gz
(7.3 kB
view hashes)
Built Distribution
Close
Hashes for livox_lvx-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7fca6fda93f75db9bc5fe39037fbafa7464d44d66fdffd54a571766b9e8eddb |
|
MD5 | 9d9099332cdc97287c4210977828e803 |
|
BLAKE2b-256 | b41b93d7e366a12a178c5e27b3c5f62daf51250ef19a4e2ef836fae1eff0911a |