Cognex's GAAP net income for 2021 was $279.881 million, up 58.9% from $176.186 million in the previous year. Revenue increased 27.9% to $1.037 billion from $0.811 billion a year earlier.