Function getPhoto
Last updated
Last updated
This article is automatically translated from Russian by Google Translator.
The function returns a one-dimensional array of bytes containing the pixels of an rgb32-formatted image taken from the camera (image size 160x120). This function can be used to solve marker recognition problems.
Let's look at an example of converting a frame taken with a camera to grayscale and black-and-white color formats.
Take a picture and display the result with the show function.
Rwsult:
Converts the image to black and white and outputs it to the display:
Result:
Translates the image to black and white and outputs it to the display:
Result: