to 1: (Pets) oki doki forget it, but thanx for the info
to 2: For me it´s ok! It´s takes 5 seconds to change it.
What will be interesting is the twisted values from FaceY to HandX (post #109)
Boris
PS: In the moment i am reading your Tutorial "Reading and Writing with Files" and respect! You made really good Tutorials!
But i am still wondering how i can save for a sepacial "variable" all values what i will get. But first i will read your Tutorial to the end and the we will see.
Boris, can you re-explain to me what you mean about the twisted values from FaceY and HandX? I'm not sure I understand and I would like to be able to ask the Omron tech for you (and all of us) while I'm actively working with him.
By the way Boris, their software team seems super curious about your 2 camera idea. Apparently they have not heard of anyone else using 2 of them.
Thanks for your efforts Justin. I am real happy the tech support has responded to the extent they have in answering your questions . I am also pleased they have taken an interest in Boris' idea. Sounds like we have quite an opportunity using this camera.
My work has not let up yet. I hope to be back testing once I get back from the trip, but I will continue to monitor the thread.
It´s a normal way of thinking - you have one who is specialist for near things and one is specialist for far awary things - so combinated these two and you will have a specialist what can all!
For the X-Y Problem:
I have a script (Omron_dectect_Options, "r,f,o") - so the camera will dectect faces
Then must get Values for
"Omron_face_CoordX"
and
"Omron_face_CoordY"
if a face will recognized
BUT
i will get only values for
"Omron_face_CoordX"
But funny i will get a value for "Omron_hand_CoordX" so a value for a x-coodinate for a hand.
But i not set in the options to search / recognized Hands
SO i think there is something twisted in the plugin from David
Check out yourself
Search for faces and you must get different values, but no value for Hands.
Hi Andy!
Also "Hello" to you, no Problem i am also @ work but my work is in front of a computer so i can work from time to time on robot stuff.
There is a solution to your question. I can't give you a ready made solution right now because I don't have the time to write you script. But It's very solvable and I'll make a new tutorial specifically for your type of questions when I have time.
As a Hint if you want to try it your self in the mean time here is the basic process you need to incorporate.
You need to add a count function. So you can count your lines.
You need to read each line (which you are doing) but you need to grab the age assign it to a variable then each time you read a line, continue to add the age value to your variable Like $szAGE = $szAGE + ValueFromFile
You also want to increment the line count each time you read a line in the file like $szLineCount = $szLineCount + 1
Then at the end of your script you have to total amount of line read in $szLineCount and you have the sum of all of your ages in $szAGE.
Then you can take those and divide them with the math function in ARC to get your average age value.
Hi Justin,
nice to hear from you!
to 1: (Pets) oki doki forget it, but thanx for the info
to 2: For me it´s ok! It´s takes 5 seconds to change it.
What will be interesting is the twisted values from FaceY to HandX (post #109)
Boris
PS: In the moment i am reading your Tutorial "Reading and Writing with Files" and respect! You made really good Tutorials!
But i am still wondering how i can save for a sepacial "variable" all values what i will get. But first i will read your Tutorial to the end and the we will see.
Boris, can you re-explain to me what you mean about the twisted values from FaceY and HandX? I'm not sure I understand and I would like to be able to ask the Omron tech for you (and all of us) while I'm actively working with him.
By the way Boris, their software team seems super curious about your 2 camera idea. Apparently they have not heard of anyone else using 2 of them.
Justin and Boris, Just a Hello.
Thanks for your efforts Justin. I am real happy the tech support has responded to the extent they have in answering your questions . I am also pleased they have taken an interest in Boris' idea. Sounds like we have quite an opportunity using this camera.
My work has not let up yet. I hope to be back testing once I get back from the trip, but I will continue to monitor the thread.
Ron
HI Justin,
LOL why nobody cam on the idea with two cameras?
It´s a normal way of thinking - you have one who is specialist for near things and one is specialist for far awary things - so combinated these two and you will have a specialist what can all!
For the X-Y Problem:
I have a script (Omron_dectect_Options, "r,f,o") - so the camera will dectect faces
Then must get Values for
"Omron_face_CoordX" and "Omron_face_CoordY"
if a face will recognized
BUT
i will get only values for "Omron_face_CoordX"
But funny i will get a value for "Omron_hand_CoordX" so a value for a x-coodinate for a hand.
But i not set in the options to search / recognized Hands
SO i think there is something twisted in the plugin from David
Check out yourself
Search for faces and you must get different values, but no value for Hands.
Hi Andy!
Also "Hello" to you, no Problem i am also @ work but my work is in front of a computer so i can work from time to time on robot stuff.
Boris
Hi Justin, Hi Andy,
i got for 30 min a phone call from a Omron Salesmen, because i registred befor some weeks for Information Material about Recognition Sensors.
He told me funny story about a Tabletennis Robot also with two (2x) Cameras ;-)
https://www.youtube.com/watch?time_continue=162&v=Bnnyb43II4c
The Robot is the newest Baby from them.
Boris
Oh Great ! Now Antonn will want arms !
Hi Justin,
i have study your read and write tutorial
https://synthiam.com/Community/Tutorials/176/1
and i must say i learn a lot from this.
I merge your script with the omron cam/script.
I let the omron check for "Name" and "Age"
The i let your writfile script run:
OK i let the script write an entrie every second.
This will look like this:
Fine!
Now i can read the file like this ( Print only the value for age):
Also fine!
BUT.... now it come to interesting situations:
I have 22 entries (3 without a result or value = 0) ..... so 19 entries with a value
I add all values for the age (745) and divide with the number of entries with result (19)
40+45+33+26+41+37+42+41+46+44+38+43+41+40+24+38+39+43+44= 745
745/19 = 39,210526......
So now i have the average of the age (39)
My problem is i can print the hole line but i CAN´T add the Value for Age.
The second problem is: If there is an entrie / line where is no value or a "0" i can´t count with this.
I hope you understand what i want to make.
Boris
And i hope you can help me.
Hi Boris,
There is a solution to your question. I can't give you a ready made solution right now because I don't have the time to write you script. But It's very solvable and I'll make a new tutorial specifically for your type of questions when I have time.
As a Hint if you want to try it your self in the mean time here is the basic process you need to incorporate.
You need to add a count function. So you can count your lines.
You need to read each line (which you are doing) but you need to grab the age assign it to a variable then each time you read a line, continue to add the age value to your variable Like $szAGE = $szAGE + ValueFromFile
You also want to increment the line count each time you read a line in the file like $szLineCount = $szLineCount + 1
Then at the end of your script you have to total amount of line read in $szLineCount and you have the sum of all of your ages in $szAGE.
Then you can take those and divide them with the math function in ARC to get your average age value.