Project

General

Profile

Using Python With Critical Link GenTL Producer » harvesters_gentl_python3.10.txt

Example logs - Jonathan Cormier, 01/09/2025 05:37 PM

 
1
(base) C:\Users\jcormier>conda create -n gentl_310 matplotlib python=3.10
2
(base) C:\Users\jcormier>conda activate gentl_310
3

    
4
(gentl_310) C:\Users\jcormier>python -V
5
Python 3.10.16
6

    
7
(gentl_310) C:\Users\jcormier>pip install numpy harvesters==1.4.0 genicam==1.2.0
8

    
9
(gentl_310) C:\Users\jcormier>pip show harvesters genicam
10
Name: harvesters
11
Version: 1.4.0
12
Summary: Image Acquisition Library for GenICam-based Machine Vision System
13
Home-page: https://github.com/genicam/harvesters
14
Author: The GenICam Committee
15
Author-email: genicam@list.stemmer-imaging.com
16
License: Apache Software License V2.0
17
Location: c:\users\jcormier\.conda\envs\gentl_30\lib\site-packages
18
Requires: genicam, numpy
19
Required-by:
20
---
21
Name: genicam
22
Version: 1.2.0
23
Summary: The official Python Binding for the GenICam GenApi & the GenTL Producers
24
Home-page: https://www.emva.org
25
Author: The GenICam Committee
26
Author-email: genicam@list.stemmer-imaging.com
27
License: The GenICam License Version 1.6
28
Location: c:\users\jcormier\.conda\envs\gentl_30\lib\site-packages
29
Requires:
30
Required-by: harvesters
31

    
32
(gentl_310) C:\Users\jcormier>cd Documents\GenTL\python_scripts
33

    
34
(gentl_310) C:\Users\jcormier>set PATH=c:\Program Files\Critical Link LLC\GenTL Viewer\bin;%PATH%
35

    
36
(gentl_310) C:\Users\jcormier>set HARVESTERS_XML_FILE_DIR=C:\Users\jcormier\Documents\Critical Link LLC\gentlviewer\xml
37

    
38
(gentl_310) C:\Users\jcormier\Documents\GenTL\python_scripts>python snap.py
39

    
40
C:\Users\jcormier\Documents\Critical Link LLC\gentlviewer\xml
41
c:\Program Files\Critical Link LLC\GenTL Viewer\bin;C:\Users\jcormier\.conda\envs\gentl_30;C:\Users\jcormier\.conda\envs\gentl_30\Library\mingw-w64\bin;C:\Users\jcormier\.conda\envs\gentl_30\Library\usr\bin;C:\Users\jcormier\.conda\envs\gentl_30\Library\bin;C:\Users\jcormier\.conda\envs\gentl_30\Scripts;C:\Users\jcormier\.conda\envs\gentl_30\bin;C:\ProgramData\Miniconda3\condabin;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\ProgramData\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\winsdk\10\Windows Performance Toolkit;C:\WINDOWS\System32\OpenSSH;C:\Program Files\PuTTY;C:\Program Files\Git\cmd;C:\Program Files\CMake\bin;C:\Program Files\TortoiseSVN\bin;C:\Program Files\TortoiseGit\bin;C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\ARM GCC\bin;C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\eclipse\jre\bin;C:\Users\jcormier\AppData\Local\Microsoft\WindowsApps;.;C:\Users\jcormier\AppData\Local\Programs\Microsoft VS Code\bin
42
2025-01-09 12:35:43,271 - harvesters - INFO - created: <harvesters.core.Harvester object at 0x00000295FB95B0A0>
43
2025-01-09 12:35:43,271 - harvesters - INFO - added: c:\Program Files\Critical Link LLC\GenTL Viewer\bin\GenTL.dll to <harvesters.core.Harvester object at 0x00000295FB95B0A0>
44
2025-01-09 12:35:43,272 - harvesters - DEBUG - discarded device information: <harvesters.core.Harvester object at 0x00000295FB95B0A0>
45
2025-01-09 12:35:43,274 - harvesters - DEBUG - initialized file: c:\Program Files\Critical Link LLC\GenTL Viewer\bin\GenTL.dll
46
2025-01-09 12:35:43,275 - harvesters - DEBUG - fetched url: local:///criticallink_systemgentl.xml;0;3073
47
2025-01-09 12:35:43,278 - harvesters - DEBUG - created: C:\Users\jcormier\AppData\Local\Temp\20250109123543_9i_xm3vi\criticallink_systemgentl.xml
48
2025-01-09 12:35:43,294 - harvesters - DEBUG - deleted: C:\Users\jcormier\AppData\Local\Temp\20250109123543_9i_xm3vi\criticallink_systemgentl.xml
49
2025-01-09 12:35:43,295 - harvesters - DEBUG - opened: criticallink/gentl.dll :: <genicam.gentl.GenTLProducer; proxy of <Swig Object of type 'std::shared_ptr< GenTLCpp::GenTLProducer > *' at 0x00000295FC3ECAE0> >
50
2025-01-09 12:35:43,295 - harvesters - DEBUG - opened: Simulated :: criticallink/gentl.dll :: <genicam.gentl.GenTLProducer; proxy of <Swig Object of type 'std::shared_ptr< GenTLCpp::GenTLProducer > *' at 0x00000295FC3ECDE0> >
51
2025-01-09 12:35:43,296 - harvesters - DEBUG - fetched url: local:///criticallink_interface_Simulated.xml;0;27ea
52
2025-01-09 12:35:43,297 - harvesters - DEBUG - created: C:\Users\jcormier\AppData\Local\Temp\20250109123543_mf1cwyc1\criticallink_interface_Simulated.xml
53
2025-01-09 12:35:43,309 - harvesters - DEBUG - deleted: C:\Users\jcormier\AppData\Local\Temp\20250109123543_mf1cwyc1\criticallink_interface_Simulated.xml
54
2025-01-09 12:35:43,314 - harvesters - DEBUG - opened: GEV :: criticallink/gentl.dll :: <genicam.gentl.GenTLProducer; proxy of <Swig Object of type 'std::shared_ptr< GenTLCpp::GenTLProducer > *' at 0x00000295FC3ED080> >
55
2025-01-09 12:35:43,314 - harvesters - DEBUG - fetched url: local:///criticallink_interface_GEV.xml;0;27de
56
2025-01-09 12:35:43,316 - harvesters - DEBUG - created: C:\Users\jcormier\AppData\Local\Temp\20250109123543_cl0fm_l6\criticallink_interface_GEV.xml
57
2025-01-09 12:35:43,327 - harvesters - DEBUG - deleted: C:\Users\jcormier\AppData\Local\Temp\20250109123543_cl0fm_l6\criticallink_interface_GEV.xml
58
2025-01-09 12:35:44,350 - harvesters - DEBUG - opened: U3V :: criticallink/gentl.dll :: <genicam.gentl.GenTLProducer; proxy of <Swig Object of type 'std::shared_ptr< GenTLCpp::GenTLProducer > *' at 0x00000295FC3ED320> >
59
2025-01-09 12:35:44,352 - harvesters - DEBUG - fetched url: local:///criticallink_interface_U3V.xml;0;27de
60
2025-01-09 12:35:44,357 - harvesters - DEBUG - created: C:\Users\jcormier\AppData\Local\Temp\20250109123544_5827p2vg\criticallink_interface_U3V.xml
61
2025-01-09 12:35:44,387 - harvesters - DEBUG - deleted: C:\Users\jcormier\AppData\Local\Temp\20250109123544_5827p2vg\criticallink_interface_U3V.xml
62
2025-01-09 12:35:44,559 - harvesters - INFO - updated: <harvesters.core.Harvester object at 0x00000295FB95B0A0>
63
Found 1 devices
64
[{'access_status': 0, 'display_name': 'MityCAM-C8000_1682', 'id_': '1EF800000692', 'model': 'MityCAM-C8000', 'parent': <genicam.gentl.Interface; proxy of <Swig Object of type 'std::shared_ptr< GenTLCpp::TLInterface > *' at 0x00000295FC3ED5F0> >, 'serial_number': '1682', 'thisown': True, 'tl_type': 'U3V', 'user_defined_name': '', 'vendor': 'Critical Link LLC', 'version': '1.0'}]
65
2025-01-09 12:35:44,697 - harvesters - DEBUG - fetched url: local:///criticallink_device_1EF800000692.xml;0;346a
66
2025-01-09 12:35:44,701 - harvesters - DEBUG - created: C:\Users\jcormier\AppData\Local\Temp\20250109123544_5m0o8l3d\criticallink_device_1EF800000692.xml
67
2025-01-09 12:35:44,740 - harvesters - DEBUG - deleted: C:\Users\jcormier\AppData\Local\Temp\20250109123544_5m0o8l3d\criticallink_device_1EF800000692.xml
68
2025-01-09 12:35:44,740 - harvesters - DEBUG - opened: 1EF800000692 :: U3V :: criticallink/gentl.dll :: <harvesters.core.Producer object at 0x00000295FC3CFC70> :: None
69
2025-01-09 12:35:44,803 - harvesters - DEBUG - fetched url: local:///Critical Link LLC_MityCAM-C8000_v2_1_0.zip;44000;1692
70
2025-01-09 12:35:44,870 - harvesters - DEBUG - created: C:\Users\jcormier\Documents\Critical Link LLC\gentlviewer\xml\Critical Link LLC_MityCAM-C8000_v2_1_0.zip
71
2025-01-09 12:35:44,890 - harvesters - DEBUG - deleted: C:\Users\jcormier\Documents\Critical Link LLC\gentlviewer\xml\Critical Link LLC_MityCAM-C8000_v2_1_0.zip
72
2025-01-09 12:35:44,891 - harvesters - DEBUG - opened: DataStream :: 1EF800000692 :: U3V :: criticallink/gentl.dll :: <genicam.gentl.GenTLProducer; proxy of <Swig Object of type 'std::shared_ptr< GenTLCpp::GenTLProducer > *' at 0x00000295FC3EDD40> >
73
2025-01-09 12:35:44,894 - harvesters - DEBUG - fetched url: local:///criticallink_datastream_DataStream.xml;0;35d1
74
2025-01-09 12:35:44,899 - harvesters - DEBUG - created: C:\Users\jcormier\AppData\Local\Temp\20250109123544_126yajol\criticallink_datastream_DataStream.xml
75
2025-01-09 12:35:44,930 - harvesters - DEBUG - deleted: C:\Users\jcormier\AppData\Local\Temp\20250109123544_126yajol\criticallink_datastream_DataStream.xml
76
2025-01-09 12:35:44,931 - harvesters - DEBUG - created: <harvesters.core._SignalHandler object at 0x00000295FC3EDFC0>
77
2025-01-09 12:35:44,933 - harvesters - INFO - created: <harvesters.core.ImageAcquirer object at 0x00000295FC3ED840> for 1EF800000692 by <harvesters.core.Harvester object at 0x00000295FB95B0A0>
78
Starting Acquistion
79
2025-01-09 12:35:44,938 - harvesters - DEBUG - allocated: 8388608 bytes by <harvesters.core.ImageAcquirer object at 0x00000295FC3ED840>
80
2025-01-09 12:35:44,938 - harvesters - DEBUG - allocated: 8388608 bytes by <harvesters.core.ImageAcquirer object at 0x00000295FC3ED840>
81
2025-01-09 12:35:44,939 - harvesters - DEBUG - allocated: 8388608 bytes by <harvesters.core.ImageAcquirer object at 0x00000295FC3ED840>
82
2025-01-09 12:35:44,939 - harvesters - DEBUG - allocated: 8388608 bytes by <harvesters.core.ImageAcquirer object at 0x00000295FC3ED840>
83
2025-01-09 12:35:44,940 - harvesters - DEBUG - allocated: 8388608 bytes by <harvesters.core.ImageAcquirer object at 0x00000295FC3ED840>
84
2025-01-09 12:35:44,941 - harvesters - DEBUG - announced: <genicam.gentl.Buffer; proxy of <Swig Object of type 'std::shared_ptr< GenTLCpp::Buffer > *' at 0x00000295FC3EE400> > :: DataStream :: 1EF800000692 :: U3V :: criticallink/gentl.dll :: <genicam.gentl.GenTLProducer; proxy of <Swig Object of type 'std::shared_ptr< GenTLCpp::GenTLProducer > *' at 0x00000295FC3EE6D0> >
85
2025-01-09 12:35:44,941 - harvesters - DEBUG - announced: <genicam.gentl.Buffer; proxy of <Swig Object of type 'std::shared_ptr< GenTLCpp::Buffer > *' at 0x00000295FC3EE4C0> > :: DataStream :: 1EF800000692 :: U3V :: criticallink/gentl.dll :: <genicam.gentl.GenTLProducer; proxy of <Swig Object of type 'std::shared_ptr< GenTLCpp::GenTLProducer > *' at 0x00000295FC3EE760> >
86
2025-01-09 12:35:44,942 - harvesters - DEBUG - announced: <genicam.gentl.Buffer; proxy of <Swig Object of type 'std::shared_ptr< GenTLCpp::Buffer > *' at 0x00000295FC3EE580> > :: DataStream :: 1EF800000692 :: U3V :: criticallink/gentl.dll :: <genicam.gentl.GenTLProducer; proxy of <Swig Object of type 'std::shared_ptr< GenTLCpp::GenTLProducer > *' at 0x00000295FC3EE7F0> >
87
2025-01-09 12:35:44,943 - harvesters - DEBUG - announced: <genicam.gentl.Buffer; proxy of <Swig Object of type 'std::shared_ptr< GenTLCpp::Buffer > *' at 0x00000295FC3EE5B0> > :: DataStream :: 1EF800000692 :: U3V :: criticallink/gentl.dll :: <genicam.gentl.GenTLProducer; proxy of <Swig Object of type 'std::shared_ptr< GenTLCpp::GenTLProducer > *' at 0x00000295FC3EE880> >
88
2025-01-09 12:35:44,944 - harvesters - DEBUG - announced: <genicam.gentl.Buffer; proxy of <Swig Object of type 'std::shared_ptr< GenTLCpp::Buffer > *' at 0x00000295FC3EE670> > :: DataStream :: 1EF800000692 :: U3V :: criticallink/gentl.dll :: <genicam.gentl.GenTLProducer; proxy of <Swig Object of type 'std::shared_ptr< GenTLCpp::GenTLProducer > *' at 0x00000295FC3EE910> >
89
2025-01-09 12:35:44,949 - harvesters - DEBUG - queued: <genicam.gentl.Buffer; proxy of <Swig Object of type 'std::shared_ptr< GenTLCpp::Buffer > *' at 0x00000295FC3EE400> > :: DataStream :: 1EF800000692 :: U3V :: criticallink/gentl.dll :: <genicam.gentl.GenTLProducer; proxy of <Swig Object of type 'std::shared_ptr< GenTLCpp::GenTLProducer > *' at 0x00000295FC3EE910> >
90
2025-01-09 12:35:44,951 - harvesters - DEBUG - queued: <genicam.gentl.Buffer; proxy of <Swig Object of type 'std::shared_ptr< GenTLCpp::Buffer > *' at 0x00000295FC3EE4C0> > :: DataStream :: 1EF800000692 :: U3V :: criticallink/gentl.dll :: <genicam.gentl.GenTLProducer; proxy of <Swig Object of type 'std::shared_ptr< GenTLCpp::GenTLProducer > *' at 0x00000295FC3EE9A0> >
91
2025-01-09 12:35:44,952 - harvesters - DEBUG - queued: <genicam.gentl.Buffer; proxy of <Swig Object of type 'std::shared_ptr< GenTLCpp::Buffer > *' at 0x00000295FC3EE580> > :: DataStream :: 1EF800000692 :: U3V :: criticallink/gentl.dll :: <genicam.gentl.GenTLProducer; proxy of <Swig Object of type 'std::shared_ptr< GenTLCpp::GenTLProducer > *' at 0x00000295FC3EE9D0> >
92
2025-01-09 12:35:44,954 - harvesters - DEBUG - queued: <genicam.gentl.Buffer; proxy of <Swig Object of type 'std::shared_ptr< GenTLCpp::Buffer > *' at 0x00000295FC3EE5B0> > :: DataStream :: 1EF800000692 :: U3V :: criticallink/gentl.dll :: <genicam.gentl.GenTLProducer; proxy of <Swig Object of type 'std::shared_ptr< GenTLCpp::GenTLProducer > *' at 0x00000295FC3EE910> >
93
2025-01-09 12:35:44,956 - harvesters - DEBUG - queued: <genicam.gentl.Buffer; proxy of <Swig Object of type 'std::shared_ptr< GenTLCpp::Buffer > *' at 0x00000295FC3EE670> > :: DataStream :: 1EF800000692 :: U3V :: criticallink/gentl.dll :: <genicam.gentl.GenTLProducer; proxy of <Swig Object of type 'std::shared_ptr< GenTLCpp::GenTLProducer > *' at 0x00000295FC3EE9A0> >
94
2025-01-09 12:35:45,010 - harvesters - INFO - started acquisition: <harvesters.core.ImageAcquirer object at 0x00000295FC3ED840>
95
2025-01-09 12:35:45,034 - harvesters - DEBUG - started streaming: 1EF800000692 :: U3V :: criticallink/gentl.dll :: <genicam.gentl.GenTLProducer; proxy of <Swig Object of type 'std::shared_ptr< GenTLCpp::GenTLProducer > *' at 0x00000295FC3EE880> >
96
Image details: 2048w 2048h Mono16
97
2025-01-09 12:35:50,733 - harvesters - DEBUG - stopped streaming: 1EF800000692 :: U3V :: criticallink/gentl.dll :: <genicam.gentl.GenTLProducer; proxy of <Swig Object of type 'std::shared_ptr< GenTLCpp::GenTLProducer > *' at 0x0000029586C97D20> >
98
2025-01-09 12:35:50,748 - harvesters - DEBUG - revoked: <genicam.gentl.Buffer; proxy of <Swig Object of type 'std::shared_ptr< GenTLCpp::Buffer > *' at 0x00000295FC3EE400> > :: DataStream :: 1EF800000692 :: U3V :: criticallink/gentl.dll :: <genicam.gentl.GenTLProducer; proxy of <Swig Object of type 'std::shared_ptr< GenTLCpp::GenTLProducer > *' at 0x0000029586CB4090> >
99
2025-01-09 12:35:50,748 - harvesters - DEBUG - revoked: <genicam.gentl.Buffer; proxy of <Swig Object of type 'std::shared_ptr< GenTLCpp::Buffer > *' at 0x00000295FC3EE4C0> > :: DataStream :: 1EF800000692 :: U3V :: criticallink/gentl.dll :: <genicam.gentl.GenTLProducer; proxy of <Swig Object of type 'std::shared_ptr< GenTLCpp::GenTLProducer > *' at 0x0000029586CB4150> >
100
2025-01-09 12:35:50,752 - harvesters - DEBUG - revoked: <genicam.gentl.Buffer; proxy of <Swig Object of type 'std::shared_ptr< GenTLCpp::Buffer > *' at 0x00000295FC3EE580> > :: DataStream :: 1EF800000692 :: U3V :: criticallink/gentl.dll :: <genicam.gentl.GenTLProducer; proxy of <Swig Object of type 'std::shared_ptr< GenTLCpp::GenTLProducer > *' at 0x0000029586CB4180> >
101
2025-01-09 12:35:50,755 - harvesters - DEBUG - revoked: <genicam.gentl.Buffer; proxy of <Swig Object of type 'std::shared_ptr< GenTLCpp::Buffer > *' at 0x00000295FC3EE5B0> > :: DataStream :: 1EF800000692 :: U3V :: criticallink/gentl.dll :: <genicam.gentl.GenTLProducer; proxy of <Swig Object of type 'std::shared_ptr< GenTLCpp::GenTLProducer > *' at 0x0000029586CB41B0> >
102
2025-01-09 12:35:50,758 - harvesters - DEBUG - revoked: <genicam.gentl.Buffer; proxy of <Swig Object of type 'std::shared_ptr< GenTLCpp::Buffer > *' at 0x00000295FC3EE670> > :: DataStream :: 1EF800000692 :: U3V :: criticallink/gentl.dll :: <genicam.gentl.GenTLProducer; proxy of <Swig Object of type 'std::shared_ptr< GenTLCpp::GenTLProducer > *' at 0x0000029586CB4150> >
103
2025-01-09 12:35:50,761 - harvesters - INFO - stopped acquisition: <harvesters.core.ImageAcquirer object at 0x00000295FC3ED840>
104
2025-01-09 12:35:50,764 - harvesters - DEBUG - closed: DataStream :: 1EF800000692 :: U3V :: criticallink/gentl.dll :: <genicam.gentl.GenTLProducer; proxy of <Swig Object of type 'std::shared_ptr< GenTLCpp::GenTLProducer > *' at 0x00000295FC3EE550> >
105
2025-01-09 12:35:50,775 - harvesters - INFO - released resources: <harvesters.core.ImageAcquirer object at 0x00000295FC3ED840>
106
2025-01-09 12:35:50,785 - harvesters - DEBUG - being reset: <harvesters.core.Harvester object at 0x00000295FB95B0A0>
107
2025-01-09 12:35:50,785 - harvesters - INFO - flushed file list: <harvesters.core.Harvester object at 0x00000295FB95B0A0>
108
2025-01-09 12:35:50,787 - harvesters - DEBUG - discarded device information: <harvesters.core.Harvester object at 0x00000295FB95B0A0>
109
2025-01-09 12:35:50,789 - harvesters - DEBUG - closed: Simulated :: criticallink/gentl.dll :: <harvesters.core.Producer object at 0x00000295FC3CFC70> :: None
110
2025-01-09 12:35:50,793 - harvesters - DEBUG - closed: GEV :: criticallink/gentl.dll :: <harvesters.core.Producer object at 0x00000295FC3CFC70> :: None
111
2025-01-09 12:35:50,796 - harvesters - DEBUG - closed: U3V :: criticallink/gentl.dll :: <harvesters.core.Producer object at 0x00000295FC3CFC70> :: None
112
2025-01-09 12:35:50,798 - harvesters - DEBUG - closed: criticallink/gentl.dll :: <harvesters.core.Producer object at 0x00000295FC3CFC70> :: None
113
2025-01-09 12:35:50,799 - harvesters - DEBUG - closed: c:\Program Files\Critical Link LLC\GenTL Viewer\bin\GenTL.dll
114
2025-01-09 12:35:50,799 - harvesters - INFO - reset completed: <harvesters.core.Harvester object at 0x00000295FB95B0A0>
115

    
116
(gentl_310) C:\Users\jcormier\Documents\GenTL\python_scripts>
(7-7/7) Go to top
Add picture from clipboard (Maximum size: 1 GB)