Comments (3)
Hi Lucas, the list of supported pixel formats can be found in the camera manual or just open the camera with the pylon viewer and check for the list of pixel formats in the feature tree. Your camera has the following formats:
Mono 8, Bayer RG 8, Bayer RG 12, Bayer RG 12 Packed, YUV 4:2:2 Packed and YUV 4:2:2 (YUYV) Packed
from pypylon.
@basler-oss thank you very much, this was really the problem. Now I know where to find the information.
I just used the following line instead of the previous one:
camera.PixelFormat = 'BayerRG8'
However, the problem was not in the fact the camera was not recording in color but it was that I was not saving the picture in the right format. Indeed, I should first convert it to the RGB format:
img = cv2.cvtColor(grabResult.Array, cv2.COLOR_BAYER_RG2RGB)
Thanks a lot for your patience and support 👍
from pypylon.
@LucasVandroux
Thank you for your code. I also captured 16 bits BAYERRG images, and converted them to RGB using cv2.cvtColor like your code.
But, what the problem is that, my captured frames seems reddish.
So, could I get some idea to revise them?
from pypylon.
Related Issues (20)
- Installation failed: "Wheel not supported" error when installing on 64bit Windows11 HOT 2
- Image recognition using camera basler and Yolo HOT 1
- Line Scan Camera not detected in Pypylon HOT 14
- Failed to Open camera in another class HOT 1
- Function 'PylonCreateDeviceByIndex' failed in source file ,device cannot be operated on an USB 2.0 HOT 2
- in application some cameras run some of the doesnt run HOT 3
- Another memory leak when using BaslerCompressionBeyond (this time when sending grab array to different thread) HOT 17
- Is there a better way to check if camera has PRO feature BaslerCompressionBeyond HOT 1
- BUG: Segmentation fault at conda HOT 7
- closing transport layer without init HOT 2
- Obtaining distances for each pixel in the depth image HOT 1
- Unstable camera connection handshakes HOT 4
- Distortion correction for Blaze 101 / 102 HOT 5
- Closed
- Problem with connection to Raspberry Pi HOT 4
- How to utilize buffer when recording. HOT 2
- camera.AcquisitionFrameRate.SetValue() is not accurate HOT 2
- Error: 3774873620 The buffer was incompletely grabbed. HOT 5
- fail when install pypylon on raspberry pi HOT 3
- Setting up PTP with multiple cameras HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pypylon.