News for hackers. Stuff that matters.
Re:Where Is OpenCV 5? by albertzeyer on Monday November 27, 2023 @08:54AM (#38432236)
Why harder? My point is, by using some DL framework, you would make this simpler. You don't need to have a big NN for that, or even any NN at all, and could still use some DL framework, and I would assume this is still easier and probably faster. E.g. finding what pixels are a specific color, this would be sth like:

    torch.all(image == torch.tensor([255,0,0]), dim=-1).nonzero()
To get all pixel pairs (x,y) where the color is red (255,0,0) of the image of shape (width,height,channels).
Re:Where Is OpenCV 5? by matsemann on Monday November 27, 2023 @09:12AM (#38432408)
How do you generate the torch vector to do this? Often it's OpenCV!
Re:Where Is OpenCV 5? by albertzeyer on Monday November 27, 2023 @09:28AM (#38432588)
torchvision.io.read_image?
Re:Where Is OpenCV 5? by bigbillheck on Monday November 27, 2023 @12:08PM (#38434905)
This is like answering "the grocery store" when asked where food comes from.