Mark an object in real time on a displayed video acquired from an USB camera

Hello,
I am a beginner LabView user undertaking a project in which I need to show video acquired from an USB camera in LabView on computer screen. In the video, there will be a metal part, which is always be at a fixed position at the bottom left of the view. I need to mark an arrow alike sign on the metal part, please take a look at the attached picture. To recognize the metal part easier, in the picture, I drew a blue line at the boundary of the part, whilst the arrow was green. The arrow must be radially pointed to the center of the blue line (but, the blue line may not need to be created) and must be there every time I start the VI, throughout the video.
How should I do to display the video? Is there any way to create the arrow in LabView (either by programming or manually drawing the arrow)? If making the arrow is impossible, is there any way to just mark a cross at the center of the blue line? The blue line does not need to be marked on the video.
I have LabView 2010 with Vision Development Module. My camera can be found under NI IMAQdx devices in Measurement and Automation Explorer.
Thanks,
LePhuong
Solved!
Go to Solution.
Attachments:
A fixed arrow mark on the metal part.jpg ‏26 KB

Hi,
Look at this post. It may help you. http://forums.ni.com/t5/Machine-Vision/pattern-matching-program/m-p/1914589#M34855. In here its video signal you can replace this with the live video.
Sasi.
Certified LabVIEW Associate Developer
If you can DREAM it, You can DO it - Walt Disney

Similar Messages

  • Could u plz help me to find simple example for how to save data file in a spread sheet or any other way in the real time controller for Sbrio 9642 using memory or usb flash memory

    Could u plz help me to find simple example for how to save data file in a spread sheet or any other way in the real time controller for Sbrio 9642 using memory or usb flash memory

    Here are a few Links to a helpful Knowledge Base article and a White Paper that should help you out: http://digital.ni.com/public.nsf/allkb/BBCAD1AB08F1B6BB8625741F0082C2AF and http://www.ni.com/white-paper/10435/en/ . The methods for File IO in Real Time are the same for all of the Real Time Targets. The White Paper has best practices for the File IO and goes over how to do it. 
    Alex D
    Applications Engineer
    National Instruments

  • Importing a lot of video clips from a Sony camera to FCE; during the Log and Transfer process, is there a way to add multiple clips to the browser instead of one at a time?

    Importing a lot of video clips from a Sony camera to FCE; during the Log and Transfer process, is there a way to add multiple clips to the browser instead of one at a time?

    Select one and click cmd-A which selects them all.
    Then click the import button if it hasn't started already.

  • Overlay real time and date for video playback

    I have made a mock CCTV film with Final Cut as an art piece and I want to play it with the current real time and date overlaid. Is there an application that does that?

    there are several TIMECODE reader/titles avail ...
    (best source for free plugins: http://www.fcp.co/forum/9-free-fcpx-plugins-and-templates )
    or, 'camcorder mockups' with a blinking red dot etc ...
    funny thing is: none of these plugins avail yet are able to display the sources 'real' TC, but only the projects TC (which, in my humble opinion, is pretty nonsense) … but. some plugins allow at last a manual off-set of the starting TC.
    or …
    FCPX bulit-in effect 'Night Vision' allows in its settings some 'data blah blah'
    Plan C)
    create your very own CCTVlook/effect in Motion5 ...

  • Real Time ADC/DAC for SMPS using Labview and USB

    Hello all,
    I have asked the sales department this same question, so here's a two-pronged approach:
    I am reserching a control algorithm for a switch-mode power supply, and so far, the simulations for its performance look good.  Now, the goal is to implement the circuit for experimental data.
    I've seen several NI USB DAQ boxes that appear to have the performance I'm looking for (for example, the USB-6211 would have the resolution and sampling rate that I need).
    The control algorithm uses the following math functions:  add/sub/mult/div/exponent, and derivative/integral.
    My question is this: is Labview "strong" enough to take in four channels of 250Ksps data, crunch the numbers in an equation, and spit out the answer to an analog out channel, all in REAL time?  I'm looking for an analog output rate of ~100kHz.
    Thank you for any suggestions that you have!
    -Rick
    Solved!
    Go to Solution.

    Hey,
    So if you were just trying to perform an input or output then the USB-6211 would certainly be able to handle it because the hardware clock would be handling the input/output, not software. However, what you're wanting to do, basically a feedback system, will require software timing (at least for a USB device) because you'll have to be able to actively specify what the output is. So, for that reason alone, and the fact that you want 100kHz output, this device and USB devices in general won't be an option no matter what software you use, LabVIEW or otherwise. On another note, what you're looking to do sounds more like live updating, not Real-Time, which is more about jitter. Bottom line, for these kinds of requirements, you're going to need to move to an FPGA board, something like the NI PCIe-7841R would work. It's more expensive, but for your requirements, FPGA is going to be the only option and it comes down to bus latency as well as software response time. With FPGA, as is shown in the first diagram of the following document, you're basically closing your software loop through hardware.
    FPGA Fundamentals
    http://www.ni.com/white-paper/6983/en
    --Ryan S.

  • MAX cannot find two usb cameras at same time

    Hi,
    I want to use two usb cameras (Thorlabs DCC 1545M) in NI-IMAQdx in Labview, but it can only find one camera (the one plugged in earlier), and also only one camera is shown in MAX. Both cameras works in the software from the manufacturer, and if I unplug the 1st camera, the 2nd will show up in MAX after a refresh. 
    I found online that up to one camera is supported for each USB hub in Labview, and all USB ports in this computer are corresponding to a same hub. I don't know if this is causing the problem.
    Actually I don't need to take picture in both cameras at the same time, a programmed switch between the two cameras will work for me. 
    Any suggestion and comment will be appreciated.
    Solved!
    Go to Solution.

    Hello JYang,
    According to this link, you can acquire from multiple USB cameras simultaneously.  The limitation is on the manufacturer and how they interface with the DirectShow bus.  When you are using two cameras of the same make and model, it is sometimes the case that not enough information is present for IMAQdx to distinguish between the two cameras.  When you switch the cameras in MAX, do they come in as different cameras, or do they show up virtually the same?
    Since you said switching between them would work, I found an example that does just that.  Just make sure to give each camera a unique camera name.  Hopefully this will be useful for you.
    Also, there is quite a bit of discussion on this topic available on the discussion forum already.  Check out these related threads, or use the Search box to search for more.  There is quite a lot of information available!
    http://forums.ni.com/t5/LabVIEW/multiple-USB-cameras-in-Labview/m-p/833517
    http://forums.ni.com/t5/Machine-Vision/two-USB-camera-identification/m-p/2193960
    http://forums.ni.com/t5/Machine-Vision/Synchronized-capture-for-multiple-USB-cameras/td-p/1879647
    http://forums.ni.com/t5/LabVIEW/Multiple-USB-Camera-Image-Acquisition-using-Vision-Acquisition/td-p/...
    Patrick
    CLA

  • How can I generate a real-time highchart from my database data?

    I have looked several links; however, I couldn't find a working demo showing how to implement a highchart using data from a database.
    Objective: I want to generate a real time highchart line graph getting data from my database. What I want is very similar to the
    HighChart Demo which provides a real-time highchart with randomly generated values. It is also similar by X-axis and Y-axis, for I want my x-axis to be "Time" (I have a DateTime column in my database) and y-axis to be an integer (I have
    a variable for that as well in my database).
    Please I need help in sending the model data to my razor view.
    Note that I am already using SignalR to display a realtime table. I also want to know if it can be used to automatically update the highchart as well.
    Below is the code snippet of my script in the view. I have used the code provided in
    HighChart Demo link for generating the highchart. Please tell me where should I apply the changes on my code.
    @section Scripts{
    <script src="~/Scripts/jquery.signalR-2.2.0.js"></script>
    <!--Reference the autogenerated SignalR hub script. -->
    <script src="~/SignalR/Hubs"></script>
    <script type="text/javascript">
    $(document).ready(function () {
    // Declare a proxy to reference the hub.
    var notifications = $.connection.dataHub;
    //debugger;
    // Create a function that the hub can call to broadcast messages.
    notifications.client.updateMessages = function () {
    getAllMessages()
    // Start the connection.
    $.connection.hub.start().done(function () {
    alert("connection started")
    getAllMessages();
    }).fail(function (e) {
    alert(e);
    //Highchart
    Highcharts.setOptions({
    global: {
    useUTC: false
    //Fill chart
    $('#container').highcharts({
    chart: {
    type: 'spline',
    animation: Highcharts.svg, // don't animate in old IE
    marginRight: 10,
    events: {
    load: function () {
    // set up the updating of the chart each second
    var series = this.series[0];
    setInterval(function () {
    var x = (new Date()).getTime(), // current time
    y = Math.random();
    series.addPoint([x, y], true, true);
    }, 1000);//300000
    title: {
    text: 'Live random data'
    xAxis: {
    type: 'datetime',
    tickPixelInterval: 150
    yAxis: {
    title: {
    text: 'Value'
    plotLines: [{
    value: 0,
    width: 1,
    color: '#808080'
    tooltip: {
    formatter: function () {
    return '<b>' + this.series.name + '</b><br/>' +
    Highcharts.dateFormat('%Y-%m-%d %H:%M:%S', this.x) + '<br/>' +
    Highcharts.numberFormat(this.y, 2);
    legend: {
    enabled: false
    exporting: {
    enabled: false
    series: [{
    name: 'Random data',
    data: (function () {
    // generate an array of random data
    var data = [],
    time = (new Date()).getTime(),
    i;
    for (i = -19; i <= 0; i += 1) {
    data.push({
    x: time + i * 1000,
    y: Math.random()
    return data;
    function getAllMessages() {
    var tbl = $('#messagesTable');
    var data = @Html.Raw(JsonConvert.SerializeObject(this.Model))
    $.ajax({
    url: '/nurse/GetMessages',
    data: {
    id: data.id,
    contentType: 'application/html ; charset:utf-8',
    type: 'GET',
    dataType: 'html'
    }).success(function (result) {
    tbl.empty().append(result);
    $("#g_table").dataTable();
    }).error(function (e) {
    alert(e);
    </script>

    Hi Sihem,
    Thank you for contacting National Instruments.  Using the LabVIEW Real-Time module, you can do development without actually having a target.  While viewing the project explorer window, you can do the following steps:
    Right click on the project
    Select New >> Targets and Devices
    Select the "New Target or Device" radio button
    Select the target you would like to develop on.Information about the LabVIEW Real-Time Module can be found here.
    Regards,
    Kevin H
    National Instruments
    WSN/Wireless DAQ Product Support Engineer

  • Report on Real Time Cube and Master data

    Dear Experts,
    I am new to BI. I have created real time cube using some characteristics and top of that I built 3 reports with referring to Master data.
    And in the 3 reports, I have used different characteristics for all the report expect one ( common in all the reports).
    Now I have to create consolidated report using all the characteristics. I have build some sample reports but getting not assigned where there is no data.
    How can I achieve this?
    Thanks in advance,
    Saravanan R

    Hi suman,
    Thanks for your reply .
    I have attached the screen shot of the output. I have created the Infoset using info objects and real time cube, on top of that I have created query.
    this is the problem am facing can please suggest on this .

  • HT1553 What is the best system for a real time cloud back up of documents?  My MacBook crashed, and I lost 2 hours of writing and could not find a way to restore it.

    My MacBook Pro crashed while I was rewriting a book, lost more than an hour of work and could not find a way to restore it.  Did not have Time Machine set up, but it appears that Time Machine does not have Real Time back up and documents must be manually stored.
    I need an automatic, real time back up to keep this from happening - I'm not happy my MacBook has crashed twice now.   What is the best cloud system for Real Time backup?   Thanks to anyone who can help me, I'm not the most astutde computer guy... James

    One way would be to use Dropbox, or a similar sync service, and just keep your critical documents in the appropriate folder. Dropbox, at least, keeps a local copy of everything and syncs automatically to the cloud whenver a change is made. Dropbox is free for up to 2GB of data.
    There are also true backup services such as CrashPlan+:
    http://www.crashplan.com/consumer/crashplan-plus.html
    which provide automatic backups whenver a change is detected. It's not free, but usually such services aren't too expensive unless you need to back up a lot of data.
    Regards.

  • Getting video to play real time in an NTSC monitor question?

    I’m trying to get video in my NTSC preview monitor to play real time. It will send a picture to the preview monitor but will not play real time even when timeline is rendered. I’m coming out of the back of my video card (ATI Radeon 9600) through a DVI cable to my HDTV monitor. Do I need a Firewire digital to analog converter box in order to see video in real time? I don’t want to use my camera as a pass through. Does FCE support a second monitor at all during editing?
    Any info greatly appreciated!

    Thank you so much for the reply! I just purchased a Firewire Datavideo DAC-6 DV to Analog Video Converter and it even has component out to the NTSC monitor. It will be here on Wednesday! Good to know I can run a preview monitor while editing. Thanks again for assisting me.

  • FCP Real Time Playback

    I want to do real time playback of a FCP project from my MacBook Pro, and it appears my new Matrox MX02 Mini box will allow an HDMI output of my 720p60 project from the MacBook Pro. Pretty cool. What are your best suggestions for encoding a reliable playback product? Compress to an MPG2 program stream? Make an HD Quicktime? Or....? Bye bye 480 DVD's!

    David, if I could ask your setup for a QT playback out of the DVI port on the MacBook Pro:
    1) You take the DVI output into a DVI monitor, or do you use a DVI-to-HDMI cable?
    2) Audio is from the quarter-inch jack on the MacBook Pro?
    3) Can you achieve good 720p?

  • Sndpeek. real-time audio visualization

    Homepage:
    http://soundlab.cs.princeton.edu/software/sndpeek/
    Screens:
    http://soundlab.cs.princeton.edu/images/sndpeek.jpg
    http://soundlab.cs.princeton.edu/images/sndpeek6.jpg
    http://soundlab.cs.princeton.edu/images/sndpeek2.jpg
    http://soundlab.cs.princeton.edu/images/sndpeek3.jpg
    sndpeek is just what it sounds (and looks) like:
        * real-time 3D animated display/playback
        * can use mic-input or wav/aiff/snd/raw/mat file (with playback)
        * time-domain waveform
        * FFT magnitude spectrum
        * 3D waterfall plot
        * lissajous! (interchannel correlation)
        * rotatable and scalable display
        * freeze frame! (for didactic purposes)
        * real-time spectral feature extraction (centroid, rms, flux, rolloff)
        * available on MacOS X, Linux, and Windows under GPL
        * part of the sndtools distribution.
    i have the intention to make the PKGBUILD, but it has no ./configure and its default is to install on /usr/local/
    # Contributor: Your Name <[email protected]>
    pkgname=sndpeek
    pkgver=1.3
    pkgrel=1
    pkgdesc="real-time audio visualization "
    url="http://soundlab.cs.princeton.edu/software/sndpeek/"
    arch=('i686' 'x86_64')
    license=('GPL')
    depends=(libsndfile)
    provides=(sndpeek)
    source=(http://soundlab.cs.princeton.edu/software/sndpeek/files/$pkgname-$pkgver.tgz)
    md5sums=('0ad03fa135bf819fb5971fde015526b4')
    build() {
    cd $srcdir/$pkgname-$pkgver
    ./configure --prefix=/usr
    make || return 1
    make DESTDIR=$pkgdir install || return 1

    well changed the PKGBUILD a little... but still got errors...
    # Contributor: Leandro Chescotta <[email protected]>
    pkgname=sndpeek
    pkgver=1.3
    pkgrel=1
    pkgdesc="real-time audio visualization"
    arch=('i686' 'x86_64')
    url="http://soundlab.cs.princeton.edu/software/sndpeek/"
    license=('GPL')
    depends=('libsndfile')
    source=(http://soundlab.cs.princeton.edu/software/sndpeek/files/$pkgname-$pkgver.tgz)
    md5sums=('0ad03fa135bf819fb5971fde015526b4')
    build() {
    cd $srcdir/$pkgname-$pkgver/src/sndpeek
    ./configure --prefix=/usr
    make linux-alsa || return 1
    make DESTDIR=$pkgdir install || return 1
    output:
    [aleyscha@aleyscha 51 sndpeek 22:15]$ makepkg -f
    ==> Making package: sndpeek 1.3-1 i686 (Fri May 15 22:15:45 ART 2009)
    ==> Checking Runtime Dependencies...
    ==> Checking Buildtime Dependencies...
    ==> Retrieving Sources...
    -> Found sndpeek-1.3.tgz in build dir
    ==> Validating source files with md5sums...
    sndpeek-1.3.tgz ... Passed
    ==> Extracting Sources...
    -> bsdtar -x -f sndpeek-1.3.tgz
    ==> Removing existing pkg/ directory...
    ==> Entering fakeroot environment...
    ==> Starting build()...
    PKGBUILD: line 16: ./configure: No such file or directory
    make -f makefile.alsa
    make[1]: Entering directory `/home/aleyscha/bin/arch_packages/sndpeek/src/sndpeek-1.3/src/sndpeek'
    gcc -D__LINUX_ALSA__ -D__LITTLE_ENDIAN__ -I../marsyas/ -O3 -c chuck_fft.c
    gcc -D__LINUX_ALSA__ -D__LITTLE_ENDIAN__ -I../marsyas/ -O3 -c RtAudio.cpp
    RtAudio.cpp: In member function 'void RtApi::openStream(int, int, int, int, RtAudioFormat, int, int*, int)':
    RtAudio.cpp:234: error: 'sprintf' was not declared in this scope
    RtAudio.cpp:239: error: 'sprintf' was not declared in this scope
    RtAudio.cpp:244: error: 'sprintf' was not declared in this scope
    RtAudio.cpp:250: error: 'sprintf' was not declared in this scope
    RtAudio.cpp:257: error: 'sprintf' was not declared in this scope
    RtAudio.cpp:339: error: 'sprintf' was not declared in this scope
    RtAudio.cpp:341: error: 'sprintf' was not declared in this scope
    RtAudio.cpp: In member function 'RtAudioDeviceInfo RtApi::getDeviceInfo(int)':
    RtAudio.cpp:355: error: 'sprintf' was not declared in this scope
    make[1]: *** [RtAudio.o] Error 1
    make[1]: Leaving directory `/home/aleyscha/bin/arch_packages/sndpeek/src/sndpeek-1.3/src/sndpeek'
    make: [linux-alsa] Error 2 (ignored)
    cp /usr/local/bin/; chmod 755 /usr/local/bin/
    cp: missing destination file operand after `/usr/local/bin/'
    Try `cp --help' for more information.
    ==> Tidying install...
    -> Compressing man pages...
    -> Stripping debugging symbols from binaries and libraries...
    ==> Creating package...
    -> Generating .PKGINFO file...
    -> Compressing package...
    ==> Leaving fakeroot environment.
    ==> Finished making: sndpeek 1.3-1 i686 (Fri May 15 22:15:50 ART 2009)
    Press any key to continue...
    [aleyscha@aleyscha 52 sndpeek 22:15]$

  • Real  time issues

    hi there,
    can any one share some of the issues that have been dealt with in real time. i.e.during blue print stage, <b>especially in realisation stage</b>, final preparation stage
    puhlease answer this question immediately

    Hi Medasani,
    Real time issue you can get it from the Sap support consultants. Hence, getting all the information is very difficult.
    In what basis you are asking let me your requirements.
    For Example :- Tolerance limits is has to increase to Rs.1 to Rs.100. for employees and vendor / customer. This is the issue from client.
    How you will decide that to increase.
    First you should understand the clinet work flow and get the approval from client end (core Team) then you have to increase meanwhile you have to decide the % also.
    Oba3 /Oba2
    Warm Regards,
    Sivakumar Sathiyamoorthy

  • SOA real-time design question

    Hi All,
    We are currently working with SOA Suite 11.1.1.4. I have a SOA application requirement to receive real-time feed for six data tables from an external third party. The implementation consists of five one-way operations in the WSDL to populate the six database tables.
    I have a design question. The organization plans to use this data across various departments which requires to replicate or supply the data to other internal databases.
    In my understanding there are two options
    1) Within the SOA application fork the data hitting the web-service to different databases.
    My concern with this approach is what if organizations keep coming with such requests and I keep forking and supplying multiple internal databases with the same data. This feed has to be real-time, too much forking with impact the performance and create unwanted dependencies for this critical link for data supply.2) I could tell other internal projects to get the data from the populated main database.
    My concern here is that firstly the data is pushed into this database flat without any constraints and it is difficult to query to get specific data. This design has been purposely put in place to facilitate real-time performance.Also asking every internal projects to get data from main database will affect its performance.
    Please suggest which approach should I take (advantage/disadvantage. Apart from the above two solutions, is there any other recommended solution to mitigate the risks. This link between our organization and external party is somewhat like a lifeline for BAU, so certainly don't want to create more dependencies and overhead.
    Thanks

    I had tried implementing the JMS publisher/subscriber pattern before, unfortunately I experienced performance was not so good compared to the directly writing to the db adapter. I feel the organization SOA infrastructure is not setup correctly to cope with the number of messages coming through from external third party. Our current setup consists of three WebLogic Servers (Admin, SOA, BAM) all running on only 8GB physical RAM on one machine. Is there Oracle guideline for setting up infrastructure for a SOA application receiving roughly 600000 messages a day. I am using SOA 11.1.1.4. JMS publisher/subscriber pattern just does not cope and I see significant performance lag after few hours of running. The JMS server used was WebLogic JMS
    Thanks
    Edited by: user5108636 on Jun 13, 2011 4:19 PM
    Edited by: user5108636 on Jun 13, 2011 7:03 PM

  • OK17 Real Time Integration

    Hi
    Reconciliation ledger is not active in OKKP.  We are using New GL, Functional Area. Allocation cycles, order settlements will done.
    If I do not use OK17 then what will be impact.
    regards

    Hi  Imdad ,
    The real-time integration replaces the reconciliation postings from the reconciliation ledger. Therefore, you do not need a reconciliation ledger if you are using OK17 ..
    However, if you do not set the Reconciliation Ledger Active indicator for the controlling area (Controlling ® General Controlling ®Organization ® Maintain Controlling Area), you can no longer use the reports in report groups 5A* (5AA1-5AW1), since the reconciliation ledger is the data source for these reports. This applies to most reports under Accounting ® Controlling ® Cost Element Accounting ® Information System ® Reports for Cost Element Accounting/Revenue Element Accounting. Instead, you can use the report Cost Elements: Breakdown by Company Code under Reports for Cost Element Accounting/Revenue Element Accounting ® Overview. You can also create further reports in report group 5A21.
    Check this link for concept of Recon Ledger .... In New GL.. i think OK17 is right .. no need to Recon Ledger ..
    http://help.sap.com/saphelp_erp2004/helpdata/en/66/bc7fd143c211d182b30000e829fbfe/frameset.htm
    Regards
    Sarada

Maybe you are looking for

  • Some .htm file not displaying in Topic List, but displaying in RH11 folder

    Hi All, We are running a project using RH 11, team consist of 3 person (include me) But we have problem with many  .htm file from my 1st coworker, file not displaying in Topic List in my Robohelp and 2nd coworker. Although we already get the latest f

  • Collections problem - Sorting object (not key) in treemap

    Hello everyone, I don't know if TreeMap is the right thing for what I want to do, but I haven't found anything better yet. What I want to do is have a tree map like that index -- value (Double) 1        500 2        450 3        500   (Multiple value

  • Turn off create font outline

    I followed the steps to create a font outline, manipulated the selected font, then moved to a new page-project - I inserted new type - it looks fine at 11 pt, but when I enlarged it, it still has the outline effect - also, the font becomes nothing bu

  • Is IBA a serious creation tool or just a necessary evil/iBooks gatekeeper?

    Over the last few decades, I've taught myself QuarkXpress, Photoshop, InDesign, and many other programs, so I understand learning curves. But I'm not sure I've ever been quite as frustrated as with IBA. Perhaps this is a result of its being "Apple-in

  • I can't open Bridge CC

    Hi I can't open Bridge CC