Click here to Skip to main content
15,889,360 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CreateProcess problem. Pin
david bagaturia20-May-07 21:20
david bagaturia20-May-07 21:20 
GeneralRe: CreateProcess problem. Pin
dharani20-May-07 21:28
dharani20-May-07 21:28 
GeneralRe: CreateProcess problem. Pin
david bagaturia20-May-07 21:33
david bagaturia20-May-07 21:33 
AnswerRe: CreateProcess problem. Pin
Stephen Hewitt20-May-07 21:51
Stephen Hewitt20-May-07 21:51 
GeneralRe: CreateProcess problem. Pin
david bagaturia20-May-07 22:46
david bagaturia20-May-07 22:46 
QuestionMotion Detection in VC++ Pin
tyagineha20-May-07 20:02
tyagineha20-May-07 20:02 
AnswerRe: Motion Detection in VC++ Pin
bankai12320-May-07 21:59
bankai12320-May-07 21:59 
GeneralRe: Motion Detection in VC++ Pin
tyagineha20-May-07 22:35
tyagineha20-May-07 22:35 
i have used following four functions for motion detection part only:
1)AdjustMotionDetectPrecision()
2)SetupMotionDetection()
3)StartMotionDetection()
4)MotionAnalyzer()
using these four functions,motion detected has started.
but i dnt knw how to start recording????
i m sending u some code :

here it is::::

if(frameType > 0)
{
if(frameType == PktSysHeader)
{

memcpy(FileHeader[channelNum], DataBuf, Length);
FileHeaderLen = Length;
}

if(frameType == PktIFrames || frameType ==PktSubIFrames)
{
status = 1;
}
else
{
status = 0;
}
if(frameType == PktMotionDetection)
{
int result[4];
if(bOverlayMode)
{
hkdlg->m_VideoWin.DrawVectEx(channelNum, (char *)DataBuf);
}
else
{
hkdlg->m_bMoving[channelNum] = TRUE;
memcpy(motionData[channelNum],(char*)DataBuf,Length);
}
MotionAnalyzer(ChannelHandle[channelNum],(char*)DataBuf,15,result);
if((result[0] + result[1] + result[2] + result[3]))
{
if (channelNum ==0)
TRACE("!!!!!!!CH=%d motion detect result is %d %d %d %d\n",channelNum,result[0],\
result[1],result[2],result[3]);
//The function Trigger() do the following operation: write the video&audio data which are before the motion frame to file

if(!hkdlg->baftermotion[channelNum])
alarmFile[channelNum].Trigger(gFileHandle[channelNum]);

//when the motion frame returns,clear ualreadywriteframes[channelNum] and set it as 0 ,be ready for writing the video&audio data after motion

hkdlg->ualreadywriteframes[channelNum]=0;
hkdlg->baftermotion[channelNum]=TRUE;
}

return 0;
}
if(frameType == PktOrigImage)
{
return 0;
}


In this code should i start recording after motionanalyser() function?????????????



Neha
AnswerRe: Motion Detection in VC++ Pin
Hamid_RT22-May-07 19:23
Hamid_RT22-May-07 19:23 
QuestionDisable sounds Pin
rrrado20-May-07 19:53
rrrado20-May-07 19:53 
AnswerRe: Disable sounds Pin
Hamid_RT20-May-07 20:09
Hamid_RT20-May-07 20:09 
GeneralRe: Disable sounds Pin
rrrado20-May-07 20:12
rrrado20-May-07 20:12 
GeneralRe: Disable sounds Pin
David Crow21-May-07 3:36
David Crow21-May-07 3:36 
AnswerRe: Disable sounds Pin
zhang80060520-May-07 20:59
zhang80060520-May-07 20:59 
GeneralRe: Disable sounds Pin
rrrado20-May-07 21:26
rrrado20-May-07 21:26 
GeneralRe: Disable sounds Pin
zhang80060521-May-07 0:10
zhang80060521-May-07 0:10 
GeneralRe: Disable sounds Pin
rrrado21-May-07 22:21
rrrado21-May-07 22:21 
QuestionHow to get word capture from another application using hooks concepts? Pin
A.Venkata ramana20-May-07 19:27
A.Venkata ramana20-May-07 19:27 
QuestionRe: How to get word capture from another application using hooks concepts? Pin
Rajesh R Subramanian20-May-07 20:01
professionalRajesh R Subramanian20-May-07 20:01 
QuestionSoftware failing when distributed Pin
Stick^20-May-07 18:00
Stick^20-May-07 18:00 
AnswerRe: Software failing when distributed Pin
rrrado20-May-07 20:17
rrrado20-May-07 20:17 
GeneralRe: Software failing when distributed Pin
Stick^20-May-07 21:50
Stick^20-May-07 21:50 
AnswerRe: Software failing when distributed Pin
Ravi Bhavnani20-May-07 20:24
professionalRavi Bhavnani20-May-07 20:24 
GeneralRe: Software failing when distributed Pin
Stick^20-May-07 21:57
Stick^20-May-07 21:57 
AnswerRe: Software failing when distributed Pin
Hamid_RT20-May-07 21:51
Hamid_RT20-May-07 21:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.