Project

General

Profile

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

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

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

    
4

    
5
(gentl_38) C:\Users\jcormier>python -V
6
Python 3.8.13
7

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

    
10
(gentl_38) C:\Users\jcormier>pip show harvesters
11
Name: harvesters
12
Version: 1.4.0
13
Summary: Image Acquisition Library for GenICam-based Machine Vision System
14
Home-page: https://github.com/genicam/harvesters
15
Author: The GenICam Committee
16
Author-email: genicam@list.stemmer-imaging.com
17
License: Apache Software License V2.0
18
Location: c:\users\jcormier\.conda\envs\gentl_38\lib\site-packages
19
Requires: genicam, numpy
20
Required-by:
21

    
22
(gentl_38) C:\Users\jcormier>pip show genicam
23
Name: genicam
24
Version: 1.2.0
25
Summary: The official Python Binding for the GenICam GenApi & the GenTL Producers
26
Home-page: https://www.emva.org
27
Author: The GenICam Committee
28
Author-email: genicam@list.stemmer-imaging.com
29
License: The GenICam License Version 1.6
30
Location: c:\users\jcormier\.conda\envs\gentl_38\lib\site-packages
31
Requires:
32
Required-by: harvesters
33

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

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

    
38
(gentl_38) C:\Users\jcormier>set HARVESTERS_XML_FILE_DIR=C:\Users\jcormier\Documents\Critical Link LLC\gentlviewer\xml
39

    
40
(gentl_38) C:\Users\jcormier>set HARVESTERS_XML_FILE_DIR=C:\Users\jcormier\Documents\Critical Link LLC\gentlviewer\xml
41

    
42
(gentl_38) C:\Users\jcormier>cd Documents\GenTL\python_scripts
43

    
44
(gentl_38) C:\Users\jcormier\Documents\GenTL\python_scripts>dir
45
 Volume in drive C has no label.
46
 Volume Serial Number is DAFC-DB99
47

    
48
 Directory of C:\Users\jcormier\Documents\GenTL\python_scripts
49

    
50
01/09/2025  12:17 PM    <DIR>          .
51
01/09/2025  12:17 PM    <DIR>          ..
52
09/26/2022  02:26 PM    <DIR>          .vscode
53
09/27/2022  09:43 AM            14,823 harvesters.ipynb
54
09/26/2022  12:09 PM               422 read_dng.py
55
01/09/2025  12:17 PM             3,978 snap.py
56
09/27/2022  09:41 AM             3,620 snap.py.bak
57
               4 File(s)         22,843 bytes
58
               3 Dir(s)  11,652,968,448 bytes free
59

    
60
(gentl_38) C:\Users\jcormier\Documents\GenTL\python_scripts>python snap.py
61
C:\Users\jcormier\Documents\Critical Link LLC\gentlviewer\xml
62
c:\Program Files\Critical Link LLC\GenTL Viewer\bin;C:\Users\jcormier\.conda\envs\gentl_38;C:\Users\jcormier\.conda\envs\gentl_38\Library\mingw-w64\bin;C:\Users\jcormier\.conda\envs\gentl_38\Library\usr\bin;C:\Users\jcormier\.conda\envs\gentl_38\Library\bin;C:\Users\jcormier\.conda\envs\gentl_38\Scripts;C:\Users\jcormier\.conda\envs\gentl_38\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
63
2025-01-09 12:29:43,329 - harvesters - INFO - created: <harvesters.core.Harvester object at 0x000001C71EFFBE20>
64
2025-01-09 12:29:43,330 - harvesters - INFO - added: c:\Program Files\Critical Link LLC\GenTL Viewer\bin\GenTL.dll to <harvesters.core.Harvester object at 0x000001C71EFFBE20>
65
2025-01-09 12:29:43,331 - harvesters - DEBUG - discarded device information: <harvesters.core.Harvester object at 0x000001C71EFFBE20>
66
2025-01-09 12:29:43,334 - harvesters - DEBUG - initialized file: c:\Program Files\Critical Link LLC\GenTL Viewer\bin\GenTL.dll
67
2025-01-09 12:29:43,336 - harvesters - DEBUG - fetched url: local:///criticallink_systemgentl.xml;0;3073
68
2025-01-09 12:29:43,339 - harvesters - DEBUG - created: C:\Users\jcormier\AppData\Local\Temp\20250109122943_k9v2hlrj\criticallink_systemgentl.xml
69
2025-01-09 12:29:43,367 - harvesters - DEBUG - deleted: C:\Users\jcormier\AppData\Local\Temp\20250109122943_k9v2hlrj\criticallink_systemgentl.xml
70
2025-01-09 12:29:43,368 - harvesters - DEBUG - opened: criticallink/gentl.dll :: <genicam.gentl.GenTLProducer; proxy of <Swig Object of type 'std::shared_ptr< GenTLCpp::GenTLProducer > *' at 0x000001C71F8EE900> >
71
2025-01-09 12:29:43,369 - harvesters - DEBUG - opened: Simulated :: criticallink/gentl.dll :: <genicam.gentl.GenTLProducer; proxy of <Swig Object of type 'std::shared_ptr< GenTLCpp::GenTLProducer > *' at 0x000001C71F8EEC90> >
72
2025-01-09 12:29:43,369 - harvesters - DEBUG - fetched url: local:///criticallink_interface_Simulated.xml;0;27ea
73
2025-01-09 12:29:43,370 - harvesters - DEBUG - created: C:\Users\jcormier\AppData\Local\Temp\20250109122943_j66f1_w8\criticallink_interface_Simulated.xml
74
2025-01-09 12:29:43,382 - harvesters - DEBUG - deleted: C:\Users\jcormier\AppData\Local\Temp\20250109122943_j66f1_w8\criticallink_interface_Simulated.xml
75
2025-01-09 12:29:43,387 - harvesters - DEBUG - opened: GEV :: criticallink/gentl.dll :: <genicam.gentl.GenTLProducer; proxy of <Swig Object of type 'std::shared_ptr< GenTLCpp::GenTLProducer > *' at 0x000001C71F8EEF30> >
76
2025-01-09 12:29:43,388 - harvesters - DEBUG - fetched url: local:///criticallink_interface_GEV.xml;0;27de
77
2025-01-09 12:29:43,389 - harvesters - DEBUG - created: C:\Users\jcormier\AppData\Local\Temp\20250109122943_roc_xppp\criticallink_interface_GEV.xml
78
2025-01-09 12:29:43,401 - harvesters - DEBUG - deleted: C:\Users\jcormier\AppData\Local\Temp\20250109122943_roc_xppp\criticallink_interface_GEV.xml
79
2025-01-09 12:29:44,431 - harvesters - DEBUG - opened: U3V :: criticallink/gentl.dll :: <genicam.gentl.GenTLProducer; proxy of <Swig Object of type 'std::shared_ptr< GenTLCpp::GenTLProducer > *' at 0x000001C71F90E210> >
80
2025-01-09 12:29:44,434 - harvesters - DEBUG - fetched url: local:///criticallink_interface_U3V.xml;0;27de
81
2025-01-09 12:29:44,439 - harvesters - DEBUG - created: C:\Users\jcormier\AppData\Local\Temp\20250109122944_n885ex75\criticallink_interface_U3V.xml
82
2025-01-09 12:29:44,463 - harvesters - DEBUG - deleted: C:\Users\jcormier\AppData\Local\Temp\20250109122944_n885ex75\criticallink_interface_U3V.xml
83
2025-01-09 12:29:44,633 - harvesters - INFO - updated: <harvesters.core.Harvester object at 0x000001C71EFFBE20>
84
Found 1 devices
85
[{'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 0x000001C71F90E4E0> >, 'serial_number': '1682', 'thisown': True, 'tl_type': 'U3V', 'user_defined_name': '', 'vendor': 'Critical Link LLC', 'version': '1.0'}]
86
2025-01-09 12:29:44,789 - harvesters - DEBUG - fetched url: local:///criticallink_device_1EF800000692.xml;0;346a
87
2025-01-09 12:29:44,793 - harvesters - DEBUG - created: C:\Users\jcormier\AppData\Local\Temp\20250109122944_f4hwxrmb\criticallink_device_1EF800000692.xml
88
2025-01-09 12:29:44,830 - harvesters - DEBUG - deleted: C:\Users\jcormier\AppData\Local\Temp\20250109122944_f4hwxrmb\criticallink_device_1EF800000692.xml
89
2025-01-09 12:29:44,831 - harvesters - DEBUG - opened: 1EF800000692 :: U3V :: criticallink/gentl.dll :: <harvesters.core.Producer object at 0x000001C71F02E340> :: None
90
2025-01-09 12:29:44,906 - harvesters - DEBUG - fetched url: local:///Critical Link LLC_MityCAM-C8000_v2_1_0.zip;44000;1692
91
2025-01-09 12:29:44,973 - harvesters - DEBUG - created: C:\Users\jcormier\Documents\Critical Link LLC\gentlviewer\xml\Critical Link LLC_MityCAM-C8000_v2_1_0.zip
92
2025-01-09 12:29:45,019 - harvesters - DEBUG - deleted: C:\Users\jcormier\Documents\Critical Link LLC\gentlviewer\xml\Critical Link LLC_MityCAM-C8000_v2_1_0.zip
93
2025-01-09 12:29:45,020 - harvesters - DEBUG - opened: DataStream :: 1EF800000692 :: U3V :: criticallink/gentl.dll :: <genicam.gentl.GenTLProducer; proxy of <Swig Object of type 'std::shared_ptr< GenTLCpp::GenTLProducer > *' at 0x000001C71F90EC00> >
94
2025-01-09 12:29:45,022 - harvesters - DEBUG - fetched url: local:///criticallink_datastream_DataStream.xml;0;35d1
95
2025-01-09 12:29:45,023 - harvesters - DEBUG - created: C:\Users\jcormier\AppData\Local\Temp\20250109122945_loprzdok\criticallink_datastream_DataStream.xml
96
2025-01-09 12:29:45,041 - harvesters - DEBUG - deleted: C:\Users\jcormier\AppData\Local\Temp\20250109122945_loprzdok\criticallink_datastream_DataStream.xml
97
2025-01-09 12:29:45,043 - harvesters - DEBUG - created: <harvesters.core._SignalHandler object at 0x000001C71F90EEE0>
98
2025-01-09 12:29:45,043 - harvesters - INFO - created: <harvesters.core.ImageAcquirer object at 0x000001C71F90E700> for 1EF800000692 by <harvesters.core.Harvester object at 0x000001C71EFFBE20>
99
Starting Acquistion
100
2025-01-09 12:29:45,045 - harvesters - DEBUG - allocated: 8388608 bytes by <harvesters.core.ImageAcquirer object at 0x000001C71F90E700>
101
2025-01-09 12:29:45,046 - harvesters - DEBUG - allocated: 8388608 bytes by <harvesters.core.ImageAcquirer object at 0x000001C71F90E700>
102
2025-01-09 12:29:45,046 - harvesters - DEBUG - allocated: 8388608 bytes by <harvesters.core.ImageAcquirer object at 0x000001C71F90E700>
103
2025-01-09 12:29:45,046 - harvesters - DEBUG - allocated: 8388608 bytes by <harvesters.core.ImageAcquirer object at 0x000001C71F90E700>
104
2025-01-09 12:29:45,047 - harvesters - DEBUG - allocated: 8388608 bytes by <harvesters.core.ImageAcquirer object at 0x000001C71F90E700>
105
2025-01-09 12:29:45,047 - harvesters - DEBUG - announced: <genicam.gentl.Buffer; proxy of <Swig Object of type 'std::shared_ptr< GenTLCpp::Buffer > *' at 0x000001C71F91E390> > :: DataStream :: 1EF800000692 :: U3V :: criticallink/gentl.dll :: <genicam.gentl.GenTLProducer; proxy of <Swig Object of type 'std::shared_ptr< GenTLCpp::GenTLProducer > *' at 0x000001C71F91E660> >
106
2025-01-09 12:29:45,048 - harvesters - DEBUG - announced: <genicam.gentl.Buffer; proxy of <Swig Object of type 'std::shared_ptr< GenTLCpp::Buffer > *' at 0x000001C71F91E450> > :: DataStream :: 1EF800000692 :: U3V :: criticallink/gentl.dll :: <genicam.gentl.GenTLProducer; proxy of <Swig Object of type 'std::shared_ptr< GenTLCpp::GenTLProducer > *' at 0x000001C71F91E6F0> >
107
2025-01-09 12:29:45,050 - harvesters - DEBUG - announced: <genicam.gentl.Buffer; proxy of <Swig Object of type 'std::shared_ptr< GenTLCpp::Buffer > *' at 0x000001C71F91E510> > :: DataStream :: 1EF800000692 :: U3V :: criticallink/gentl.dll :: <genicam.gentl.GenTLProducer; proxy of <Swig Object of type 'std::shared_ptr< GenTLCpp::GenTLProducer > *' at 0x000001C71F91E780> >
108
2025-01-09 12:29:45,050 - harvesters - DEBUG - announced: <genicam.gentl.Buffer; proxy of <Swig Object of type 'std::shared_ptr< GenTLCpp::Buffer > *' at 0x000001C71F91E540> > :: DataStream :: 1EF800000692 :: U3V :: criticallink/gentl.dll :: <genicam.gentl.GenTLProducer; proxy of <Swig Object of type 'std::shared_ptr< GenTLCpp::GenTLProducer > *' at 0x000001C71F91E810> >
109
2025-01-09 12:29:45,050 - harvesters - DEBUG - announced: <genicam.gentl.Buffer; proxy of <Swig Object of type 'std::shared_ptr< GenTLCpp::Buffer > *' at 0x000001C71F91E600> > :: DataStream :: 1EF800000692 :: U3V :: criticallink/gentl.dll :: <genicam.gentl.GenTLProducer; proxy of <Swig Object of type 'std::shared_ptr< GenTLCpp::GenTLProducer > *' at 0x000001C71F91E8A0> >
110
2025-01-09 12:29:45,053 - harvesters - DEBUG - queued: <genicam.gentl.Buffer; proxy of <Swig Object of type 'std::shared_ptr< GenTLCpp::Buffer > *' at 0x000001C71F91E390> > :: DataStream :: 1EF800000692 :: U3V :: criticallink/gentl.dll :: <genicam.gentl.GenTLProducer; proxy of <Swig Object of type 'std::shared_ptr< GenTLCpp::GenTLProducer > *' at 0x000001C71F91E8A0> >
111
2025-01-09 12:29:45,054 - harvesters - DEBUG - queued: <genicam.gentl.Buffer; proxy of <Swig Object of type 'std::shared_ptr< GenTLCpp::Buffer > *' at 0x000001C71F91E450> > :: DataStream :: 1EF800000692 :: U3V :: criticallink/gentl.dll :: <genicam.gentl.GenTLProducer; proxy of <Swig Object of type 'std::shared_ptr< GenTLCpp::GenTLProducer > *' at 0x000001C71F91E930> >
112
2025-01-09 12:29:45,057 - harvesters - DEBUG - queued: <genicam.gentl.Buffer; proxy of <Swig Object of type 'std::shared_ptr< GenTLCpp::Buffer > *' at 0x000001C71F91E510> > :: DataStream :: 1EF800000692 :: U3V :: criticallink/gentl.dll :: <genicam.gentl.GenTLProducer; proxy of <Swig Object of type 'std::shared_ptr< GenTLCpp::GenTLProducer > *' at 0x000001C71F91E960> >
113
2025-01-09 12:29:45,059 - harvesters - DEBUG - queued: <genicam.gentl.Buffer; proxy of <Swig Object of type 'std::shared_ptr< GenTLCpp::Buffer > *' at 0x000001C71F91E540> > :: DataStream :: 1EF800000692 :: U3V :: criticallink/gentl.dll :: <genicam.gentl.GenTLProducer; proxy of <Swig Object of type 'std::shared_ptr< GenTLCpp::GenTLProducer > *' at 0x000001C71F91E8A0> >
114
2025-01-09 12:29:45,061 - harvesters - DEBUG - queued: <genicam.gentl.Buffer; proxy of <Swig Object of type 'std::shared_ptr< GenTLCpp::Buffer > *' at 0x000001C71F91E600> > :: DataStream :: 1EF800000692 :: U3V :: criticallink/gentl.dll :: <genicam.gentl.GenTLProducer; proxy of <Swig Object of type 'std::shared_ptr< GenTLCpp::GenTLProducer > *' at 0x000001C71F91E930> >
115
2025-01-09 12:29:45,116 - harvesters - INFO - started acquisition: <harvesters.core.ImageAcquirer object at 0x000001C71F90E700>
116
2025-01-09 12:29:45,143 - harvesters - DEBUG - started streaming: 1EF800000692 :: U3V :: criticallink/gentl.dll :: <genicam.gentl.GenTLProducer; proxy of <Swig Object of type 'std::shared_ptr< GenTLCpp::GenTLProducer > *' at 0x000001C71F91E810> >
117
Image details: 2048w 2048h Mono16
118
2025-01-09 12:29:50,944 - harvesters - DEBUG - stopped streaming: 1EF800000692 :: U3V :: criticallink/gentl.dll :: <genicam.gentl.GenTLProducer; proxy of <Swig Object of type 'std::shared_ptr< GenTLCpp::GenTLProducer > *' at 0x000001C72895E0C0> >
119
2025-01-09 12:29:50,960 - harvesters - DEBUG - revoked: <genicam.gentl.Buffer; proxy of <Swig Object of type 'std::shared_ptr< GenTLCpp::Buffer > *' at 0x000001C71F91E390> > :: DataStream :: 1EF800000692 :: U3V :: criticallink/gentl.dll :: <genicam.gentl.GenTLProducer; proxy of <Swig Object of type 'std::shared_ptr< GenTLCpp::GenTLProducer > *' at 0x000001C723D05ED0> >
120
2025-01-09 12:29:50,961 - harvesters - DEBUG - revoked: <genicam.gentl.Buffer; proxy of <Swig Object of type 'std::shared_ptr< GenTLCpp::Buffer > *' at 0x000001C71F91E450> > :: DataStream :: 1EF800000692 :: U3V :: criticallink/gentl.dll :: <genicam.gentl.GenTLProducer; proxy of <Swig Object of type 'std::shared_ptr< GenTLCpp::GenTLProducer > *' at 0x000001C72899E1E0> >
121
2025-01-09 12:29:50,965 - harvesters - DEBUG - revoked: <genicam.gentl.Buffer; proxy of <Swig Object of type 'std::shared_ptr< GenTLCpp::Buffer > *' at 0x000001C71F91E510> > :: DataStream :: 1EF800000692 :: U3V :: criticallink/gentl.dll :: <genicam.gentl.GenTLProducer; proxy of <Swig Object of type 'std::shared_ptr< GenTLCpp::GenTLProducer > *' at 0x000001C72899E210> >
122
2025-01-09 12:29:50,972 - harvesters - DEBUG - revoked: <genicam.gentl.Buffer; proxy of <Swig Object of type 'std::shared_ptr< GenTLCpp::Buffer > *' at 0x000001C71F91E540> > :: DataStream :: 1EF800000692 :: U3V :: criticallink/gentl.dll :: <genicam.gentl.GenTLProducer; proxy of <Swig Object of type 'std::shared_ptr< GenTLCpp::GenTLProducer > *' at 0x000001C72899E240> >
123
2025-01-09 12:29:50,975 - harvesters - DEBUG - revoked: <genicam.gentl.Buffer; proxy of <Swig Object of type 'std::shared_ptr< GenTLCpp::Buffer > *' at 0x000001C71F91E600> > :: DataStream :: 1EF800000692 :: U3V :: criticallink/gentl.dll :: <genicam.gentl.GenTLProducer; proxy of <Swig Object of type 'std::shared_ptr< GenTLCpp::GenTLProducer > *' at 0x000001C72899E1E0> >
124
2025-01-09 12:29:50,978 - harvesters - INFO - stopped acquisition: <harvesters.core.ImageAcquirer object at 0x000001C71F90E700>
125
2025-01-09 12:29:50,981 - harvesters - DEBUG - closed: DataStream :: 1EF800000692 :: U3V :: criticallink/gentl.dll :: <genicam.gentl.GenTLProducer; proxy of <Swig Object of type 'std::shared_ptr< GenTLCpp::GenTLProducer > *' at 0x000001C71F91E450> >
126
2025-01-09 12:29:50,994 - harvesters - INFO - released resources: <harvesters.core.ImageAcquirer object at 0x000001C71F90E700>
127
2025-01-09 12:29:51,004 - harvesters - DEBUG - being reset: <harvesters.core.Harvester object at 0x000001C71EFFBE20>
128
2025-01-09 12:29:51,005 - harvesters - INFO - flushed file list: <harvesters.core.Harvester object at 0x000001C71EFFBE20>
129
2025-01-09 12:29:51,006 - harvesters - DEBUG - discarded device information: <harvesters.core.Harvester object at 0x000001C71EFFBE20>
130
2025-01-09 12:29:51,008 - harvesters - DEBUG - closed: Simulated :: criticallink/gentl.dll :: <harvesters.core.Producer object at 0x000001C71F02E340> :: None
131
2025-01-09 12:29:51,011 - harvesters - DEBUG - closed: GEV :: criticallink/gentl.dll :: <harvesters.core.Producer object at 0x000001C71F02E340> :: None
132
2025-01-09 12:29:51,012 - harvesters - DEBUG - closed: U3V :: criticallink/gentl.dll :: <harvesters.core.Producer object at 0x000001C71F02E340> :: None
133
2025-01-09 12:29:51,013 - harvesters - DEBUG - closed: criticallink/gentl.dll :: <harvesters.core.Producer object at 0x000001C71F02E340> :: None
134
2025-01-09 12:29:51,014 - harvesters - DEBUG - closed: c:\Program Files\Critical Link LLC\GenTL Viewer\bin\GenTL.dll
135
2025-01-09 12:29:51,014 - harvesters - INFO - reset completed: <harvesters.core.Harvester object at 0x000001C71EFFBE20>
136

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