Skip to content
This repository was archived by the owner on Jun 3, 2023. It is now read-only.
This repository was archived by the owner on Jun 3, 2023. It is now read-only.

Fails with higher-resolution images  #8

@keysmashes

Description

@keysmashes

In RoboCon 2018, we ran into an issue with libkoki when using the Raspberry Pi camera module, which can produce significantly higher-resolution images than the webcams SR typically use can. libkoki would intermittently fail this assertion:

libkoki/src/labelling.c

Lines 277 to 278 in 5b3c679

/* Check we do not exceed the maximum number of labels */
assert( lmg->aliases->len != KOKI_LABEL_MAX );

The fix we used is systemetric/libkoki@d84c77f, which just changes label_t from a 16-bit uint to a 32-bit uint and bumps KOKI_LABEL_MAX accordingly. I had (and still have) no idea if that's the correct thing to do, or if anything else needs changing as a result of that, but it seemed to work for us :)

No opinion on whether you should take this change or not, mostly just wanted to document an issue that we ran into.

(before shelling out for better cameras for SR, it's probably worth checking if high-resolution images actually help the marker recognition at all; I don't remember what the conclusion from my year of RoboCon was, but from what I've heard from this year, it's not clear if increasing the resolution actually has any effect apart from making it slower)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions