Questions tagged [pyspin]

The tag pyspin is related to question about PySpin from Flir using the Spinnaker SDK and Python wrapper.

The tag pyspin is related to question about PySpin using the Spinnaker SDK and the Python wrapper. This is all about camera control libraries from Flir. The wrapper can be downloaded from the Flir software download website if you have an account.

19 questions
7
votes
2 answers

How to get color image from point grey camera with Spinnaker in python?

I am trying to get color images (no difference in rgb or bgr in my case) from flea3 camera (with the code "FL3-U3-32S2C-CS", which shows its a color camera) but my code generates grayscale photos... what is wrong in the following code snippet? any…
Pedram
  • 97
  • 3
  • 14
6
votes
3 answers

Import PySpin in Conda: fails to find mkl_intel_thread.dll

I'm using the PySpin api for a Point Grey camera in Anaconda. The api is a Python wrapper for a C++ library called Spinnaker (https://www.ptgrey.com/spinnaker-sdk). When I import within Spyder (import PySpin), things work fine (note I start Spyder…
eric
  • 7,142
  • 12
  • 72
  • 138
2
votes
1 answer

Resizing BayerRG8 image using PySpin(FLIR) changes it to grayscale

I am using a FLIR Blackfly S BFS-PGE-31S4C to collect video and writing the video with python, using the PySpin package. I wanted to add a real time video preview so I could see what was being recorded and wanted to downsize the image so I could…
Kunal Shah
  • 610
  • 6
  • 17
2
votes
1 answer

How to use PySpin with opencv python?

I just bought a FLIR BlackFlyS USB3.0 camera. I can grap frames from the camera but I am not able to use that frame with opencv without saving them first. Is there anyone who knows how to convert them to use in opencv? I searched on the internet…
Haydar C.
  • 31
  • 1
  • 6
2
votes
0 answers

Python threading and locks

I have some code which looks like: #!/usr/bin/env python """ test out threading with PySpin and matplotlib """ import datetime import threading from matplotlib import pyplot as plt import PySpin __LOCK = threading.Lock() # Set up figure __FIG =…
JustinBlaber
  • 4,629
  • 2
  • 36
  • 57
1
vote
0 answers

How to Multi/Process Parallelize PySpin

I have a couple FLIR cameras which have been synchronized that I am controlling with PySpin. The problem is I have found there is that my FPS drops to unacceptable levels when processing the data sequentially. The two operations which impact…
FourierFlux
  • 439
  • 5
  • 13
1
vote
0 answers

Pyspin downloads on computer but not pycharm

I have been trying to install PySpin in PyCharm. I am using Python 3.8 and followed the directions from the Spinnaker website and installed it on PyCharm through the terminal. When I do pip list in PyCharm the spinnaker-python doesn't show up. When…
C_slaf
  • 11
  • 1
1
vote
0 answers

FLIR/PySpin eventually only delivers part of the video frame

I made a frame in the GUI from the real-time video. When I turn on the computer and run the program, the entire video appears on the screen. But after a while, when I run the program, only a part of the video appears on the screen. The error codes…
Yamm
  • 13
  • 7
1
vote
1 answer

What does RW mean in the FLIR Spinnaker software?

In the FLIR documentation of PySpin/Spinnaker there is no reference to PySpin.RW. What does it mean? It is used as follows: if cam.TriggerMode.GetAccessMode() != PySpin.RW: Obviously its there for test/comparision reason.
ZF007
  • 3,708
  • 8
  • 29
  • 48
0
votes
0 answers

PySpin image acquisition is slow (0.14 seconds). How to speed it up for 60 Hz image display?

I'm doing a very basic image acquisition from PySpin feeding it to a neural net and finally displaying it. Each of those step is on its own process (I assume this would make everything faster). I have ran some benchmarks with my code. It seems like…
0
votes
0 answers

How to use ActionGroupKey and ActionGroup Mask with PySpin (FLIR)

I have ~10 cameras (FLIR Blackfly S BFS-PGE-31S4C) set up currently between 2 different rooms (but on the same network) and trying to set up groups/masks so I can specify which room to use and it will automatically select the correct cameras. I am…
Kunal Shah
  • 610
  • 6
  • 17
0
votes
0 answers

ERROR: spinnaker_python-2.6.0.156-cp37-cp37m-win_amd64.whl is not a supported wheel on this platform

I am trying to install the wheel "spinnaker_python-2.6.0.156-cp37-cp37m-win_amd64.whl"", but this error keeps popping up in the terminal. I am running this line from my local drive. pip install spinnaker_python-2.6.0.156-cp37-cp37m-win_amd64.whl" I…
0
votes
0 answers

Python thread blocking during function call?

I am using FLIR Spinnaker python interface pyspin. I noticed that saving images takes a chunk of time and I want to Parallelize it so the system could be loading a new image while the current image is saving. My confusion is on if the python…
FourierFlux
  • 439
  • 5
  • 13
0
votes
1 answer

Access Different Modules PySpin

I want to access different modules using a for loop in PySpin Library Python. For example, to change the values of Exposure time and Frame Rate of the camera, you can use camera.ExposureTime.SetValue(1000) and…
Diap Rope
  • 13
  • 4
0
votes
1 answer

spinnaker returned exposure time not liking an arithmetic operation

I am using PySpin / python wrapper for spinnaker (Flir camera SDK). There is a cam.ExposureTime.GetValue() method to get the current exposure time of the camera. I am able to use it like this: print("Exposure time set to %.2f µs." %…
1
2