|
All options have some cost associated with them.
Even if you tethered a cell phone, you would still need to pay for the phone line and SMS service.
Director of Transmogrification Services
Shinobi of Query Language
Master of Yoda Conditional
|
|
|
|
|
I love getting down-voted for telling the truth.
Director of Transmogrification Services
Shinobi of Query Language
Master of Yoda Conditional
|
|
|
|
|
I have a program that does color tracking from webcam, my question is it possible to do this tracking also in a previously recorded video.
the code uses a combo box to tell which webcam to use the image:
VideoCaptureDevices videosource = new VideoCaptureDevices (videoDevices [cameraCombobox.selectedIndex] .MonikerSting);
the webcam image is played in the VideoSourcePlayer and a "newframe" event has the color tracking code.
but I wanted to play a video saved on the computer in VideoSourcePlayer, so yes activate the event "newframe", so I tried to put a url
VideoCaptureDevices videosource = new VideoCaptureDevices (@ "url");
the program did not raise an exception, however, nothing is played in VideoSourcePlayer and therefore, nothing happens.
Is there any way to play a video from the computer in VideoSourcePlayer? What can I do?
OBS: I'm sorry for the English of google translator.
CODE:
videoSourcePlayer1.SignalToStop();
videoSourcePlayer1.WaitForStop();
videoSourcePlayer2.SignalToStop();
videoSourcePlayer2.WaitForStop();
videoSourcePlayer3.SignalToStop();
videoSourcePlayer3.WaitForStop();
VideoCaptureDevice videoSource = new VideoCaptureDevice(videoDevices(videoDevices[camerasCombo.SelectedIndex].MonikerString));
videoSource.DesiredFrameSize = new Size(400, 300);
videoSource.DesiredFrameRate = 12;
videoSourcePlayer1.VideoSource = videoSource;
videoSourcePlayer1.Start();
videoSourcePlayer2.VideoSource = videoSource;
videoSourcePlayer2.Start();
videoSourcePlayer3.VideoSource = videoSource;
videoSourcePlayer3.Start();
|
|
|
|
|
You need some class for reading video files, e.g. Accord.Video.FFMPEG.VideoFileReader of the Accord framework. Then you can get the individual frames of the video.
Oh sanctissimi Wilhelmus, Theodorus, et Fredericus!
|
|
|
|
|
How to connect a mobile phone camera into asp.net c# webapplication without using a usb cable. the mobile camera visual streaming into the c# webapplication lively.
Thanks in Advance.
|
|
|
|
|
Bluetooth.
"Never attribute to malice that which can be explained by stupidity."
- Hanlon's Razor
|
|
|
|
|
Probably, you can't.
The C# code of a webapp ruins on the server, never on the client - the client code runs on the browser, so it is probably in Javascript. And you can't connect the client mobile phone directly to your server because it is quite possibly thousands of miles away.
You can use the camera in HTML5, provided it is already connected to the client computer, but treh client will have to deal with that bit.
Capturing Audio & Video in HTML5 - HTML5 Rocks[^] may help, if not - google.
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
OriginalGriff wrote: The C# code of a webapp ruins on the server I see, it is by design then.
|
|
|
|
|
A touch Freudian, that...
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
I would like to mantain a certain solution as it is and to work on successive version of the same in different folders with different names. I tried but I found this very complicated and mainly annoying very much. For sure I did the wrong way.
Is there a procedure?
|
|
|
|
|
The normal way to work with multiple versions of the same codebase is to use a source control management system such as GIT[^].
This space for rent
|
|
|
|
|
Pete is absolutely right - GIT is the way to go.
You may find this helpful: Getting started with GIT, Visual Studio, and BitBucket[^] - most of it should be very similar for GitHub if you use that instead.
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Hello friends. I'm learning c # programming language. I want to do something. How do I delete a folder and subfolders by creating a loop.I would appreciate it if you could help.
|
|
|
|
|
|
You may also want to look into this thing called "recursion".
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
This can be done entirely without recursion.
This space for rent
|
|
|
|
|
Pete O'Hanlon wrote: This can be done entirely without recursion. Cool. Got a link?
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
I don't want to give the OP the solution but the code relies on the fact that ```Directory.GetDirectories``` and ```Directory.GetFiles``` both allow you to return entries from subdirectories using ```SearchOptions```.
This space for rent
|
|
|
|
|
Thanks for the explanation
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
Hi I am new to c# coding and I am having problems with some basic things I keep getting error codes CS1519,CS1031,CS8124
Console.writeline("Hello and welcome to the number guessing game!");
|
|
|
|
|
C# is a case sensitive language: which means that Console is not the same thing as console - and that applies to everything. UPPERCASE and lowercase characters are considered to be very different. If you create a variable called MyString then you can't use it by typing mystring , myString , Mystring , or any other variation.
In this case, your code is trying to call a method called WriteLine and the case sensitivity is catching you:
Console.WriteLine("Hello and welcome to the number guessing game!"); Should get rid of those errors.
But the error numbers you are getting implies there are a lot of other errors there, which we can't see - remember that we can't see your screen, access your HDD, or read your mind; we only get exactly what you type to work with - which are "forcing" error to come up on that line.
Chances are you need to look closely at the first line that an error is being reported on and see what the error message says as it may be causing other problems.
A valid C# file should look something like this:
using System;
using ... other namespaces being used ...
namespace MyNamespaceName
{
static class MyProgramName
{
static void Main()
{
...
}
}
} So if yours doesn't that may be a problem.
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Hello, I'm pretty new to C#, it is one of my subjects of my studies this semester, so thanks for beeing patient
I was trying to make the card game Black Jack for one of my assignments, but I have reached a problem which i don't know how to fix without getting a horribly long code.
I have put in a couple of picture boxes for the card pictures to load into, and when I Click the "Hit" button, I want the card that is choosen at random to be loaded into picbox1, next time i press it i want it to load to picbox2 and so on...
But I have no idea how to code the method to know which picbox to load into
here's a picture of my layout:
<"https://imgur.com/a/zbucNcB">
Sorry if I made any mistakes explaining, It's my first time posting here.
many thanks in advance for any help!
modified 4-Oct-18 17:11pm.
|
|
|
|
|
I would have collection of containers (pictureboxes) when you hit create a new container, add the card image and add the container to the collection.
Your UI should be able to display the collection of containers (listbox etc) rather than a limited number of containers.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Thank you for your reply!! It's late here right now, but I'll read up on it tomorrow after lectures to see how it works!
|
|
|
|
|
1. keep a list of PictureBoxes.
2. use an integer counter variable as an index to the next PictureBox to be used.
3. reset the index when needed.
«Where is the Life we have lost in living? Where is the wisdom we have lost in knowledge? Where is the knowledge we have lost in information?» T. S. Elliot
|
|
|
|