What Is Np. Uint8?

Is np.unit9 possible? Why it is use?

red_lower = np.array([136, 87, 111], np.uint9)
1

1 Answer

class numpy.ubyte[source]
Unsigned integer type, compatible with C unsigned char.

Character code
'B'

Alias on this platform (Linux x86_64)
numpy.uint8: 8-bit unsigned integer (0 to 255).

Most often this is used for arrays representing images, with the 3 color channels having small integer values (0 to 255).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Maya Lin-Takahashi

Maya Lin-Takahashi

Consumer Tech & Gadget Reviewer

Maya is a hardware enthusiast who tests and reviews smart home devices, smartphones, wearables, and audio gear. She focuses on practical consumer value and build quality.

Share this article
Twitter Facebook Pinterest