Count moving object (Inter the ROI from one side and leave ROI from other side)

Hello All
I want to design program that can counting moving object that inter ROI from one side and come out from the other side, I want to give each object ID number
I have design a program that compare between object distances from one frame to the next frame, but the program efficiency is very low
If any one can give me a sample code that I can use or modify it to suite my application

Hello,
you will find the code in the attachment (saved for LV2013). There is a longer delay inside the loop, remove it for efficiency.
Roughly measuring the time to read an image, the processing takes ~8 ms on my computer (~500x200 image resolution). That is ~125 samples/images per second. Is this not fast enough for you? Considering better image resolution, the time is of course increased.
My specifications:
Core i7 3632QM
6 Gb RAM
Win 7 x64 (Labview x86 though).
Best regards,
K
https://decibel.ni.com/content/blogs/kl3m3n
"Kudos: Users may give one another Kudos on the forums for posts that they found particularly helpful or insightful."
Attachments:
IDMovingObjects.zip ‏64 KB

Similar Messages

  • I have the same songs showing up on 2 playlists on my Ipod. How do I remove the songs from one playlist and leave them on the other playlist?

    I have the same songs showing up on 2 playlists on my Ipod. How do I remove the songs from one playlist and leave them on the other playlist?

    Hi tmilbut,
    Welcome to the Support Communities!
    The information below may be able to answer your questions about how to delete items from a playlist on an iPod.
    iPod Nano User Guide - Remove items from a playlist - page 23
    http://manuals.info.apple.com/MANUALS/1000/MA1624/en_US/ipod_nano_user_guide.pdf
    Remove items from a playlist:
    1 On the Home screen, tap Music > Playlists, then tap the playlist you want to edit.
    2 Flick down, then tap Edit.
    3 Tap next to the item you want to delete, then tap Delete when it appears on the right.
    4 When you finish, tap Done.
    Delete a playlist:
    1 On the Home screen, tap Music > Playlists.
    2 Flick down, then tap Edit.
    3 Tap next to the playlist you want to delete, then tap Delete when it appears next to the playlist.
    If you tapped the wrong playlist, tap the one you want to remove.
    4 Tap Delete, or tap Cancel if you change your mind.
    5 When you finish, flick up, then tap Done (or swipe right to return to the Home screen if you cancel).
    Cheers,
    - Judy

  • How to deactivate the flex builder licence from one machine and use it on other machine

    Hi,
    I have a "Flex builder 3" licence running on my machine.
    I have to deactivate that and use it on another machine.
    How should I do that? As there is no otpion in flex builder.
    Any help appreciated.
    Thanks,
    Tushar

    What happens when you just install Flex Builder on the other machine and enter the serial number? I was not aware of Flex Builder having a mechanism that tracks activations like the Creative Suite products.
    If this post answers your question or helps, please mark it as such.
    Greg Lafrance
    www.ChikaraDev.com
    Flex Development and Support Services

  • How start an api from one JVM and stop it from another ?

    Hi all,
    I want just one instance of a program. Thus I need constroled if an instance of this tools already exists. But from an other JVM, how can I do this ?

    The question in your title doesn't match the one in the body of the post. I'm guessing you want to prevent multiple copies of your application from running concurrently on the same box.
    Create a ServerSocket on a specific port upon start up. If it's successful, you have effectively locked a Mutex for your application. If it's unsuccessful, you can make the assumption that another instance of your application is already running so you should exit.
    -S

  • Show name from one table, and a sum from another table.

    Hi,
    For instance: I have 2 tables.
    1. Table1 has fields TenantID, TenantName,
    2. Table2 has fields AmmountCredit, AmmountDebit, TenantID.
    I need the following behavior.
    In the detailed section I want my report to show a list of TenantName, and a SUM of AmmountCredit minus Ammount Debit for that Tenant (which will come from Table2).
    How would I do this?  If a formula is involved, please provide an example because I'm fairly new to Crystal Reports.
    Thanks
    Aron

    Hi Aron,
    Please see if this helps:
    1) Go to the Database Expert > Add the two tables > Go to the Links tab > Join the two tables on the 'Tenant ID' field using an 'Inner Join' > Click OK
    2)  In the report, go to the Group Expert and create a group on the 'Tenant ID' field
    3) Place the 'Tenant Name' field on the Group Header 1
    4) Suppress the Details Section
    5) Create a formula with this code and place it on the Group Header 1:
    Sum({AmountCredit}, {TenantID}) - Sum({AmountDebit}, {TenantID})
    Here, {TenantID} is the Group field. So replace these fields with the right fields from your datasource.
    -Abhilash

  • Report to display (actuals data from one cube and plan from another)

    Hi Gurus,
             I have a requirement in reporting to display actual data from one cube and plan data from a different one.
            The example below might give a clear picture of the requirement.
    rows has key figures and columns = months
    Jan |  Feb |  Mar |  Apr |  May |  Jun  ...   ....
    GrossSales
    Net Sales   
    Now if I run the report for Current month (Apr), then for the months of (Jan, Feb and Mar) i need to get the data from CUBE1   and for the remaining months (Apr thru Dec) from CUBE2.
    Similarly when i run the report next month(may), 
    then (data for Jan, Feb, Mar, Apr  from CUBE1)
    and ( May thru Dec from CUBE2)
    Any suggestions.
    Thanks in Advance
    Kumar

    Hi Henry,
         We alreadey have a multi provider which includes
    FinDat Cube(CUBE1) for actuals and Comm.Goals cube (CUBE2) for plan.
    So you suggest that we have two versions of key figure for actual and plan.
    ie. each KF will have two versions.
    actuals = (version 10, FiscPer<curr.mnth, key figure, acutals cube)
    Plan = (version 20, FiscPer>=curr.mnth, key figure, comm.goals cube)
    eg:
    Jan | Feb | Mar | Apr | May | Jun ...
    GrossSales(Act)
    GrossSlaes(Plan)
    Net Sales(Acutal)
    Net Sales(Plan)
    Correct me if I am wrong.
    the report has a lot of key figures, having two versions for each kf will be confusing.
    the user would like to see
    Jan.....| ...Feb  |..Mar |..Apr.....|  May  | 
    GrossSales   Act Value|Act.V |Act.V| PlanVal|PlanVal|
    Net Sales
    where Act.Value is from CUBE1
             Plan Value is from CUBE2
    Thanks
    Kumar

  • How can you take a photo from one event and put it in another, without dragging to desktop and dragging back into iPhoto and moving it to the event folder I want it in.

    As the title says I need help on how to take a photo from one event and put it in another, without dragging to desktop and dragging back into iPhoto and moving it to the event folder I want it in. Right now when I want to move a picture from one event to another I drag it to my desktop then delete it from iPhoto then I drag it back into iPhoto and put where I want it.An example would be taking a photo from the Christmas event and add it to a specific person event.  Can I do that within the events section without all the dragging. Also is there anyway I can remove duplicates from iPhoto without going through each and every file. Any help would be greatly appreciated.

    Apple doesn't make it easy to do what you want.  However, here's how I do it. 
    Select the photo you want to move and create a new Event for it via the Event ➙ Create Event menu option.
    In the Event mode select the new Event with the one picture and drag it onto the Event you want to move the photo to.

  • How to get the data from one table and insert into another table

    Hi,
    We have requirement to build OA page with the data needs to be populated from one table and on save data into another table.
    For the above requirement what the best way to implement in OAF.
    I understand that if we attach VO object instance to region/page, we only can pull and put data in to only one table.
    Thanks

    You can achieve this in many different ways, one is
    1. Create another VO based on the EO which is based on the dest table.
    2. At save, copy the contents of the source VO into the dest VO (see copy routine in dev guide).
    3. commiting the transaction will push the data into the dest table on which the dest VO is based.
    I understand that if we attach VO object instance to region/page, we only can pull and put data in to only one table.
    if by table you mean a DB table, then no, you can have a VO based on multiple EOs which will do DMLs accordingly.Thanks
    Tapash

  • How can I get a count of objects in the near cache? (Extend client)

    Hi,
    I'm trying to figure out how to get the count of objects in my near cache (from c++ client). Knowing the size of the near cache is a key factor when optimizing configurations for performance.
    However if I call size() on the cache handle I get the count of objects in the cache (ie the cluster). How can I get a count of objects in the near cache?
    Thanks
    Rich Carless

    H Rich,
    It may not be ideal, but I think you may be able to infer the size by using the HeapAnalyzer (http://download.oracle.com/docs/cd/E15357_01/coh.360/e15728/classcoherence_1_1lang_1_1_heap_analyzer.html) facility, specifically the "class" based HeapAnalyzer. Its Snapshot representation http://download.oracle.com/docs/cd/E15357_01/coh.360/e15728/classcoherence_1_1lang_1_1_class_based_heap_analyzer_1_1_snapshot.html provides a mapping between class name and ClassStats (http://download.oracle.com/docs/cd/E15357_01/coh.360/e15728/classcoherence_1_1lang_1_1_class_based_heap_analyzer_1_1_class_stats.html) which provides information on how many instances of a given class type are in memory. Note the reported counts are process wide but if your key or value type are distinct you may be able to infer your answer. I realize this is rather complex, my only other suggestion would be to just make some guesses on size and see how they effect performance.
    Mark
    Oracle Coherence

  • Is it possible to clone an object from one image and paste it on another image?

    Is it possible to clone an object from one image and paste it on another image in Aperture?

    As Frank said,
    but Aperture has a nice clone tool - the drawback is, that it only works within one image.
    What I sometimes do - as a workaroud, when I want to use the clone brush, is to combine the image I want to clone from and the image I want to clone into, into one single image by printing them together to pdf as jpeg. Then I can clone from the second to the first, for example, to be able to add an fairy to a flower: Picking up the head of the fairy in the right image and brushing it into the left one. Occasionally I prefer the Aperture brush to the Photoshop lasso.

  • HT204053 My wife and I have an iphone each using one apple id. How do we stop items being deleted from one phone and then find it has been deleted from the other?

    My wife and I have an iphone each using one apple id. How do we stop phone contacts being deleted from one phone and then find it has been deleted from the other?
    Also this works when one of us downloads an app it appears on the other iphone

    You need to use separate iCloud accounts. This will mean that you can both have your own separate contracts and calendars and put an end to them being deleted by each other.
    Whether or not you have a separate iTunes account, is up to you. If you have a separate iTunes accounts you will not be able to access the music, books, apps that have been purchased by the other. This may be exactly what you want, but it also means that you both may end up purchasing the same item.

  • Is there anyway to take a downloaded app from one computer and put it on another without rebuying it. I have a macbook that I bought the new iMovie and iPhoto on, but I would rather it be on my iMac. So is there anyway I can change it?

    Is there anyway to take a downloaded app from one computer and put it on another without rebuying it. I have a macbook that I bought the new iMovie and iPhoto on, but I would rather it be on my iMac. So is there anyway I can change it? I thought that if I bought it the apps on my macbook, they would be avaliable on my imac like the mobile devices operate. The macbook has 10.6.8 cause its a older model and I think lion would slow it down. Any help??

    Just redownload it on the other computer by logging into the App Store with the same Apple ID you used to purchase it.

  • What is the best way to remove elements 10 from one pc and install it on another?

    What steps need to be taken to remove Adobe Elements 10 from one pc and install it on another?

    Use back up and restore from the Organizer menu. You are permitted two activations so no real need to deactivate the old copy unless you have installed it previously on another machine.
    See these instructions for PSE6 and above.
    http://helpx.adobe.com/photoshop-elements/kb/backup-restore-move-catalog-photoshop.html

  • Hi i want to take a sequence from one timeline and drop it in another timelien without having to reedit the sequence. how do i do this thanks

    hi i want to take a sequence from one timeline and drop it in another timelien without having to reedit the sequence. how do i do this thanks

    leeg
    Your new thread was a success.
    Our original discussions on transferring content from one Premiere Elements project to another can be found
    What am I missing?
    in posts 4, 5, 6, and 7 of the above link.
    Good choice in deciding to go with the export from project 1 into project 2.
    Thanks again for your follow up and good work.
    ATR

  • I have different bookmarks that I want to keep on each computer, will sync delete the bookmarks on one computer and overwrite the bookmarks from the other computer in their place

    I have not used sync yet, but I have the gut feeling there is going to be a problem if I do. I have different bookmarks that I want to keep on each computer. Will sync delete the bookmarks on one computer and overwrite the bookmarks from the other computer in their place? So I'm guessing it will erase the bookmarks on the second computer that you set up to sync. Is there a way to merge the bookmarks from each computer into one bookmark library that contains all the bookmarks from both computers, so that I don't lose any bookmarks by syncing?

    Hi,
    Firefox Sync works by merging all the info in all your computers. It doesn't replace anything. So if you have information A in one device and information B in other device, after setting up Sync you will have information A+B in both devices.
    I hope this clarifies the situation.

Maybe you are looking for

  • To upload a RTF and a PDF file to SAP R/3 and print the same through SAP

    Hi, I have a requirement to upload a PDF file and a RTF file to SAP R/3 and print the same. I wrote the following code for uploading a RTF file to SAP R/3 and print the same. However, the problem is , the formatting present in the RTF document( bold/

  • Portal favorites

    Hi, I have a small query about portal favourites. When any user adds a document or folder of KM into Portal favourites it is added as expected. When the user clicks on any link in portal favourites it opens the desired iview in a new window. I need t

  • Error - Unable to execute service and function

    Hi all,    I created a sample component with service handlers but it is giving errors Unable to execute service GET_PURGE_LIST and function getPurgeList. (System Error: The service method 'getPurgeList' is not defined.) Please let me know what change

  • Previously Downloaded Music- Lost

    Hi there. I have had a new PC for a while now, but on the other PC that died, I had a few songs that I had purchased and downloaded onto iTunes. I have bought songs since on iTunes and it is all fine, but the songs that I had purchased and downloaded

  • Recently Edited Files

    Tonight,PSE3 froze up on me requiring a Force Quit on my Mac - a rare but not unknown occurrence. However on checking File / Recently Edited Files when I opened it again, I couldn't find any listing of the files I had been working on in the last week