Changes between Version 32 and Version 33 of VisionFramework
- Timestamp:
- Nov 25, 2017, 11:39:38 AM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
VisionFramework
v32 v33 131 131 cd rpi_ws281x 132 132 scons 133 }}}134 135 Let's also install the python library:136 {{{137 cd python138 sudo python setup.py install139 133 }}} 140 134 … … 216 210 ---- 217 211 === C++ Projects with OpenCV === 218 '''NOTE: our performance doubled when we transitioned to C++ from Java''' 212 '''NOTE: our performance doubled when we transitioned to C++ from Java'''[[BR]][[BR]] 213 '''With C++, we can process (capture and segment) 640x480 frames at 66 fps and 1080x720 frames at 28 fps'''[[BR]][[BR]] 214 '''With Java, we could only get about 30 fps with 640x480 frames''' 219 215 220 216 Let's install an IDE so we do not have to keep writing in vi/vim/nano: … … 223 219 }}} 224 220 225 We experienced a bug that constantly crashed CodeBlocks: 226 Navigate to: {{{Settings -> Editor -> Code completion -> Symbols browser}}} and check {{{Disable symbols browser}}} 221 We experienced a bug that constantly crashed CodeBlocks:[[BR]] 222 To prevent crashing, navigate to: {{{Settings -> Editor -> Code completion -> Symbols browser}}} and check {{{Disable symbols browser}}}[[BR]] 227 223 (the {{{Code completion}}} tab is on the west panel of the configure editor.) 228 224 229 Navigate to: {{{File -> New -> Project -> Console Application}}} 230 and fill in the fields that come up. 231 232 If your {{{Management}}} tab is not visible, open it by selecting: {{{View -> Manager}}} 225 Navigate to: {{{File -> New -> Project -> Console Application}}} And fill in the fields that come up. 226 227 If your {{{Management}}} tab is not visible, open it by selecting: {{{View -> Manager}}}[[BR]] 233 228 Also, if your {{{Logs & others}}} tab is not open already, select {{{View -> Logs}}} 234 229 235 230 Now right click your project in the {{{Management}}} tab and navigate to: {{{Build options... -> Linker settings}}} 236 231 237 Under the {{{Link libraries}}} panel, select {{{Add}}} and select all OpenCV shared object (.so) files located in {{{/home/pi/opencv/build/lib/*.so}}} 232 Under the {{{Link libraries}}} panel, select {{{Add}}} and select all OpenCV shared object (.so) files located in {{{/home/pi/opencv/build/lib/*.so}}}[[BR]] 238 233 (You can [ctrl + left-click] multiple *.so] files to add them all at once) 239 234 240 Now let's navigate to: {{{Search directories -> Linker}}} 235 Now let's navigate to: {{{Search directories -> Linker}}}[[BR]] 241 236 In the {{{Linker}}} tab, select {{{Add}}} and add the path to your opencv lib: {{{/home/pi/opencv/build/lib}}} 242 237 … … 251 246 * v4l2-ctl --set-ctrl=exposure_time_absolute=100 252 247 253 Make your C++ program set these options by using the {{{stdlib.h}}} {{{system(char*)}}} command which simply takes a string command as input. 248 Make your C++ program set these options by using the {{{stdlib.h}}} {{{system(char*)}}} command which simply takes a string command as input.[[BR]] 249 Alternatively you could add these options to your {{{bashrc}}} file like we did with the modprobe, but you may want to tweak these options or experiment with them, so putting them into your C++ program makes it a little easier to manipulate.