How to Use Veye Mipi Camera with Raspberry Pi

A new version of this artical is HERE.Please refer to that arical.

VEYE-MIPI-290/327 Introduction

VEYE-MIPI-290/327 is a is a special camera module which is compatible with RASPBERRY PI.
She use sony STARVIS sensor——IMX290/IMX327 and has excellent ISP functions Build-in.The output format is stanard UYVY stream. It is very easy to use it with RASPBERRY PI.
Of course, she also has some subtle differences from the official version.She only support 1080p
resolution,and i2c cmd is different.
So I give you some tools as described below,and of course I give you the source code.

Raspberry Pi Models

Theoretically,VEYE support all Raspberry Pi.
For performance reasons, I recommend you use 3 or 3+ Version.

Hardware Connection

VEYE-MIPI-290/327 cable is compatible with Raspberry Pi by using a small Adapter Board,which is always transfered with VEYE-MIPI-290.
Due to the high power consumption of the camera board, an additional 5V supply is required.
1. FPC cable。
2. 5V-DC。

RaspberryPI System Config

  1. Camera and I2C
sudo raspi-config

Select 5 ,Enalbe Camera and I2C,then reboot。

Software Brief

There are two Untils of Software,the Media Untils and I2C Untils. Media Untils provides media related tools. I2C Untils is a Shell Script, by which you can set many configurations of the camera.

Both is open source.

Media Untils Brief

  • veye_raspipreview
    ./veye_raspipreview -t 20000
    Privew,20s video real-time display to HDMI output。
  • veye_raspivid
    ./veye_raspivid -t 5000 -o ~/test.h264
    Implement H.264 format encoding and record for 5 seconds,Record the stream data to file ~/test.h264.
  • veye_raspividyuv
    ./veye_raspividyuv -t 200 -o /dev/shm/test.yuv
    Record UYVY data to file /dev/shm/test.yuv,time is 200ms。
  • veye_raspistill
    Capture a image and save it as jpeg file.DEVELOPING.
  • support 2 camera modules for CM3
    option: -cs 0/1

I2C Untils

HOWTO: I2C cmd scripts usage of VEYE-MIPI-290/327 on RaspberryPI Platform

Documents and Source Code

Documents and Source Code


  1. The second-generation Raspberry Pi Camera Module works great with the Raspberry Pi 3 or 3 B+ and connects directly to the MIPI connector on the board itself.

  2. I posted a question on your Q&A site. I woke up this morning to find that my question had been “hidden” and that I no longer had “permission to ask a question”. Is there a reason I have been blocked or my question was hidden?

  3. Is there an easy example in your python source that shows how to utilize the Auto Exposure and Auto White Balance features within your ISP for the IMX290 Module for the Rpi3?

    I am struggling how to get the camera to automatically switch when going from a daytime environment to a night time environment.

  4. Hello Veye,

    I’ve been using your camera recently and trying to get it to work in a Python (3.5) application. I was hoping to easily write some python bindings to the C sample code you wrote, but I think it’s a bit more complex than I hoped. Is there anyway you guys could provide some python sample code along with your C sample code. The large majority of the raspberry pi community is on python and I’m sure it would be a huge help.

    I currently have a setup where I pipe your sample program YUV420 output to my Python program and it works but i was hoping for a more robust solution.

    ~ Rit

    • xumm

      Hello Ritik Shah,

      Thanks for give me advice. We will improve veye raspberry pi software recently.

      We will get opencv,gstreamer, working with VEYE camera.

      We have a Q&A website now, which is
      and We have a wiki now, which is

      • Xumm,

        I appreciate the response,

        I will forward my question to the FAQ website. Is there any info about how long a python example may take.
        I’m working on a product that utilizes your IMX290 camera and I would like to accelerate my development but I am held back in this regard.

        ~ Rit

  5. harold pantaleon

    Is there any extra steps to do after cloning the github to the pi to run the provided commands? im trying to run this camera on a raspi zero w and i haven’t been able to make it preview video by running ./veye_raspipreview -t 20000 on


    nothing works so definitely I’m missing something . cameras is connected as recommended from 5v pin


    • harold pantaleon

      i figured out , some users are very new (like me) and go by instructions steps by steps.

      ./buildme need to be run before trying Media Untils under /raspberrypi/veye_raspcam/source

      • Anonymous

        Did you try to run the pre-compiled binaries under veye_raspcam/bin?
        The buildme step is required only if you want to compile them by yourself, but the pre-compiled binaries should work fine.

        • harold pantaleon

          nothing works on veye_raspcam/bin for me ./veye_raspipreview i get premission denied . i tryed with chmod -x and 777 nothing works. only way i got it to work is by compiling the source

    • xumm

      Hello Andres

      Thanks for give me advice. We will improve veye raspberry pi software recently.

      We will get opencv,gstreamer, working with VEYE camera.

      We have a Q&A website now, which is , please use that to communicate with me afterward.
      and We have a wiki now, which is

  6. I found this interesting project and really wish to test it.
    In this time i was thinking about a stereo digital night digital device based on starvis sensors.
    So the question is, do you know of a SOC, compatible with your software, that will accept 2 cameras and manage 2 screens (oled maybe)?

    I think also that a single display, with some post processing, like in simple android VR (split screen and barrel correction) coulkd be used with some cheap cardboard VR chassis 😀

    thanks for your kind answer and to share the code in an open source manner .

    • xumm

      Thanks for being interested in VEYE Camera Module. There are many Soc Platform supporting 2 CSI-2 Camera Modules, Raspberry PI Computer Module,NanoPi(Rockchip RK3399), etc.
      Raspberry 4 is released recently,which has 2 Micro HDMI. May be we could look forward to Raspberry PI 4 Computer Module.

Leave a Reply

Your email address will not be published.