@Namespace(value="cv::detail::tracking::tbm") @Properties(inherit=opencv_tracking.class) public class ITrackerByMatching extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
ITrackerByMatching(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
long |
count()
\brief Returns number of counted people.
|
IImageDescriptor |
descriptorFast()
\brief Fast descriptor getter.
|
IImageDescriptor |
descriptorStrong()
\brief Strong descriptor getter.
|
IDescriptorDistance |
distanceFast()
\brief Fast distance getter.
|
IDescriptorDistance |
distanceStrong()
\brief Strong distance getter.
|
Mat |
drawActiveTracks(Mat frame)
\brief Draws active tracks on a given frame.
|
void |
dropForgottenTrack(long track_id)
\brief dropForgottenTrack Check that the track was lost too many frames
ago
and removes it frm memory.
|
void |
dropForgottenTracks()
\brief dropForgottenTracks Removes tracks from memory that were lost too
many frames ago.
|
SizeTPointVectorMap |
getActiveTracks()
\brief Get active tracks to draw
|
boolean |
isTrackForgotten(long id)
\brief isTrackForgotten returns true if track is forgotten.
|
boolean |
isTrackValid(long track_id)
\brief isTrackValid Checks whether track is valid (duration > threshold).
|
TrackerParams |
params()
\brief Pipeline parameters getter.
|
void |
process(Mat frame,
TrackedObjectDeque detections,
long timestamp)
\brief Process given frame.
|
void |
setDescriptorFast(IImageDescriptor val)
\brief Fast descriptor setter.
|
void |
setDescriptorStrong(IImageDescriptor val)
\brief Strong descriptor setter.
|
void |
setDistanceFast(IDescriptorDistance val)
\brief Fast distance setter.
|
void |
setDistanceStrong(IDescriptorDistance val)
\brief Strong distance setter.
|
void |
setParams(TrackerParams params)
\brief Pipeline parameters setter.
|
TrackedObjectDeque |
trackedDetections()
\brief Get tracked detections.
|
SizeTTrackMap |
tracks()
\brief tracks Returns all tracks including forgotten (lost too many frames
ago).
|
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 ITrackerByMatching(Pointer p)
Pointer(Pointer)
.public void process(@Const @ByRef Mat frame, @Cast(value="const cv::detail::tracking::tbm::TrackedObjects*") @ByRef TrackedObjectDeque detections, @Cast(value="cv::uint64_t") long timestamp)
frame
- [in] Colored image (CV_8UC3).detections
- [in] Detected objects on the frame.timestamp
- [in] Timestamp must be positive and measured in
milliseconds@Const @ByRef public TrackerParams params()
public void setParams(@Const @ByRef TrackerParams params)
params
- [in] Parameters of pipeline.@SharedPtr public IImageDescriptor descriptorFast()
public void setDescriptorFast(@SharedPtr IImageDescriptor val)
val
- [in] Fast descriptor used in pipeline.@SharedPtr public IImageDescriptor descriptorStrong()
public void setDescriptorStrong(@SharedPtr IImageDescriptor val)
val
- [in] Strong descriptor used in pipeline.@SharedPtr public IDescriptorDistance distanceFast()
public void setDistanceFast(@SharedPtr IDescriptorDistance val)
val
- [in] Fast distance used in pipeline.@SharedPtr public IDescriptorDistance distanceStrong()
public void setDistanceStrong(@SharedPtr IDescriptorDistance val)
val
- [in] Strong distance used in pipeline.@Cast(value="size_t") public long count()
@ByVal public SizeTPointVectorMap getActiveTracks()
@ByVal @Cast(value="cv::detail::tracking::tbm::TrackedObjects*") public TrackedObjectDeque trackedDetections()
@ByVal public Mat drawActiveTracks(@Const @ByRef Mat frame)
frame
- [in] Colored image (CV_8UC3).@Cast(value="bool") public boolean isTrackForgotten(@Cast(value="size_t") long id)
id
- Track ID.@Const @ByRef public SizeTTrackMap tracks()
@Cast(value="bool") public boolean isTrackValid(@Cast(value="size_t") long track_id)
track_id
- Index of checked track.public void dropForgottenTracks()
Copyright © 2024. All rights reserved.