Skip to content
⚡ Developer documentation for INFINICAM, the real-time high-speed camera (UC-1.1 / GbE-2)

Known Issues

This page lists known issues in the SDK (PUCLIB) and pypuclib, and how to work around them. We will announce fixed versions on this page.

Issue Affected Status
Decoding only part of an image returns the image from the opposite position SDK 1.7.0.0 and 1.6.1.0, pypuclib 1.2.0 Being fixed (posted 2026-11-17)

Decoding only part of an image returns the image from the opposite position

Section titled “Decoding only part of an image returns the image from the opposite position”

When you decode only part of an image (an ROI) by giving a position to PUC_DecodeData or a similar function, you get the image counted from the opposite side, both horizontally and vertically, instead of the position you specified.

If you specify the position (x, y) and the size w × h, you get the image at:

  • Horizontal position: image width − x − w
  • Vertical position: image height − y − h

For example, on an 800 × 600 image, asking for 56 × 56 starting at (112, 368) returns the 56 × 56 area starting at (632, 176) (632 = 800 − 112 − 56, 176 = 600 − 368 − 56). The returned image itself is the right way up. Only its position is wrong.

Software Affected versions Affected functions
SDK (PUCLIB) 1.7.0.0, 1.6.1.0 PUC_DecodeData, PUC_DecodeDataMultiThread, PUC_DecodeDCData, PUC_DecodeDCTData (when part of the image is specified)
pypuclib 1.2.0 Decoder.decode, Decoder.decodeDC, Decoder.decodeDCT (when a position and size are given)
  • We have confirmed this on the GbE-2. We have not yet checked the UC-1.1.
  • PUC_DecodeDCData and decodeDC behave the same way in units of blocks (8 × 8 pixels). If you specify the block position (bx, by) and the block count cx × cy, you get the blocks at (blocks across − bx − cx, blocks down − by − cy).
  • We have not yet checked GPU decoding (such as decodeGPU).

Until a fixed version is released, pass the position counted from the opposite side to get the area you want. When you switch to a fixed version, remove this swap. Putting the swap in one function makes it easy to remove later.

C++

// Workaround for SDK 1.7.0.0 / 1.6.1.0: when decoding part of the image, pass the position counted from the opposite side
// (width and height are the size of the whole image. With a fixed SDK, pass roiX and roiY as they are.)
UINT32 fixX = width - roiX - roiWidth;
UINT32 fixY = height - roiY - roiHeight;
ret = PUC_DecodeData(pRoiDecodedBuffer, fixX, fixY, roiWidth, roiHeight, roiLineBytes, pCompressedBuffer, qVals);

Python

# Workaround for pypuclib 1.2.0: when decoding part of the image, pass the position counted from the opposite side
# (width and height are the size of the whole image. With a fixed version, pass x and y as they are.)
def decode_roi(decoder, data, x, y, w, h, width, height):
return decoder.decode(data, width - x - w, height - y - h, w, h)

To take out part of the DC component (PUC_DecodeDCData or decodeDC), do the same swap in units of blocks (blocks across − bx − cx, blocks down − by − cy).

Page Effect
SingleImage + ROI Decode (C++) and (Python) The area used on these pages (400 × 296 starting at (200, 152)) is in the middle of the image, so counting from the opposite side gives the same area, and you get the correct image. If you change the area, it will be wrong.
Measuring rotation speed The watched area (16 × 16 starting at (392, 296)) is actually 16 × 16 starting at (392, 288). The program looks 8 pixels above the box shown on the screen (the top half of the box overlaps). With (600, 200) from the “Things to try” example, it actually looks at (184, 384) and cannot count the mark. If the mark is not detected reliably, or when you change ROI_X and ROI_Y, use the workaround above.
Other samples and applications They decode the whole image or take out the whole DC component, so they are not affected.