Cognex reported record revenue of $313 million, as it achieved operating margins of 32.2%, and raised full-year guidance. The company announced plans to acquire RealSense for its AI-powered vision technology.