Task: Convert an RGB Image to NumPy Array
Task: Convert an RGB Image to NumPy Array: a task in Terminal-Lego-15k (Harbor dataset). You need to write a Python script that correctly converts an RGB image to a NumPy array. The original approach using cv.LoadImage() (from the old cv module) returns an IplImage object which doesn't convert…
The task
You need to write a Python script that correctly converts an RGB image to a NumPy array. The original approach using `cv.LoadImage()` (from the old cv module) returns an IplImage object which doesn't convert properly to a NumPy array using `numpy.asarray()`.
Part of PrimeIntellect/Terminal-Lego-15k.