I do not know what you expecting from your code, but the NImage.FromFile is expecting the path to image file. i.e. you have an image in "C:\test\1.jpg", then NImage.FromFile should look like this: NImage.FromFile("C:\\test\\1.jpg");

I have another question. I tired to follow your this method to grab a frame to the timer ticker but it prompt me this error:"The name 'camera' does not exist in the current context". I know is i never declare but may i ask how i can declare?

I have another question. I tired to follow your this method to grab a frame to the timer ticker but it prompt me this error:"The name 'camera' does not exist in the current context". I know is i never declare but may i ask how i can declare?

Ok. Thank you for you guy giving me tips and recommendation on how to do video streaming and display on my webcam as i finally success in it. However, i now want to snap a picture of my choice using webcam and save it under a folder that i name it. How should i go about it?

actually SentiSight has a documentation, which has API reference. Here you can find a Chapter 7.3.1.4.1.10.1 NImage.Save Method (string) and Chapter 7.3.1.4.1.10.2 NImage.Save Method (string, NImageFormat). Have you tried to read a documentation? Also you can find how to save an NImage to file in 'CameraManager' tutorial... anyway, below you will find a part of code, which shows how to save an NImage to file:

Thanks for reply all of my question and guide me to get more understanding on how to use SentiSight SDK . May i know what kind of the file ".seil" is and how to create that kind of file? How i have to strat to learn the object ? Anyone can guide me pls .....

I am not sure, but may thoughts is that .seil file is just a list of files. It could be edited by hands or using any otyher third party applications. Also it is nowhere mentioned that this list is saved from webcam.

If you need to load all your saved images to list from directory, you can consider to use DirectoryInfo.GetFiles.

I had manage to create a "avi" video format file that recorded the same item that i learnt from my program using SentiSight. I realise that it still prompt me the same error. May i know why?By the way, this is the code:

we do not need a full source of your code. We just need that you could write a very simple application which will reproduce your issue and send it to us for analysis, because the error you have posted is not common and we need to reproduce it.

Is it possible to let the SDK recognize the object without having it to learn from "avi" video format file? As in can the SDK still able to recognize an object just by learning the object from multiple "jpg" picture format files?

Because as I look into the recognition tutorial, i realise that the program actually needs the help of both "jpg" picture format file and "avi" video format file to be able to recognize thing. So what I am trying to say is that is it possible to recognize the object just by the help of "jpg" picture format file?

as I said in my previous post it is possible. Just start the SESample.exe, and you will see that it is possible to use an image for object learning. Also it is possible to use an image for object recognition.

I'm trying out sentisight SDK 30 days trial. When I was trying to run the c# Foreground/Background Separation tutorial, it gave me this exception: "An error in one of Neurotec modules. Code: -1".

I used the debugger to find out where it went wrong. With the step in and breakpoint functions of visual studio I saw that the exception was thrown after the line:

NVideoReader bgVideoReader = new NVideoReader(videoFileName);

So my guess is that the funcion NVideoReader is responsible. I didn't change anything in the separation tutorial file. Although the tutorial solution was created in the previous version of visual studio, so Visual Studio converted the solution, so I was able to use it in Visual Studio 2008 express edition. I used the Data files for SentiSight Demo and SentiSight SDK Trial to feed to the program.

this error points to the problem when no codecs are installed on the computer. If the data file are used from the archive which is available on our website, then they are using "DivX" style codecs. So DivX codecs should be installed.

If the video is opened with VLC, then it means that codecs are installed. Then it is possible that you are providing wrong path to NVideoReader. Please check that the file exists in the path you are providing to NVideoReader.

learningnewthings wrote:HiCould anyone tell me what is this runtime error means when I debuge the recognition tutorial?

Unable to find an entry point named 'SERecDetailsIsTracked' in DLL 'SentiSight.dll'.

Thank you Best regards,

What programming language are you using?

I am using C# language and runtime error occur when using the SERecognitionDetails.IsTracked property is used. Thank you for the reply. I have another question that is it possible to track out the object after seperation of Foreground and Background without learning the object? Thank you

I am currently doing a project with Sentisight. My project requirement is to extract the information of any Objects that come into the background image.

I would like to know that is there any method to link between Seperation and Recognition? One more question want to seek an advice is that is it possible to extract the Object from the Mask after Seperating the Background and Foreground? As I understand that "255" value in the grid place is the Object in the extracted mask, what is the method for extracting the Object from the Mask? Hope can get advice from you as soon as possible. Thanks in advance.

My project requirement is to extract the information of any Objects that come into the background image.

What information do you want to extract from the object?

I would like to know that is there any method to link between Seperation and Recognition?

There are no such methods.

One more question want to seek an advice is that is it possible to extract the Object from the Mask after Seperating the Background and Foreground? As I understand that "255" value in the grid place is the Object in the extracted mask, what is the method for extracting the Object from the Mask?

Mask does not contain the object. You can find in a documentation of SentiSight that “mask explicitly specifies which pixels of the image present the object and which ones background” – so it is not possible to get an object from mask.

My project requirement is to extract the information of any Objects that come into the background image.

What information do you want to extract from the object?

Thank you very much for your reply. The information like Position of the Object by mean of X and Y coordinate, Area or Size of the Object in pixel. Just want to know how far is the object and how big is the object.

I would like to know what is the purpose of the seperation Model for? Any possible way to extract out the information of Any Object that come into the backgruond image without learning and recognition?

Hope can get some guide from you as soon as possible. Thanks in advance.

The information like Position of the Object by mean of X and Y coordinate, Area or Size of the Object in pixel. Just want to know how far is the object and how big is the object.

It is not possible to get these properties in SentiSight, unless you will implement this by your self. For this you can use connected components to get object area or coordinates, or something else on mask. As SentiSight do not provide functionality to find connected components, it will not be discussed here. More information on connected components you can find here.

I would like to know what is the purpose of the seperation Model for?

Quote from documentation of SentiSight: In order to recognize an object in an image, the appearance of the object should be memorized. The process of memorizing an appearance of the object from images with various poses is called object learning. A set of images containing the object should be provided to the algorithm and the algorithm extracts so called model - a symbolic representation of the object. It is highly recommended to provide information about exact location of the object in the image. This can be done by the image with a mask of the object. Mask explicitly specifies which pixels of the image present the object and which ones background. Thus, only object specific information will be included into model template.

this tutorial shows how to separate foreground (an object) and background. Separation process is intended for automatic mask extraction of the object. More information about this process can be found in Section Foreground/Background Separation from Images in documentation.