Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bikerack filtering #83

Merged
merged 16 commits into from
Mar 20, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix docstring
  • Loading branch information
sourabh-nutonomy committed Mar 20, 2019
commit fd469abbc24bb0f0d94512415746713338c8d09f
9 changes: 6 additions & 3 deletions python-sdk/nuscenes/utils/geometry_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,14 @@
# Code written by Oscar Beijbom, 2018.
# Licensed under the Creative Commons [see licence.txt]

import numpy as np
from enum import IntEnum
from pyquaternion import Quaternion
from typing import Tuple

import numpy as np
from pyquaternion import Quaternion

from nuscenes.utils.data_classes import Box


class BoxVisibility(IntEnum):
""" Enumerates the various level of box visibility in an image """
Expand Down Expand Up @@ -108,7 +111,7 @@ def transform_matrix(translation: np.ndarray = np.array([0, 0, 0]),
return tm


def points_in_box(box, points, wlh_factor: float=1.0):
def points_in_box(box: Box, points: float, wlh_factor: float = 1.0):
"""
Checks whether points are inside the box.

Expand Down