Preprocessing returns a black screen
EXJUSTICE opened this issue · 1 comments
EXJUSTICE commented
Loving the tutorial man, trying something on Doom myself. However, I noticed that your preprocessing function using transform.resize returns a completely black screen.
Someone on stackoverflow suggested it was due to the normalization function (dividing by 255.0), but that had no effect. You can view it for yourself by calling cv2_imshow() to double check. The original game screens are fine, so im a bit confused, any ideas?
EXJUSTICE commented
Solved my own problem, essentially the transform.resize function converts data into pixels, which CV2 does not support. using matplotlib solves problem