mirror of
https://github.com/PhotonVision/photonvision
synced 2026-07-05 03:21:40 +00:00
Expose object detection class id/conf in photonlib (#1266)
* Implement class id/conf in photonlib * Maybe fix things * run lint * Update Packet.java comments * Update Packet.java comments again * Update comments * oops * Update packet.py --------- Co-authored-by: Chris Gerth <gerth2@users.noreply.github.com>
This commit is contained in:
@@ -96,6 +96,14 @@ class Packet:
|
||||
"""
|
||||
return self._decodeGeneric(">l", 4)
|
||||
|
||||
def decodeFloat(self) -> float:
|
||||
"""
|
||||
* Returns a decoded float from the packet.
|
||||
*
|
||||
* @return A decoded float from the packet.
|
||||
"""
|
||||
return self._decodeGeneric(">f", 4)
|
||||
|
||||
def decodei64(self) -> int:
|
||||
"""
|
||||
* Returns a decoded int64 from the packet.
|
||||
|
||||
Reference in New Issue
Block a user