cnnn lenet seven-segment

Discussion related to "under the hood" OpenMV topics.
openn00b
Posts: 5
Joined: Sun Aug 04, 2019 3:14 am

cnnn lenet seven-segment

Postby openn00b » Thu Oct 03, 2019 4:53 am

Hi,

I'm back! i had another post a while back asking about number recognition but i didn't get many replies. I've started digging and here is what i've found:

- openmv had a class find_number, this is gone
- the comments about find_number mention cnn lenet superceed this
- i've loaded the example machine vision lenet included in the ide
- i've added the lenet.network from the github
- i've tried the two other lenet examples

I can't get this to recongnise numbers, what am i doing wrong.

Can someone confirm is the trained letnet.network is the mnist model which is hand written? i haven't been able to get handwritten recognition to work either.

Can someone please confirm if i put the camera at my screen show the picture in this post if its capable of recognising the numbers and can it do multiple numbers, e.g. all of the numbers in some sort of order e.g. left to right?

Any links to info that i should read to point in the right direction would be appreciated.

Image
User avatar
iabdalkader
Posts: 1193
Joined: Sun May 24, 2015 3:53 pm

Re: cnnn lenet seven-segment

Postby iabdalkader » Thu Oct 03, 2019 7:34 am

Hi, Yes the lenet.nnetwork is mnist model, you just need to set invert to False (colors must be white on dark background):
Screenshot from 2019-10-03 13-33-58.png
The NN framework can't detect multiple objects, the number must be centered and away from any borders. For multiple detections, you could either run it multiple times with different ROIs, or try to tune the scripts that search the image.
openn00b
Posts: 5
Joined: Sun Aug 04, 2019 3:14 am

Re: cnnn lenet seven-segment

Postby openn00b » Fri Oct 04, 2019 1:48 am

Hey,

Thanks for that, i see on another post you recommended chars74k. which would you recommend, i'm trying to red a digital meter. that is the goal.

I've just changed the boolean flag and it is working, sort of, it was able to detect something though not correctly. i'll keep playing.

thanks again for helping out.
openn00b
Posts: 5
Joined: Sun Aug 04, 2019 3:14 am

Re: cnnn lenet seven-segment

Postby openn00b » Fri Oct 04, 2019 2:00 am

another question, is there a way to use openmv ide without the camera, can i feed a picture in or pictutres in to write the code without having to plug the camera in and point it at something. this would make it much easier to develop.
User avatar
iabdalkader
Posts: 1193
Joined: Sun May 24, 2015 3:53 pm

Re: cnnn lenet seven-segment

Postby iabdalkader » Fri Oct 04, 2019 9:17 am

openn00b wrote:
Fri Oct 04, 2019 2:00 am
another question, is there a way to use openmv ide without the camera, can i feed a picture in or pictutres in to write the code without having to plug the camera in and point it at something. this would make it much easier to develop.
No, the code runs on the camera.
firozkhan
Posts: 1
Joined: Mon Oct 07, 2019 2:15 am
Contact:

Re: cnnn lenet seven-segment

Postby firozkhan » Mon Oct 07, 2019 2:17 am

Great Information.Thank You :)

Return to “Technical Discussion”

Who is online

Users browsing this forum: No registered users and 7 guests