?

Log in

No account? Create an account

April 16th, 2002


Previous Entry Share Next Entry
10:43 pm
Ok!
Time to SSH into our computer lab and create a motion sensing function for a digital camera.
Whee.
mood: tiredtired
music: Orbital - Desert Storm

(3 bits of drivel | babble incoherently)

Comments:


[User Picture]
From:jackjack
Date:April 16th, 2002 07:52 pm (UTC)
(Link)
cool. neural networks?
[User Picture]
From:inahandbasket
Date:April 16th, 2002 08:16 pm (UTC)
(Link)
that were last year.
Phsaw, get with the times!
All the cool coders are doing fuzzy logic now!

either that or my prof is stuck in the 80s.
*sigh*

This course had so much potential, and it's really just sucking.
"Androids in design and practice"
how could I not take it?
Turns out he's making us implement and document his pet project of an environment (which blows big time) under Python.
Now Python isn't the greatest language ever, but it's not bad.
He's making us (aka a bunch of C++ coders) learn Python and use it to create this environment.
Not so bad if he'd give us some guidance...
Sorry. I'm bitching to you.
Know python? here, check this out. see if it makes sense and let me know.
FYI:
images are lists of characters. Bitmaps in their truest form. heh.

def motion(self)
mimage = Camera()
image1 = mimage.update()
image2 = mimage.update()
image1.grayScale()
image2.grayScale()
compMotion = image()
compMotion.width = image1.width
compMotion.height = image1.height
compMotion.depth = 1
compMotion.data = [0] * compMotion.height * compMotion.width * 1
x = 0
movedPixelCount = 0
while (x < compMotion.width * compMotion.height):
if (abs(image1.data[x] - image2.data[x]) > 20):
compMotion.data[x] = "M"
movedPixelCount += 1
else:
compMotion.data[x] = "."
x += 1
compMotion.saveToFile(MotionBitMap)
#if you want return values, uncomment this.
if (movedPixelCount > 5):
return 1
else:
return 0

[User Picture]
From:inahandbasket
Date:April 16th, 2002 08:37 pm (UTC)
(Link)
Hmm.. none of hte formatting transfered. hope it came through in the e-mail.
Not that you're going to feel like debugging my code for me. but anyway.
Off to sleep soon.
mmm... sleep...
Ok! Time to SSH into our computer lab and create a motion sensing… - another LJ. or: how i learned to stop worrying and love this life-thingy — LiveJournal

> Recent Entries
> Archive
> Friends
> Profile
> Lord Google

Links
sluggy
userfriendly
sinfest
schlock
reallife
Cyanide&Happiness
goats
somethingpositive
pvp
xkcd
lil gamers
fruitfucker
ctrl-alt-del
Genius!
digger
LFG
applegeeks
threepanelsoul
drive!
vgcats
Erfworld
Freakangels
DresdenCodak
Angst!
.
EatYourBeer
rain?
POSTULATE!

> Go to Top
LiveJournal.com