View GenTLUSB3OpenCV.py
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) |
View GenTLUSB3-2.py
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() |
View GenTLUSB3-1.py
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() |
View Kx210.cs
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; |
View Form1.cs
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; |
View Excel.cs
namespace sample | |
{ | |
class Excel | |
{ | |
dynamic excelApp = null; | |
dynamic workBooks = null; | |
dynamic workBook = null; | |
dynamic workSheets = null; | |
dynamic workSheet = null; | |
dynamic range = null; |
View Form1.cs
public partial class Form1 : Form | |
{ | |
public Form1() | |
{ | |
InitializeComponent(); | |
} | |
private void button1_Click(object sender, EventArgs e) | |
{ | |
textBox1.Text = ""; |
View Form1.cs
public partial class Form1 : Form | |
{ | |
private MemoryMappedFile mmf; | |
public Form1() | |
{ | |
InitializeComponent(); | |
try | |
{ | |
mmf = MemoryMappedFile.CreateNew("Test", 1024); |
View Form1.cs
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.Data; | |
using System.Drawing; | |
using System.Text; | |
using System.Windows.Forms; | |
using Jai_FactoryDotNET; | |
using System.Threading; | |
using System.Runtime.InteropServices; |
View Form1.cs
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.Data; | |
using System.Drawing; | |
using System.Text; | |
using System.Windows.Forms; | |
using Jai_FactoryDotNET; | |
using System.Threading; | |
using System.Runtime.InteropServices; |
NewerOlder