About Surveillance / SubjectAppered and ImageCaptured

General information about Neurotechnology and its software

About Surveillance / SubjectAppered and ImageCaptured

Postby demirsoy » Mar 15, 2017 12:05

Hello,

I have a trouble of getting face image of subject given by OnSubjectAppeared and also image of camera given by OnImageCaptured. I just want to these as bitmap so that i can use it.

When I look at simple code of sentiveillance, i can get what i want from :
Code: Select all
Surveillance.ImageCaptured += ForwardSurveillanceEvent;
Surveillance.SubjectAppeared += ForwardSurveillanceEvent;
Surveillance.SubjectTrack += ForwardSurveillanceEvent;
Surveillance.SubjectDisappeared += ForwardSurveillanceEvent;


However in SubjectAppeared, there is a property named as image but it gets all the time null.

Code: Select all
private void OnSubjectAppeared(SurveillanceEventData e)
{
            //There is e.Image, but null
}


About this issue, if you can help me I"ll be very pleased.

Thanks in advance.


What I"m working on is => SentiVeillance_5_0_SDK_TrialSamplesSurveillanceCSSimpleSurveillanceSampleCS


Regards.
demirsoy
 
Posts: 1
Joined: Mar 15, 2017 11:57

Re: About Surveillance / SubjectAppered and ImageCaptured

Postby MartynasV » Mar 17, 2017 10:24

Hello,

You can get bitmap image this way:
Code: Select all
e.Image.ToBitmap(); // Image is NImage type


In SimpleSurveillanceSampleCS, in CountSubjects.cs form, in "private void ForwardSurveillanceEvent(object sender, NSurveillanceEventArgs e)" method, when case is "NSurveillanceEventType.SubjectAppeared" you can get image this way:
Code: Select all
e.EventDetails.OriginalImage
Martynas V
Neurotechnology
MartynasV
Neurotechnology
 
Posts: 259
Joined: Feb 27, 2015 11:24
Location: Vilnius, Lithuania


Return to Public

Who is online

Users browsing this forum: No registered users and 2 guests