4 ms·
I don't understand how the part of the plate that was covered with food is reconstructed. Does this assume that the plate has an uniform color and round symmet
by gus_massa 11y ago
I don't understand how the part of the plate that was covered with food is reconstructed.
Does this assume that the plate has an uniform color and round symmetry? Does this work with plates that have circular color stripes?
- mbel 11y agoIt discards original plate and puts everything on image of an empty plate [0][1]. The effect is surely a bit more impressive when the plates match :) [0] https://github.com/AaronRandall/Megabite/blob/b982d587677b9339dbb280ba20c900f3fdd0e1f6/Megabite/ImageProcessor/ImageProcessor.mm#L168 https://github.com/AaronRandall/Megabite/blob/b982d587677b93... [1] https://github.com/AaronRandall/Megabite/blob/master/Megabite/Assets.xcassets/EmptyPlate.imageset/EmptyPlate.png https://github.com/AaronRandall/Megabite/blob/master/Megabit...
- aaronrandall 11y agoThat's a great question! My original plan that once I had extracted all the items from the plate, the app would then detect the average colour of the remaining regions and "fill" the gaps - that wouldn't work well with plates that have different patterns, but would probably be good enough for plates of a single colour. Due to time constraints (and ultimately solving the majority of the problems I had originally aimed to with this project), the app replaces the cropped circular region with a plain white plate (a separate image contained in the app) before placing the extracted items. Maybe I'll go for the more advanced implementation if/when I spend more time on this project!