@Name(value="op::WrapperT<op::Datum,std::vector<std::shared_ptr<op::Datum> >,std::shared_ptr<std::vector<std::shared_ptr<op::Datum> > >,std::shared_ptr<op::Worker<std::shared_ptr<std::vector<std::shared_ptr<op::Datum> > > > > >") @NoOffset @Properties(inherit=openpose.class) public class OpWrapper extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
OpWrapper() |
OpWrapper(long size)
Native array allocator.
|
OpWrapper(openpose.ThreadManagerMode threadManagerMode)
Constructor.
|
OpWrapper(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
configure(WrapperStructExtra wrapperStructExtra)
Analogous to configure() but applied to the extra options (WrapperStructExtra)
|
void |
configure(WrapperStructFace wrapperStructFace)
Analogous to configure(WrapperStructPose) but applied to face (WrapperStructFace)
|
void |
configure(WrapperStructGui wrapperStructGui)
Analogous to configure() but applied to the GUI (WrapperStructGui)
|
void |
configure(WrapperStructHand wrapperStructHand)
Analogous to configure() but applied to hand (WrapperStructHand)
|
void |
configure(WrapperStructInput wrapperStructInput)
Analogous to configure() but applied to the input (WrapperStructInput)
|
void |
configure(WrapperStructOutput wrapperStructOutput)
Analogous to configure() but applied to the output (WrapperStructOutput)
|
void |
configure(WrapperStructPose wrapperStructPose)
It configures the pose parameters.
|
void |
disableMultiThreading()
Disable multi-threading.
|
boolean |
emplaceAndPop(Datums tDatums)
Runs both waitAndEmplace and waitAndPop.
|
Datums |
emplaceAndPop(Matrix matrix)
Similar to emplaceAndPop(TDatumsSP& tDatums), but it takes a Matrix as input.
|
void |
exec()
Function to start multi-threading.
|
OpWrapper |
getPointer(long i) |
boolean |
isRunning()
Whether the WrapperT is running.
|
OpWrapper |
position(long position) |
void |
setDefaultMaxSizeQueues() |
void |
setDefaultMaxSizeQueues(long defaultMaxSizeQueues)
It sets the maximum number of elements in the queue.
|
void |
setWorker(openpose.WorkerType workerType,
DatumsWorker worker) |
void |
setWorker(openpose.WorkerType workerType,
DatumsWorker worker,
boolean workerOnNewThread)
Add an user-defined extra Worker for a desired task (input, output, ...).
|
void |
start()
Function to start multi-threading.
|
void |
stop()
Function to stop multi-threading.
|
boolean |
tryEmplace(Datums tDatums)
Emplace (move) an element on the first (input) queue.
|
boolean |
tryPop(Datums tDatums)
Pop (retrieve) an element from the last (output) queue.
|
boolean |
tryPush(Datums tDatums)
Push (copy) an element on the first (input) queue.
|
boolean |
waitAndEmplace(Datums tDatums)
Emplace (move) an element on the first (input) queue.
|
boolean |
waitAndEmplace(Matrix matrix)
Similar to waitAndEmplace(const TDatumsSP& tDatums), but it takes a Matrix as input.
|
boolean |
waitAndPop(Datums tDatums)
Pop (retrieve) an element from the last (output) queue.
|
boolean |
waitAndPush(Datums tDatums)
Push (copy) an element on the first (input) queue.
|
boolean |
waitAndPush(Matrix matrix)
Similar to waitAndPush(const TDatumsSP& tDatums), but it takes a Matrix as input.
|
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public OpWrapper(Pointer p)
Pointer(Pointer)
.public OpWrapper(long size)
Pointer.position(long)
.public OpWrapper(openpose.ThreadManagerMode threadManagerMode)
threadManagerMode
- Thread syncronization mode. If set to ThreadManagerMode::Synchronous, everything
will run inside the WrapperT. If ThreadManagerMode::Synchronous(In/Out), then input (frames producer) and/or
output (GUI, writing results, etc.) will be controlled outside the WrapperT class by the user. See
ThreadManagerMode for a detailed explanation of when to use each one.public OpWrapper()
public OpWrapper getPointer(long i)
getPointer
in class Pointer
public void disableMultiThreading()
public void setWorker(openpose.WorkerType workerType, @Const @SharedPtr @ByRef DatumsWorker worker, @Cast(value="const bool") boolean workerOnNewThread)
workerType
- WorkerType to configure (e.g., Input, PreProcessing, PostProcessing, Output).worker
- TWorker to be added.workerOnNewThread
- Whether to add this TWorker on a new thread (if it is computationally demanding) or
simply reuse existing threads (for light functions). Set to true if the performance time is unknown.public void setWorker(openpose.WorkerType workerType, @Const @SharedPtr @ByRef DatumsWorker worker)
public void configure(@Const @ByRef WrapperStructPose wrapperStructPose)
public void configure(@Const @ByRef WrapperStructFace wrapperStructFace)
public void configure(@Const @ByRef WrapperStructHand wrapperStructHand)
public void configure(@Const @ByRef WrapperStructExtra wrapperStructExtra)
public void configure(@Const @ByRef WrapperStructInput wrapperStructInput)
public void configure(@Const @ByRef WrapperStructOutput wrapperStructOutput)
public void configure(@Const @ByRef WrapperStructGui wrapperStructGui)
public void exec()
public void start()
QMetaMethod::invoke: Unable to invoke methods with return values in queued
connections
. Use exec() in that case.public void stop()
@Cast(value="bool") public boolean isRunning()
public void setDefaultMaxSizeQueues(long defaultMaxSizeQueues)
defaultMaxSizeQueues
- long long element with the maximum number of elements on the queue.public void setDefaultMaxSizeQueues()
@Cast(value="bool") public boolean tryEmplace(@SharedPtr @ByRef Datums tDatums)
tDatums
- TDatumsSP element to be emplaced.@Cast(value="bool") public boolean waitAndEmplace(@SharedPtr @ByRef Datums tDatums)
tDatums
- TDatumsSP element to be emplaced.@Cast(value="bool") public boolean waitAndEmplace(@ByRef Matrix matrix)
matrix
- Matrix with the image to be processed.@Cast(value="bool") public boolean tryPush(@Const @SharedPtr @ByRef Datums tDatums)
tDatums
- TDatumsSP element to be pushed.@Cast(value="bool") public boolean waitAndPush(@Const @SharedPtr @ByRef Datums tDatums)
tDatums
- TDatumsSP element to be pushed.@Cast(value="bool") public boolean waitAndPush(@Const @ByRef Matrix matrix)
matrix
- Matrix with the image to be processed.@Cast(value="bool") public boolean tryPop(@SharedPtr @ByRef Datums tDatums)
tDatums
- TDatumsSP element where the retrieved element will be placed.@Cast(value="bool") public boolean waitAndPop(@SharedPtr @ByRef Datums tDatums)
tDatums
- TDatumsSP element where the retrieved element will be placed.@Cast(value="bool") public boolean emplaceAndPop(@SharedPtr @ByRef Datums tDatums)
tDatums
- TDatumsSP element where the retrieved element will be placed.@SharedPtr @ByVal public Datums emplaceAndPop(@Const @ByRef Matrix matrix)
matrix
- Matrix with the image to be processed.Copyright © 2022. All rights reserved.