Hi,
I'm completely new to DirectX in CS, so if my question is too advanced
for a simple answer, could someone point me at some good tutorials?
Thanks...
Im using http://www.codeproject.com/cs/media/directxcapture.asp to
capture video input from a webcam. Thats all working fine :)
What I want to do is draw lines/shapes over the image.
I'm actually doing some image processing/object tracking and I need to
draw a crosshair over the image to indicate where my software thinks its
located something.
Whats the best way to do this? Im guessing DirectDraw, but how do I go
about drawing lines over the image received from the webcam?
If you think the method in the given url is pants and have a better
idea, I'm open to all suggestions!
Thanks a lot for any help :)
Regards,
Andrew 2 3496
"Andrew Bullock" <an************ *********@ANDnt lworldTHIS.com> wrote in
message news:Lo******** ********@newsfe 2-gui.ntli.net... Hi,
I'm completely new to DirectX in CS, so if my question is too advanced for a simple answer, could someone point me at some good tutorials? Thanks...
Im using http://www.codeproject.com/cs/media/directxcapture.asp to capture video input from a webcam. Thats all working fine :)
What I want to do is draw lines/shapes over the image.
I'm actually doing some image processing/object tracking and I need to draw a crosshair over the image to indicate where my software thinks its located something.
Whats the best way to do this? Im guessing DirectDraw, but how do I go about drawing lines over the image received from the webcam?
If you think the method in the given url is pants and have a better idea, I'm open to all suggestions!
Ask in microsoft.publi c.win32.program mer.directx.vid eo. There are ways to
draw to the video frames as they come through. I think you could use the
sample grabber and modify the buffer of each frame as it comes through, or
there are other filters you can use that allow you to modify each frame.
Otherwise you could write a custom filter to do this.
Michael
Michael C wrote: "Andrew Bullock" <an************ *********@ANDnt lworldTHIS.com> wrote in message news:Lo******** ********@newsfe 2-gui.ntli.net... Hi,
I'm completely new to DirectX in CS, so if my question is too advanced for a simple answer, could someone point me at some good tutorials? Thanks...
Im using http://www.codeproject.com/cs/media/directxcapture.asp to capture video input from a webcam. Thats all working fine :)
What I want to do is draw lines/shapes over the image.
I'm actually doing some image processing/object tracking and I need to draw a crosshair over the image to indicate where my software thinks its located something.
Whats the best way to do this? Im guessing DirectDraw, but how do I go about drawing lines over the image received from the webcam?
If you think the method in the given url is pants and have a better idea, I'm open to all suggestions!
Ask in microsoft.publi c.win32.program mer.directx.vid eo. There are ways to draw to the video frames as they come through. I think you could use the sample grabber and modify the buffer of each frame as it comes through, or there are other filters you can use that allow you to modify each frame. Otherwise you could write a custom filter to do this.
Michael
Ace thanks :)
Andrew This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: kastillo |
last post by:
Im trying to install directx 9.0 c , but i simply cant . When i run the installer it just says " The installed components are ready to use". This is the report on directx.log :
09/10/05 23:24:44: dsetup32: === SetupForDirectX() start ===
09/10/05 23:24:44: dsetup32: DXSetupCommand = 0.
09/10/05 23:24:44: DXSetup: DSetupCallback(): Phase = 0, Steps = 0
09/10/05 23:24:44: dsetup32: DirectXSetupIsJapanese == 0
09/10/05 23:24:44: dsetup32:...
|
by: Akkadian123 |
last post by:
Hi guys,
I'm a student of c#, and I was wondering how one would take advantage of
multimedia in most c# apps/games. I assume one would use directx9, since there
doesn't seem to be any support for audio, video, etc in c# itself (correct me
if im wrong there).
What is the best way to learn directX, especially for c#? Can anyone recommend
any good books?
|
by: Michael Mayer |
last post by:
First of all, sorry for the cross-post. Seems like there should be a
managed directx newsgroup.
I'm trying to open the following sample application that comes with the
DirectX SDK.
C:\DXSDK\Samples\C#\AudioVideo\Bin\csAVPlayer.exe
It will not play some of the samples shipped with the SDK. It either
completey hangs the application (and I have to use Windows Task Manager to
kill it) or sometimes it displays an error message. Below...
|
by: ammd |
last post by:
Hi, I installed Microsoft DirectX 9.0 SDK (Summer 2004) but when I create a project and try to add the necessary references I can't find them. Does anybody know where to look for them? BTW, I have VS 2002. Don't know if there's an incompatibility issue. Thanks.
|
by: Diego_Atos |
last post by:
I want to create objects using directX. I downloaded SDK version of
DirectX. I've installed it.
Which is the right dll to add to references?
I can't find it.
thanks
--
-Diego (Atos)-
| |
by: Junaid Hussain |
last post by:
Hi,
I am thinking about developing a 3D pool game in C# using DirectX, however
when I compile a C# at the command prompt using; csc PoolGame.cs , I get the
following error message;
The type or namespace name 'DirectX' does not exist in the class or
namespace 'Microsoft' (are you missing an assembly reference?)
Im not sure why it says this because I have DirectX 9.0 installed ??
|
by: Mike P |
last post by:
Problems, problems...
Im trying to create DirectX Projects within C# and to also look at the
latest DirectX C# Samples.
I have just installed MS Visual C# .net Standard Edition on my Windows XP
Pro PC and I then installed the full DirectX 9.0 SDK (Summer 2004) & then the
latest DirectX 9.0 SDK (Feb 2005)
Spent several hours doing all this but there are NO DirectX C# sample
|
by: Harvey Cohen |
last post by:
Hello all,
I have some C# code that implements calls to DirectX.DirectSound. It
compiles under both VS .NET 2003 and VS 2005 and runs under VS .NET 2003
and VS 2005 on a Compaq laptop (Windows XP Home), a Dell Xeon
workstation (Windows XP Pro) and a Gateway GM 825 (Windows XP Media
Center). It also runs on the Dell and the Compaq under VS 2005, but
when I attempt to run the code under VS 2005 on the Gateway (Windows XP
MCE), I get...
|
by: Jessica Weiner |
last post by:
I am writing an application in C# which need to plot graphs and simple
shapes (polygons, circles, squares etc). Which library is better for this
purpose and why? Thanks.
|
by: raylopez99 |
last post by:
I just downloaded the apparently free SDK for DirectX 9, all 200+ MB
of it, but as I read about WPF I wonder: is DirectX obsolete? Should
I even bother learning how to use it? After all, the end user must
have the DirectX library installed on their PC before they can use any
video playing program you write.
Does WPF even use DirectX? Or are the functions of DirectX (mostly
video and graphics stuff, possibly accelerated via software...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |