473,698 Members | 2,005 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

directX

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
May 7 '06 #1
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
May 8 '06 #2
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
May 8 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
36817
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:...
2
8013
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?
2
2927
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...
6
7134
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.
2
5250
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)-
4
9098
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 ??
9
7480
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
0
2941
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...
14
2651
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.
11
3460
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...
0
8671
marktang
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...
0
8598
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,...
0
9152
Oralloy
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...
1
8887
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,...
0
8856
tracyyun
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...
0
4360
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...
0
4613
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3037
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
2
2321
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.