The BuehlerApp is a freelance project made by Klim and me.
Bühler Group was planning to develop a cloud based photo app for the service personnel in the feed milling industries to enhance efficiency and ensure quality of our customer maintenance service.
Unexperienced service personnel is calculating or estimating a wrong amount of holes in the pellet mill dies when doing the maintenance of the pellet mills on customer site. The amount of holes is crucial for the output and wrong information can have serious impacts for the customers.
Our task was to make the service personnel’s life easier and ensure quality by developing a photo app. The app should automatically calculate the amount of holes in a pellet mill die using a photo of the die, specified diameter and arc length.
-
Klim developed the algorithm, implemented it in Processing and embedded the code into the Android application. He was communicating with the project manager from the Bühler Group.
-
I was responsible for the Android application development, debugging and testing.
The design suggestions were provided by Bühler Group.
After multiple ideas I decided to go with the simplest (reliability and implementation time) possible solution. The app had to process the photo on the phone without sending the data to the cloud.
Therefore, we use the following algorithm which involves only thresholding and morphological operations.
- Take a picture.
- Take a central third of the image to speedup the calculations.
- Threshold the part of the image (since the pictures are taken under the same conditions the threshold value can be constant).
- Apply morphological operations – dilate and erode – to get rid of the detached pixels.
- Find all blobs in the image.
- Check that the blobs have reasonable size – not too small (big) for the wholes.
- Count the number of all holes in the pellet mill die using the formula:
The main steps (screens):
- Splash screen with the Bühler logo.
- Input screen: user specifies the die number, width and arc length.
- Info screen: user can have a look at the suggestions for the input data.
- Camera screen: user takes the picture of the pellet mill die so that it fits in the given region.
- Computing screen: the animation is shown during computations.
- Final screen: the result of the calculations is shown.