Changes between Version 32 and Version 33 of VisionFramework


Ignore:
Timestamp:
Nov 25, 2017, 11:39:38 AM (7 years ago)
Author:
benjialbert
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • VisionFramework

    v32 v33  
    131131cd rpi_ws281x
    132132scons
    133 }}}
    134 
    135 Let's also install the python library:
    136 {{{
    137 cd python
    138 sudo python setup.py install
    139133}}}
    140134
     
    216210----
    217211=== 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'''
    219215
    220216Let's install an IDE so we do not have to keep writing in vi/vim/nano:
     
    223219}}}
    224220
    225 We experienced a bug that constantly crashed CodeBlocks:
    226 Navigate to: {{{Settings -> Editor -> Code completion -> Symbols browser}}} and check {{{Disable symbols browser}}}
     221We experienced a bug that constantly crashed CodeBlocks:[[BR]]
     222To prevent crashing, navigate to: {{{Settings -> Editor -> Code completion -> Symbols browser}}} and check {{{Disable symbols browser}}}[[BR]]
    227223(the {{{Code completion}}} tab is on the west panel of the configure editor.)
    228224
    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}}}
     225Navigate to: {{{File -> New -> Project -> Console Application}}} And fill in the fields that come up.
     226
     227If your {{{Management}}} tab is not visible, open it by selecting: {{{View -> Manager}}}[[BR]]
    233228Also, if your {{{Logs & others}}} tab is not open already, select {{{View -> Logs}}}
    234229
    235230Now right click your project in the {{{Management}}} tab and navigate to: {{{Build options... -> Linker settings}}}
    236231
    237 Under the {{{Link libraries}}} panel, select {{{Add}}} and select all OpenCV shared object (.so) files located in {{{/home/pi/opencv/build/lib/*.so}}}
     232Under the {{{Link libraries}}} panel, select {{{Add}}} and select all OpenCV shared object (.so) files located in {{{/home/pi/opencv/build/lib/*.so}}}[[BR]]
    238233(You can [ctrl + left-click] multiple *.so] files to add them all at once)
    239234
    240 Now let's navigate to: {{{Search directories -> Linker}}}
     235Now let's navigate to: {{{Search directories -> Linker}}}[[BR]]
    241236In the {{{Linker}}} tab, select {{{Add}}} and add the path to your opencv lib: {{{/home/pi/opencv/build/lib}}}
    242237
     
    251246* v4l2-ctl --set-ctrl=exposure_time_absolute=100
    252247
    253 Make your C++ program set these options by using the {{{stdlib.h}}} {{{system(char*)}}} command which simply takes a string command as input.
     248Make your C++ program set these options by using the {{{stdlib.h}}} {{{system(char*)}}} command which simply takes a string command as input.[[BR]]
     249Alternatively 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.