Sara Kubik
Published © CC BY-NC-SA

Edge Impulse Pill Identifier

A way to identify pills using your phone when you have no internet connection.

IntermediateFull instructions provided4 hours4,150
Edge Impulse Pill Identifier

Things used in this project

Hardware components

the camera on your smartphone
×1
your computer and internet connection
×1

Software apps and online services

Edge Impulse Studio
Edge Impulse Studio

Story

Read more

Code

Python code to add noise for data augmentation

Python
# Add random Gaussian noise
noise_1 = skimage.util.random_noise(img, mode='gaussian', seed=SEED)
noise_1 = (noise_1 * 255).astype(np.uint8)

# Add random "salt and pepper" noise
noise_2 = skimage.util.random_noise(img, mode='s&p', seed=SEED)
noise_2 = (noise_2 * 255).astype(np.uint8)

# Show the original and the transforms
figs, axs = plt.subplots(1, 3, figsize=(10, 10))
axs[0].imshow(img, vmin=0, vmax=255)
axs[1].imshow(noise_1, vmin=0, vmax=255)
axs[2].imshow(noise_2, vmin=0, vmax=255)

Credits

Sara Kubik
1 project • 4 followers
Diverse skills and background. From ai, legal, to data science, to marketing, to educator and more. Currently focusing on Machine Learning.
Contact

Comments

Please log in or sign up to comment.