Skip to content

Commit

Permalink
Version 0.1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Yarroudh committed Jun 30, 2023
1 parent b0c079e commit d341adb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ supervision==0.8.0
segment-geospatial==0.8.1
rasterio==1.3.7
laspy==2.4.1
laszip==0.2.3
laszip==0.2.3
5 changes: 3 additions & 2 deletions segment_lidar/samlidar.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,9 +387,10 @@ def write(self, points: np.ndarray, segment_ids: np.ndarray, non_ground: np.ndar

print(f'Writing the segmented point cloud to {save_path}...')

header = laspy.LasHeader(point_format=3, version="1.3")
lidar = laspy.LasData(header=header)

if ground is not None:
header = laspy.LasHeader(point_format=3, version="1.3")
lidar = laspy.LasData(header=header)
indices = np.concatenate((non_ground, ground))
lidar.xyz = points[indices]
segment_ids = np.append(segment_ids, np.full(len(ground), -1))
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def run(self):

setup(
name="segment-lidar",
version='0.1.5',
version='0.1.6',
description="A package for segmenting LiDAR data using Segment-Anything Model (SAM) from Meta AI Research.",
long_description=open('README.md', encoding='utf-8').read(),
long_description_content_type='text/markdown',
Expand Down

0 comments on commit d341adb

Please sign in to comment.