Added "Camera from TCP/IP..." action. Find-Object can connect to a server to receive images over TCP/IP. Look at the "imagesTcpServer" example to know how to send a images. The stream format is [quint64 size, std::vector<unsigned char> data]. The data array is decoded to a cv:Mat image using cv::imdecode(data, cv::IMREAD_UNCHANGED). In the server example, the images are encoded like that: cv::imencode(".png", image, data).

git-svn-id: http://find-object.googlecode.com/svn/trunk/find_object@280 620bd6b2-0a58-f614-fd9a-1bd335dccda9
This commit is contained in:
matlabbe
2014-05-21 21:31:42 +00:00
parent 2d3b4ebebe
commit 19b5776ba4
12 changed files with 503 additions and 62 deletions
+11 -2
View File
@@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>826</width>
<height>689</height>
<height>713</height>
</rect>
</property>
<property name="windowTitle">
@@ -228,6 +228,7 @@
<addaction name="actionLoad_scene_from_file"/>
<addaction name="actionCamera_from_directory_of_images"/>
<addaction name="actionCamera_from_video_file"/>
<addaction name="actionCamera_from_TCP_IP"/>
<addaction name="separator"/>
<addaction name="actionStart_camera"/>
<addaction name="actionPause_camera"/>
@@ -346,7 +347,7 @@
<x>0</x>
<y>0</y>
<width>198</width>
<height>559</height>
<height>583</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_objects">
@@ -764,6 +765,14 @@
<string>Load settings...</string>
</property>
</action>
<action name="actionCamera_from_TCP_IP">
<property name="checkable">
<bool>true</bool>
</property>
<property name="text">
<string>Camera from TCP/IP...</string>
</property>
</action>
</widget>
<customwidgets>
<customwidget>