# Class VisionPipeline<T>

java.lang.Object
com.codename1.ai.vision.VisionPipeline<T>

All Implemented Interfaces:
  `AutoCloseable`

public final class VisionPipeline<T> extends Object implements AutoCloseable
Connects a camera frame stream to an analyzer with keep-only-latest backpressure. The pipeline owns the analyzer and closes it on close.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `VisionPipeline(CameraSession session, VisionAnalyzer<T> analyzer, VisionPipelineListener<T> listener)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `close()`
  `boolean`
  `isBusy()`

  ### Methods inherited from class Object

  `clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### VisionPipeline

    public VisionPipeline(CameraSession session, VisionAnalyzer<T> analyzer, VisionPipelineListener<T> listener)

- ## Method Details

  - ### isBusy

    public boolean isBusy()

  - ### close

    public void close()
    Specified by:
      `close` in interface `AutoCloseable`