Go to the documentation of this file.
30 #include <Image/ImageProcessor.h>
36 processor(processor), jobPending(false), jobFinished(false), abortRequested(false)
44 std::unique_lock lock(jobMutex);
45 this->objectClassNames = objectClassNames;
53 abortRequested =
false;
56 memoryx::ObjectLocalizationResultList
64 std::unique_lock lock(jobMutex);
71 abortRequested =
true;
87 processor->initObjectClasses();
90 memoryx::ObjectLocalizationResultList localResult;
92 while (!abortRequested)
97 while (!jobPending && !abortRequested)
106 ARMARX_INFO <<
"ObjectLocalizerProcessorJob::process(): exit requested";
113 ARMARX_DEBUG <<
"ObjectLocalizerProcessorJob::process(): starting localization";
124 for (
int n = 0;
n < numImages;
n++)
173 catch (std::exception& e)
180 std::unique_lock lock(jobMutex);
181 result = localResult;
CByteImage ** resultImages
memoryx::ObjectLocalizationResultList localizeObjectClasses(const memoryx::ObjectClassNameList &objectClassNames, const Ice::Current &c=Ice::emptyCurrent) override
The process method is inherited from the ObjectLocalizationProcessorInterface and is called by the Wo...
bool getResultImagesEnabled() const
Retrieve whether result images are enabled.
virtual bool initRecognizer()=0
ObjectLocalizerProcessor interface: The initRecognizer method needs to be implemented by any ObjectLo...
void exit()
Requests exit to the job.
constexpr auto n() noexcept
memoryx::ObjectLocalizationResultList waitForResult()
Wait for the localization result.
armarx::MetaInfoSizeBasePtr imageMetaInfo
SpamFilterDataPtr deactivateSpam(SpamFilterDataPtr const &spamFilter, float deactivationDurationSec, const std::string &identifier, bool deactivate)
CByteImage * cameraImages[2]
bool isResultImageMaskEnabled() const
int getImages(CByteImage **ppImages)
Poll images from provider.
std::string imageProviderName
Eigen::Vector3i getColorMask() const
void start(std::vector< std::string > objectClassNames)
Start a localization job for the given objectClassName.
void provideResultImages(CByteImage **images, armarx::MetaInfoSizeBasePtr info=nullptr)
sends result images for visualization
std::string getName() const
Retrieve name of object.
ObjectLocalizerProcessorJob(ObjectLocalizerProcessor *processor)
Init the job by providing the ObjectLocalizerProcessor that implements the required functionality.
void process()
Processing method.
ObjectLocalizerProcessor.