element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
    About the element14 Community
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      •  Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Personal Blogs
  • Community Hub
  • More
Personal Blogs
Ralph Yamamoto's Blog Object Classification - Nano 33 BLE Sense with OV7670 Camera
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: ralphjy
  • Date Created: 14 Sep 2021 3:53 PM Date Created
  • Views 3247 views
  • Likes 4 likes
  • Comments 2 comments
  • object classification
  • arduino nano 33 ble sense
  • tinyml
  • ov7670 camera
  • edge impulse
Related
Recommended

Object Classification - Nano 33 BLE Sense with OV7670 Camera

ralphjy
ralphjy
14 Sep 2021

This is a continuation of my post: Arduino Nano 33 BLE Sense with OV7670 Camera .

 

I wanted to do a quick evaluation of the performance on a deployed object classification model.  I decided to develop a simple model to identify 3 fairly distinct hardware objects - a bolt, nut and washer.  This was not intended to be a rigorous test of the model quality.

 

I captured a small dataset from the camera using the Data Acquisition panel.  I used a white background and only a single instance of each object with different orientations, so I expect to be able to achieve good accuracy if I test with the same objects.

image

 

I then created an impulse (model) using the default image classification application.  The preprocessing squashed the image to 96x96 size needed for the neural network.

image

 

 

I then trained the neural network.  With only 20 training cycles, I had poor accuracy - less than 50%.  I increased to 100 training cycles and achieved good accuracy as shown below.  I'm sure that in this case I have overfit the data, but for my purposes it is acceptable.

image

 

 

Then I tried "Live Classification".  You can see that I am having an issue with getting sharp focus, but I still get reasonable results.  I'll need to figure out how to get better focus.  The washer has the poorest performance with confidence in the 70% range.

image

 

 

image

 

 

image

 

 

I then generated the binary firmware for the device (rather than a source library).  If I was developing a project I would have opted for a library.

image

 

 

After the firmware is generated there is an installation video that shows how to deploy (flash) the binary to the device.  It's essentially the same process that was used to flash the data acquisition firmware.

image

 

Then instead of running the edge-impulse-daemon that was used for data acquisition, we use the command "edge-impulse-run-impulse" to start the inferencing.

I have a short video showing the classification performance.  The speed of the acquisition and inferencing (2 seconds) makes this setup only suitable for snapshots.  You'll also see that it can take 2-3 iterations to get accuracy achieved in "Live Classification".  I did not have any visual feedback so I needed to draw a box that allowed me to position the objects in the frame.  I also happened to notice in case of the washer that a slight shift to the right improved the classification probability.  I think this is probably caused by a change in the light reflection off the washer.

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

  • Sign in to reply

Top Comments

  • DAB
    DAB over 4 years ago +2
    Nice post. I found the results interesting for the three items tested. DAB
  • genebren
    genebren over 4 years ago +1
    Well done. The classifications worked very well. I would think that improved focus would increase the accuracy of the results.
  • genebren
    genebren over 4 years ago

    Well done.  The classifications worked very well.  I would think that improved focus would increase the accuracy of the results.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • DAB
    DAB over 4 years ago

    Nice post.

     

    I found the results interesting for the three items tested.

     

    DAB

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2026 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube