Git Product home page Git Product logo

pygige-v's Introduction

PyGigE-V

Minimal Python wrapper for Teledyne DALSA's GigE-V Framework

A python wrapper for some of the GigE-V Framework API methods.

Installing Python Package from source repo

  1. Install GigE-V framework 2.02 https://www.teledynedalsa.com/imaging/products/software/linux-gige-v/
  2. Download this repository locally
  3. Run sudo python setup.py install at the repo's root dir
  4. Test by running python test.py example

Extending this module using Cython (for developemnt)

  1. Install GigE-V framework 2.02 https://www.teledynedalsa.com/imaging/products/software/linux-gige-v/
  2. Download this repository locally
  3. Install cython via pip install Cython
  4. Change the USE_CYTHON flag to True in the setup.py file
  5. Build the module using python setup.py build_ext --inplace
  6. test by running python test.py example

pygige-v's People

Contributors

jcramer avatar

Stargazers

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

Watchers

 avatar

pygige-v's Issues

Looks Great - Just Wanted Update on Current State

Hi,

Looks unreal - Thankyou - I was just wondering what state this code is in. I was hoping to build a small app on this driver, and just wanted to make sure it was going to work before buying cameras. Was looking through and found the GevGetImageBuffer function didn't look quite finished. Is this the primary way for retrieving images? And does it work?

Thanks in Advance!

Tom

Updated branch. Fixed a couple issues

Hello,

I found your project earlier and really liked the approach. It is a fair bit faster than what I had made previously to bring Dalsa cameras into python but I noted some issues. I went through and fixed what I could over the weekend. I have included it in my repo.

I'm not sure if this project is still supported but I would like to assist with it if possible.

Accessing multiple gige camera

not able to access multiple gigeV camera in python.
I have imported the pygigeV class
ctx= gev()
print ctx.GevGetDeviceCount()
print ctx.GevGetCameraList()

Returning memory allocation error when two cameras are connected. but working fine with single camera.

Please let me know does it not support multiple cameras?

Memory error with Calibir GXM

Tried the test.py and got the following error:

It is not getting the height right,

('OK', {'username': '...', 'macLow': ..., 'fIPv6': False, 'ipAddr': 3232248480L, 'ipAddrHigh': 0L, 'host': {'ipAddrHigh': 0L, 'ipAddr': 3232248331L, 'fIPv6': False, 'ipAddrLow': 0L, 'ifIndex': 2L}, 'serial': '...', 'manufacturer': 'Teledyne DALSA', 'macHigh': 1L, 'capabilities': 0L, 'version': '000', 'ipAddrLow': 0L, 'model': 'Calibir GXM640'}, 2)

Initial image parameters:
{'code': 0, 'height': 52982716563936L, 'width': 640L, 'pixelFormat': (17301505L, '0x1080001L'), 'y_offset': 0L, 'x_offset': 0L}

Final image parameters:
{'code': 0, 'height': 52982716563936L, 'width': 640L, 'pixelFormat': (17301505L, '0x1080001L'), 'y_offset': 0L, 'x_offset': 0L}

Traceback (most recent call last):
File "test.py", line 43, in
ctx.GevInitializeImageTransfer(1)
File "pygigev.pyx", line 105, in pygigev.PyGigEV.GevInitializeImageTransfer
self.buffers = np.empty(shape=[numImgBuffers,size], dtype=np.uint8, order="C")
MemoryError
Segmentation fault (core dumped)

Converting to a four 8bit component for color display (RGBA)

Hi, it seems that this wrapper does not support Bayer conversion, am I right?
I can only get a grayscale image in my DALSA Nano-C2420.

The C++ code for this conversion in the examples of the GigE-V SDK looks like this:

context.format = Convert_SaperaFormat_To_X11( pixFormat);
context.depth = pixDepth;
context.convertBuffer = malloc((maxWidth * maxHeight * ((pixDepth + 7)/8)));
context.convertFormat = TRUE;

Is there any way to achieve the same (colored image) with this wrapper?

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.