CelePixel CeleX5-MIPI C++ API Wrapper for Python 3
English 简体中文
- Compile or install precompiled
OpenCV 3.3.0
- Install all dependencies used by
libCeleX.so
, useldd lib/libCeleX.so
or Dependencies in Windows
git clone [email protected]:kuretru/PyCeleX5.git --recurse-submodules
mkdir build
cd build
cmake ..
make
- Install
Visual Studio
withDesktop development with C++
- Install CMake
- Install OpenCV 3.3.0
git clone [email protected]:kuretru/PyCeleX5.git --recurse-submodules
mkdir build
cd build
cmake-gui.exe ..
# Add entry: OpenCV_DIR: some_path/opencv/build/x64/vc14/lib
# Configure -> Generate -> Open Project
# Use Visual Studio build
Make sure the following files exist in the same directory:
PyCeleX5.cp310-win_amd64.pyd
: Compiled in the previous step, located inPyCeleX5\build\Release
CeleX.dll
: from CelePixel official SDK,located inAPI\lib\Windows\x64\release
opencv_world330.dll
:from OpenCV,located inopencv\build\x64\vc14\bin
libusb-1.0.dll
:from libusb,located inVS2015-x64\dll\libusb-1.0.dll
If there is still problem like ImportError: DLL load failed while importing PyCeleX5: 找不到指定的模块。
, please use Dependencies to find missing dependencies.
sudo python3 demo.py
Method | Feature | Description |
---|---|---|
void setRotateType(int type) |
Set rotate type | type&1==1 --> Flip up and down, type&2==2 --> Flip left and right |
int getRotateType() |
Get rotate type | |
void startRippingBinFile() |
Start ripping bin file | |
void stopRippingBinFile() |
Stop ripping bin file | |
void enableImageFileOutput(string &directoryPath) |
Generate image during ripping | directoryPath: Directory for saving image |
void enableEventDataOutput(string &filePath) |
Generate csv file during ripping | filePath: Filename for saving data |
bool rippingBinFileFinished() |
Determine whether the ripping is complete |
Thanks to Guanzhou for providing the v1.0 code