Giter Site home page Giter Site logo

Comments (3)

basler-oss avatar basler-oss commented on July 22, 2024 1

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.

LucasVandroux avatar LucasVandroux commented on July 22, 2024

@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.

zarzar31 avatar zarzar31 commented on July 22, 2024

@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)

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.