Quantcast
Channel: Machine Vision topics
Viewing all 3181 articles
Browse latest View live

Image Processing

$
0
0

The Program is running almost as intended; for some reason the outputs "New Picture 3" and "New Picture" appear as an "aqua-scale" but the intended result was a gray-scale. And I really dont know where my coding went wrong; I am still learning and would be very grateful If someone could offer some assistance. I attached the VI and an example image to be used as input. I attached the image as jpeg but it should really be a BMP (The website does not allow BMP files)

Thanks in advance


Image Processing

Copying Attributes to an Additional Camera

$
0
0

I have been using a raL4096-24gm Basler Racer GigE camera for my inspection and just recently added another one. I am setting the attributes through the Read/Write Camera Attributes step in VBAI. The additional camera is the same camera as the first so I thought I could change the attribute settings to match the original. I get an image from the second camera but it looks as if it only scanned a portion of the material and then stretched out the image. There must be a setting that I missed in the attributes that is causing this and was wondering if there is a way I could copy the attributes from one camera to the other or even use the Read/Write Camera Attributes to write the same attributes to both cameras.

Help with Get LCD ROI VI

$
0
0

Hey guys, this is my first time posting in the forum, so sorry in advance if I am doing something wrong.

 

The objective of my program is the following:

Given an image of a multimeter with all seven segments on, find the ROI of all individual digits so I can pass to the IMAQ Read LCD.

 

Some things you should know:

  • The program will run in different images of multimeters.
  • The multimeter with all 7 segments on will not be in a fixed position.
  • After the 7 segments image the following images will be in the same position.
  • I know I can draw the ROI to pass to the IMAQ Get LCD ROI VI but the objective is that the program can detect the ROI alone. Ideally I want to pass a constant big rectangle ROI that I know all digits of the multimeter will be. (see attacheds images).

 

Problems Found:

  • When passing a big photo like the one attached LabVIEW just crashes when using IMAQ Get LCD ROI VI. (Using a smaller images works)
  • The ROI I need to pass to the IMAQ Get LCD ROI VI needs to fit very well in the digits so it can work.
  • When the ROI passed to the IMAQ Get LCD ROI VI is not well fit it returns a error saying it's not a valid lcd image or ROI.

Is there a way to find the ROI Automatically to pass to the IMAQ Get LCD ROI VI ?

 

I have attached the images and the code,

Thanks in advance

Axis IP Camera with NI Vision Builder 2010?

$
0
0

Hello

I would be very grateful if anyone can help with a problem i have?

I would like to use a AXIS Companion V IP camera via a AXIS Switch from a laptop to use for vision detection. The software i am using is NI Vision Builder 2010.

The camera is recognized within vision builder and MAX. When i go to take a snapshot i get the following error -

 

The specific image aquisition device could not be initialized properly

Error 1074360267 occured at an unidentified location

Possible reasons

NI - IMAQdx Hex 0xBFF69035 The camera returned an unknown HTTP error.

 

Any help or advice is much appriciated.

 

Deano

Camera File Generator times out, flips back to 8 bits

$
0
0

We're trying to make a Camera File with the Camera File Generator (v3.0.1). Our camera is sending a stream of 16 bit pixels to a 1433 in base mode using 2 taps.

 

We're getting an "Acquisition Timeout. Not all of the incoming data was captured within the Acquisition timeout. …" error. The camera takes roughly 4ms to send the image. The pixel clock is under the maximum data rate for a 1433 (80 MHz, less than the max of 85 MHz).

 

An additional oddity is that we selected 16 bits in the Camera Settings window, but when we come back to the Camera Settings window, the image type is 8 bits again. Every time we make this change, the program ignores it.

 

If we unplug the camera from the board, it instead has the error, "Cannot detect valid timing signals. …" That suggests that it is getting valid timing signals when it IS plugged in.

temporary connection loss recovery for GigE

$
0
0

Hi, I'm trying to cover all my bases for a long running application and there is a failure condition that is difficult to detect. In particular, if you trip over a cable Imaqdx will eventually detect that the camera is gone and generate the appropriate error. However, if you trip over the cable and plug it back in fast enough (or if, as is the case for me, the clip breaks off and you quickly pull out the cable and push it back in), it simply times out...forever. Even with the camera plugged back in. In my application, the cameras are externally triggered, so a timeout is pretty meaningless. Nevertheless, I tried restarting the acquisition, which generated a different error, so thats something at least. Through trial an error, I discovered that if I attempt to call "read register2", then restart the acquisition, it recovers. If I just read the register, it continues to timeout, and as I said if I just restart I get an error. Something about that chain works.

 

My questions:

  1. Any thoughts on why this works?
  2. Do all gige cameras support the register read interface? Is this actually a safe recovery process?
  3. Is there a better/different way to detect this condition?

FFT on Image

$
0
0

I have an application that uses FFT to  analyze thermal image 
How can I represnt the output of FFT Function Mathematically

Attached Screenshot ,vision assistant file and image file for demonstration 


Axis companion V Camera

$
0
0

Hello

 

Could somebody with links to National Instruments please tell me if Axis Companion V cameras are supported?

 

According to Axis they are not? Even though state that Axis and Basler cameras are supported.

 

If not, Is there a way i could run the Companion software to display images and then this would link to Vision Assistant to snap an image? As mentioned on a previous post the camera is recognized but not image displayed(unknown http error)

 

Kind regards

 

Dean

Setting "Inter-packet delay" value in LabVIEW

$
0
0

I'm running a Basler Ace acA3800-gm, and trying to access it using IMAQdx. 

 

When I set up this particular camera in Basler Pylon Viewer, I need to change the value Transport Layer > Inter-Packet Delay from 0 to something like 1000 before it will work properly. 

Inter_packet_delay_Basler_Pylon.png

When I then try to run it from LabVIEW, it seems this value gets reset to 0. I tried looking to see if I can set this value in LabVIEW using the property node, but I'm not seeing anything equivalent. Is this a property that can easily be set using IMAQdx?

 

I'm using LabVIEW 2016.

FLIR usb3 camera with IMAQdx

$
0
0

Hello,

 

I am using FLIR usb3 camera with NI IMAQdx. The VI is working in LabVIEW 2017 64bit, but not working in LabVIEW 2017 32bit, as attached photo, all sub VIs of IMAQdx are not located. Do I need to locate these VIs manually? Thank you!

 

Windows 10 64bit, LabVIEW 2017 32 bit and 64bit, VAS1800

IMAQdx Timeout Error 0xBFF6901B

$
0
0

Hello. I'm trying to acquire first images from my Basler acA2000-340kc camera link camera using IMAQdx. The frame grabber that i'm using is PCIE-1433. I'm using the base camera configuration and i keep getting this error. Can anyone explain to me what am i doing wrong?

Grabbing images from two cameras in VBAI synchronously

$
0
0

My setup consists of VBAI 2015 and two Basler Racer Line Scan cameras. Originally, I had one camera in the setup which was working just fine on the VBAI side of things. The cycle between each image taken was roughly around 12-16 seconds depending on the material. I have an encoder triggering the line start trigger to grab the number of lines for a frame. The amount of lines the camera was grabbing for a frame always exceeded the specified height (the number of lines in one frame) with the one camera so there was always a second frame not filled to the height. So, what the camera does is holds on to that second image till enough lines are taken to fill the rest of the frame. This will get your second image. We didn’t want that, we wanted to start a new blank frame for the next image. So, we made it where the camera would timeout between cycles which then caused the excess lines to be erased. If we were to fill in the half empty frame, the image would not be consistent. You could tell where the first section of the frame ended and where the next began since the material scanned didn’t line up. This would throw off our measurements in VBAI so we decided to start a new frame instead.

 

After installing the second camera and copying all the settings to the hardware, I used the same VBAI file and just add a new state for the second camera with the same Read/Write Attributes Step as the first camera. But now instead of starting a new frame after the timeout, the partial image leftover stays and messes up the next image causing the VBAI to get bad readings. Is acquiring images from two cameras in one VBAI causing problems with getting the images from both? If not, is there a sure-fire way to make it where the camera always starts a fresh frame on each grab such as being able to delete the second unfilled frame?

 

Any advice will be helpful. Thanks!

P.S. Sorry for long explanation.

Bayer Encoder

$
0
0

I'd like to get some assistance in encoding an image to Bayer format.

 

Does anybody have something I can use?  If not, how can I create my own.

 

I'd like to take an image/picture and encode it to a 10 bit Bayer and transmit it. (I have a serializer/deserializer  working...)

Lm386N-1 amplifier not working


IMAQ Unwrap has some interpolation options disabled

$
0
0

I'm using 2018. I'm wondering why some of the options are disabled. I don't really need them at the moment but I thought it was odd:

Imaq Unwrap UI2.png

Particle Filter 3 - How to filter particles satisfying ALL criteria?

$
0
0

I am trying to filter a binary image to only keep particles that satisfy ALL of my desired criteria (e.g. within a specified range of Area AND Perimeter). The Particle Filter 3 vi keeps particles that satisfy ANY of the criteria (e.g. Area is in range but perimeter is out of range). Do I need to loop on Particle Filter for each criteria or is there another way to do this?

 

Thanks,

--Dave

Extract Solid Line Center

$
0
0

Hi All,

 

What is the best way to extract the center line of a solid thick line?

The image is a binary one. And I'd like to get the dotted line as shown in the image. Example.png

 

Thank you. 

Camera file (.icd) for Mikrotron MC1362 camera; using with PCIe-1433 Full CL grabberboard

$
0
0

Hello!

I am trying to use Mikrotron MC1362 camera with PCIe-1433 frame grabber board. There is no camera file available on NI for this camera. I would like to know if anyone has already generated a file for this before and if they could share it?

Thank you.

labview memory full when exporting array data to excel

$
0
0

Myself sibeesh,As a part of my project I have edited a program to store images and raw image data from a machine vision camera. During each 5s gap program will capture one image and store Raw image data in a 2D array. images will be taken over more than one hour so that there will be many images and of course raw image data will be very huge. Array need to be exported into excel sheet,text file or a csv file. If I am Capturing only  4 or 5  images, I can export data from 2D array to an excel sheet but for more images it is showing some message like "labview memory is full".  Software Details: LabVIEW Professional Development System  version 2017
NI Hardware:  None
Operating System:  Windows 10

RAM 8GB. attached code and it's screenshot. This code will work with web cam also.

Viewing all 3181 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>