FacebookTwitterLinkedinYoutube
1.800.426.8979 |sales@connecttech.com

sales@connecttech.com | 1.800.426.8979  

Connect Tech Inc. Connect Tech Inc. Connect Tech Inc. Connect Tech Inc. Connect Tech Inc. Connect Tech Inc.
  • Home
  • Products
    • FORM FACTORS
      • COM Express®
      • NVIDIA® Jetson™ TX2/TX1
      • Qseven
      • SMARC
      • VPX
      • Mini PCIe
      • M.2
      • XMC/PMC
      • PC/104
      • PCI Express
      • PCI
    • TECHNOLOGY
      • Computer-on-Module (COM) Carrier Boards
      • Graphics Processing Unit (GPU/GPGPU)
      • 10 GbE & 1 GbE Embedded Ethernet Switches & NICs
      • Rugged Embedded Systems
      • Rugged Tablets
      • GPS/GNSS
      • Multiport Serial (Asynchronous)
      • Multiport Serial (Synchronous)
      • Single Board Computers
      • Power Supplies
    • TECHNOLOGY
      • FPGA
      • Digital I/O
      • Analog I/O (ADC/DAC)
      • Storage Solutions
      • Cellular/Satellite M2M
      • CAN Controllers
      • Wireless Radio Modems
      • Ethernet-to-Serial
      • Development Tools & Adapters
    • Close
  • Services
    • CUSTOM DESIGN
      • Our Custom Design Capabilities
      • Custom Design Process
    • CUSTOMIZE YOUR PRODUCT
      • Custom COM Express
      • Custom NVIDIA® Jetson™ TX2/TX1
      • Custom Product
    • ADDITIONAL SERVICES
      • Conformal Coating
      • Flashing As A Service
    • Close
  • Support
    • RESOURCE CENTER
      • NVIDIA® Jetson™ TX2 & TX1 Solution Support
      • Downloads
      • Drivers
      • Install Guides
      • Troubleshooting
      • Set Up & Configuration
      • General
      • All KDB Entries
    • PRODUCT LIFECYCLE SUPPORT
      • RMA Request
      • Product Registration
      • Warranty Policy
      • Product Change Notifications
      • EOL Notifications
    • Close
  • About
    • COMPANY OVERVIEW
      • About Us
      • Capabilities
      • Management Team
      • Mission Statement
      • Quality Assurance
    • NEWS & EVENTS
      • News
      • Events
    • CAREERS
      • Working at Connect Tech
      • Career Opportunities
    • PARTNERS & RESELLERS
      • Our Partners
      • Resellers
    • Close
  • Home
  • All KDB Entries
  • kdb355: IMX274 setup with Open....

kdb355: IMX274 setup with OpenCV on Connect Tech Jetson™ Carriers

Table of content

  1. Introduction
  2. Setup
    1. Prerequisites
      1. Gstreamer
      2. GTK
      3. CMake
    2. OpenCV
      1. Gstreamer integration

Introduction

The following is a guide on how to set up the IMX274 MIPI CSI device using OpenCV on Connect Tech Jetson™ carriers.

Setup

Prerequisites

Gstreamer

  • sudo apt-get install libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev
  • Grab remaining GST plugins using the following:
    • sudo apt-get install gstreamer1.0-plugins*

GTK

  • sudo apt-get install libgtk2.0-dev

CMake

  • sudo apt-get install cmake

OpenCV

You may compile/build your OpenCV on your TX1 device as this is what will be accomplished in this guide, alternatively you may cross-compile. To acquire the current build of OpenCV, you will need to git clone the repository with the following command.

git clone https://github.com/opencv/opencv.git

When the Git repository is complete, proceed into the OpenCV directory and type the following command:

cmake CMakeLists.txt

This will generate a corresponding make file with all the provided libraries available on your system, please ensure the following is enabled in the final output log:

-- GUI:
-- QT: NO
-- GTK+ 2.x: YES (ver 2.24.30)
-- GThread : YES (ver 2.48.1)
-- GtkGlExt: NO
-- OpenGL support: NO
-- VTK support: NO
--
--
-- Video I/O:
-- GStreamer:
-- base: YES (ver 1.8.3)
-- video: YES (ver 1.8.3)
-- app: YES (ver 1.8.3)
-- riff: YES (ver 1.8.3)
-- pbutils: YES (ver 1.8.3)

When complete you may build and install OpenCV on your TX1 device with the following:

make install -J4

Gstreamer integration

To have the camera input directly into OpenCV when standard capture methods will not function or fail, you will be required to use gstreamer as the capture method to provide a suitable video input for OpenCV.

The following code segment is required to have the IMX274 camera as an input source for OpenCV. If you are using a different camera, this code can be used as a template.

VideoCapture cap("nvcamerasrc ! video/x-raw(memory:NVMM), width=1920, height=1080, format=I420, framerate=30/1 ! nvvidconv flip-method=0 ! video/x-raw, format=I420 ! videoconvert ! video/x-raw, format=BGR ! appsink");

Related Resource Center Posts -

  • kdb344: CTI NVIDIA® Jetson™ Carrier Board TX2 / TX1 Compatibility
  • WhiteHEAT USB Software Installation Guide for Windows CE 2.11+
  • kdb215: COM Port Number Mapping in Windows95

Contact Info

42 Arrow Road
Guelph, Ontario
N1K 1S6 Canada

Phone: 1-800-426-8979 (North America Only)
1-519-836-1291

Support: support@connecttech.com
Sales: sales@connecttech.com

Upcoming Events

  1. XPONENTIAL 2018 Logo

    XPONENTIAL 2018 – Booth 3128

    May 1 - May 3
  2. CANSEC 2018 – Booth 607

    May 30 - May 31

View All Events

Join Our Mailing List

Join our mailing list to be notified of Connect Tech events and product updates.

Follow Us

Follow us on Social Media for industry and Connect Tech news.
Copyright 2018 Connect Tech Inc. | All Rights Reserved | Privacy | Contact
FacebookTwitterLinkedinYoutube
  • Search Knowledgebase