USA-Flag European-Flag

3 year camera warranty

Strong and reliable machine vision cameras

Cameras certified by TÜV Rheinland

Excellent support

Fair prices

Using a Raspberry Pi as your Host Device

How to install Rasperry Pi with Daheng Imaging USB3 Machine Vision Camera

Using C++ or Python on your Raspberry Pi

In this article we will show video tutorials on how to install the Daheng Imaging Python and C++ SDK on a Raspberry Pi. All required drivers can be found in the download section of our website. Our GigE and USB3 industrial vision cameras do work with a raspberry pi. We have even tested multiple 5MP, 10MP, 18MP and 20 Megapixel industrial vision cameras on a single Raspberry Pi. Please note that a Raspberry Pi3 has only a USB2 an 100mbit ethernet port. Therefore, the frame-rate will be lower. The Raspberry Pi4 has a USB3 and GigE port. On the Raspberry Pi 4, the USB3 port can achieve a maximum of 300mbit. This means that a 20MP industrial vision camera can run at max 15fps.

How to install the Python SDK

In this chapter we will discuss how to install the Python Linux SDK for Daheng Imaging industrial USB3 Vision camera. This will be divided into two steps. Step one is the installation of the Linux SDK and step two is to run an example script.

Installation guide

First we have to install the Python Linux SDK on the Raspberry Pi. The SDK can be downloaded from the download section on our website.

Getting started with the samples

In this example python script we show how to acquire an image from the Daheng Imaging USB3 Vision camera and how to save the image on the Raspberry Pi.


How to install the C++ SDK

Also, we have a C++ SDK for Linux that works on a Raspberry Pi in combination with Daheng Imaging industrial vision cameras. In the video tutorials below we show in 3 steps how to install the C++ SDK and run C++ example programs on the Raspberry Pi.

Installation guide

First step is to install the C++ Linux SDK on the Raspberry Pi. The Daheng Imaging SDK can be downloaded in the download section of our website.

Start the C++ GxViewer example

The example C++ example script GxViewer shows how to acquire an image and display the image on a Raspberry Pi. It can also be used to change the parameters of the industrial vision camera that is connected to the Raspberry Pi.

Getting started with example programs

The C++ example program GxSingleCamColor shows how to capture an image with Daheng Imaging industrial vision camera, using C++ code, on a Raspberry Pi.

Image Processing on a Raspberry Pi and OpenCV

The Raspberry Pi is getting more and more popular for image processing. The two main reasons for this are the low hardware price and the increased performance of the Raspberry Pi. Recently the new Raspberry Pi4 has been released, offering even an USB3 and GigE port and a more powerfull processor. For image processing mulitple libraries are available, but OpenCV is one of the most popular image processing libraries on a Raspberry Pi. You can now develop a very powerfull image processing application for a very affordable price, using our Daheng Imaging industrial vision camera in combination with OpenCV and a Raspberry Pi.

Do you need support with the Linux SDK on a Raspberry Pi?

If you have questions or encounter problems with the installation of Daheng Imaging C++ or Python SDK on a Raspberry Pi,or you are not able to acquire images from Daheng Imaging industrial vision camera, please contact Our technical support department will help you with connecting the Daheng Imaging industrial vision camera to a Raspberry Pi
Not enough items available. Only [max] left.
Add to WishlistBrowse WishlistRemove Wishlist
Shopping cart

Your cart is empty.

Return To Shop

Add Order Note Edit Order Note
Estimate Shipping
Add A Coupon

Estimate Shipping

Add A Coupon

Coupon code will work on checkout page