Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
np array tolist and back
#3
Man! you are saving me so much time! :)

Thanks so much!!

...

frame = np.array(incoming_message, dtype=np.uint8)
reshaped_frame = frame.reshape((480, 640, 3))
cv2.imwrite('debug.jpg', reshaped_frame)
...

Cheers,
G.
Reply


Messages In This Thread
np array tolist and back - by anthares - Jun-13-2020, 06:17 AM
RE: np array tolist and back - by buran - Jun-13-2020, 06:47 AM
RE: np array tolist and back - by anthares - Jun-13-2020, 06:58 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  variable call back into an array yamifm0f 3 2,468 Jun-07-2019, 02:44 PM
Last Post: heiner55

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020