> ## Content Index
> Fetch the complete content index at: https://www.oransblog.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# (WIP) Eggs + Machine learning = Egg Cam
- URL: https://www.oransblog.com/eggcam/
- Published: 2022-04-27T18:32:12.000Z
- Updated: 2026-10-29T05:56:47.000Z
- Author: Oran C
- Tags: machine learning, computer vision, balena, #Import 2026-11-12 01:14

Issues:

![](https://www.oransblog.com/content/images/2022/04/image-8.png)

# Decided to give in and try edge impluse. :/

[How to classify socks using a Raspberry Pi, Edge Impulse, and balena](https://www.balena.io/blog/how-to-classify-socks-using-a-raspberry-pi-edge-impulse-and-balena/?ref=oransblog.com)

# messed up and added Lowercase and Uppercase Classes

![](https://www.oransblog.com/content/images/2022/04/image-9.png)

# Fixed

![](https://www.oransblog.com/content/images/2022/04/image-10.png)

# training 

![](https://www.oransblog.com/content/images/2022/04/image-11.png)

# half way done

![](https://www.oransblog.com/content/images/2022/04/image-12.png)

# woop woop 95% accurate!

![](https://www.oransblog.com/content/images/2022/04/image-13.png)

# i've ran through the other steps (not pictured)

# found this traid off interesteing between ram and runtime speed

![](https://www.oransblog.com/content/images/2022/04/image-14.png)

# First image of raspbery pi cams working! and with ghetto egg conveyor belt ™️!

![](https://www.oransblog.com/content/images/2022/04/image-15.png)

### second picture

![](https://www.oransblog.com/content/images/2022/04/image-16.png)

# getting a training set form the egg conveyor belt

.....

....

# Retrying the edgeimpulse + balena cam

![](https://www.oransblog.com/content/images/2022/04/image-17.png)

# Now training the egg classification model

![](https://www.oransblog.com/content/images/2022/04/image-18.png)

# Unfortunitly eggs are much harder to classify 🥺

### I only got 71 percent accurancy

![](https://www.oransblog.com/content/images/2022/04/image-19.png)

# Looks like some of the images had had the led light used for candling bleeding over the edge of the egg... :/

![](https://www.oransblog.com/content/images/2022/04/image-20.png)

# These kind of images will cause the model to incorrectly guess 

![](https://www.oransblog.com/content/images/2022/04/image-21.png)

# What did i learn today.

#  1 classifying candled eggs is hard. even for humans!

#  2 getting good training data is really hard also

#  3 there are alot of verables that infulces detection

1. setup of camera
2. lighting of scene
3. getting bad data in training set
4. having the egg not lined up to cover the led light

# What i could i improve

1. lighting shroud around light
2. bigger training dataset with at least 100 of each example photos with no lens flaired eggs
3. focusing the rpi cam v1 lens, or adjusting distance to its within the focal plane
4. use more camera angle at once
5. retrain using Auto-balance dataset
6. test model with non training set eggs its never seen before
7. get help figuring out why edgeimpluse + balena cam repo doesnt work