Hi!
I´d like to tell pixy via USART to track a custom Signature.
I handle the USART events at video/progblobs.cpp which is fine.
But how can I tell pixy to track a new color?
My thoughts:
- Generate a object of type ColorSignature (mysig)
- pass it over to ColorLUT::setSignature(uint8_t signum, const ColorSignature &mysig)
1. Would this work?
2. Can you please explain the parameters of the struct ColorSignature? Has m_uMin m_uMax todo with HUE-Colors?
Thank you a lot!
@common/colorlut.h:
struct ColorSignature
{
ColorSignature()
{
m_uMin = m_uMax = m_uMean = m_vMin = m_vMax = m_vMean = m_type = 0;
}
int32_t m_uMin;
int32_t m_uMax;
int32_t m_uMean;
int32_t m_vMin;
int32_t m_vMax;
int32_t m_vMean;
uint32_t m_rgb;
uint32_t m_type;
};