forgive me if you think i am asking a stupid question as i am using SentiSight for the first time.But can anyone tell me what is the link between SentiSight and C#? I sincerely need somebody to enlighten me. Thanks.

nohopeliao wrote:hi everyone,
forgive me if you think i am asking a stupid question as i am using SentiSight for the first time.But can anyone tell me what is the link between SentiSight and C#? I sincerely need somebody to enlighten me. Thanks.
nohopeliao wrote:hi all,
i had been a task to do a project by my supervisor to monitor and track motion object using SentiSight SDK. My supervisor just give me the SentiSight folder and tell me to work on it. But my problem is after i search the folder i can't open the application to sentisight. So i want to know what is the application name to open the SentiSight application? thanks a million.![]()
with regards
Nohopeliao
nohopeliao wrote:hi all,
Just want to check if anyone knows why when i open my SentiSight tutorial and debug it, it will just appear a black window screen for a few seconds and will auto stop degugging? Thank you.
nohopeliao wrote:I had this final year project about tracking and monitoring of motion object using SentiSight SDK. How do i get about my webcam to detect foreign objects on a station view? Must i program it to let it learn what is the foreign object first then can detect or can i just let it detect the foreign object witthout learning? Help needed. Thank you.
nohopeliao wrote:Firstly, thank for your reply. My first task is to program to let it detect foreign object and sound a alarm using SentSight first. So as you had said i will need to let it learn first then i can detect the object. So i tried to debug "SESample.vcproj" to learn the code from there. However, it appear a error of "fatal error C1083:Cannot open include file:'wx/wx.h':No such file or directory". I need to know what is this error and is it possible to get "SESample" code to be C# instead of C++? thank you.
Martynas wrote:SentiSight tutorials are Console Applications. Some of them, as Camera Manager, require additional parameters to be passed during execution.
Error 1: The type or namespace name 'Images' does not exist in the namespace 'Neurotec' (are you missing an assembly reference?)
Error :2 The type or namespace name 'Cameras' does not exist in the namespace 'Neurotec' (are you missing an assembly reference?)
nohopeliao wrote:What do you mean by Console Applications? And what do you mean by additional parameters?
nohopeliao wrote:Ihad tried to debug tuturial and it show this two error.:Error 1: The type or namespace name 'Images' does not exist in the namespace 'Neurotec' (are you missing an assembly reference?)Error :2 The type or namespace name 'Cameras' does not exist in the namespace 'Neurotec' (are you missing an assembly reference?)
May i know what are this two error and how can i solve it? Thanks a million.
nohopeliao wrote:I tried and it work well. So my next question is how can i let NeruoTech SentiSight to detect my webcam? And allow it to do photo capturing and perhaps video recording? You have my million thanks..
"A reference to 'D:\Motion Detector\Motion Detector\bin\CameraMan.dll' could not be added. Please make sure that is accessible, and that it is a valid assembly or COM component."
"Error 1: Assembly 'Neurotec.Cameras.CameraMan, Version=1.0.2.3, Culture=neutral, PublicKeyToken=ea4ecf06177ea613' uses 'Neurotec, Version=2.4.5.1, Culture=neutral, PublicKeyToken=ea4ecf06177ea613' which has a higher version than referenced assembly 'Neurotec, Version=2.4.1.1, Culture=neutral, PublicKeyToken=ea4ecf06177ea613'"
"Warning 2: Found conflicts between different versions of the same dependent assembly."
static void Usage()
{
Console.WriteLine("usage:");
Console.WriteLine("\tCameraManager [FrameCount]");
Console.WriteLine("");
Console.WriteLine("\t[FrameCount] - number of frames to capture from each camera to current directory.");
Console.WriteLine("");
}
static void Main(string[] args)
{
string description = ((AssemblyDescriptionAttribute)System.Reflection.Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyDescriptionAttribute), false)[0]).Description;
string version = FileVersionInfo.GetVersionInfo(System.Reflection.Assembly.GetExecutingAssembly().Location).FileVersion;
string copyright = ((AssemblyCopyrightAttribute)System.Reflection.Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCopyrightAttribute), false)[0]).Copyright;
Console.WriteLine("{0}, Version {1}, {2}", description, version, copyright);
if (args.Length < 1)
{
Usage();
}
int frameCount = 0;
if (args.Length >= 1)
{
frameCount = int.Parse(args[0]);
}
CameraMan cameraMan = new CameraMan(null);
foreach (Camera camera in cameraMan.Cameras)
{
CameraVideoFormat videoFormat = camera.VideoFormat;
camera.StartCapturing();
}
NImage testImg = camera.GetCurrentFrame();
pictureBox.Image = testImg.ToBitmap();
Martynas wrote:nohopeliao wrote:hi everyone,
forgive me if you think i am asking a stupid question as i am using SentiSight for the first time.But can anyone tell me what is the link between SentiSight and C#? I sincerely need somebody to enlighten me. Thanks.
Hi,
If you need to use C# programming language to use SentiSight SDK you should use provided .Net wrappers. See the tutorials in tutorials\C# folder to see how it is done.
Martynas wrote:
you should pass captured frames to picturebox constantly. You can use i.e. System.Windows.Form.Timer Tick event to grab a frame and to pass it to picture box.
learningnewthings wrote:
Hi!
May I know what is mean .Net wrappers cuz i m a beginer in programming language. Can anyone tell me .. thx u
nohopeliao wrote:But if i want to use System.Windows.Form.Timer Tick event to pass captured frame to the picturebox constantly, how should i go about doing it?
error: Unable to load DLL 'CameraMan.dll': The specified module could not be found. (Exception from HRESULT:0X8007007E)
nohopeliao wrote:Hi,
i tried to made changes and it did not prompt me error:"Win32 error in one of Neurotec modules.Code:-91". However, it prompt me a new error after these function: "Image = NImage.FromFile(baseDirectory + Filenames[i]);" and the error is these:"Not supported functionality accessed in one of Neurotec modules.Code: -6". What does it mean and how to solve it?
learningnewthings wrote:Hi!
Can it be cause error if the platform is not the same(examlple: CameraManger Tutorial's platform is Active(x86) but when i copy n paste the tutorial into a new project with the Platform:Active(Any CPU) ).
Because there's a msg pop-up when debug the step "CameraMan cameraMan = new CameraMan(null);", althuogh i have added the Neurotec.Camera.CameraMan.dll in the references .....error: Unable to load DLL 'CameraMan.dll': The specified module could not be found. (Exception from HRESULT:0X8007007E)
Anyone can Pls guide me how to slove it . thank a lot![]()
Best regards
String[] Filenames = File.ReadAllLines(@"..\Pic\List\Wallet.seil");
String baseDirectory = @"..\..\Pic\Image\";
SentiSightEngine se = new SentiSightEngine();
uint[] refIds;
SEModel mdl = se.CreateModel();
for (int i = 0; i < Filenames.Length; i += 2)
{
NImage Image, Temp;
NImage[] Mask = new NImage[1];
Image = NImage.FromFile(baseDirectory + Filenames[i]);
}
String[] Filenames = File.ReadAllLines(@"..\Pic\List\Wallet.seil");
String baseDirectory = @"..\..\Pic\Image\";
Image = NImage.FromFile(baseDirectory + Filenames[i]);
learningnewthings wrote:Hi
how to grab frames from the Getcurrentframe() on each Tick event and pass it to picturebox in order to let the picturebox show the stream image before capturing. Pls guide me ..... Thanks
private void timer_Tick(object sender, EventArgs e)
{
NImage image = camera.GetCurrentFrame();
picturebox.Image = image.ToBitmap();
}
nohopeliao wrote:Hi,
I don't think i got wrong. Anyway this is my code:
Becauseis read a 'seil' file of the object and
- Code: Select all
String[] Filenames = File.ReadAllLines(@"..\Pic\List\Wallet.seil");
read 'jpg' file of the same object and
- Code: Select all
String baseDirectory = @"..\..\Pic\Image\";
is to form them to 'Image'. Is my understanding correct? or am i wrong with my explantion?
- Code: Select all
Image = NImage.FromFile(baseDirectory + Filenames[i]);
Best Regard
Nohopeliao
NVideoReader boxVideoReader = new NVideoReader(videoFileName);
and jump to the exception and return the exception error messageAn error in one of the Neurotec modules. Code: -1
String[] Filenames = File.ReadAllLines(@"..\Pic\List\Wallet.seil");
Image = NImage.FromFile(baseDirectory + Filenames[i]);
Users browsing this forum: No registered users and 2 guests