I am writing an application with Windows forms which has to enable user to select a webcam connected to his computer via USB and print the video stream in the window. I need to get some of the frames (let say every 5th frame, but it depends on fps I get) and search it for an graphic object that was defined earlier by the user.
As I am new to c# and Visual Studio I was searching for an example of an application similar to what I want to do. I found a few examples on AForgery, but I would like to print original video with just added a few markers on it and AForgery gives me processed frames. Also, when I aded simple processing in the receving new frame event, the performace was pretty bad. I tried the WIA and what I get is an error when I try to call device selection dialog.
Device dev = dialog.ShowSelectDevice(WiaDeviceType.CameraDeviceType,true,false);
What I get is HRESULT exception with error code 0x80210015. I am not sure if WIA is exactly what I need, but because of this error I can't check it.
I need help with selecting the best video stream fiting that kind of application and the more I search, the more I am confused. I do not need to send video over IP or save it. I just need to present the video stream from the camera and sometimes get a frame (the best would be RGB) for processing. I would appreciate any suggestions on stream selecting or linking documentations/examples.
i have been doing all of procedure like this tutorial..
when program running..no error happend..
when i try run my program that i made, error happend
error program is = "axMathworks_Strip1.AddXY(0, a, Convert.ToDouble(textBox1.Text));"
this is a full program
public partial class Form1 : Form
i am still not understand..
why this coding error
"axMathworks_Strip1.AddXY(0, a, Convert.ToDouble(textBox1.Text));"
in video tutorial, error is not happening???
Convert.ToDouble(textBox1.Text)); error in this section....
and your coding
if (double.TryParse(txtBox1.Text, out coordinate)
axMathworks_Strip1.AddXY(0, a, coordinate);
i add "a++" when i run, the program successfully executed....can u give me short explanation...sorry for my english..
The reason my version works and yours didn't is because of what TryParse does. Basically, if it cannot parse the value into a double then it will not execute the Add section. Using Convert.ToDouble will throw an exception if it cannot convert the value.
I'm assuming it be due to the textbox value. Some countries use a dot as decimal seperator, others use a comma. In the background of the code this is not so. (always dot). To make sure that your textbox value parses to a double correctly look into the double.TryParse function.
in that case you better start by picking a C# book and start reading from the start. This is very basic stuff.
A textbox gives the user's input as a piece of text, a string. a double is a certain type of number. Your computer is a machine and it only know 0 and 1. In this case the function expects a double, which is represented as a different series of 0 and 1's than a string, hence it doesn't understand the input. To make the input change from text to double you need to "parse" it. (parsing is like converting, you change the text value 1.123 into a double number 1.123 which is represented differently), but the "parsing" function makes some "assumptions" on the text it is given. (decimal operator is a . or , eg).
int, bool, double, float, string, char, ... they're all represented differently in the machine.
hope this clarifies things, but take the first sentence as advice, please.
This is best accomplished by syndicating dot-com portals and embracing real-time platforms in order to deploy turn-key e-commerce solutions. Assuming iterated e-business convergence, morphing enterprise solutions to generate clicks-and-mortar e-services will likely result in envisioneer B2C experiences. I recommend you innovate WAP Enabled e-markets in order to synthesize end-to-end content. Relevant B2C web-readiness models connected to disintermediate global infomediaries will allow you to exploit geo-processing services.
Further, if you mesh real-time monitoring niches and empower distributed partnerships, you will be in a position to seize B2C solutions. Growing out-of-the-box L-markets and enhanced scalable supply-chains are another way to reinvent value-added channels. I recommend streamlining asset tracking bandwidth and strategizing dynamic functionalities so that you can extend proactive mindshare. In my experience, transitioning next-generation infrastructures and maximizing integrated Related Interoperability are valuable endeavours.
IMHO, it's important to seek Bird-Dog visionary convergence and drive best-of-breed architectures to leverage frictionless methodologies. I also recommend you utilize killer channels, synergize e-business programs and reinvent impactful experiences. Scaling mobile programs and vision-oriented, well-modulated superstructures will enable an integrated heuristic application.
Hii thanks for reply but i have already developed service who process this thing but i want to create multiple instance of the service to load balance the queue of messages but its takes too much memory size and dbo operation which slow down my server speed and work and affects other services and site some time it shutdown whole server if queue is high i mean in billions so what will be the best way to accomplish this things.
Thar really depends on what you're using for your queuing, but you really should look at distributing the queue across multiple redundant balanced nodes. You might want to consider Azure or Service Bus Queues. This[^] should get you started.
The code really depends on which route you go, but you're concentrating on the wrong part. The issue is how you lay out the architecture - you need to decide that long before you even touch the code. You need to be aware of such things as do you want to support polling? How is the redundancy going to be handled? Do you need transactional support on your messages? These, and many more things, are the things you have to sort out first.
Multiple connections to a server or shared resource by the same user, using more than one user name, are not allowed. Disconnect all previous connections to the server or shared resource and try again
I am running Net use * /delete /y also but still I am getting this error whenever I use a different user than previous user
background:- Actually I am trying to excute a command in remote computer and read the command output from a text file. for that I am using wsnet connection by establishing a connection and through unc path \\10.210.1.1\C$:\output.txt , I am reading the output back. and then disconnecting the connection ... even if the connection is not properly closed, I am making sure to execute Net use * /delete /y command in my local system to delete all the existing connection on , but even after doing this if I use a different user I get this exception while connecting using WSNET in C# Multiple connections to a server or shared resource by the same user, using more than one user name, are not allowed. Disconnect all previous connections to the server or shared resource and try again
Not as a generic rule, no - you could try iterating though it's child windows looking for appropriately named items, and post a WM_CLOSE message, but there is no guarantee that: a) It'll work, b) It'll find them all, or c) The app won't crash or otherwise misbehave as a result.
Seriously? If you need to do this, you're probably better redesigning the application if you can.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
Last Visit: 31-Dec-99 18:00 Last Update: 20-Sep-14 5:28