|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Help me pls...
Hello guys...
may i introduce myself.I'm from thailand... my english isn't good....... I have a big problem.... I have a VB code which use DF command... then I ran the program.... My cmucam doesn't have DF command I think DF replaced by SF command................ so i try to use SF function to get the data from cmucam ....it's work! but I can't regcognise the data cause they are some things that like maKP(U A$IU AL<>U A$L*YL%*L L (G AUsonthAYA(KMAy098a34ymawvk.... How can i get data from cmucam in pattern like 1 2 rgbrgb ... rgbrgb 2 rgbrgbr ... rgbrgb ...? please me |
|
#2
|
|||
|
|||
|
Re: Help me pls...
The data you are getting is in the 12rgbrgb pattern, but it isn't human readable. For example, instead of sending the character '1', followed by the character '0', followed by the character '0', the CMUcam2 sends only one character that the computer sees as the hex value 0x64, which is 100 in basse ten. Then, when you pass 0x64 to be printed on the screen as a single character, it would show up as a 'd', because 'd' is the 100th character in the ASCII table. So what you need to do is take each character and cast it to a number, and then that number is the intensity value for that pixel. Our team used Python for CMUcam2, so we used the ord(char) function. Google tells me the VB equivalent of this is asc(), so if you use that, you should be able to read the pixel values.
Oh, by the way, the 1s, 2s, and 3s used in the SF protocol are encoded the same way. So when you expect to see a one at the beginning of the frame dump, the one is send as the hex value '0x01', which you can't read without using asc(). |
|
#3
|
|||
|
|||
|
Re: Help me pls...
Thank you so much....
I've done it... i'm gonna make a checkers robot... by using cmucam to be a robot's eye now I'm creating the ai robot ... very hard for me.... I'm thinking to search a vb checkers source code then apply some things..... by the way here is a very very good one website |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| section 'InterruptVectorLow' type is non-overlay (was: HELP HELP HELP!!!!!) | naor52 | Programming | 14 | 24-02-2007 01:19 |
| MPLAB...ERROR..Pls help..Thank You | ocean_blue74 | Programming | 3 | 12-08-2006 11:50 |
| Wierd gyro code problems...pls help | Salik Syed | Programming | 4 | 14-03-2004 01:29 |
| UTC NE - Pros/Cons - Anyone who attndd pls read. | tritium | Regional Competitions | 3 | 15-04-2002 14:42 |