This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.Data; | |
using System.Drawing; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Windows.Forms; | |
using System.Diagnostics; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.IO; | |
using System.IO.Ports; | |
using System.Windows.Forms; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from harvesters.core import Harvester | |
h = Harvester() | |
h.add_cti_file('C:/Program Files/JAI/SDK/bin/JaiUSB3vTL.cti') | |
h.update_device_info_list() | |
print("NumberOfCamera = {0}".format(len(h.device_info_list))) | |
h.device_info_list[0] | |
print(h.device_info_list[0]) | |
h.reset() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from harvesters.core import Harvester | |
h = Harvester() | |
h.add_cti_file('C:/Program Files/JAI/SDK/bin/JaiUSB3vTL.cti') | |
h.update_device_info_list() | |
print("NumberOfCamera = {0}".format(len(h.device_info_list))) | |
print(h.device_info_list[0]) | |
ia = h.create_image_acquirer(0) | |
ia.device.node_map.PixelFormat.value = 'BayerRG8' | |
ia.device.node_map.TestPattern = 'HorizontalColorBar' | |
ia.start_image_acquisition() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from harvesters.core import Harvester | |
import sys | |
import traceback | |
import cv2 | |
def main(): | |
h = Harvester() | |
h.add_cti_file('C:/Program Files/JAI/SDK/bin/JaiUSB3vTL.cti') | |
h.update_device_info_list() | |
ia = h.create_image_acquirer(0) |
OlderNewer