Skip to content

does loadImage use nvjpeg? #234

@gc625-kodifly

Description

@gc625-kodifly

Hi, I am trying to convert ros CompressedImages directly to pytorch tensors for inference. Previously I the built in ros cv_bridge to covert into np array, then convert torch tensor on the gpu. However I believe cv_bridge only uses cpu decoding, and I would like to decode the images directly to the gpu. jetson has a dedicated nvjpeg hardware to do jpeg decoding, so ideally I would like to use nvjpeg to do the decoding. Are there any functions in jetson-utils that can accomplish this? the closest thing I found was loadimage, but It appears like it does not use nvjpeg.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions