Covert Image to matrix

Discussion related to "under the hood" OpenMV topics.
skylin008
Posts: 48
Joined: Mon Mar 13, 2017 10:18 pm

Covert Image to matrix

Postby skylin008 » Thu Dec 28, 2017 9:29 pm

Hello everyone! I want Image to dehazing processing,need covert image pixel value to matrix .But when run the script,the error information as show,had any method to finish this function.Thanks kindly support!
Attachments
%(2JQYGJOFV_T~NC(YJW1X8.png
%(2JQYGJOFV_T~NC(YJW1X8.png (4.99 KiB) Viewed 389 times
5Q(`H8DFOX9[MWWPZ_13KJ7.png
5Q(`H8DFOX9[MWWPZ_13KJ7.png (8.12 KiB) Viewed 389 times
User avatar
kwagyeman
Posts: 2118
Joined: Sun May 24, 2015 2:10 pm

Re: Covert Image to matrix

Postby kwagyeman » Thu Dec 28, 2017 10:09 pm

Hi, the python interface isn't really meant for pixel level manipulation. You should write your code in C instead. There's no way you can fit an image in the small heap space available in C. Most of the memory on the MCU is not accessible in Python world.

What algorithm are you trying to do by the way? Dehazing? Does that mean image sharpening? We have that built-in already.
Nyamekye,
skylin008
Posts: 48
Joined: Mon Mar 13, 2017 10:18 pm

Re: Covert Image to matrix

Postby skylin008 » Fri Dec 29, 2017 1:27 am

Thanks K kwagyeman,I will be try.

Return to “Technical Discussion”

Who is online

Users browsing this forum: No registered users and 8 guests