zivid / zivid-halcon-samples

HALCON code samples for Zivid
https://zivid.com
BSD 3-Clause "New" or "Revised" License
13 stars 6 forks source link

Load Zivid two .yaml setting #46

Closed HM102 closed 1 year ago

HM102 commented 2 years ago

How can I load the .yaml camera setting file saved from zividStudio in halcon. I know it should be first converted to .json, but how can I loaded after wards.

SatjaSivcev commented 2 years ago

I believe this is what you are looking for: https://github.com/zivid/zivid-halcon-samples/blob/master/source/hdev/Camera/Basic/CaptureHDRLoop.hdev#L52

The procedure set_settings: https://github.com/zivid/zivid-halcon-samples/blob/380686d60566375b1fce57a11a18d03c1fa1cfdf/source/hdev/Camera/Basic/CaptureHDRLoop.hdev#L76