Skip to content

Commit a4397c6

Browse files
committed
Add Line Tracking Getters
Adding basic getters to return the set of cached vectors, intersections, and barcodes for line tracking.
1 parent 5c7f12d commit a4397c6

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

src/main/java/io/github/pseudoresonance/pixy2api/Pixy2Line.java

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,33 @@ else if (!wait) // we're busy
179179
}
180180
}
181181

182+
/**
183+
* Gets detected lines from cache
184+
*
185+
* @return Pixy2 Lines
186+
*/
187+
public Vector[] getVectors() {
188+
return vectors;
189+
}
190+
191+
/**
192+
* Gets detected intersections from cache
193+
*
194+
* @return Pixy2 Intersectionss
195+
*/
196+
public Intersection[] getIntersections() {
197+
return intersections;
198+
}
199+
200+
/**
201+
* Gets detected barcodes from cache
202+
*
203+
* @return Pixy2 Barcodes
204+
*/
205+
public Barcode[] getBarcodes() {
206+
return barcodes;
207+
}
208+
182209
/**
183210
* Sets Pixy2 line tracking mode
184211
*

0 commit comments

Comments
 (0)