|
dear friends,
I need to get picture of each box on the conveyor band while they are on the move. I can get video stream of conveyor (of course) but I don't know how to get pictures of them.
I believe algorithm has to separate each object with the distance among them and when new object come into sight, should take the picture. assuming that the belt (means background of image) is black, algorithm can process image by contrast. but I need to get each objects picture ONCE. box sizes are different so I cannot use belt speed, timings, etc. I need to "understand" which object is where on the video stream.
any ideas please ?
|
|
|
|
|
aykut canturk wrote: any ideas please ?
Teaching the computer to "count" different kinds o' sh*t it don't recognize is a lot more expensive than a simple circuit. Most shops that sell shoes go "ding" when I walk through the door.
Bastard Programmer from Hell
|
|
|
|
|
im a first year student as an it i wonder about the visual basic ahm could anyone teach or give me example of codes for visual basic
|
|
|
|
|
|
Hi!
How to print a BMP graphic in Zebra TLP2844, using VB6?
Thanks
|
|
|
|
|
|
Hello All,
I want to know how to use the color rotate function to pro-grammatically select a different color for each of the "curves" and using a "list" I add to a graph for e.g.: by use of a button command.
Thanks in advance,
Nikhil
|
|
|
|
|
can someone please tell me what's the difference and the function of DataRow and DataRowView?
thank's before.. =)
|
|
|
|
|
|
There is a TextBox in my Project. It takes Math expression as Input.
eg., sin(Cos(10))
How to Parse for the functions and perform the trig calculations.
first the innermost func has to be performed.
|
|
|
|
|
there are a lot of articles on parsing and evaluating expressions here at CP.
Here is one (not VB.NET!)[^] of them, however you'll have to search for one that suits your needs.
From your recent questions, I'm not sure you're up to it already.
|
|
|
|
|
|
you have a couple of options
1. Open Forms collection
my.application.openforms collection[^]
but this assumes the form is already loaded!
2. or this code snippet
Public Function GetForm(ByVal Formname As String) As Form
Dim t As Type = Type.GetType(Formname)
If t Is Nothing Then
Dim Fullname As String = Application.ProductName & "." & Formname
t = Type.GetType(Fullname, True, True)
End If
Return CType(Activator.CreateInstance(t), Form)
End Function
Lobster Thermidor aux crevettes with a Mornay sauce, served in a Provençale manner with shallots and aubergines, garnished with truffle pate, brandy and a fried egg on top and Spam - Monty Python Spam Sketch
|
|
|
|
|
I like open questions.
|
|
|
|
|
In VB 2010 the TextBox displays negative sign after the number. It displays -1234 as 1234-. I am coding a calculator and it has a +/- button.
code is :
if plusminus button is clicked
ReadOut.Text = Convet.ToString(Convert.ToDouble(ReadOut.Text) * (-1))
|
|
|
|
|
Use this
ReadOut.Text = (CDbl(ReadOut.Text) * -1).ToString
I don't speak Idiot - please talk slowly and clearly
'This space for rent'
Driven to the arms of Heineken by the wife
|
|
|
|
|
The codes below doesn't solve my Problem
ReadOut.Text = Convet.ToString(Convert.ToDouble(ReadOut.Text) * (-1))
ReadOut.Text = (CDbl(ReadOut.Text) * -1).ToString
|
|
|
|
|
Asked and answered two days ago[^]. Please don't bump your posts like that, and read all replies you get.
|
|
|
|
|
Hello !
Always i have used this code to query from entity framework
dim query=From t1 in context.mytable where conditions
select t
Now i need to declare query variable before using.this is my code
----------------------------------------------------
Dim query1 as ???????
Dim list1 as ???????
query1=From t1 in context.mytable where <conditions>
select t
list1=From t1 in query1.ToList where <conditions2>
select t1
---------------------------------------------------
What are the types that should i use on Dim .....?
thank you.
|
|
|
|
|
|
You have many ways to consume the results but, which is best depends on what you are after doing with the results.
I would look into
1.
dim Query as IEnumerable(of t)
Ienumerable(of t)[^]
2.
dim Query as List(of t)
List(of t)[^]
3.
dim Query
But this one you already know about
Lobster Thermidor aux crevettes with a Mornay sauce, served in a Provençale manner with shallots and aubergines, garnished with truffle pate, brandy and a fried egg on top and Spam - Monty Python Spam Sketch
|
|
|
|
|
thank tou , but in my code i have :
Dim query1 as ???????
Dim list1 as ???????
query1=From t1 in context.mytable where conditions1
select t
list1=From t1 in query1.ToList where conditions2
select t1
which of your variants should i use for query1 and list1 ???
thank you !
|
|
|
|
|
without knowing what you are going to do with the results. I would start with using the list(of t) where t is your table name.
I.E
dim Query1 = (From t1 in context.mytable where conditions1 select t)
dim List1 as list(of mytable) = (from t1 in Query1 where conditions2 select t1).toList
Lobster Thermidor aux crevettes with a Mornay sauce, served in a Provençale manner with shallots and aubergines, garnished with truffle pate, brandy and a fried egg on top and Spam - Monty Python Spam Sketch
|
|
|
|
|
dim Query1 = (From t1 in context.mytable where conditions1 select t)
dim List1 as list(of mytable) = (from t1 in Query1 where conditions2 select t1).toList
i need to declare Query1 variable and list1 variable before and after to use them
Dim query as ????????
and after to use : query1=From t1 in ......
so how i can declare Query1 ?
Thank you.
|
|
|
|
|
With Visual studio 2008 you can use anonymouse types. Further reading Anonymous types[^]
As your first query is consumed only by the second query I would stick with using an anonymous type. Personally I feel outside of LINQ statements they shouldn't be used.
If you feel the need to have a type declared you can choose either a IEnumerable(of t) or IQueryable(of t)
This article gives you hints when you should each type IQueryable vs IEnumerable[^]
Lobster Thermidor aux crevettes with a Mornay sauce, served in a Provençale manner with shallots and aubergines, garnished with truffle pate, brandy and a fried egg on top and Spam - Monty Python Spam Sketch
|
|
|
|