Giter VIP home page Giter VIP logo

arducam_obisp_mipi_camera_module's Introduction

Drive deprecation declaration

Raspberry Pi is transitioning from a legacy camera software stack based on proprietary Broadcom GPU code to an open-source stack based on libcamera. This version of the driver is deprecated on the new Bullseye system or later. This driver just can be used on legacy buster version system or before version.

Arducam_OBISP_MIPI_Camera_Module

Arducam OBISP project is to address the problem of lacking ISP support for the RAW sensor, it has On Board ISP as the name implies which has dedicated hardware processor and not relay on the backend processor’s processing capability. With the OBISP camera, users can use better cameras than those natively supported cameras like OV5647, IMX219, IMX477 on Arduino, Raspberry pi, and Jetson Nano without struggling with the ISP things. The first two released OBISP cameras are 13MP AR1335 high-resolution camera and 2MP AR0230 HDR camera. And Sony starvis IMX290, IMX327 camera will come up very soon.

Driver Support

Current driver supports the following kerner version, for other kernel please send us request for adding support or source code to compile by yourself.

  • 4.19.113-v7+
  • 4.19.118+
  • 4.19.118-v7+
  • 4.19.118-v7I+
  • 5.4.42-v7+
  • 5.4.51+
  • 5.4.51-v7+
  • 5.4.51-v7l+

For Arducam mipi camera + Pivariety driver, referring to https://github.com/ArduCAM/Arducam-Pivariety-V4L2-Driver

Support document

https://www.arducam.com/docs/arducam-obisp-mipi-camera-module/

Video Demo

https://youtu.be/MlRbOJ9n3Q4

Build driver for other kernel versions (RaspberryPi)

Tested in ubuntu 16.04, 18.04 and 20.04 Run the following command and follow the instructions

  • bash build_driver.sh

arducam_obisp_mipi_camera_module's People

Contributors

arducam avatar glddiv avatar sanjaykhanal avatar uctronics avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

arducam_obisp_mipi_camera_module's Issues

Support for Kernel Version 5.10

For recently Raspberry Pi OS recently, the build script doesn't work on the 64 bit pi for raspberry pi 4. In addition, there isn't any binary's for this kernel version.

v4l2.VIDIOC_G_PARM / v4l2.VIDIOC_S_PARM error

Using v4l2.VIDIOC_G_PARM or v4l2.VIDIOC_S_PARM produces error:

OSError: [Errno 25] Inappropriate ioctl for device

Steps to reproduce:

import v4l2 
from fcntl import ioctl

fd = open('/dev/video0', 'r')

parm = v4l2.v4l2_streamparm()
parm.type = v4l2.V4L2_BUF_TYPE_VIDEO_CAPTURE
ioctl(fd, v4l2.VIDIOC_G_PARM, parm)

Is v4l2.VIDIOC_G_PARM and v4l2.VIDIOC_S_PARM support not implemented?

request to compile kernel 5.4.51-v7l+

Hello I just purchase a Arducam 13MP AR1335 OBISP MIPI Camera but I can't manage to use it with my Raspberry Pi 4.

Seems to be due to my Kernel version which is not supported according to the spec. Any help on it ?

pi@raspberrypi:~ $ uname -a
Linux raspberrypi 5.4.51-v7l+ #1333 SMP Mon Aug 10 16:51:40 BST 2020 armv7l GNU/Linux

Request to compile for 5.4.83-v7+

Please kindly provide build or source code.

However, Raspbian GNU/Linux 10 (buster) version should be GA as of now, since that's the latest available.

Thanks!

Ubuntu 21.04 for Raspberry pi 4 Kernel (5.11.0-1007-raspi)

Hi,

I'm working on Raspberry pi 4 under Ubuntu 21.04 with Arducam 2MP*2 Stereo Camera for Raspberry Pi.
https://www.arducam.com/product/arducam-2mp-stereo-camera-for-raspberry-pi-nvidia-jetson-nano-xavier-nx-dual-ov2311-monochrome-global-shutter-camera-module/

I can't install the camera driver because the driver does not support the kernel version of Ubuntu 21.04 for Raspberry pi (5.11.0-1007-raspi)

Are there any instructions for compiling this driver?

AR0230 framerate control

Hi,

is it possible to control framerate of this camera?

v4l2-ctl --list-formats-ext lists 30 fps

ioctl: VIDIOC_ENUM_FMT
        Type: Video Capture

        [0]: 'UYVY' (UYVY 4:2:2)
                Size: Discrete 1920x1080
                        Interval: Discrete 0.033s (30.000 fps)
                Size: Discrete 1280x720
                        Interval: Discrete 0.033s (30.000 fps)
                Size: Discrete 640x480
                        Interval: Discrete 0.033s (30.000 fps)
                Size: Discrete 320x240
                        Interval: Discrete 0.033s (30.000 fps)

but when running arducamstill it outputs 45fps

./arducamstill -t 0 -e h264 
Hardare version: 9000c1
No match to hardware version!
Device /dev/video0) opened.
Video format set: UYVY (59565955) 1920x1080
[Framerate]: 45 fps.

is it possible geting 10-15 fps out of this camera ?

driver info:

v4l2-ctl -d /dev/video0 --all
Driver Info:
        Driver name      : unicam
        Card type        : unicam
        Bus info         : platform:20801000.csi
        Driver version   : 5.4.79
        Capabilities     : 0x85a00001
                Video Capture
                Metadata Capture
                Read/Write
                Streaming
                Extended Pix Format
                Device Capabilities
        Device Caps      : 0x05200001
                Video Capture
                Read/Write
                Streaming
                Extended Pix Format
Media Driver Info:
        Driver name      : unicam
        Model            : unicam
        Serial           :
        Bus info         : platform:20801000.csi
        Media version    : 5.4.79
        Hardware revision: 0x00000000 (0)
        Driver version   : 5.4.79
Interface Info:
        ID               : 0x03000005
        Type             : V4L Video
Entity Info:
        ID               : 0x00000003 (3)
        Name             : unicam-image
        Function         : V4L2 I/O
        Flags         : default
        Pad 0x01000004   : 0: Sink
          Link 0x02000007: from remote pad 0x1000002 of entity 'arducam 10-000c': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 0: ok)
Format Video Capture:
        Width/Height      : 1920/1080
        Pixel Format      : 'UYVY' (UYVY 4:2:2)
        Field             : None
        Bytes per Line    : 3840
        Size Image        : 4147200
        Colorspace        : sRGB
        Transfer Function : Default (maps to sRGB)
        YCbCr/HSV Encoding: Default (maps to ITU-R 601)
        Quantization      : Default (maps to Limited Range)
        Flags             :

User Controls

                     brightness 0x00980900 (int)    : min=1 max=64 step=1 default=64 value=64 flags=slider
                       contrast 0x00980901 (int)    : min=1 max=64 step=1 default=32 value=32 flags=slider
                     saturation 0x00980902 (int)    : min=1 max=128 step=1 default=50 value=50 flags=slider
                            hue 0x00980903 (int)    : min=1 max=40 step=1 default=40 value=40 flags=slider
        white_balance_automatic 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=18 max=128 step=2 default=25 value=25 flags=slider
                       exposure 0x00980911 (int)    : min=1 max=2000 step=1 default=500 value=500
                           gain 0x00980913 (int)    : min=1 max=100 step=1 default=1 value=1
                horizontal_flip 0x00980914 (bool)   : default=0 value=0
                  vertical_flip 0x00980915 (bool)   : default=0 value=0
      white_balance_temperature 0x0098091a (int)    : min=1 max=65535 step=1 default=4600 value=4600
                      sharpness 0x0098091b (int)    : min=1 max=6 step=1 default=3 value=3 flags=slider
         backlight_compensation 0x0098091c (int)    : min=0 max=3 step=1 default=3 value=3

Camera Controls

                  exposure_auto 0x009a0901 (bool)   : default=1 value=1

Arducam driver won't load

I compiled arducam driver on my rpi4 with the current kernel version
(latest "Raspberry Pi OS with desktop", October 30th 2021, kernel 5.10)
after install, driver won't load. I also tried to compile it on ubuntu 20.04 but with same result.

uname -a
Linux raspberrypi 5.10.63-v7l+ #1459 SMP Wed Oct 6 16:41:57 BST 2021 armv7l GNU/Linux

syslog

arducam: disagrees about version of symbol module_layout

raspberrypi kernel: [   31.836125] arducam_vddl: disabling
raspberrypi kernel: [   31.836149] arducam_vdig: disabling
raspberrypi kernel: [   31.836174] arducam_vana: disabling

I don't want to downgrade raspberry kernel, Will be glad for help.

cannot stat for karnel 4.9.201-tegra

Arducam OBISP drive cannot start in karnel 4.9.201-tegra

install: cannot stat './bin/4.9.201-tegra/arducam.ko': No such file or directory
install: target '/boot/overlays/' is not a directory: No such file or directory

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.