question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Feat] torch implementation of opencv drawing functions

See original GitHub issue

🚀 Feature

I would like to have an equivalent of the opencv drawing functions implemented in torch. The reason for that is simply that I do not want to detach all tensors and iterate over the batch to apply some visualisation.

Motivation

I want to the able to just apply the same opencv functionality to torch tensors as I normally do to 2d images.

Pitch

Just sit down and implement those functions under kornia.cv2.drawing. I could get started with the simple ones, (if desired) and make a PR.

Alternatives

Haven’t found any, yet.

Additional context

https://docs.opencv.org/2.4/modules/core/doc/drawing_functions.html

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:16 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
edgarribacommented, Oct 21, 2020

@edgarriba yes, N boxes per batch. As for in place or not, I don’t have a strong opinion on that but I believe that since the intention for now is to not use it for backprop we can do it in that way.

0reactions
edgarribacommented, Apr 3, 2021
Read more comments on GitHub >

github_iconTop Results From Across the Web

Drawing Functions in OpenCV
Learn to draw different geometric shapes with OpenCV · You will learn these functions : cv.line(), cv.circle() , cv.rectangle(), cv.ellipse(), cv.putText() etc.
Read more >
Drawing with OpenCV - PyImageSearch
In this tutorial, you will learn how to use OpenCV's basic drawing functions. You will learn how to use OpenCV to draw lines,...
Read more >
Deep Convolutional GAN in PyTorch and TensorFlow
Learn the theoretical concepts of Deep Convolutional GAN. Code DCGAN in both PyTorch and TensorFlow frameworks on Anime Faces Dataset.
Read more >
A Modern Library for 3D Data Processing - Open3D
New 3D machine learning models and datasets, featuring PointRCNN for 3D object detection, SparseConvNets for point cloud semantic segmentation, and support for ...
Read more >
python - How do I draw a filled rectangle using OpenCV's ...
I'm very new to OpenCV, hence I cannot really understand which function to use to draw a filled rectangle instead of a bounding...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found