Receive Webcam Pics And Transform Each To A String?
Apr 3, 2009how do i recieve webcam pics and transform each to a string ?
View 18 Replieshow do i recieve webcam pics and transform each to a string ?
View 18 RepliesAfter several hours of browsing google, wanted to check with one of you experts. I have made a winform application to read data from PABX (telecom) device. My application is listening to a particular port and once data received it passes to the data_hander. Application is working fine. But I�m facing a issue in received data string. From PABX system, it sends start and stop bit within the text string. It sends chr(2) as start bit and chr(3) as stop bit. But when my application reads the incoming data stream as follows,
ReceivedData = System.Text.Encoding.ASCII.GetString(bytes, 0, bytes.Length).Trim(Microsoft.VisualBasic.ChrW(0))
It does not recognize the start and stop bit as it sends from PABX. It just replace chr(2) and chr(3) with space and shows rest of the string. The issue is, I just want to take the same string and forward to another application and it needs this start and stop bits as it is to read the string properly. Could somebody guide me how to read this characters from PABX system or at least include them to the received string within my application as send to the other application?
I got an app, which receives data via a R232 port, convert it to a string and on the other side I got a database, where the strings are saved. How can I find a way to compare the string with all strings in one database column and get back the another stringform the same row in this database. I never programmed a database
View 1 RepliesI have a logitech webcam that I use to take pictures of customers to submit to a server/database. Utilizing AVICAP32.DLL calls, I was able to modify my VB.NET program to take these pictures via a button in my program.
My question is, it would me more convenient to my intended users to click the webcam button, instead of clicking on the button in my program.
Is this possible to do in VB.NET? and how can I do this?
If this is not possible to do with my logitech webcam than is there a Microsoft Webcam that can do this?
I am using SSIS and I need to transform a date. How can I transform a date in String format (e.g. 14/09/1980) to the same but in date format in VB.NET?
I would like the datetime format to insert it into a SQL database.
i am getting this error message : Object reference not set to an instance of an object. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
[Code]...
[code]...
Now i need to do a few hundred/thousand requests all at the same time or atleast over a short period. I am assuning i need to do this asynchronously. I have looked all over the net and tested various ways to communicate asynchronously and am pretty stumped. None of the examples out there seem to explain how i receive the xml return as a string ("which i will write to file or db")
Does anyone have any working code to do such a process?
I need to create a picturebox that allows different pics to show when The user clicks an item in a combo box. in vb.net..
View 4 RepliesI have used a single picture box and I want it to display many pictures when I run it, whereby I cant navigate through it by clicking next or back. I used some codes, they had no error but they weren't able to display my pictures during run time.
View 14 RepliesFor a project I need a small program that can safely receive a string from another web-server.A user browses to a website, let's say for example www.EnterStringHere.com, and fills in a string. (I think PHP is good for this) This string is first being hashed/salted and via a secured method (PHP in combination with cURL) send to my program (therefore this topic) which is being hosted at my home server.Then it gets de-hashed/de-salted to bring back the original string and do something with it.I was thinking of making a VB.NET executable that "listens" at the home servers IP address to receive this string.
View 1 RepliesI�m trying to create an app to copy pics from my camera to my hard drive. Problem is when I connect the camera it shows in �My computer� but not as a logical drive. Is there any way I could access my pics using vb.net without the need for the camera SDK which is not available for my camera model.
View 2 Repliesi am trying to develop a project for my academics...i.e, windows application s/w... how to get the thumbnail view(in win7 taskbar shows in that manner?) of all applications that are appearing on taskbar with code in vb ..
View 1 RepliesI have the following html code for some pictures:
<table cellpadding='0' bgcolor='#ffffff' cellspacing='0' style='border: solid 3px #470506;padding-right:1px;'><tr><td><img src='./images/counter/b.gif'></td>
<td><img src="./images/counter/3.gif" border="0"/></td>
[code].....
What I am looking to do sounds really simple, but no where on the Internet so far have I found a way to do this in DotNet nor found a 3rd party component that does this either (without spending thousands on completely unnecessary features).Here goes: I have a jpeg of a floor tile (actual photo) that I create a checkerboard pattern with.In dotnet, it is easy to rotate and stitch photos together and save the final image as a jpeg.Next, I want to take that final picture and make it appear as if the "tiles" are laying on a floor for a generic "room scene". Basically adding a 3D perspective to make it appear as if it is actually in the room scene.Heres a website that is doing something similar with carpeting, however I need to do this in a WinForms application:Flor Website Basically, I need to create a 3D perspective of a jpeg, then save it as a new jpeg (then I can put an overlay of the generic room scene).
View 2 RepliesI need to transform bitmap images with their 4 corner points moved from one location to another.Any code that can run on Windows, C#/VB.NET preferably, even help how to use scriptable programs like Paint.NET or Photoshop would be accepted
View 4 RepliesFourier Transform for pictures in Visual Basic?
View 1 RepliesThere is a bug in my code somewhere. It has a form with 5 input fields and 5 output fields. The algorithm is supposed to do a forward DFT and then immediately do a reverse DFT on the same data - so the output values should be the same. However it returns garbage! as I cannot see where the bug is.
[Code]...
I am grabbing some XML from an API and I want to tranform it before I put it into my dataset. I can't quite piece it together. I am trying to work from the examples in the documentation, but all I find are examples with reading and writing to the filesystem and I am not interested in storing things in the filesystem for this.
I am trying to piece together (1) xmlReader.create(URL) -> (2) xslcompiledtransform(xmlreader,xmlwriter) -> (3) get xmlwriter it into an xmlreader -> (4)dataset.readxml(xmlreader).
I can't figure how to do (2) and (3). How do I initialize the xmlwriter properly and feed it to an xmlreader?
Using the FileHelpers library to do some great things in VB.NET. Parsing files with dynamic classes built from text file templates. One thing I can't find: A way to read in a single record and determine that it should result in the generation of two records.[code]Ideally in this next line I would like it to see certain conditions and be able to generate two records from a single source line. Dim PayRecords() As Object = engine. Transform Records(FromRecords)Alternately, if there is a way to implement the "ITransformable(Of ..." TransformTo() and have it return multiple records, I could put the logic in the dynamic class definition TransformTo() method.[code]
View 1 RepliesQuestion: I have data that I retrieve from a database, which looks like this: Now I need to transform it to the below format, in order to be able to draw a piechart. In ReportingService, there is the Matrix control to achieve this, but what can I use to achieve the same in ordinary C#, in order to render it to a PieChart image ? Note that the number of buildings as well as the usage-types is variable and not known ahead of time.
[Code]...
how to transform my textboxes to excel spead sheet within my programe
View 15 RepliesI do have third party application which produce it�s reports in PDF format. Those reports are having images and different kind of alignments in the pages. So I need a code or guidance to make an application to transform the exact appearance of the PDF file in to Excel. My Issue is the PDF does not have table kind of thing to identify by regular pdf to excel conversions.
View 3 RepliesI am a beginner of VB and i have no idea how to work on it.
View 5 RepliesI am tying to get xslt2 transformation using XQSharp, but i get an exception when trying to call ApplyTemplates.[code]
View 1 RepliesHow can I transform this code to a function (anyone can do it for me?)? Otherwise I have to use this long code again and again..
[Code]...
I have this code:
Public Class Transform
Dim inputFile As IO.StringReader ' Object variable
Private Sub OpenFileDialog1_FileOk(ByVal sender As System.Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles ofdOpenFile.FileOk
[code]....
And I am getting these errors:
'Private Sub Transform_Load(sender As Object, e As System.EventArgs)' has multiple definitions with identical signatures. Line 15
'strOutputPath' is not declared. It may be inaccessible due to its protection level. Line 51
Type 'XslCompiledTransform' is not defined. Line 83
I'm using XamlWriter, XML Transform (with XSLCompiledTransform), and XamlReader to create deep copies of a user control with multiple user controls and lots of inheritance.
I have it working and am using it in my Print and Print Preview logic. The problem is that it's SLOW and I need to speed it up. Currently when the user selects Print Preview it takes about three seconds for the view to display. I need to reduce this to less than one second!
[Code]...
I have 2 consecutive images from a camera and I want to estimate the change in camera pose:
I calculate the optical flow:
Const MAXFEATURES As Integer = 100
imgA = New Image(Of [Structure].Bgr, Byte)("pic1.bmp")
imgB = New Image(Of [Structure].Bgr, Byte)("pic2.bmp")
grayA = imgA.Convert(Of Gray, Byte)()
[Code]...
How do I calculate the new position and lookat?
If I'm doing this all wrong or if there's a better method,
I need to copy an array to a linked list OR transform the array in a linked list.How this can be done in .NET (C# or VB)?
View 3 Repliesi need to create a function for transforming an xml document using xslt. I am able to copy the document using xsl:copy-of, however it's not copying the root of the source xml document. As shown below, the root of the xml should be <List xsi:noNamespaceSchemaLocation ~>: [Code]. My IDE is Visual Basic .Net 2008. I need to reproduce the xml file with the SName attributes sorted in ascending order.
View 3 Replies