neptune-client icon indicating copy to clipboard operation
neptune-client copied to clipboard

Feature Request: Add support for OpenCV images

Open SiddhantSadangi opened this issue 3 years ago • 1 comments

Currently, images read using cv2.imread() don't render correctly when uploaded directly to Neptune.

To render them correctly, they have to be:

  1. converted to RGB format
img_bgr = cv2.imread("OpenCV_logo.png", cv2.IMREAD_UNCHANGED)
img_rgb = cv2.cvtColor(img_bgr, cv2.COLOR_BGR2RGB)
  1. scaled
run["img_rgb_scaled"].upload(neptune.types.File.as_image(img_rgb/255))

These steps should be added to the client side itself while uploading such images.

Sample run with both scaled/unscaled rgb/bgr images: https://app.neptune.ai/common/quickstarts/e/QUI-75486/all?path=&attribute=img_rgb_scaled

SiddhantSadangi avatar Jan 22 '22 13:01 SiddhantSadangi

Hey Siddhant,

I have submitted the feature request to the engineering team,

Will keep you updated.

Blaizzy avatar Jan 26 '22 14:01 Blaizzy