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