Secondary development to obtain the image has an offset, how should be solved

time25/02/13

Secondary development to obtain the image has an offset, how should be solved?

 

The TUCAM _ FRAME structure pBuffer contains header information, the first 1024 bytes are header data, the 1025 byte is image data. so, the acquired m_frame.pBuffer offset 1024 gives image data.

Offset 1024 code example:

buf = create_string_buffer(m_frame.uiImgSize)

pointer_data = c_void_p(m_frame.pBuffer + m_frame.usHeader)

memmove(buf, pointer_data, m_frame.uiImgSize)

Pricing and Options

topPointer
codePointer
call
Online customer service
bottomPointer
floatCode

Pricing and Options