2014年11月22日 星期六

2014年11月18日 星期二

linux ubuntu12.04上opencv2.4.7 cmake2.8.12.1 qt4环境搭建

Installation in Linux

http://blogs.wcode.org/2014/10/howto-install-build-and-use-opencv-macosx-10-10/

linux ubuntu12.04上opencv2.4.7 cmake2.8.12.1 qt4环境搭建


"Error in configuration process, project files may be invalid".
  • QT_QMAKE_EXECUTABLE; For this one, you need to search inside the Qt installation folder for the /bin directory. On it, you' ll find the qmake.exe. In my case it was C:/Qt/5.3/winrt_x64/bin/qmake.exe
    All the following ones are in the Qt's /lib/cmake directory. In my case: C:/Qt/5.3/winrt_x64/lib/cmake :
  • Qt5Concurrent_DIR;
    C:/Qt/5.3/winrt_x64/lib/cmake/Qt5Concurrent
  • QT5Core_DIR;
    C:/Qt/5.3/winrt_x64/lib/cmake/Qt5Core
  • QT5Gui_DIR;
    C:/Qt/5.3/winrt_x64/lib/cmake/Qt5Gui
  • QT5Test_DIR;
    C:/Qt/5.3/winrt_x64/lib/cmake/Qt5Test
  • QT5Widgets_DIR.
    C:/Qt/5.3/winrt_x64/lib/cmake/Qt5Widgets

win7上qt5.1.1 opencv2.4.7 cmake2.8.12.1环境搭建(关键在环境变量)

win7上qt5.1.1 opencv2.4.7 cmake2.8.12.1环境搭建(关键在环境变量)

2014年11月17日 星期一

arm-linux下qt + opencv开发环境的搭建(Altera DE1 Soc)

  • Installation Guide

    • Download
    • Visit Qt downloads page an download a 32-bit or 64-bit Linux installation [qt-project.org] depending your version of Ubuntu. The installation file can be also downloaded through the command line using wget.
      Example:
      1. wget http://download.qt-project.org/official_releases/qt/5.0/5.0.2/qt-linux-opensource-5.0.2-x86-offline.run
    • qt install
Adjust permission, run the installer and follow the instruction to complete the installation.
  1. sudo chmod +x qt-linux-opensource-5.0.2-x86-offline.run
  2. ./qt-linux-opensource-5.0.2-x86-offline.run





Qt: Creating a new project


This document describes how to install Qt for Embedded Linux in your development environment:
Please see the cross compiling and deployment documentation for details on how to install Qt for Embedded Linux on your target device.
Note also that this installation procedure is written for Linux, and that it may need to be modified for other platforms.









=======================================================================
original
./configure -prefix/usr/local/qt-4.8.6-altera-soc -release -shared -nomake examples-nomake tools -nomake docs -make demos -xplatformqws/linux-arm-gnueabihf-g++ -embedded arm -little-endian -no-pch-v 
corrected
./configure -prefix /usr/local/qt-4.8.6-altera-soc -release -shared -nomake examples -nomake tools 
-nomake docs -make demos -xplatform qws/linux-arm-gnueabihf-g++ -embedded arm -little-endian 
-no-pch -v 
=======================================================================

QT5 Cross Compiled from linux-x86 to linux-arm


./configure -prefix /opt/qt5.1.1-arm -release -make libs -make examples -make tools -xplatform linux-arm-gnueabihf-g++ -no-opengl -confirm-license -opensource -xcb -no-pch -no-kms -v -no-icu

=======================================================================

[Qt-creator] Cross-compiling for ARM with qt creator

==============================================

Linaro toolchain


ARM CONTEST

http://www.arm-designcontest.com.tw/cortexm/?menu=03

=======================================================================

Cross-Compiling Qt for Embedded Linux Applications



./configure -embedded arm -xplatform qws/linux-arm-g++ <other options>

Qt Cross Compiling for ARM platforms


Create new mkspec

We can create a new mkspec using linux-g++ as template.
$ cd qt/mkspecs
$ cp -R linux-g++ linux-arm-g++

Then edit the qmake.conf in the linux-arm-g++ directory, add following settings before "load(qt_config)".

Build Qt

A shadow build directory can be created to make the source directory clean.
$ cd qt && mkdir build
$ cd build && ./buildqt.sh
The content of buildqt.sh is given below:
#!/bin/bash
export CROSS_COMPILE=arm-linux-gnueabi
export ROOTFS=<path to the armel rootfs>
export QTDIR=<path to the qt source tree>
export PKG_CONFIG_PATH=$ROOTFS/usr/lib/pkgconfig
export PKG_CONFIG_SYSROOT=$ROOTFS
$QTDIR/configure -arch arm -xplatform linux-arm-g++ -force-pkg-config -prefix <install_prefix> -prefix-install -opengl es2
make
Note:
The "-prefix" and "-prefix-install" configure options are used for development build, and if you want to enable OpenGL ES2.0 for the opengl graphics system, please add "-opengl es2" option.


===============================================================================
安装Synaptic PackageManager
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install synaptic

启动Synaptic (sudo synaptic)

使用Synaptic 管理套件

  • Ubuntu - 『系統』(System) -> 『管理』(Administrative) -> 『Synaptic 套件管理程式』(Synaptic Package Manager)





 3.安装zlib,png,jpeg      在搜索栏中输入png,mark libpng 12-0 为安装,点击apply,



[root@localhost softs]# tar xf libpng-1.6.6.tar.gz -C /usr/src/
[root@localhost softs]# cd /usr/src/libpng-1.6.6/
[root@localhost libpng-1.6.6]# ./configure --prefix=/usr/local/png --enable-shared
[root@localhost libpng-1.6.6]# make  && make  install 


Howto Install OpenGL Development Environment

Howto Install OpenGL Development Environment



libglut3-dev can not find

Your instructions seem to be old (sudo apt-get install libglut-dev)
please use the instruction as follow.
sudo apt-get install freeglut3-dev



2014年11月15日 星期六

pzt control c# program


======================================================================


======================================================================
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

//参考文章

//http://forum.fibaro.com/viewtopic.php?t=4130

//https://ispyconnect.googlecode.com/svn-history/r4/trunk/iSpyApplication/XML/PTZ2.xml

//http://felenasoft.com/forum/viewtopic.php?f=8&t=479

//http://blog.csdn.net/bournes/article/details/8447086

//http://www.cnblogs.com/cgli/archive/2011/04/09/2010497.html

//http://www.cnblogs.com/sufei/archive/2011/05/22/2053642.html


// C# Tutorial #1 Simple Web Browser https://www.youtube.com/watch?v=1X8soxq2aaw

//imgSrc="http://"+Addr+":"+Port+"/videostream.cgi?user="+Usr+"&password="+Password+"&usr="+Usr+"&pwd="+Password;
//ipad.htm

namespace WindowsFormsApplication1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
         
        }

        private void button1_Click(object sender, EventArgs e)
        {
            webBrowser1.Navigate(textBox1.Text);
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            webBrowser1.Width = 720;
            webBrowser1.Height = 480;
     
        }

        private void button2_Click(object sender, EventArgs e)
        {

            webBrowser2.Navigate("http://192.168.20.6/moveptz.xml?dir=up& Position=90");
           //webBrowser1.Navigate(textBox1.Text);
         }

        private void button3_Click(object sender, EventArgs e)
        {
            webBrowser2.Navigate("http://192.168.20.6/moveptz.xml?dir=down& Position=90");
            //webBrowser1.Navigate(textBox1.Text);
        }

        private void button4_Click(object sender, EventArgs e)
        {
            webBrowser2.Navigate("http://192.168.20.6/moveptz.xml?dir=updown& Position=90");
        }

        private void button5_Click(object sender, EventArgs e)
        {
            webBrowser2.Navigate("http://192.168.20.6/moveptz.xml?dir=stop");
        }

        private void button6_Click(object sender, EventArgs e)
        {
            webBrowser2.Navigate("http://192.168.20.6/moveptz.xml?dir=left& Position=90");
        }

        private void button7_Click(object sender, EventArgs e)
        {
            webBrowser2.Navigate("http://192.168.20.6/moveptz.xml?dir=right& Position=90");
        }
                   
    }
}

Gsoap based ONVIF C++ lib, support ProfileS and ProfileG

Gsoap based ONVIF C++ lib, support ProfileS and ProfileG


【AForge.NET】C#上使用AForge.Net擷取視訊畫面(Capture Image)

【AForge.NET】C#上使用AForge.Net擷取視訊畫面(Capture Image)

2014年11月14日 星期五

還在揮汗徒手安裝程式庫? 試試NuGet吧

不知道大家是否有在Visual Studio專案中引用過log4netELMAH之類的Open Source程式庫,或加入包含css, jpg, js複雜jQuery Plugin的經驗?
在ASP.NET專案裡引用某些Javascript或.NET程式庫,所需的安裝工作常常不只Copy一個dll或js檔這麼簡單,有時還需複製相關的js, css, jpg, gif 放在特定目錄下,有時還必須修改web.config加入適當的httpHandler、httpModule及專屬設定才能讓.NET程式元件順利運作。依我自己的經驗,要是沒耐性看完安裝文件仔細核對,常會落得丟三落四無法運作的下場。在專案中加入程式庫,難道不能像裝軟體一樣,按下一步下一步就搞定?
NuGet是一個簡化程式庫安裝程序的Visual Studio 2010延伸套件,由微軟RD與開發社群共同開發,以Open Source方式釋出。透過NuGet,能有效簡化程式庫的安裝程序,另外還提供版本更新、移除等功能,將下載安裝程式庫的動作簡化到點一下滑鼠就完成。

要取得NuGet,可使用VS2010的Extension Manager搜尋nuget,可以找到NuGet Package Manager這個套件。(若你有安裝ASP.NET MVC3,NuGet也會被一併安裝,或是獨立執行安裝程式也可以,但透過Extension Manager較簡便)

Accord.NET is a framework for scientific computing in .NET.


aforgenet


http://accord-framework.net/intro.html

The Accord.NET Framework

Accord.NET is a framework for scientific computing in .NET. The framework builds upon AForge.NET, an also popular framework for image processing, supplying new tools and libraries. Those libraries encompass a wide range of scientific computing applications, such as statistical data processing, machine learning, pattern recognition, including but not limited to, computer vision and computer audition. The framework offers a large number of probability distributions, hypothesis tests, kernel functions and support for most popular performance measurements techniques.

AiP Series: IP Models


Taiwan Taipei Office


E-mail: sales@acumenin.comTel:  +8862-8913-2233Fax: +8862-8913-2255
Address: 6F, No. 207-3, Sec. 3, Beisin Rd., Sindian District, New Taipei City 23143, Taiwan

nJoy Server 1.0.2.6

nJoy Server 1.0.2.6


The gaming joystick allows you to use your phone as a game controller,
much like an actual gaming console controller for any game by assigning keyboard and mouse actuations!

A multi-touch interface consisted of a left analog stick and on screen action buttons is coupled
with the device’s accelerometer to enable full game control!

Multiple android devices can be connected to a single PC to allow split screen gaming.

nJoy media controls allow remotely pausing and resuming as well as skipping between tracks. 
Mouse control is implemented with a track pad, similar to a laptop track pad solution.

Finger gestures are available for zooming, swipe scrolling and maximizing/minimizing windows.

nJoy includes further options such as closing windows, go to desktop, accessing libraries,
loading websites, running applications and much more..


Kinect Capture [Download]

http://www.aforgenet.com/framework/samples/video.html

This sample application demonstrates usage of AForge.Video.Kinect namespace for capturing video and depth data from Microsoft Kinect sensor. It also allows to control sensor's LED and motor and get access to accelerometer data. Note: before running the application, make sure you've installed OpenKinect drivers as described on itshomepage.

Projects and applications using AForge.NET Framework

  • Cats Eyes Alarm Trigger by Spangenberger Sebastien. The Cats Eyes Alarms Trigger tool is a multi-camera motion detection tool.
  • HatchView from Digital Metrology Solutions.
  • Universe Sandbox - Interactive Astronomy Software for Everyone.
  • Accord.NET Framework by Cesar Roberto de Souza. Accord.NET Framework is a C# framework which extends the AForge.NET Framework with new tools and libraries.
  • iSpy by Sean Tearney. iSpy is a motion detection, sound detection, live streaming and notification software.

2014年11月11日 星期二

Direct URL to IPROBOT 3 Videostream and Image

---------------------------------------------------------------------------------------------------------------------


----------------------------------------------------------------------------------------------------------------------


VLC is more than a free, open-source video player program; it is also a full-featured media streaming application as well. With VLC, you can stream movies to other machines on your local network or even stream clips to authorized viewers on the other side of the globe. Streaming videos on your local network requires little more than a few mouse clicks in VLC. Sharing clips through the Internet requires that you create some HTML code for the video clip and use a Dynamic DNS service so you can stream media from your local network to the Web. Have a question? Get an answer from online tech support now!

Read more : http://www.ehow.com/how_11401801_stream-videos-internet-using-vlc.html

--------------------------------------------------------------------------------------------------------------------------

USE VLC SOFTWARE TO VIEW IPCAM IPROBOT3


OPEN CAPTURE DEVICE 


NETWORK 

http://192.168.20.3:80/videostream.asf?user=admin&password=admin

TENVIS


IP 391 W

FFMPEGhttp://IPADDRESS/videostream.asf?usr=[USERNAME]&pwd=[PASSWORD]

How to connect to your H.264 IP camera



shenzhen tengwei video technology co. ltd

2014年10月27日 星期一

code block opencv

code block opencv


Step 1. 安裝minGW
   下載 http://sourceforge.net/projects/mingw/files/
   路徑: C:\MinGW
    選項  mingw32-base and mingw32-gcc-g++
Step 2: 將minGW 家入 system path
Control Panel -> System -> Advanced System Settings
C:\MinGW\bin

Step 3: 安裝 Code::Blocks

下載最近版
 (codeblocks-10.05-setup.exe) 
http://www.codeblocks.org/downloads/binaries
安裝預設路徑
執行 Code::Blocks
功能表選項  Settings -> Compiler and Debugger
Toolchain Executables 下拉選項 GNU GCC Compiler

按 AutoDetect
確任 Code::Blocks 已找到 MinGW


測試 Code::Blocks and MinGW 和 a simple Hello World C++ program.

Step 4: 安裝 OpenCV

下載最近版 (2.4.2 for Windows) http://opencv.org/downloads.html
 解壓縮 複製到 C:\

configured with Code::Blocks
安裝 cmake
執行 cmake 選 C:\opencv\source 和 C:\opencv\build\x86\mingw
按 configure 選 minGW makefiles 完成然按 generate.



命令視窗
cd C:\opencv\build\x86\mingw
 type“mingw32-make”. Mingw will now start compiling OpenCV



,等待100%完成,時間久
然後 “mingw32-make install”

Step 5: Add OpenCV to the system path
C:\opencv\build\x86\mingw\bin 

Step 6: Configuring Code::Blocks with OpenCV
Make a new Code::Blocks Project: testopencv
E.設定CodeBlocks編譯器參數




下載 lena.png


Now run this simple OpenCV “Hello World” program to test that the install has worked.














#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
using namespace cv;
int main()
{
    Mat image;// new blank image
    image = cv::imread("lena.png", 0);// read the file
    namedWindow( "Display window", CV_WINDOW_AUTOSIZE );// create a window for display.
    imshow( "Display window", image );// show our image inside it.
    waitKey(0);// wait for a keystroke in the window
    return 0;
}

//參考
 http://kevinhughes.ca/tutorials/opencv-install-on-windows-with-codeblocks-and-mingw/

OpenCV 2.4.2在codeblocks 10.05的環境設定 - SlideShare