Changes between Version 1 and Version 2 of PacpusSensors/OpencvVideo
- Timestamp:
- Apr 8, 2016, 11:26:14 AM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
PacpusSensors/OpencvVideo
v1 v2 11 11 === Linux driver === 12 12 13 The supported driver are: 14 - socketCAN 15 - kvaser card (USB, PCI, PCIe,...) 16 17 First of all, follow the README in source:pacpussensors/trunk/CanGateway/driver/kvaser/linuxcan.tar.gz in order to install the kvaser driver. 18 19 ''Note that this procedure blacklist the SocketCAN driver.'' 20 21 To check if the KVASER driver is properly installed, type in a terminal {{{lsmod | grep kv}}}. 22 You must see a kvaser driver running: 23 {{{ 24 #!sh 25 $ lsmod | grep kv 26 kvm 452088 0 27 kvpcican 43541 0 28 }}} 29 30 If the automatic loading of the driver doesn't work at startup, you can add the file {{{kvaser.conf}}} containing this text: 31 {{{ 32 # kvaser module load 33 kvpcican 34 }}} 35 in the {{{/etc/modules-load.d}}} folder. 13 There is no driver to install, it's native. 36 14 37 15 … … 43 21 == Compilation == 44 22 45 First, make sure the CMakeList.txt at the root of the directory is well configured (into trunk/). In order to install the CanGatewayplugin, modify the file and verify you have the following line :23 First, make sure the CMakeList.txt at the root of the directory is well configured (into trunk/). In order to install the OpencvVideo plugin, modify the file and verify you have the following line : 46 24 {{{ 47 25 #!sh 48 add_subdirectory( CanGateway)26 add_subdirectory(OpencvVideo) 49 27 }}} 50 28 … … 77 55 Put an example xml file. 78 56 79 Fields: 80 - source ... 81 - speed ... 57 <?xml version="1.0" encoding="ISO-8859-1"?> 58 <pacpus> 59 <components> 60 <component name="webcam" 61 type="CVWebcam" 62 device="0" 63 width="640" 64 height="480" 65 framerate="25" 66 ui="true" 67 recording="true" /> 68 </components> 69 70 <connections></connections> 71 72 <plugins prefix="lib" postfix="" extension="so"> 73 <plugin lib="OpencvVideo" /> 74 </plugins> 75 </pacpus> 82 76 83 77 == Running the plugin == … … 91 85 {{{ 92 86 cd $PACPUS_ROOT 93 ./PacpusSensor can.xml87 ./PacpusSensor OpencvVideo.xml 94 88 }}} 95 89