Find_number function problem

General discussion about topics related to OpenMV.
yocheng
Posts: 8
Joined: Tue Apr 24, 2018 11:58 pm

Find_number function problem

Postby yocheng » Tue May 08, 2018 12:46 am

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?
User avatar
kwagyeman
Posts: 2277
Joined: Sun May 24, 2015 2:10 pm

Re: Find_number function problem

Postby kwagyeman » 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.
Nyamekye,
yocheng
Posts: 8
Joined: Tue Apr 24, 2018 11:58 pm

Re: Find_number function problem

Postby yocheng » Tue May 08, 2018 5:31 am

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?
User avatar
kwagyeman
Posts: 2277
Joined: Sun May 24, 2015 2:10 pm

Re: Find_number function problem

Postby kwagyeman » 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.
Nyamekye,
User avatar
kwagyeman
Posts: 2277
Joined: Sun May 24, 2015 2:10 pm

Re: Find_number function problem

Postby kwagyeman » 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.
Nyamekye,
yocheng
Posts: 8
Joined: Tue Apr 24, 2018 11:58 pm

Re: Find_number function problem

Postby yocheng » Wed May 09, 2018 6:47 am

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!
User avatar
kwagyeman
Posts: 2277
Joined: Sun May 24, 2015 2:10 pm

Re: Find_number function problem

Postby kwagyeman » Wed May 09, 2018 10:25 pm

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.
Nyamekye,

Return to “General Topics”

Who is online

Users browsing this forum: No registered users and 2 guests