Image capture and analysis techniques for on-line quality monitoring