2.4.0.8151 - Disclosure - Derivative Instruments - Information Regarding Effect of Forward Contracts, Net of Underlying Exposure, on Consolidated Statements of Operations (Detail)truefalseIn Thousands, unless otherwise specifiedfalse1false USDfalsefalse$eol_PE5967----1310-Q0005_STD_91_20130630_0_927015x929794_929665x929612http://www.sec.gov/CIK0000851205duration2013-04-01T00:00:002013-06-30T00:00:00iso4217_USDStandardhttp://www.xbrl.org/2003/iso4217USDiso42170USDUSD$2false USDfalsefalse$eol_PE5967----1310-Q0005_STD_91_20120701_0_927015x929794_929665x929612http://www.sec.gov/CIK0000851205duration2012-04-02T00:00:002012-07-01T00:00:00iso4217_USDStandardhttp://www.xbrl.org/2003/iso4217USDiso42170USDUSD$3false USDfalsefalse$eol_PE5967----1310-Q0005_STD_181_20130630_0_927015x929794_929665x929612http://www.sec.gov/CIK0000851205duration2013-01-01T00:00:002013-06-30T00:00:00iso4217_USDStandardhttp://www.xbrl.org/2003/iso4217USDiso42170USDUSD$4false USDfalsefalse$eol_PE5967----1310-Q0005_STD_183_20120701_0_927015x929794_929665x929612http://www.sec.gov/CIK0000851205duration2012-01-01T00:00:002012-07-01T00:00:00iso4217_USDStandardhttp://www.xbrl.org/2003/iso4217USDiso42170USDUSD$1false 0truefalsetruefalsefalsefalsefalsefalsefalse1falsefalsefalse00falsefalsefalse2falsefalsefalse00falsefalsefalse3falsefalsefalse00falsefalsefalse4falsefalsefalse00falsefalsefalse1false USDtruefalse$eol_PE5967----1310-Q0005_STD_91_20130630_0_927015x929794_929665x929612http://www.sec.gov/CIK0000851205duration2013-04-01T00:00:002013-06-30T00:00:00falsefalseForeign Currency Gain (Loss) [Member]us-gaap_IncomeStatementLocationAxisxbrldihttp://xbrl.org/2006/xbrldius-gaap_ForeignCurrencyGainLossMemberus-gaap_IncomeStatementLocationAxisexplicitMemberfalsefalseCurrency Forward Contracts [Member]us-gaap_DerivativeInstrumentRiskAxisxbrldihttp://xbrl.org/2006/xbrldius-gaap_ForwardContractsMemberus-gaap_DerivativeInstrumentRiskAxisexplicitMemberiso4217_USDStandardhttp://www.xbrl.org/2003/iso4217USDiso42170USDUSD$nanafalse02true 4us-gaap_DerivativeGainLossOnDerivativeNetAbstractus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1falsefalsefalse00falsefalsefalse2falsefalsefalse00falsefalsefalse3falsefalsefalse00falsefalsefalse4falsefalsefalse00falsefalsefalsexbrli:stringItemTypestringfalse03false 5us-gaap_DerivativeGainLossOnDerivativeNetus-gaap_truecreditdurationfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1truefalsefalse6400064USD$falsetruefalse2truefalsefalse198000198USD$falsetruefalse3truefalsefalse197000197USD$falsetruefalse4truefalsefalse-91000-91USD$falsetruefalsexbrli:monetaryItemTypemonetaryAmount of increase (decrease) in the fair value of derivatives recognized in the income statement.Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 10 -Section 50 -Paragraph 4A -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=7476318&loc=SL5618551-113959 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 10 -Section 50 -Paragraph 4C -Subparagraph (a),(c),(d),(e) -URI http://asc.fasb.org/extlink&oid=7476318&loc=SL5624171-113959 false2falseDerivative Instruments - Information Regarding Effect of Forward Contracts, Net of Underlying Exposure, on Consolidated Statements of Operations (Detail) (Foreign Currency Gain (Loss) [Member], Currency Forward Contracts [Member], USD $)ThousandsUnKnownUnKnownUnKnowntruefalsefalseSheethttp://www.cognex.com/taxonomy/role/DisclosureDerivativeInstrumentsInformationRegardingEffectOfForwardContractsNetOfUnderlyingExposureOnConsolidatedStatementsOfOperations43