Giter Club home page Giter Club logo

camport3's Introduction

Percipio Camera Software Development Kit

This software development kit provides C/C++ API and sample applications to control and capture images from Percipio camera. The samples demonstrate how to get depth image, 3D point cloud , color and ir image from the depth camera.

SDK sample's GUI needs Opencv2.4.8+. opencv dependency can be removed if if you do not need GUI.

Documents

Please refer to http://doc.percipio.xyz/cam/last/ for more details.

SDK Files

+---Doc                 SDK API Documents
+---include             C header file
+---lib                 dynamic link library for multi-platform
|   +---linux
|   \---win
|       +---driver      windows device driver 
|       \---hostapp     pre-built sample executables
\---sample              sample application source code

Supported Platform

  • linux
    • x64
    • i686
    • armv7hf
    • aarch64
  • windows
    • x64
    • x86

Build Sample From Source Code

for detail about SDK usage please refer to HERE

Linux

install opencv & cmake

sudo apt-get install libopencv-dev cmake

go to path lib/linux/<your platform>/

cp -d libtycam.so* /usr/lib/
ldconfig

install libusb (only required by USB camera)

sudo apt-get install libusb-1.0-0-dev

compile source code

cd sample
mkdir build
cd build
cmake ..
make

All executables will be generated in ./bin directory.

windows

prepare environment

  • install USB driver from lib/win/driver (only required by USB camera)
  • install cmake (https://cmake.org)
  • install opencv (https://opencv.org/)
  • add tycam.dll location to PATH environment variable or copy to where system can find it

compile source code

using cmake to generate MSVC vcxproj project files & build with MSVC.

NOTE

  • for cross compiling, you may need to build libusb & opencv from source code for your target platform.
  • for USB device running on Linux , you need root privilege or properly config udev rules for other account. see HERE

www.percipio.xyz

camport3's People

Contributors

leonchowxyz avatar percipioxyz avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

camport3's Issues

V1.6.27 compile error

error detail

/home/dev/workspace/camport3/sample/../include/TYApi.h: In function ‘int32_t TYBitsPerPixel(TY_IMAGE_MODE)’:
/home/dev/workspace/camport3/sample/../include/TYApi.h:1072:12: error: narrowing conversion of ‘TY_PIXEL_48BIT’ from ‘int’ to ‘unsigned int’ [-Wnarrowing]
 1072 |       case TY_PIXEL_48BIT:
      |            ^~~~~~~~~~~~~~
/home/dev/workspace/camport3/sample/../include/TYApi.h:1074:12: error: narrowing conversion of ‘TY_PIXEL_64BIT’ from ‘int’ to ‘unsigned int’ [-Wnarrowing]
 1074 |       case TY_PIXEL_64BIT:
      |            ^~~~~~~~~~~~~~

can be fixed by
change this:

///Pixel size type definitions 
typedef enum TY_PIXEL_BITS_LIST{
    TY_PIXEL_8BIT               = 0x1 << 28,
    TY_PIXEL_16BIT              = 0x2 << 28,
    TY_PIXEL_24BIT              = 0x3 << 28,
    TY_PIXEL_32BIT              = 0x4 << 28,

    TY_PIXEL_10BIT              = 0x5 << 28,
    TY_PIXEL_12BIT              = 0x6 << 28,
    TY_PIXEL_14BIT              = 0x7 << 28,

    TY_PIXEL_48BIT              = 0x8 << 28,

    TY_PIXEL_64BIT              = 0xa << 28,
}TY_PIXEL_BITS_LIST;
typedef uint32_t TY_PIXEL_BITS;

# this type define to
# typedef int32_t TY_PIXEL_BITS;

python3如何调用?

请问我想使用python-opencv去调用摄像头该如何调用呢?
是FM830-5M。

正常我只需要索引0号的摄像头就可以连接到摄像头了。

def demo():
	capture = cv2.VideoCapture(0)
	if capture.isOpened():
		while True:
			ret, frame = capture.read()
			cv2.imshow("camera",frame)
			if cv2.waitKey(30) & 0xff == 27:
				capture.release()
				break
	else:
		print("未检测到摄像头")
demo()
cv2.waitKey()
cv2.destroyAllWindows()

可是用USB连上摄像头之后,仍旧是检测到我的笔记本摄像头。
我用其他的USB摄像头(M)连接的话,就是显示M摄像头的内容。

How to install SDK tools for ROS2?

Hello! I need your help, i can't install camera tools for my Jetson Nano with ROS2 iron
I do colcon build command and it's broke
Colcon can't do a CMakeLists.txt but i can't use catkin because it's not supported on ROS2 iron
Have u got a solution for this?

python3如何调用?

用python调用显示:
VIDEOIO ERROR: V4L2: Could not obtain specifics of capture window.
VIDEOIO ERROR: V4L: can't open camera by index 1

编译出错

您好,我下载的是最新版的代码,库版本是3.6.2,已经拷贝到/usr/lib和/usr/local/lib中,但是执行

cd sample
mkdir build
cd build
cmake ..
make

出错了,我不知道问题出在哪

报错信息如下:

make       
Scanning dependencies of target sample_common
[  2%] Building CXX object CMakeFiles/sample_common.dir/common/MatViewer.cpp.o
[  4%] Building CXX object CMakeFiles/sample_common.dir/common/TYThread.cpp.o
[  6%] Building CXX object CMakeFiles/sample_common.dir/common/ImageSpeckleFilter.cpp.o
[  9%] Building CXX object CMakeFiles/sample_common.dir/common/DepthInpainter.cpp.o
/home/bdca/workspace/camport3/sample/common/DepthInpainter.cpp: In function ‘void _inpaint(cv::InputArray, cv::InputArray, cv::OutputArray, double, int)’:
/home/bdca/workspace/camport3/sample/common/DepthInpainter.cpp:596:18: error: conversion from ‘cv::Mat’ to non-scalar type ‘CvMat’ requested
    CvMat c_src = src, c_mask = mask, c_dst = _dst.getMat();
                  ^~~
/home/bdca/workspace/camport3/sample/common/DepthInpainter.cpp:596:32: error: conversion from ‘cv::Mat’ to non-scalar type ‘CvMat’ requested
    CvMat c_src = src, c_mask = mask, c_dst = _dst.getMat();
                                ^~~~
/home/bdca/workspace/camport3/sample/common/DepthInpainter.cpp:596:57: error: conversion from ‘cv::Mat’ to non-scalar type ‘CvMat’ requested
    CvMat c_src = src, c_mask = mask, c_dst = _dst.getMat();
                                              ~~~~~~~~~~~^~
CMakeFiles/sample_common.dir/build.make:120: recipe for target 'CMakeFiles/sample_common.dir/common/DepthInpainter.cpp.o' failed
make[2]: *** [CMakeFiles/sample_common.dir/common/DepthInpainter.cpp.o] Error 1
CMakeFiles/Makefile2:429: recipe for target 'CMakeFiles/sample_common.dir/all' failed
make[1]: *** [CMakeFiles/sample_common.dir/all] Error 2
Makefile:148: recipe for target 'all' failed
make: *** [all] Error 2

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.