Giter Club home page Giter Club logo

mbalatsko / pypylon-opencv-viewer Goto Github PK

View Code? Open in Web Editor NEW
30.0 30.0 10.0 1.89 MB

Easy to use Jupyter notebook viewer connecting Basler Pylon images grabbing with OpenCV image processing. Allows to specify interactive Jupyter widgets to manipulate Basler camera features values, grab camera image and at once get an OpenCV window on which raw camera output is displayed or you can specify an image processing function, which takes on the input raw camera output image and display your own output.

License: MIT License

Python 100.00%
basler jupyer-notebook jupyter-widget opencv pylon pypylon viewer

pypylon-opencv-viewer's Introduction

Max's github stats

pypylon-opencv-viewer's People

Contributors

kasape avatar mbalatsko 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

Watchers

 avatar  avatar  avatar

pypylon-opencv-viewer's Issues

Error with installing

I have an error with running
pip install pypylon-opencv-viewer
I am trying to install on a LinuxARM64 Jetson Xavier NX

I have successfully installed pypylon and openCV, connected Basler acA cameras, fetched images and stored them to disk. Next step is to apply OpenCV

Please see the terminal output:
errorLogpypylon-opencv-viewer.txt

Any suggestions?

AcquisitionFrameRateAbs fails

The features dict works if I replace GainRaw with Gain (as noted elsewhere), however we are crashing out at 1AcquisitionFrameRateAbs

---------------------------------------------------------------------------
LogicalErrorException                     Traceback (most recent call last)
<ipython-input-63-858e4d7922fd> in <module>
      1 from pypylon_opencv_viewer import BaslerOpenCVViewer
      2 viewer = BaslerOpenCVViewer(camera)
----> 3 viewer.set_features(features)
      4 viewer.set_impro_function(impro)
      5 viewer.run_interaction_continuous_shot(image_folder='~/Documents/images')

C:\ProgramData\Anaconda3\lib\site-packages\pypylon_opencv_viewer\viewer.py in set_features(self, features)
    105             if feature_name is None:
    106                 raise ValueError("'name' attribute can't be None")
--> 107             pylon_feature = getattr(self._camera, feature_name)
    108 
    109             widget_kwargs['description'] = re.sub('([a-z])([A-Z])', r'\1 \2', feature_name) + " :"

C:\ProgramData\Anaconda3\lib\site-packages\pypylon\pylon.py in __getattr__(self, attribute)
   4037             return object.__getattr__(self, attribute)
   4038         else:
-> 4039             return self.GetNodeMap().GetNode(attribute)
   4040 
   4041     def __setattr__(self, attribute, val):

C:\ProgramData\Anaconda3\lib\site-packages\pypylon\genicam.py in GetNode(self, Name)
   1471 
   1472     def GetNode(self, Name: 'GENICAM_NAMESPACE::gcstring const &') -> "GENAPI_NAMESPACE::INode *":
-> 1473         return _genicam.INodeMap_GetNode(self, Name)
   1474 
   1475     def InvalidateNodes(self) -> "void":

LogicalErrorException: Node not existing (file 'genicam_wrap.cpp', line 16599)

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.