Detecting Red Spots?
Apr 26, 2009
I have a camera with a LiveView function (images aren�t snapped, but they are directly sent to my computer), which I managed to connect with VB.net, so I have got the image in a picture box on my form.The next thing I want to do, is to gather 3 spots from the image... The spots are all red, something very similar to #FF0000 (it is a camera + lights, etc... some tolerance needed). So, can anyone help me here?
I think the working "check list" could be something like this:
- Get red, green and blue channels separated
- Change green and blue into gray scale (100% blue / green = black, 0% b / g = transparent)
- Put these b / g both into 50% alpha and put them over the red (which means where is both green and blue = black, only one of them = 50% alpha black, none = transparent)
- Somehow select the areas with most red
- Get center of these areas - my points
View 12 Replies
ADVERTISEMENT
Mar 11, 2010
I'm trying to find a way to darken an image that can later have certain spots undarkened. I have tried by simply drawing a semi-translucent rectangle over the image, but I cannot figure out how to relighten a selected spot.
View 1 Replies
Jul 9, 2009
I have a binary image (Black/White) that showing several white spots (3 to 4 spots). Is there any method to identify the position (coordinate) for every white spot.
View 1 Replies
Dec 11, 2011
I m design a media player in vb.net..now i play 1Gb video movie.. i want to set the commercial time like every 15 mint my video automatically stop and some commercials play automatically after complete commercials my video[code]...
View 6 Replies
Sep 15, 2009
I am writing a program that expands the usage of the clipboard, but I need to tell when the user has either cut, copied, or pasted something so I can write code accordingly to that. I need to know how I can check to see when the user has entered a command like this.
View 2 Replies
Aug 1, 2011
I do not understand why this is not being detected.when I do a test in the immed it comes back true for a match, but the code never run's.[code]
View 2 Replies
Jan 26, 2012
I have a query I am creating a Window App in vb.net (4.0) in which I have to use multiple databases although all databases are same with same db structure & stored procedures,just names are different. In the very starting of application, I need to give a option to the user that these are available db & user will select which one to connect & use.
So is it possible to detect how many db are available in the SQL Server through vb.net & how can achieve this (to provide options to the user) What would be the best approach?
View 3 Replies
May 4, 2010
I have worked with PHP and other programming languages but I am new to VB. I want to write an application that is run manually every day, and each time it is run it checks for modified and newly created files in a particular folder
View 4 Replies
Jun 6, 2011
i want to detect if listview has been updated
eg: there are listview1,listview2 and a button1 .u can send items to listview2 from listview1 .if the listview2 has an item button1 will enable if the listview2 is empty button1 will disable
what is the suitable event for this?? (there is an event called BindingContextChanged is it the suitable event?if so how to use it??)
View 1 Replies
May 7, 2009
In the app we use a third party dll for looking up names and addresses.This resides in the system32 directory.Before I try and access this dll I need to be able to find out if it has been registered on the PC.So in short does anyone know the code to be able to check if a dll has been registered in the registry?
View 1 Replies
Aug 16, 2011
I am facing problem while in detecting the multiple key combinations ..here is my cod
Private Function keyboardCallBack(ByVal nCode As Integer, ByVal wParam As Integer, ByVal lParam As IntPtr) As IntPtr
[code].....
View 1 Replies
Sep 13, 2009
I was just wondering if it was possible to make vb 2008 detect if there is or is not sound.As in my project i want vb to detect when a video has stopped playing and then do something else. So i waqs thinking maybe i could detect when sound has stopped and then perform my other actions..
View 1 Replies
Dec 9, 2010
How do I detect a ctrl+tab keypress?
Reason for asking: I want to stop a user from changing tabs in a tab control.
View 1 Replies
Mar 7, 2011
I want to be able to detect when the user presses F10 or Ctrl+F10 outside of my program, and upon receiving the key press, it will send text to whatever they currently have selected (e.g. a text box). How can this be accomplished in the simplest way?
View 3 Replies
Jul 22, 2010
How do i detect ( ' and " or better still any char which sql cannot read)in textbox. this is my NOT working code there are codes before else if and after else so ya ...
[Code]....
View 5 Replies
Jun 6, 2011
I'm trying to set up a timer that counts up to ten and starts/resets when the left mouse button is clicked (anywhere on the screen even when the application is in the background). I'm struggling to find a code that suggests it is possible and now I am starting to wonder even if it is possible in VB?
View 4 Replies
Feb 2, 2012
I need to know the status of the mouse whether it is moving or being idle. How can I do that?
I have tried with form's mouse move event but, it doesn't work if the mouse is on any control.
View 5 Replies
Feb 24, 2010
I have an Access 2007 database that runs constantly, the form on the database basically runs a timer every 10 seconds and runs a Macro. The problem I have is that when the backups run at night the network connection the database is on disconnects for the backup, so the database crashes with the error.
"Your Network Access was interrupted. To continue, close this database, and then open it again."
What I would like to do is create a small VB Application that runs on the machine that the database runs on, detects when the database has a problem, closes down the database process then restarts the database.
View 2 Replies
Nov 9, 2009
I am developing a UI for an embedded device that I have designed and built. The device uses an FT232 chip which, when connected via USB is automatically assigned one of the COM ports. I was wondering if there is a way to set up a loop which would automatically detect which COM port the device has been assigned. I could then add some handshaking to verify that the port is correct.
View 4 Replies
Jan 31, 2012
I want to create program that Detecting Argument of Program, For example:There are 2 Program, just call them a.exe and b.exe, If a.exe is open, the a.exe will execute b.exe with some argument, for example, argument is "arg", and I want my program to Detect the Launch Argument of b.exe ("arg").
View 3 Replies
Feb 1, 2012
I have written an application that monitors a log file. The Log file is locked by the writing application so I read it asynchronously:
Dim LicenseLog As New System.IO.FileStream("\serverLOGlicense.log", IO.FileMode.Open, IO.FileAccess.Read, IO.FileShare.ReadWrite)
View 2 Replies
May 19, 2010
I would like to detect a color on the screen... and then move the mouse to the coordinates of the color and then perform click. Is this possible and where do I start?
or - detect a collection of colors and then click?
View 10 Replies
Dec 19, 2009
I want to be able to isolate an area of my desktop (similar to a screen capture snip) and evaluate if it is changing. In this particalr case it is an appliacation I have (not mine) that flashes an icon upon completion
What I want to do is make a small app that will detect change when I am away and perhaps perform a specific action (the action is not relevant really - i can take care of that) Again,this is NOT hugely important, but if someone has an idea or has seen an app that does this, it would be useful for me...
I put this in the VB.NET forum because I write 75% of my code in VB.... so I chose this instead of a general area !!
View 3 Replies
Jan 28, 2009
I am writing a usability testing application, it starts the screen recording, gives the user tasks, and then when finished brings up a survey and stops the screen recording. My problem lies in the last part of this process, because the screen recording app brings up a msgbox when recording is over saying where the file is put and then when that is closed it brings up the screen recording application. I am trying to block the user from seeing this so am currently using the following method.
Private Sub WatcherHandler(ByVal sender As Object, _
ByVal e As System.IO.FileSystemEventArgs) Handles FileSystemWatcher1.Created
Dim Camtasia As Integer
[code].....
Basically when the msgbox from the screen recorder comes up it means a file has been created...so the folder is watched and when the file is created the msgbox is checked for, when it exists a short timer is enabled and then knowing the window exists it is hidden using showwindow findwindow approach. Although this approach does work, Camtasia needs to be closed and re-opened after in order to record again and for some reason it does not always work.
View 1 Replies
Aug 13, 2005
How can I detect the External IP Address of machine which is running my Application. By External IP address means that IP Address through which PC running my Application is accessible through Internet. and not the local IP Address .
View 4 Replies
May 15, 2009
I know that you cannot disable Ctrl Alt Del for security reasons. I was able to figure out how to disable ALT+F4 in my application though. What I am wanting to know is if anyone can give me some code to where If CTRL ALT DEL is pressed then my application will close. I have tried everything, and I just cannot seem to get the program to recognize if the user presses ctrl alt delete.
So basically I need some code that detects if a user presses ctrl alt delete then if htye did it closes the application.
(I am making a quiz program.)
PS: I am on Windows 7 RC and I also use Windows Vista. I am using Visual Studio 2008 Professional Edition.
View 6 Replies
Aug 19, 2010
How can I check through my application if computer is connected with internet or not (at the moment)I need a message if net is connected.
View 3 Replies
Mar 6, 2012
I currently have a property in my program which returns a true/false depending on if the program is "portable" or not. I need this to know if I should do a certain thing or not.
It checks if it is by checking if the registrykey the installer creates exists, here:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\MyProgram
(And under the Wow node if the OS is 64 bit)
The problem is, I am trying to get rid of the need for admin rights, and this is the last function that needs to be fixed. But I don't have a clue on how.
Why I want this property is because then I don't need two separate versions of my program (like a set property in My.Settings which I set before I build).
The only files that differ using the portable vs the installer is one file, but the reason why I don't want to base the result on the existence of that file is because I want to warn the user if it's not there (if the program is not in Portable mode), so he can reinstall the program.
how I can check if the program is installed by an installer, without using admin
View 1 Replies
Apr 26, 2009
I have this code to Mute or Unmute volume:SendKeys.Send(Keys.VolumeMute)
How could I find a code which would detect if volume is muted, and if so un mute it?
View 2 Replies
Mar 22, 2011
I am having problems while detecting key combo events in my app.
For example, I have Alt+M set to bring up the menu bar like one does in. Windows 7. But I noticed if u press control+alt+M it still calls the menu bar. I also noticed that if focus is on a webbrowser control, none of the combos work. I have keypreview set to true by the way. The webbrowser control is really a custom class that inherrits the standard webbrowser control. Reason for the custom control is because it uses the tab control tag property. I found it in a post somewhere can remember where. I'll post the link to the info in an hour.
Also I noticed during testing of Alt+SOME KEY that when I was holding Alt before I pressed the SOME KEY that it was calling up the code for showing/hiding the menu bar. (I originally used just Alt for the menu)
1) how to better control key combos
2) why does custom browser control "ignore" the keypreview being set to true?
View 4 Replies