@Namespace(value="op") @NoOffset @Properties(inherit=openpose.class) public class WrapperStructInput extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
WrapperStructInput() |
WrapperStructInput(long size)
Native array allocator.
|
WrapperStructInput(openpose.ProducerType producerType,
OpString producerString,
long frameFirst,
long frameStep,
long frameLast,
boolean realTimeProcessing,
boolean frameFlip,
int frameRotate,
boolean framesRepeat,
IntPoint cameraResolution,
OpString cameraParameterPath,
boolean undistortImage,
int numberViews)
Constructor of the struct.
|
WrapperStructInput(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
OpString |
cameraParameterPath()
Directory path for the camera parameters (intrinsic and extrinsic parameters) or optionally XML file
full path (if only 1 view).
|
WrapperStructInput |
cameraParameterPath(OpString setter) |
IntPoint |
cameraResolution()
Camera resolution (only for Webcam and FlirCamera).
|
WrapperStructInput |
cameraResolution(IntPoint setter) |
long |
frameFirst()
First image to process.
|
WrapperStructInput |
frameFirst(long setter) |
boolean |
frameFlip()
Whether to flip (mirror) the image.
|
WrapperStructInput |
frameFlip(boolean setter) |
long |
frameLast()
Last image to process.
|
WrapperStructInput |
frameLast(long setter) |
int |
frameRotate()
Image rotation.
|
WrapperStructInput |
frameRotate(int setter) |
boolean |
framesRepeat()
Whether to re-open the producer if it reaches the end (e.g., video or image directory after the last frame).
|
WrapperStructInput |
framesRepeat(boolean setter) |
long |
frameStep()
Step or gap across processed frames.
|
WrapperStructInput |
frameStep(long setter) |
WrapperStructInput |
getPointer(long i) |
int |
numberViews()
Number of camera views.
|
WrapperStructInput |
numberViews(int setter) |
WrapperStructInput |
position(long position) |
OpString |
producerString()
Path of the producer (image directory path for ImageDirectory, video path for Video,
camera index for Webcam and FlirCamera, URL for IPCamera, etc.).
|
WrapperStructInput |
producerString(OpString setter) |
openpose.ProducerType |
producerType()
Desired type of producer (FlirCamera, ImageDirectory, IPCamera, Video, Webcam, None, etc.).
|
WrapperStructInput |
producerType(openpose.ProducerType setter) |
boolean |
realTimeProcessing()
Whether to skip or sleep in order to keep the same FPS as the frames producer.
|
WrapperStructInput |
realTimeProcessing(boolean setter) |
boolean |
undistortImage()
Whether to undistort the image given the camera parameters.
|
WrapperStructInput |
undistortImage(boolean setter) |
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 WrapperStructInput(Pointer p)
Pointer(Pointer)
.public WrapperStructInput(long size)
Pointer.position(long)
.public WrapperStructInput(openpose.ProducerType producerType, @Const @ByRef(nullValue="op::String(\"\")") OpString producerString, @Cast(value="const unsigned long long") long frameFirst, @Cast(value="const unsigned long long") long frameStep, @Cast(value="const unsigned long long") long frameLast, @Cast(value="const bool") boolean realTimeProcessing, @Cast(value="const bool") boolean frameFlip, int frameRotate, @Cast(value="const bool") boolean framesRepeat, @Const @ByRef(nullValue="op::Point<int>{-1,-1}") IntPoint cameraResolution, @Const @ByRef(nullValue="op::String(\"models/cameraParameters/\")") OpString cameraParameterPath, @Cast(value="const bool") boolean undistortImage, int numberViews)
public WrapperStructInput()
public WrapperStructInput position(long position)
public WrapperStructInput getPointer(long i)
getPointer
in class Pointer
public openpose.ProducerType producerType()
public WrapperStructInput producerType(openpose.ProducerType setter)
@ByRef public OpString producerString()
public WrapperStructInput producerString(OpString setter)
@Cast(value="unsigned long long") public long frameFirst()
public WrapperStructInput frameFirst(long setter)
@Cast(value="unsigned long long") public long frameStep()
public WrapperStructInput frameStep(long setter)
@Cast(value="unsigned long long") public long frameLast()
public WrapperStructInput frameLast(long setter)
@Cast(value="bool") public boolean realTimeProcessing()
public WrapperStructInput realTimeProcessing(boolean setter)
public WrapperStructInput frameFlip(boolean setter)
public int frameRotate()
public WrapperStructInput frameRotate(int setter)
@Cast(value="bool") public boolean framesRepeat()
public WrapperStructInput framesRepeat(boolean setter)
@ByRef public IntPoint cameraResolution()
public WrapperStructInput cameraResolution(IntPoint setter)
@ByRef public OpString cameraParameterPath()
public WrapperStructInput cameraParameterPath(OpString setter)
@Cast(value="bool") public boolean undistortImage()
public WrapperStructInput undistortImage(boolean setter)
public int numberViews()
--image_dir
or --video
It is -1 for Flir cameras (# cameras detected at runtime), as well as for any other frames source (-1 and 1
are equivalent for those). It could be greater than 1 only for prerecorded produced sources, such as video
and image directory.public WrapperStructInput numberViews(int setter)
Copyright © 2022. All rights reserved.