Labview VISION + webcam + find pattern
Hi all,
I'm making a job with pattern recognition. Unfortunately, I'm doing a first steps and don't understand everything.
I found a video regarding of this question > http://www.youtube.com/watch?v=trgCbKZXyUE - it's what I want to build and extend it then.
The diagram is finished as on the video, but I cannot catch and follow the necessary pattern. It's showing all the current image instead of requested object.
I think it's not a big issue to find out the problem, but I don't have enough skills to locate it.
So, please, if you can, correct the diagram, which you can find in attachment and then I can go on with my goal.
Thank you in advance.
Regards,
Michael
Attachments:
Object Detecting and Tracking.vi 93 KB
Hi Michael,
habe you seen that link if you expand the Youtube comment which starts with something Spanish?: "En este ..."
Community: LabVIEW VISION - Busqueda de Patrones - National Instruments
https://decibel.ni.com/content/docs/DOC-31880
Can you make it work if you follow the detailed screenshots shown on the NI community page?
Best regards,
Chris
Similar Messages
-
Labview vision - while loop + image + shiftregister = 2 times same image.
Well I got this problem here at home.
I've this .vi
I've labview 8.6 + labview vision module + labview vision module for usb webcams.
Well this .vi is pretty simple but it gives me some strange results...
When I run this I get the same image on "image1" and "image2"... while in fact "image2" should be the "image1" of the last loop. This should be visible when you set the sleep time of the loop higher. Now the problem is is that on my frontpanel "image1" and "image2" are ALWAYS equal... But then when I click on the two wires of "image2" and "image1" then the difference is visible. But on the frontpanel "image1" equals "image2"...
A couple of weeks ago when I first was testing with labview + vision on my university there was a visible difference between the two images. This was with the same webcam and software.
Anyone got an idea how this is possible?Wetzer wrote:
You can think of the purple "Image" Wire as a Pointer to the Buffer containing the actual Image data.
That's what I thought too, but why would it behave differently during execution highlighting? (sorry, I don't have IMAQ, just curious )
LabVIEW Champion . Do more with less code and in less time . -
VBAI vs LabView/Vision?
I am designing a machine vision system that will use 16 GigE cameras, run on a dedicated PC, and will use standard edge and blob tools to perform a fairly routine set of inspection tasks. I will not need to code any new special-purpose image algorithms.
Because of the large number of cameras, I am interested in using parallel processes/threads as much as possible.
Also, I need to trigger inspections via Ethernet/IP from a Allen Bradley/Rockwell PLC.
Would there be any obvious advantages to using the Labview Vision Development Module rather than VBAI?Here are some things to consider (in addition to what Christophe said).
1. You had asked about 32 vs. 64 bit OS..even if you're running a 32-bit application, I would always recommend a 64-bit OS. This allows multiple 32-bit applications to each have up to ~4GB of memory, and if you're talking about 16 instances of VBAI running, they can each get up to this limit instead of on a 32-bit OS being limited to the total memory available being 4GB shared between all applications.
2. Because VBAI only allows 1 instance to run the Ethernet/IP Server, you could use LabVIEW to do the communication over Ethernet/IP and manage triggering/acquiring images in parallel and then use the VBAI API to send the images to the VBAI engines with a set image variable call so the VBAI only has to process the image and send the results back to your LV program. I really liked Christophe's idea of using a network trigger that the PLC controls, but I don't know if your cameras support network triggers or if your PLC would support sending a action command to trigger them...maybe the PLC can just trigger them directly with I/O lines...I assume this isn't an option since you're wanting to use Ethernet/IP to tell another application when to trigger them.
3. If all your inspections are exactly the same (except for which camera they use), VBAI unfortunately has a restriction that only one engine can open an inspection at a time, so you'd have to make 16 copies of the same inspection and have each VBAI instance load a unique copy of the same inspection.
4. If this is the case (all your processing is the same), and the inspection is straight forward, I think using LabVIEW to run everything in parallel with a rentrant VI that does the acquisition and vision algorithm might be the simpliest and fastest approach, but it might take longer to develop the code.
Hope this helps give you some more ideas, and let us know if you have more follow-up questions.
Brad -
Desperately trying to find patterns with Java code samples
Greetings. Is there anyone who knows where I can find Java patterns, I am particularly looking for template, literator, composite, observer and decorator. I have gone to Hillside and Portland Repository sites, but did not find pattern sample code.
I bought the head first Java book which I love, but I would like to see more sample code. They mention pattern catalogues, and besides the Gof I cannot find any. I really want to look at loads of actual samples to get a real feel how these patterns can be applied. Where can I go please?
Thank you for any and all help.
Peace,You're most welcome - you might check out the Head
First Design Patterns book as well.Yes, that was fun to read! -
Labview Vision Assistant Histogramm Problem
Good Morning,
i sadly with the Vision Package from Labview. I want to load a picture and interpretation a detail of the picture with black, white and grayvalve. This can i make with the Vision Assistant feature Histogramm. When i build it (the VI with Vision Assistant) comes nothing to the output Histogramm. I have checked the output line Histogramm, but nothing goes out of this.What are my failure?
Thanks a Lot
german translation:
Hallo zusammen,
ich bin leider noch nicht richtig mit dem Vision Paket vertraut. Ich möchte die Schwarz, Weiß und Grauwerte eines Bildausschnittes auslesen und diese auswerten können. Dank des Vision Assistant, kann ich dies per Mausklicks erzeugen, jedoch erhalte ich am Ende des Vis keine Daten. Selbst wenn ich die Quelle verbinde und ein Anzeigeelement hinzufüge, kommt hinten nichts raus. Was ist mein Fehler?
Vielen Dank
-motecpam
Labview Vision 2011 Servicepack 1
with Vision Development Modul
Attachments:
Screenshot_VI.jpg 230 KB
Screenshot_Vision_Assistant.jpg 313 KBHallo Tropper,
vielen Dank erstmal für die Antwort.
Leider erhalte ich dennoch keine Ausgabe am Histogramm.
Das Histogramm wird mir leer angezeigt.
Ich habe es so erstellt, wie von dir gezeigt.
Attachments:
Unbenannt.jpg 117 KB -
Need help in finding patterns and there counts
Hi All,
I need help in finding patterns as well as number of occurrences of those patterns in a table's column's data.
Consider sample data - one row's column from a table:
"S-S-S-P-S-B-S-S-C-S-P"
My requirement is:
I should get all the patterns that are followed by 'S'.
Example: for the above given data the patterns and counts are
SS - count is 3
SP - count is 2
SB - count is 1
SS - count is 1
There is one more condition for the above requirement:
If 'S' is followed by 'A', then 'SA' should not be considered as a pattern. The pattern should stretch until a non 'A' character is found.
Consider sample data for the above case:
"S-S-A-S-S-A-A-C-S-P-S-A"
for the above given data the patterns and counts are
SS - count is 2
SP - count is 1
SAS - count is 1
SAAC - count is 1
The data column is stored as VARCHAR2 type.
I have Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - 64bit Production
Thanks in advance,
Girish GHi, Girish,
Girish G wrote:
Hi All,
I need help in finding patterns as well as number of occurrences of those patterns in a table's column's data.
Consider sample data - one row's column from a table:
"S-S-S-P-S-B-S-S-C-S-P"
My requirement is:
I should get all the patterns that are followed by 'S'.Do you mean "I should get all patterns that *start with* 'S'"?
Example: for the above given data the patterns and counts are
SS - count is 3
SP - count is 2
SB - count is 1
SS - count is 1Why are there two rows of output for 'SS'? What does the second one, with count=1, mean?
There is one more condition for the above requirement:
If 'S' is followed by 'A', then 'SA' should not be considered as a pattern. The pattern should stretch until a non 'A' character is found.
Consider sample data for the above case:
"S-S-A-S-S-A-A-C-S-P-S-A"
for the above given data the patterns and counts are
SS - count is 2
SP - count is 1
SAS - count is 1
SAAC - count is 1
The data column is stored as VARCHAR2 type.
I have Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - 64bit ProductionThanks; the version information is very helpful.
Thanks in advance,
Girish GWhenever you have a question, please post a little sample data (CREATE TABLE and INSERT statements) and the results you want from that data.
For example, your sample data might be:
CREATE TABLE table_x
( x_id NUMBER PRIMARY KEY
, txt VARCHAR2 (30)
INSERT INTO table_x (x_id, txt) VALUES (1, 'S-S-S-P-S-B-S-S-C-S-P');
INSERT INTO table_x (x_id, txt) VALUES (2, 'S-S-A-S-S-A-A-C-S-P-S-A');and the results you want from that data might be:
X_ID TXT PATTERN CNT
1 S-S-S-P-S-B-S-S-C-S-P SB 1
1 S-S-S-P-S-B-S-S-C-S-P SC 1
1 S-S-S-P-S-B-S-S-C-S-P SP 2
1 S-S-S-P-S-B-S-S-C-S-P SS 3
2 S-S-A-S-S-A-A-C-S-P-S-A SAAC 1
2 S-S-A-S-S-A-A-C-S-P-S-A SAS 1
2 S-S-A-S-S-A-A-C-S-P-S-A SP 1
2 S-S-A-S-S-A-A-C-S-P-S-A SS 2(This corresponds to what you posted, except that there is only one output row for 'SS' when x_id=1.)
One way to get those results in Oracle 11 is:
WITH got_s_cnt AS
SELECT x_id, txt
, REGEXP_COUNT (txt, 'S') AS s_cnt
FROM table_x
, cntr AS
SELECT LEVEL AS n
FROM dual
CONNECT BY LEVEL <= (
SELECT MAX (s_cnt)
FROM got_s_cnt
, got_pattern AS
SELECT s.x_id
, s.txt
, c.n
, REGEXP_SUBSTR ( REPLACE ( SUBSTR ( txt
, INSTR (s.txt, 'S', 1, c.n)
, 'SA*[^A]'
) AS pattern
FROM got_s_cnt s
JOIN cntr c ON c.n <= s.s_cnt
SELECT x_id
, txt
, pattern
, COUNT (*) AS cnt
FROM got_pattern
WHERE pattern IS NOT NULL
GROUP BY x_id
, txt
, pattern
ORDER BY x_id
, pattern
;At the heart of this query is the call to REGEXP_SUBSTR:
REGEXP_SUBSTR ( x
, 'SA*[^A]'
)which is looking for:
S = the letter S
A* = the letter A, repeated 0 or more times
[^A] = anything except the letter A -
Count pixels labview vision 2013
hi
i want to determined percentage of pixels in a region, like function count pixcels in NI Vision Builder AI but in labview vision 2013Brad, thanks for the response. I don't have access to the code anymore, I was more just curious about it. One of my old coworkers has actualy been in contact with me recently because he's the one who inherited my code. I had to walk him through how I implemented the VBAI code in to the main application because he couldn't just change a few setting inputs. It was more of just a inconvenience.
I guess my suggestion for the future would be for an option to output the VBAI code as LabVIEW code without all of the subVI hierarchy for those who are used to just using the IMAQ VIs. Just a linear set of code that goes from the start to fnish of the VBAI diagram that I could manipulate the way I want would be nice. -
Does labview vision support GigE Vision cameras using H264 compressio​n?
Does labview vision support GigE Vision cameras using H264 compression?
I'd like to use a GigE Vision compliant camera that encodes its video data using H.264 compression. Can Imaqdx read this stream, decode the H264 compressed frames and write the frames into an imaq image?
global variables make robots angryI have no info whatsoever on your question, but welcome back from your hiatus!
Spoiler (Highlight to read)
Actually I know the answer but it is simply more fun sitting back and watching you figure it out yourself.
Actually I know the answer but it is simply more fun sitting back and watching you figure it out yourself. -
How can I determine the liquid level in a bottle (LabView Vision)?
How can I determine the liquid level in a bottle (LabView Vision)? Does anybody have an example code? The task is, that if liqid level is between two predetermined level, the program writes, that it is correct else it writes incorrect. Thank you.
here is a little play with your bad picture:
used only the small field of interest (here a guess) ,
used only the red channel ( takes out most of the light reflection)
grey scale, 3x(blurr, median filter) , played with contrast -gamma - saturation
now you need to add the edge detection and some sort of scale.
Greetings from Germany
Henrik
LV since v3.1
“ground” is a convenient fantasy
'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ' -
Get information from screen and finding patterns
Hello! I want to try bot programming for games and stuff.
The main problem I have is that the bot input should be taken from screen, and bot output should be an input (like: move mouse, click, move mouse...)
Taking for example this simple game:
http://www.onlinegames.com/basketball/
The algorithm should be:
1.- Find ball
2.- Find basket
3.- Find clicking place
4.- Click
But I don't know how to get info from screen, finding patterns and writing the output.
Any clue on what should I read about? articles, keywords, whatever.
Thank you very much!Search for "artificial intelligence" - I think if you were able to solve the first two steps in your proposed algorithm you would become a millionaire :-)
Depending on the crudeness of the graphics in the game, you might be able to just search for a particular pattern of pixels, but it's not going to be fast. If you're doing this to cheat in games, it would be far simpler and more effective to reverse engineer the communication protocol and send fake events back to the server... -
LabVIEW Vision Assistant的图像处理,NI视觉助手教程免费阅读
附件里面比较全,因为发不了那么多字
http://shixinhua.com/ 石鑫华主页
http://shixinhua.com/imganalyse/2013/09/762.html 全文网站
《基于Vision Assistant的图像处理是实用教程》
第二章 界面与菜单 67
第一节 启动欢迎界面 67
http://shixinhua.com/imganalyse/2013/01/278.html
第二节 功能界面 73
http://shixinhua.com/imganalyse/2013/01/280.html
Acquire Images采集图像界面 73
Browse Images浏览图像界面 77
Process Images处理图像界面 79
第三节 File文件菜单 86
http://shixinhua.com/imganalyse/2013/01/283.html
Open Image:打开图像 86
Open AVI File:打开AVI文件 87
Save Image:保存图像 87
New Script:新建脚本 91
Open Script:打开脚本 92
Save Script:保存脚本 92
Save Script As:脚本另存为 93
Acquire Image:采集图像 93
Browse Images:浏览图像 93
Process Images:处理图像 94
Print Image:打印图像 94
Preferences:优先参数选择 95
Exit:退出 97
第四节 Edit编辑菜单 97
http://shixinhua.com/imganalyse/2013/01/284.html
Edit Step:编辑步骤 97
Cut:剪切 97
Copy:复制 98
Paste:粘贴 98
Delete:删除 98
第五节 View查看菜单 98
http://shixinhua.com/imganalyse/2013/01/286.html
Zoom In:放大 99
Zoom Out:缩小 99
Zoom 1:1:原始图像 99
Zoom to Fit:适合窗口 99
第六节 Image图像菜单 99
http://shixinhua.com/imganalyse/2013/01/288.html
Histogram:直方图 101
Line Profile:线剖面图 101
Measure:测量 101
3D View:三维视图 101
Brightness:亮度 102
Set Coordinate System:设置坐标系 102
Image Mask:图像掩码 102
Geometry:几何 102
Image Buffer:图像缓存 102
Get Image:获取图像 102
Image Calibration:图像标定 102
Image Correction:图像修正 102
Overlay:覆盖 102
Run LabVIEW VI:运行LabVIEW VI 103
第七节 Color彩色菜单 103
http://shixinhua.com/imganalyse/2013/01/289.html
Color Operators:彩色运算 104
Color Plane Extraction:彩色平面抽取 104
Color Threshold:彩色阈值 104
Color Classification:彩色分类 105
Color Segmentation:彩色分段 105
Color Matching:彩色匹配 105
Color Location:彩色定位 105
Color Pattern Matching:彩色模式匹配 105
第八节 Grayscale灰度菜单 105
http://shixinhua.com/imganalyse/2013/01/291.html
Lookup Table:查找表 107
Filters:滤波 107
Gray Morphology:灰度形态学 107
Gray Morphological Reconstruction:灰度形态学重建 107
FFT Filter:快速傅立叶变换滤波 107
Threshold:阈值 107
Watershed Segmentation:分水岭分割 107
Operators:运算 107
Conversion:转换 107
Quantify:量化 108
Centroid:质心 108
Detect Texture Defects:检查纹理缺陷 108
第九节 Binary二值菜单 108
http://shixinhua.com/imganalyse/2013/01/293.html
Basic Morphology:基本形态学 109
Adv. Morphology:高级形态学 109
Binary Morphological Reconstruction:二值形态学重建 109
Particle Filter:粒子滤波 109
Binary Image Inversion:二值图像反转 110
Particle Analysis:粒子分析 110
Shape Matching:形状匹配 110
Circle Detection:圆检测 110
第十节 Machine Vision机器视觉菜单 110
http://shixinhua.com/imganalyse/2013/01/295.html
Edge Detector:边缘检测 111
Find Straight Edge:查找直边 112
Adv. Straight Edge:高级直边 112
Find Circular Edge:查找圆边 112
Max Clamp:最大卡尺 112
Clamp(Rake):卡尺(耙子) 112
Pattern Matching:模式匹配 112
Geometric Matching:几何匹配 112
Contour Analysis:轮廓分析 112
Shape Detection:形状检测 112
Golden Template Comparison:极品模板比较 113
Caliper:测径器、卡尺 113
第十一节 Identification识别菜单 113
http://shixinhua.com/imganalyse/2013/01/296.html
OCR/OCV:光学字符识别 114
Particle Classification:粒子分类 114
Barcode Reader:条码读取 114
2D Barcode Reader:二维条码读取 114
第十二节 Tools工具菜单 114
http://shixinhua.com/imganalyse/2013/02/297.html
Batch Processing:批量处理 114
Performance Meter:性能测量 120
View Measurements:查看测量 120
Create LabVIEW VI:创建LabVIEW VI代码 121
Create C Code:创建C代码 121
Create .NET Code:创建.NET代码 122
Activate Vision Assistant:激活视觉助手 123
第十三节 Help帮助菜单 124
http://shixinhua.com/imganalyse/2013/02/298.html
Show Context Help:显示上下文帮助 124
Online Help:在线帮助 125
Solution Wizard:解决问题向导 125
Patents:专利 125
About Vision Assistant:关于视觉助手 125
第三章 采集图像 126
第一节 Acquire Image采集图像 127
http://shixinhua.com/imganalyse/2013/02/299.html
第二节 Acquire Image(1394,GigE,or USB)采集图像(1394、千兆网、USB) 128
http://shixinhua.com/imganalyse/2013/02/301.html
Main选项卡 129
Attributes属性选项卡 138
第三节 Acquire Image(Smart Camera)从智能相机中采集图像 143
http://shixinhua.com/imganalyse/2013/02/302.html
第四节 Simulate Acquisition仿真采集 145
http://shixinhua.com/imganalyse/2013/02/304.html
第四章 浏览图像 150Wetzer wrote:
You can think of the purple "Image" Wire as a Pointer to the Buffer containing the actual Image data.
That's what I thought too, but why would it behave differently during execution highlighting? (sorry, I don't have IMAQ, just curious )
LabVIEW Champion . Do more with less code and in less time . -
Hi,
I have a program that can detect motion that occurs in my room using a webcam and will send a picture to my gmail account if motion detected. The program works fine when myRIO is connecting to PC (with the webcam connects to myRIO). However, after I created a standalone application, it's not working. Even the VIs within the first frame of the flat sequence (turn LED on) was not working. The standalone program will work if I disable all of the vision-related VIs. Any suggestions? Thanks!
I got the driver installed and the webcam connected, so that shouldn't be an issue.
Thanks in advance.
-RobinI have a 30 GB version of the same. I also got some external speakers for it, UBL I think they are called. I find there is something very odd about whether you charge it up or not. It seems to over-charge sometimes, and then everything freezes. As for connecting to the PC, no chance. After an initial burst on another machine, and after installing itunes on this computer, there is no recognition of the one by the other at all. Plus freezing and locking up. Plus freezing the PC as well, it is very tedious. So no answers, only commiserations. I think Apple are doing a very poor job on this ! And their help facility seems quite hopeless !
-
LabVIEW vision module w/ usb camera
I've got LabVIEW 2009 and the Vision Assistant 8.6 and am trying to coordinate them with a usb camera for motion tracking. Eventually I want to be able to track motion at several locations on a glass plate, but currently I'm having difficulty understanding how the Vision Assistant and LabVIEW are supposed to interact. I can take input with Vision Assistant and see from the camera, but I can't perform any of Vision Assistant's functions on the image. Also, I don't think I have a LabVIEW VI for initializing up a USB camera to use with the IMAQ functions. How should I do this?
Using LabVIEW 2009 on Windows VistaHi dlg,
There are some great examples in the NI Example Finder (in LabVIEW go to Help >> Find Examples...) that are simple enough to start with. The basic concept you need to understand the HL Snap.vior HL Grab.vi examples is that you "open, do-something, close". The more complicated your code, the more extensive the "do-something" is. However, the same process applies. The other thing that is important to know is that the Create IMAQ.vi creates a buffer in which to store the image temporarily from the camera. You then pass a reference to this buffer (the purple wire at the top of the subVIs) to process the image in a later step, if desired, or display the image on the front panel.
I hope this helps!
Kristen H. -
Labview vision connection to a robot
Hello,
We are a group of students of a Dutch university and as a project we have received the task of making a program. The program is made to recognize a small plastic train in a box using National Instruments Vision Builder AI 3.5. We are making use of prosilica EC3050E camera. After locating the plastic train the program should send a string of information to our robot (Mitsubishi Melfa RV-6SL) and the robot should then pick up the train.
We have made it so far to recognizing the train in the box using labview, but now we are stuck in how to find the location and the angle of the train. The train will be in the same height every time so we only need x-y coordinates and the rotation around the z-axis.
Then we need to send this location to the robot so it can pick up the train. The problem here is that we do not know how to send the data so it can communicate with our robot (Ethernet, Profibus or serial link).
We hope you can help us.
With kind regards.We now have come so far that we can recognize our plastic train so we have got all the coordinates we need to locate the train.
Now we are trying to send this information, wich we believe is send in ASCII, so that the robot will move.
Our problem now is that the robot needs a komma (,) between the coordinates wich we can't find out how to do??
The set-up right now is that the camera is in a different room then the robot but is linked using a serial cable.
Our robot only has one communication port wich is normally linked to a computer wich uses Cosirop to make teach-in programs. We believe it is possible to make a program using Cosirop, downloading this to the robot, and then connect it to our camera set-up wich will send out the data. Does anyone have experience with Cosirop on this forum please contact us. We just cannot find out how to read the coordinates!?. -
I'm having trouble finding out what is I would need to purchase to use he vision toolkit in labview 7.1 .
I've got labview 7.1 + development.
Now all I need is the ability to use vision tools like "find edge" and "count objects".
I don't need any extra programs like vision assistent.
Which of the following do I need.
Maybe someone can explain to me what the following things mean:
777859-03 NI Vision Development Module for LabVIEW 1 - 2 2,845
777860-03 NI Vision Development Module for Measurement Studio 1 - 2 3,045
778044-01 IMAQ Vision Deployment Engine for One User 1 - 2 320
778044-00 IMAQ Vision Deployment License 1 - 2 320run time engine or kind of .
You need to by one for each one of your deployed exe...
Doc-Doc
http://www.machinevision.ch
http://visionindustrielle.ch
Please take time to rate this answer
Maybe you are looking for
-
i find this msg whenever i go to gmail - 'Try now Unable to reach Gmail. Please check your internet connection or company's network settings. Help.' i tried to resolve the issue by clicking the 'help' hyperlink in that above mentioned msg but couldn'
-
Secret recording of actions in photoshop elements revealed!
First screenshot shows getting ready to record an action in photoshop elements 8. The second screenshot shows testing the newly recorded action with the script events manager.
-
EFI install - NO OS installed (formerly 10.5)
Hi, I've had a problem with the OS on my MacBook Pro (mid-2009, 13") and I can't install OS X 10.5 back on, i've read that it's possibly something to do with the EFI bootloader. Is there any way to install the EFI bootloader, WITHOUT an OS installed?
-
Remove genius from playlist sidebar
how can i remove genius from playlist sidebar? i don't think i'll ever use it as i like shuffle just fine.
-
Automatic population of selection criteria in Infopakage
Hi Experts, I have a Full Load Infopakage in a process chain that runs daily. I want to automatically populate posting date in the selection criteria of this Infopakage. For example: If the process chain runs on 20 July'08, then the posting date shou