我有这段代码可以尝试使用 halcon。图像非常偏绿,无法弄清楚如何设置白平衡。我在示例、文档、谷歌和参数中找不到它。halcon上的白平衡是怎么设置的?
* Image Acquisition 06: Code generated by Image Acquisition 06
* Image Acquisition 06: Attention: The initialization may fail in case parameters need to
* Image Acquisition 06: be set in a specific order (e.g., image resolution vs. offset).
open_framegrabber ('GigEVision', 0, 0, 0, 0, 0, 0, 'default', -1, 'default', 'GtlForceIP=00010dc465ce,10.5.5.144/24', 'false', 'default', 'S1204667', 0, -1, AcqHandle)
set_framegrabber_param (AcqHandle, 'Gain', 5.01187)
set_framegrabber_param (AcqHandle, 'BlackLevel', 240.0)
dev_open_window (0, 0, 500, 300, 'light gray', WindowHandleButton)
i := 0
create_bar_code_model ([], [], BarCodeHandle)
while (i < 100)
grab_image (Image, AcqHandle)
find_bar_code (Image, SymbolRegions, BarCodeHandle, 'auto', DecodedDataStrings)
get_bar_code_result (BarCodeHandle, 'all', 'decoded_types', BarCodeResults)
i:= i+1
endwhile
close_framegrabber (AcqHandle)