|
Hi All,
I'm testing some software an need a 64 bit version of notepad (if it exists). Especially nice would be a IA64 version.
If someone has it, could you email it to noloader, email account? Before sending to google, rename the file notpepad.exe -> notepad.exe.txt and then zip it.
Jeff
|
|
|
|
|
Hi,
Im doing a project on surveillance applications.I have to identify the prsence of static objects in frames obtained from ip camera.I use VC++ and opencv.Anyone please help with how to identify objects?
|
|
|
|
|
|
this is somewhat like the project that i have to do.but it gives certain erors when added to the code...some files such as "dshow.h" is missing.could you please help me in doing the work?how shoud i proceed.im not allowed to install any other softwares..i use opencv and vc++.Please help.I should also draw bounding boxes as done here.I have to alse track the object to detect its removal from the scene..Please help...............
|
|
|
|
|
Did you install the DirectX SDK as stated in the other article he is referring to in the "Using the code" section ?
|
|
|
|
|
no..i ddnt...should i do that??is it compulsory!!!cant i work that code in opencv and vc++????please help..
|
|
|
|
|
Well, if you had read the article properly and followed the link he gave, you would have seen that you have to install the directX SDK. dshow.h is a DirectX header file.
Why can't you install any other SDK ? That's stupid...
BTW, what is opencv ?
|
|
|
|
|
OpenCV[^] is Open library for Computer Vision. It is open source and was initially funded by Intel.
-Saurabh
|
|
|
|
|
OK - I know very little about this topic, but I remember reading something (likely a few links away from a /. article) about object identification - since the camera was still, two static images taken about 1 second apart could edge-enhanced and then compared to determine what objects in the view are fixed/static and what (if any) are moving. This could be done at certain intervals to detect changes.
Of course, someone/something standing still enough could be detected as a fixed/background object, but nothings perfect...
Peace!
-=- James Please rate this message - let me know if I helped or not!<hr></hr> If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! See DeleteFXPFiles
|
|
|
|
|
comparison comes in the second phase.but how to identify ststic objects?
|
|
|
|
|
If the camera is fixed for the duration of the separate images being compared, static objects will be in the same positions as before.
If your software can identify objects, it can identify where they are and you can delta them to determine if they are moving or fixed.
Peace!
-=- James Please rate this message - let me know if I helped or not!<hr></hr> If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! See DeleteFXPFiles
|
|
|
|
|
You have asked this same question couple of times before also and I already told you it is a hard problem. You can't solve the problem by endless loop of trying one code after the other hoping to find something that works for you. You have to think clearly about your problem. Look at the video you have to test this on, Is anything special about the video? Is the object you want to detect is of skin color, or does its appearance change over time or does it remain same? Appearance can be color, texture or the shape. Once you can answer those question then you should ask how can I extract an object of a particular shape and color from an image.
This is your only hope. Trust me on this. I am doing PhD in computer vision and have faced these problems myself so I know what I am talking about.
-Saurabh
|
|
|
|
|
Also, make sure the person telling you to do this has a clear idea of what they want you to do, and why. I say this because, a surveillance operation that detects static objects sounds like a total waste of time -- it is SO MUCH MORE efficient to detect moving objects than analyze every part of the static photo to make sure that it didn't change!
For example, one matrix difference equation = you're done, vs some sort of sobel algorithm (edge detection) then maybe threshold operations for the right luminance, area calculations to make sure you're not tracking the right-color single pixels, etc. then perhaps a comparison to the previous objects you found... well that's the naive approach, I am not quite a PhD in machine vision.
|
|
|
|
|
Such exercises are not always waste of time, they are great way to learn. I suspect that he is doing this for some kind of course project. Simple differencing with thresholding seldom works well, because typically there is lot of noise in the images. So you have to use dilation followed by erosion to consolidate the object of interest. In my opinion the better way is to clearly define the object and then try to extract it from the image rather then differencing and considering say largest group of pixels is the object.
-Saurabh
|
|
|
|
|
I think i can concentrte on shape of objects to extract it.i tried with detecting square shaped objects.but the function displays only those objects that face the camera.other square shaped objects are not identified.As one of u said..it is a very difficult one.im doing this as my final project.Could you please help me in identifying the objects.
As mentioned earlier should i just use dilate and erode functions to identify objects?please help with any solution....
|
|
|
|
|
any further help on this topic?
|
|
|
|
|
hi one and all,
iam having a problem with accessing serial port in my pc. i have developed an application which access the serial port in VC++ 6.0.After configuring the Serial port to 115200, iam able to send the data to the com port using WriteFile().But, iam unable to receive the data from the com port through ReadFile() operation and i have checked the error by using GetLastError() and it is given as 995(system error code).Even though i have restarted my system several times,iam unable to debug.
Please help me why this error is getting and how to fix this error?
Thanks in advance
Regards,
Praveen
modified on Monday, June 9, 2008 8:23 AM
|
|
|
|
|
Cross post: http://www.codeproject.com/script/Forums/View.aspx?fid=1648&msg=2588888[^], please don't do it.
BTW why didn't you post the relevant code, as I suggested?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
Iam calling this function for capturing data. The ReadFile() returns 0 value and GetLastError() gives error 995
bool CSerialPort::bReceiveBytes( unsigned char* x_pcBuffer,
unsigned short x_usLengthExpected,
unsigned short *x_pusLengthReceived )
{
bool bResult = FALSE;
unsigned long ulLengthReceived=0;
int iResult;
iResult = ReadFile( m_comPortHandle,
x_pcBuffer[0],
x_usLengthExpected,
&ulLengthReceived,
NULL );
DWORD err1 = GetLastError();
*x_pusLengthReceived = (unsigned short)ulLengthReceived;
return( bResult );
}
|
|
|
|
|
pra84veen wrote: x_pcBuffer[0]
The above is wrong: you should use x_pcBuffer instead.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
hello, thanks for your reply...
even though if i replace x_pcBuffer instead of x_pcBuffer[0], i dint get any data into the buffer. but here the return values for ReadFile is 1 but iam unable to capture the data..
Thanks & Regards,
praveen
|
|
|
|
|
When return value is 1, ReadFile succeeded. What is the value of ulLengthReceived ?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
the value received by the ulLengthReceived is 0.
void CER2TSerialDlg::OnStartThread()
{
CWinThread *pThread = NULL;
m_SerialCommn->bOpen()
pThread = AfxBeginThread((AFX_THREADPROC)ReadFromModuleThread,NULL);
}
UINT CER2TSerialDlg::ReadFromModuleThread(LPVOID pPARAM)
{
unsigned char ucLengthExpected=10;
char chBuffer[FIFO_SIZE]={0};
unsigned short usReceived=0;
while(TRUE)
{
m_SerialCommn->bReceiveBytes(chBuffer,ucLengthExpected,&usReceived);
}
return 0;
}
bool CSerialPort::bReceiveBytes(char* x_pcBuffer,
unsigned short x_usLengthExpected,
unsigned short *x_pusLengthReceived )
{
unsigned long ulLengthReceived=0;
int iResult;
iResult = ReadFile(m_comPortHandle,
x_pcBuffer[0],
x_usLengthExpected,
ulLengthReceived,
NULL );
DWORD err1 = GetLastError();
*x_pusLengthReceived = (unsigned short)ulLengthReceived;
return( iResult );
}/
Regards
praveen
modified on Wednesday, June 11, 2008 1:48 AM
|
|
|
|
|
pra84veen wrote: iResult = ReadFile(m_comPortHandle,
x_pcBuffer[0],
x_usLengthExpected,
ulLengthReceived,
NULL );
That's completely wrong (compiler doesn't complain, does it?). Should be:
ReadFile(m_comPortHandle,
x_pcBuffer,
x_usLengthExpected,
&ulLengthReceived,
NULL );
Please note the ampersand in front of ulLengthReceived .
BTW: How did you set serial port timeouts?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
Even after modification also, iam not able to collect the data
The serial port timeouts are
GetCommTimeouts(m_comPortHandle, &sCommTimeOuts);
sCommTimeOuts.ReadIntervalTimeout = 5;
sCommTimeOuts.ReadTotalTimeoutMultiplier = 1;
sCommTimeOuts.ReadTotalTimeoutConstant = 1;
sCommTimeOuts.WriteTotalTimeoutMultiplier = 1;
sCommTimeOuts.WriteTotalTimeoutConstant = 1;
SetCommTimeouts(m_comPortHandle, &sCommTimeOuts);
Thanks & Regards,
Praveen
|
|
|
|