@Namespace(value="cv") @Properties(inherit=opencv_video.class) public class Tracker extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
Tracker(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
init(GpuMat image,
Rect boundingBox) |
void |
init(Mat image,
Rect boundingBox)
\brief Initialize the tracker with a known bounding box that surrounded the target
|
void |
init(UMat image,
Rect boundingBox) |
boolean |
update(GpuMat image,
Rect boundingBox) |
boolean |
update(Mat image,
Rect boundingBox)
\brief Update the tracker, find the new most likely bounding box for the target
|
boolean |
update(UMat image,
Rect boundingBox) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public Tracker(Pointer p)
Pointer(Pointer)
.public void init(@ByVal Mat image, @Const @ByRef Rect boundingBox)
image
- The initial frameboundingBox
- The initial bounding box@Cast(value="bool") public boolean update(@ByVal Mat image, @ByRef Rect boundingBox)
image
- The current frameboundingBox
- The bounding box that represent the new target location, if true was returned, not
modified otherwise
Copyright © 2024. All rights reserved.