2.4.0.8139 - Disclosure - Fair Value Measurements - Additional Information (Detail)truefalsefalse1false USDfalsefalse$eol_PE5967----1310-Q0005_STD_181_20130630_0_928472x926284http://www.sec.gov/CIK0000851205duration2013-01-01T00:00:002013-06-30T00:00:00iso4217_USDStandardhttp://www.xbrl.org/2003/iso4217USDiso42170USDUSD$1false 0truefalsetruefalsefalsefalsefalsefalsefalse1falsefalsefalse00falsefalsefalse1false USDtruefalse$eol_PE5967----1310-Q0005_STD_181_20130630_0_928472x926284http://www.sec.gov/CIK0000851205duration2013-01-01T00:00:002013-06-30T00:00:00falsefalseFair Value, Measurements, Recurring [Member]us-gaap_FairValueByMeasurementFrequencyAxisxbrldihttp://xbrl.org/2006/xbrldius-gaap_FairValueMeasurementsRecurringMemberus-gaap_FairValueByMeasurementFrequencyAxisexplicitMemberiso4217_USDStandardhttp://www.xbrl.org/2003/iso4217USDiso42170USDUSD$nanafalse02true 3us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItemsus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1falsefalsefalse00falsefalsefalsexbrli:stringItemTypestringfalse03false 4us-gaap_OtherThanTemporaryImpairmentLossesInvestmentsPortionRecognizedInEarningsNetus-gaap_truedebitdurationfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1truefalsefalse00USD$falsetruefalsexbrli:monetaryItemTypemonetaryThe amount of other than temporary impairment (OTTI) losses on equity securities, OTTI related to credit losses on debt securities, and OTTI losses on debt securities when the entity intends to sell the securities or it is more likely than not that the entity will be required to sell the securities before recovery of its amortized cost basis. Additionally, this item includes OTTI losses recognized during the period on investments accounted for under the cost method of accounting.Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 50 -Paragraph 8B -URI http://asc.fasb.org/extlink&oid=27724398&loc=SL6284393-111563 false2falseFair Value Measurements - Additional Information (Detail) (Fair Value, Measurements, Recurring [Member], USD $)NoRoundingUnKnownUnKnownUnKnowntruefalsefalseSheethttp://www.cognex.com/taxonomy/role/DisclosureFairValueMeasurementsAdditionalInformation13