@Namespace(value="op") @NoOffset @Properties(inherit=openpose.class) public class Producer extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
Producer(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
double |
get(int capProperty)
This function is a wrapper of cv::VideoCapture::get.
|
double |
get(openpose.ProducerProperty property)
Extra attributes that VideoCapture::get/set do not contain.
|
Matrix |
getCameraExtrinsics()
It retrieves and returns the camera extrinsic parameters from the frames producer.
|
Matrix |
getCameraIntrinsics()
It retrieves and returns the camera intrinsic parameters from the frames producer.
|
Matrix |
getCameraMatrices()
It retrieves and returns the camera matrixes from the frames producer.
|
Matrix |
getFrame()
Main function of Producer, it retrieves and returns a new frame from the frames producer.
|
Matrix |
getFrames()
Analogous to getFrame, but it could return > 1 frame.
|
BytePointer |
getNextFrameName()
This function returns a unique frame name (e.g., the frame number for video, the
frame counter for webcam, the image name for image directory reader, etc.).
|
openpose.ProducerType |
getType()
This function returns the type of producer (video, webcam, ...).
|
boolean |
isOpened()
This function returns whether the Producer instance is still opened and able
to retrieve more frames.
|
void |
release()
This function releases and closes the Producer.
|
void |
set(int capProperty,
double value)
This function is a wrapper of cv::VideoCapture::set.
|
void |
set(openpose.ProducerProperty property,
double value)
Extra attributes that VideoCapture::get/set do not contain.
|
void |
setProducerFpsMode(openpose.ProducerFpsMode fpsMode)
This function sets whether the producer must keep the original fps frame rate or extract the frames as quick
as possible.
|
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 Producer(Pointer p)
Pointer(Pointer)
.@ByVal public Matrix getFrame()
@StdVector public Matrix getFrames()
@StdVector public Matrix getCameraMatrices()
@StdVector public Matrix getCameraExtrinsics()
@StdVector public Matrix getCameraIntrinsics()
@StdString public BytePointer getNextFrameName()
public void setProducerFpsMode(openpose.ProducerFpsMode fpsMode)
fpsMode
- ProducerFpsMode parameter specifying the new value.public openpose.ProducerType getType()
@Cast(value="bool") public boolean isOpened()
public void release()
public double get(int capProperty)
capProperty
- int indicating the property to be modified.public void set(int capProperty, double value)
capProperty
- int indicating the property to be modified.value
- double indicating the new value to be assigned.public double get(openpose.ProducerProperty property)
property
- ProducerProperty indicating the property to be modified.public void set(openpose.ProducerProperty property, double value)
property
- ProducerProperty indicating the property to be modified.value
- double indicating the new value to be assigned.Copyright © 2022. All rights reserved.