Page 1 of 1

Find_number function problem

Posted: Tue May 08, 2018 12:46 am
by yocheng
When I test the find_number function, can I only set the length and width to 28 fixed? What if I want to change this value?

Re: Find_number function problem

Posted: Tue May 08, 2018 1:19 am
by kwagyeman
That method is just experimental. It's not really usable right now since it doesn't scale the image to the right size.

We plan to have full CNN support soon.

That said, if you are handy in C, we'd appreciate a PR to fix the code for find_number so it can accept multiple scales.

Re: Find_number function problem

Posted: Tue May 08, 2018 5:31 am
by yocheng
kwagyeman wrote:
Tue May 08, 2018 1:19 am
That method is just experimental. It's not really usable right now since it doesn't scale the image to the right size.

We plan to have full CNN support soon.

That said, if you are handy in C, we'd appreciate a PR to fix the code for find_number so it can accept multiple scales.

I will Ç language, can I change the code to adapt to my application size?
What am I going to do?

Re: Find_number function problem

Posted: Wed May 09, 2018 1:14 am
by kwagyeman
You just need to edit this method here: https://github.com/openmv/openmv/blob/m ... enet.c#L89

Right now, layer 0 is just 28x28. Scaling the input before the data comes in fixes the issue. I have plans to add a scaling method to the firmware. However, I do not have time right now.

Re: Find_number function problem

Posted: Wed May 09, 2018 1:14 am
by kwagyeman
You just need to edit this method here: https://github.com/openmv/openmv/blob/m ... enet.c#L89

Right now, layer 0 is just 28x28. Scaling the input before the data comes in fixes the issue. I have plans to add a scaling method to the firmware. However, I do not have time right now.

Re: Find_number function problem

Posted: Wed May 09, 2018 6:47 am
by yocheng
kwagyeman wrote:
Wed May 09, 2018 1:14 am
You just need to edit this method here: https://github.com/openmv/openmv/blob/m ... enet.c#L89

Right now, layer 0 is just 28x28. Scaling the input before the data comes in fixes the issue. I have plans to add a scaling method to the firmware. However, I do not have time right now.

I will study the code first, but still hope you can add this function in the new firmware, because reading the numbers, this application is very common. Thank you!

Re: Find_number function problem

Posted: Wed May 09, 2018 10:25 pm
by kwagyeman
We plan to release a much more general purpose CNN framework that can do everything. Basically, you'll be able to load a NN for any class you'd like to find. This will be the first of it's kind and super easy to use with low power consumption.

Um, also, I will add image scaling to the firmware.