Ask Your Question

SagRU's profile - activity

2019-09-18 01:45:14 -0600 received badge  Enthusiast
2019-09-11 08:09:03 -0600 asked a question Is it possible to immediately reduce memory usage by deleting variables?

Is it possible to immediately reduce memory usage by deleting variables? Hello, I have an OpenCV Python script that pro

2019-08-14 08:26:45 -0600 asked a question How to make a custom kernel for extraction?

How to make a custom kernel for extraction? Hello, I use morphological opening to extract horizontal lines from my imag

2019-08-12 23:54:37 -0600 received badge  Supporter (source)
2019-08-12 23:54:28 -0600 marked best answer How to convert an RGB image to Boolean array?

Hello,

I'm totally new to OpenCV and NumPy. When I load an image using cv2.imread, I get a NumPy array with RGBs inside, so every pixel is described as [B G R]. I want to convert this array to boolean one, where every pixel is either black (0) or white (1).

Are there any built-in OpenCV functions for this task?

2019-08-12 23:54:28 -0600 received badge  Scholar (source)
2019-08-12 07:40:08 -0600 asked a question How to convert an RGB image to Boolean array?

How to convert an RGB image to Boolean array? Hello, I'm totally new to OpenCV and NumPy. When I load an image using cv