Camera preview to close only at analysis end,  Phone flat position check, Prevent invalid rgb entry