SmartCamera for Machine Vision