> ## Documentation Index
> Fetch the complete documentation index at: https://docs.generalrobotics.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Object Inspection

The `ObjectInspect` class provides core functionality for this module.

<ResponseField name="class ObjectInspect()">
  <ResponseField name="use_local" type="boolean" default>
    If True, inference call is run on the local VM, else offloaded onto GRID-Cortex. Defaults to True.
  </ResponseField>
</ResponseField>

<ResponseField name="def run()">
  <ResponseField name="rgbimage" type="np.ndarray" required="True">
    None
  </ResponseField>

  <ResponseField name="Returns" type="np.ndarray">
    The predicted output.
  </ResponseField>
</ResponseField>

<RequestExample>
  ```python Inference Call theme={null}
  from grid.model.navigation.objectinspection import ObjectInspect
  car = AirGenCar()

  # We will be capturing an image from the AirGen simulator 
  # and run model inference on it.

  img =  car.getImage("front_center", "rgb").data

  model = ObjectInspect(use_local = True)
  result = model.run(rgbimage=img)
  print(result.shape)
  ```
</RequestExample>

<Tabs>
  <Tab title="License">
    This code is licensed under the Apache 2.0 License.
  </Tab>

  <Tab title="Source">
    No credits provided.
  </Tab>
</Tabs>
