How can I switch RGB565 to GRAYSCALE when receiving some information from UART?

Discussion related to "under the hood" OpenMV topics.
lyclx97
Posts: 1
Joined: Fri Aug 11, 2017 1:17 am

How can I switch RGB565 to GRAYSCALE when receiving some information from UART?

Postby lyclx97 » Fri Aug 11, 2017 1:20 am

How can I switch RGB565 to GRAYSCALE when receiving some information from UART?
Can OpenMV do this?
User avatar
kwagyeman
Posts: 1175
Joined: Sun May 24, 2015 2:10 pm

Re: How can I switch RGB565 to GRAYSCALE when receiving some information from UART?

Postby kwagyeman » Fri Aug 11, 2017 1:29 am

Yes, just change the sensor pixformat.

sensor.set_pixformat(sensor.RGB565)

To:

sensor.set_pixformat(sensor.GRAYSCALE)
Nyamekye,

Return to “Technical Discussion”

Who is online

Users browsing this forum: No registered users and 1 guest