Text this: Development of an NIR sorting machine for detecting internal disorder and quality of apple fruit