Giter VIP home page Giter VIP logo

arducam_usb_camera_shield_cpp_demo's Introduction

Introduction

Linux

Installation dependence

  1. opencv
  2. arducam-usb-sdk-dev
  3. arducam-config-parser-dev
sudo apt install libopencv-dev

curl -s --compressed "https://arducam.github.io/arducam_ppa/KEY.gpg" | sudo apt-key add -
sudo curl -s --compressed -o /etc/apt/sources.list.d/arducam_list_files.list "https://arducam.github.io/arducam_ppa/arducam_list_files.list"
sudo apt update
sudo apt install arducam-config-parser-dev arducam-usb-sdk-dev

set udev rules

Download script

udev

execute script

sudo chmod +x configure_udev_rules.sh
./configure_udev_rules.sh

Build

git clone https://github.com/ArduCAM/ArduCAM_USB_Camera_Shield_Cpp_Demo.git
cd ArduCAM_USB_Camera_Shield_Cpp_Demo
mkdir build && cd build
cmake ..
make -j2

Run

The default device number is equal to 0

./Arducam_Opencv_Demo <path/config-file-name>

select device

./Arducam_Opencv_Demo <path/config-file-name> 1

Note: Configuration files can be found here: ArduCAM_USB_Camera_Shield

Troubleshooting

When using the camera under Linux, there may be Error beginning capture, rtn_val = 65312

udev

This error may be caused by insufficient buffer of usbfs. You can solve this problem by increasing usbfs_memory_mb,

Example: Set usbfs_memory_mb to 32 (default 16)

sudo sh -c 'echo 32 > /sys/module/usbcore/parameters/usbfs_memory_mb'

arducam_usb_camera_shield_cpp_demo's People

Contributors

edward-ardu avatar john-ardu avatar tom-ard avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

arducam_usb_camera_shield_cpp_demo's Issues

cmake error

Hi, I'm having some problems running the code. I downloaded the correct driver, opencv version 4.7.0, cmake version 3.26.3,the computer system is Windows11..
In the build section, run as I follow the steps in the document "build_windows"
cmake --build . --config Release
This statement is an error, displaying the following error:
Arducam.cpp
E:\ArduCAM_USB_Camera_Shield_Cpp_Demo-main\src\Arducam.hpp(11,10): fatal error C1083: Cannot open include file : “ArduCamlib.h”: No such file or directory [E:\ArduCAM_USB_Camera_Shield_Cpp_Demo-main\build\Arducam_Opencv_Demo.vcxproj]

ArduCam_Demo.cpp
E:\ArduCAM_USB_Camera_Shield_Cpp_Demo-main\src\ArduCam_Demo.cpp(12,10): fatal error C1083: Cannot open include file: “ArduCamlib.h”: No such file or directory [E:\ArduCAM_USB_Camera_Shield_Cpp_Demo-main\build\Arducam_Opencv_Demo.vcxproj]

Utils.cpp
E:\ArduCAM_USB_Camera_Shield_Cpp_Demo-main\src\Utils.cpp(4,10): fatal error C1083:
Cannot open include file: “arducam_config_parser.h”: No such file or directory [E:\ArduCAM_USB_Camera_Shield_Cpp_Demo-main\build\Arducam_Opencv_Demo.vcxproj]

When I open the Arducam_Opencv_Demo.sln file,I get the following error:
1684314912415

Error message: E1696 source file "*******.h" cannot be opened

I hope you can help solve the problem at your convenience. Thank you very much

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.