Simulate G-Sensor using camera - Windows Mobile Development and Hacking General

Hi all, have somebody thought about simulating the accelerometer using the phone camera? It's possible?
I couldn't find anything about this, sorry, but i'd be really happy to know that there's someone coding something like this...
PS: sorry for my poor english

i dont see this happening at all... i mean a image is produced by using light... how would that information tell u which way or which angle the phone is on :S

CashMoney18 said:
i dont see this happening at all... i mean a image is produced by using light... how would that information tell u which way or which angle the phone is on :S
Click to expand...
Click to collapse
Ok, but as the image moves the phone could know how am i moving it

Theoretically, it is possible. It would just be a huge battery sucker and not too accurate. I came across this game a long time ago, back when I still had my Titan (no accelerometer). It is called 3D Lawn Darts. It uses the camera to control your throws. Check it out:
http://www.brothersoft.com/3d-lawn-darts-for-pocket-pc-133547.html
dwizzy130

CashMoney18 said:
i dont see this happening at all... i mean a image is produced by using light... how would that information tell u which way or which angle the phone is on :S
Click to expand...
Click to collapse
It could work but only in a room covered with reference points all over the walls and floors like they use in 3D capture! LOL
I think the phone proccessor would choke on the proccessing! lol

there's a free app (i think) called CCSnake. Search for it. If you can't find it. Then search for Camera Controlled Snake. I tried it but the controls are not that good.

Asphyx said:
It could work but only in a room covered with reference points all over the walls and floors like they use in 3D capture! LOL
I think the phone proccessor would choke on the proccessing! lol
Click to expand...
Click to collapse
well not really.
Camera take as picture, then asks the user to set a referance point. somthing that stands out. It takes detaisl of that area (color shape, etc)
all further images are taken and referanced to that point. and the program then knows which way the PPC was turned. if you want rotaion then you just need two points.
For all movements just 3 referance points are needed.
This is very basic movemnets and your limited to the area you are in as the camera must see the original points. but it would work.

i saerched for this a long time and tought: maybe you can do it with an other part of the phone.
or maybe you can make a program to use this as a normal g-sensor with new accelerometer software.
erik

There was a game that I had on my old Motorola E815 that did just this. I think it was like a marble tilt game...it worked fairly well as long as you didn't move too fast and it wasn't too dark (or light for that matter, as the camera on the E815 was really mediocre).

Related

G-Sensor emulated by camera

I thing that everybody wants to have a g-sensor in their mobile . I have one idea . Is there any chance to develop a driver or software that can emulate g-sensor by rear or front camera ? Camera can catch "move" maybe in the same way like a g-sensor... Please think about it ...
I believe it was at least done on the Kaiser. The only issue I can see [apart from shoddy accuracy!] is, imagine the battery life being eaten!
Still, I'd like to see it, because it's the only thing I really want on my KS20
Function can be assigned to a hardware button, so it will start only if you want and then safe your battery
Ive asked about this a couple time and really got no where. I do know that the instinct uses this feature for scrolling web pages up and down
EurEye said:
Function can be assigned to a hardware button, so it will start only if you want and then safe your battery
Click to expand...
Click to collapse
Then why not have the hardware button rotate the screen?
I see your point. I'd prefer to just have it running in the background. Drop the accuracy of it, and we could keep battery drain to a minimum perhaps.
Girvo said:
Then why not have the hardware button rotate the screen?
I see your point. I'd prefer to just have it running in the background. Drop the accuracy of it, and we could keep battery drain to a minimum perhaps.
Click to expand...
Click to collapse
that, and emulating the g-sensor would mean better games
...I didn't think of that. Good point
kidnamedAlbert said:
that, and emulating the g-sensor would mean better games
Click to expand...
Click to collapse
No it wouldn't, because as others have said the accuracy would be horrible.
mattcoz said:
No it wouldn't, because as others have said the accuracy would be horrible.
Click to expand...
Click to collapse
but im sure that the great devlopers here could probably makes work better.
it makes me feel so bad not having a g-sensor.
today my friend was playing pocketgravity and he tried making things move by tilting my phone and it made me realize i need me a g-sensor.
kidnamedAlbert said:
but im sure that the great devlopers here could probably makes work better.
it makes me feel so bad not having a g-sensor.
today my friend was playing pocketgravity and he tried making things move by tilting my phone and it made me realize i need me a g-sensor.
Click to expand...
Click to collapse
Well, doesn't the game lack that feature or does it not need that implemented?
The thing is, there has to be a comprimise.
Get some serious accuracy, but to do that you'd need to sample a hell of a lot, thus killing battery life.
Or, sample less, less accuracy [but still good enough for screen rotation I'd wager], but less drain on your battery.
kareem9nba said:
Well, doesn't the game lack that feature or does it not need that implemented?
Click to expand...
Click to collapse
nope, someone just implemented it because it sounded like a good idea.
Will never work
Cameras have been used in the past for robotics and simply didnt work since they dont understand depth very well
What about combining the Camera and letting it work with the Infrared on the device? I know not all phones support both, but for the ones that do, its a step in the right direction.
External gsensor
Lets go back to the year 2000 where everything was external. remember the external camera on the sony ericssons? lets get an external gsensor
Maybe build in the battery like the fibration in the old Nokia 5100!
This thing must be possible.
I remember the game for Nokia phones, where you were controlling the ball in the maze. It was controlled by camera but it behaves like a g-sensor.
i dont know if this has been done but when you think about it many questions come to mind. first n foremost is depth. the softwares going to sense motion by motion in pictures from the cam. now if you have a white wall sufficiently lit and you shake your phone in front of it, hows a camera gonna judge motion from it? second, imagine a dot on the wall. now if ur close to it, theres gonna be alot more "motion" for the cam than if ur far away. i dont know the technicalities of the concept and if these problems will exist in a potential implementation, but, building on problems like these, i dont think its feasible or useful.
I think the theory behind it is fairly simple (and using the camera as a game input works as in Fishopolis http://rivia.net/Fishopolis.aspx Works on the Wizard). Take a pic A from camera at time x then take pic B from camera at time x + interval y then compare the two pics (get list of positions of same objects from both pix). If the objects in pic A are to the left of the same objects in pic B then you're moving right, left otherwise and a similar calc to determine up and down.
I think it is (actually know evidenced by the game previously mentioned) very doable and should take just as much battery power as using the video camera except for the storage since only a few images would need to be kept in memory at any one time and nothing needs to be stored on "disk".
Some matrix transformations and linear algerbra should do the trick... I'm sure someone has already done this in some form or another by now... Guess I'll see what I can dig up on the old internet.
why doesnt someone just work on internal accelerometers rather then trying to use the camera?

[THE] What the...?! Cameravideo as background

http://www.youtube.com/watch?v=5tiEji2sTyA
oh my god !!!!! I hope it is NOT a fake !!!!!!!!!
Yes, same comment from me...
How the hell did he it?
http://forum.xda-developers.com/showthread.php?t=435131
I reccomend to rename this thread hoping the solution - explanation how to use the camera view as background on TF3D can be accomplished.
Can not be else than some reg tweaks - but which ones...THAT is the question
Wow, thats a battery saver
But cool is that the top and bottom menu are trasparent!
My guess is that it is a picture theme and the theme is the tf3d screen, so you probably couldn'y actaully use the phone from there.
Thats what I reckon anyway
guys- look carefully at the clip.
it is not recorded - it is the camera showing live stream as you would record or take a picture.
Certainly not a battery saver as it uses the autofocus function which is mechanic and consumes more.
However, it is really cool.
ahhh... the possibilities
think this, and the beer app!! get it... see through beer glass!
http://forum.xda-developers.com/showthread.php?t=412667
sorry it's friday... and I'm looking forward for some beers at the pub
NisseDILLIGAF said:
ahhh... the possibilities
think this, and the beer app!! get it... see through beer glass!
http://forum.xda-developers.com/showthread.php?t=412667
sorry it's friday... and I'm looking forward for some beers at the pub
Click to expand...
Click to collapse
hahahaha same here I love friday beers at the pub
Will be sure to drink one in name of XDA Developers.
Greetings to all.
looks awesome BUT, thats a CDMA diamond with 256 MB of ram and its running so slow to his gesture commands. i have a feeling that it would make your GSM diamonds puke and it would be bailrly useable for the CDMA users. HOWEVER it is very sweet!
So...it is or it isn't a fake !?
alfoalfo said:
So...it is or it isn't a fake !?
Click to expand...
Click to collapse
has anyone had any speculation that it is fake? it looks real to me,
just my 2 cents.
could be fake
if not... let us know how
UN-BE-LIE-VA-BLE!!!!
I Want it!!!!!!
This is the T-Mobile version of the HTC Diamond....!?
This phone is release yet??
Maybe it's standard?
It's ****ing hot to show off but useless ass hell
hdzsound said:
This is the T-Mobile version of the HTC Diamond....!?
This phone is release yet??
Maybe it's standard?
It's ****ing hot to show off but useless ass hell
Click to expand...
Click to collapse
T-Mobile version is a Victor by design, not that it matters
it isnt standard anyway; ive got one. the standard rom is as slow as it gets.
ceevee369 said:
guys- look carefully at the clip.
it is not recorded - it is the camera showing live stream as you would record or take a picture.
Certainly not a battery saver as it uses the autofocus function which is mechanic and consumes more.
However, it is really cool.
Click to expand...
Click to collapse
At 16secs when taking the phone towards the camera he should have took the camera towards the phone: the phone's image dont change.
I believe it is really a fake. The image just doesnt look right. That swinging left/right is very unnatural.
So I vote for fake
I don't understand what the big deal is? I don't have that creative of a mind though so maybe I'm not thinking of something cool that could be done with this...
looks fake given the display angle on the screen doesn't match the angle of the camera on the subject.
i suspect it's a mirror that's used to reflect the object image onto the shinny reflective screen on the diamond. But I could be wrong.
regardless, very creative!
I'd say he just used chroma keying

[APPTest] DarkRuler BETA : Measure Tool

DarkAngelFR picked up this project and has a working app up and running... check out his blog @ http://blog.idlezone.org/pages/HTC/DarkRuler
original thread (how it started)
....A couple days ago i stumbled accross an App for the iPhone called RulerPhone and i thought it would be a cool tool to have for the diamond. Since our diamonds screen isnt multitouch, the tool would have to do without it and the lost ease of navigation could be accomplished using additional onscreen buttons.
Here is a basic explanation of the tool. Lets say u need to measure the with of your bookcase but u dont have anything to measure it. well you could guess how wide it is, OR you take out your Diamond, place a creditcard in the case and take a picture of the bookcase from within DiamondRuler. Once the picture is taken, you align the creaditcard from the picture with the placeholder on your screen using the touchdisplay, the zoom buttons on the display and the NavWheel. Once u have it all aligned you lock the picture and now you can start measuring your bookcase. the diamond will calculate the distances for you.
Is there a developer out there willing to take on the task? Let me know via PM.
Here are some Mockups of the GUI.
reserved for later use (maybe)
awesome idea
wow what a program!it is evolutionary!!
Flattering
If anybody would like to contact me about RulerPhone (I'm the developer) or inquire about development hints, please feel free to do so via the email address at http://benkamens.com/rulerphone. I am more than willing to share.
If the final design is going to be so blatantly RulerPhone-esque (to put it nicely...), I would appreciate a simple reference and link back to RulerPhone as the originating idea for what may be DiamondRuler.
Awesome idea!
I hate all these amazing iphone applications, getting very jealous of the iphone...
Must remember iphone GPS is rubbish....Iphone cant run all my favourite WM applications....
i remeber there was a ruler application for the N95..it could measure the distance between you and the object, height, angle...
certainly an interesting application to have
Nice whiskey collection! Nice idea for an app
Great idea !!
Should be really funny
@kamens : do you encounter special problems for developing this (I mean hard picture analysis coding...) ? I may develop this kind of funny tool for "windows mobile" but afraid of getting in hard "card finding algorithme".....
See Ya
DarkAngel
PS: excuse my english
no programmer up for the task?
i would code it myself, but by programmingskills just suck
THUDUK said:
I hate all these amazing iphone applications, getting very jealous of the iphone...
Must remember iphone GPS is rubbish....Iphone cant run all my favourite WM applications....
Click to expand...
Click to collapse
Don't worry.. as soon as someone creates this app the Diamond will become world renowned! And the best part.. this is impossible for the iPhone to perform
http://forum.xda-developers.com/showthread.php?t=437024
Hello,
I made a quick develpment just to have fun with my HTC...Looks to work but I have many small bugs and small things I want to add in...
I will post soon a beta of my app this app will allow you to measure anything that fit in your screen when making photo ^^
Anyone wants to test ?
DarkAngelFR said:
Hello,
....
Anyone wants to test ?
Click to expand...
Click to collapse
Yes please
Looks like a great app i'm subscribing to this thread for sure
If you need a tester i'm happy to help.
this will be amazing
would like to test as well
Hello!
Beta Release is available, if you wants to test contact me by private message.
Will post the app in about a week if not many bugs found!
Thanx to testers and to fluid888 for the idea, to Kamens for its iPhone apps (thanx to a friend here for showing this to me "live", really impressive), to anyone in the beta, to the GSensor SDK Creator, .....
Ok I can see some potential for this if it can be calibrated to any accuracy. But how would parallax errors be dealt with and also spherical aberration could cause problems.
Interesting "bookcase" you have there fluid888, I think I might have read one or two of them myself!
lol
Sorry but I didn't implement any kind of spherical aberration algorythm yet lol... interesting but not really something easy to do!
Maybe in release 12.3.4.5 I will try to implement this let's make the v 0.1 working before

[Q] Flashlight-App for dual-LED (ultra-bright mode!)

Hi there...
I am searching for hours now...
I want a Flashlight-App that uses the "ultra bright" mode..
all apps I found only were "medium bright"...
if you ever used a Flashlight-App on HD2 on Windows-Mobile, you should know, what I am talking about.
Only App I found was nexus-one-torch.
I think it "takes photos" to make the dual-LEDs go maximum brightness, but the disadvantage is: it flickeres alot..
Anyone knows a Flashlight-App that uses maximum brightness of the dual-LED-Flash on the HD2 with Android?
Thank you!!
Greetings from Germany!
I like Tesla led. it seems pretty good...
But Tesla LED is not as bright as Windows-Mobile or "Nexus One Torch".
It does not utilize the maximum led-brightness. :/
Why would you need the Max LED flashlight?
Are you gonna setup a party xD!
I think that.. its useless.. the "one" (referred to the settings/drivers) we got now is awesome.. i can clearly see everything in my room when the lights are off.
Because the device is capable of such a brightness..
aaaand...
BECAUSE ITS COOL!
and you risk damaging your led lights...
burpingboy said:
and you risk damaging your led lights...
Click to expand...
Click to collapse
I ve runner N1 torch with High brightness for 40 minutes without any problem!
I to want to find an app like this, I miss the torch from WinMo.
burpingboy said:
and you risk damaging your led lights...
Click to expand...
Click to collapse
Uhm.. NO? Windows Mobile runs the maximum brightness with the standart HTC-Flashlight-App.. so definately: no!
=> Still searching an app!
have anybody found app? i also searched it for ages ....
Kralle said:
Uhm.. NO? Windows Mobile runs the maximum brightness with the standart HTC-Flashlight-App.. so definately: no!
=> Still searching an app!
Click to expand...
Click to collapse
asphaltkiller said:
I ve runner N1 torch with High brightness for 40 minutes without any problem!
Click to expand...
Click to collapse
You risk destroying the LED's, they will burn out.
It doesn't matter what your own personal experiences are, they will break. Think of it like staring into a laser and not seeing instant visual disruption. It'll happen, just give it time and it'll mess things up.
dkl_uk said:
You risk destroying the LED's, they will burn out.
It doesn't matter what your own personal experiences are, they will break. Think of it like staring into a laser and not seeing instant visual disruption. It'll happen, just give it time and it'll mess things up.
Click to expand...
Click to collapse
Everything breaks eventually my friend. I admit it may shorten the leds life span but some might not care because they wont use their phone for years and years. I personally have been using high mode on my nexus one for over a year and its still going
If you need something brighter than tesla, wouldn't it make sense to just use a maglite? Phones are great for minor conveniences, but just like the cameras, if i wanted top quality photos, i'd buy a digital camera not try to squeeze quality out of an inferior cel phone cam. Same with the flashlight, great if u drop ur keys at night, not so much if you're trying to light up your whole backyard or something.
-HD2 Android-
i dont think the torch app really uses the brightest setting.
i think its a matter of being properly programmed/optimized for hd2.
You could try Mag Flashlight, it has two brightness levels, but I'm not sure if it can use dual LED
yeah i remember the stock Hd2 flashight was WAY brighter, it puts the ones on android to shame, i want it back!
Yes, I've downloaded all available flashlight apps on the android market for my htc hd2, and NONE of them have matched to the htc hd2's windows mobile version. That particular version had 3 settings, low medium and high. All of the android flashlight apps seem to match the MEDIUM setting that the windowsmobile version was able to output.
Can someone port or write an android app that's nearly identical to the stock htc hd2's flashlight app that had 3 settings, without the annoying 5 second demo animation at the beginning on how to use it? That third setting (high) was KILLER, and impressed all of my friends as to the htc hd2's dual led true potential!
Same here, anyone have found any program with full bright?
HERE IT IS! (well i think its it. IDK)
okay so i pulled this off my typhoon CM7. its the "Torch" app. it has a high brightness setting as well as a strobe feature. (i have my mini raves XD)
its in apk format.
put it in sdcard, use a file explorer to locate it and install it. it should work.
btw i forgot. if it works hit the thanks button have a good day.
Unfortunately, like everyone is saying even the one that you pulled from the typhoon (althought it says it is the highest possible setting) is not the brightest setting that WM was able to achieve. Anyone else still looking for this like me? If someone who knows what they are doing could do this, it would be awesome!
For those that don't understand why we want this, you haven't used the WM LED flashlight long enought. I actually have great stories that goes along with the brightness of HD2 flashlight in WM (from everyone envying me at concerts to saving a bunch of us in the middle of the woods after the sun went down in the middle of a hike that went wrong =P).

Bug!!!!

look at the picture
Because the human eye can not see, the camera can see; so we did not find
HD2 two sensors, one of which only work only answer the phone, but when it does not stop at the android! I think this will lead to a waste of electricity.
Sorry, I do not speak English, can only use GOOGLE translation.
uh...... yha.......?
gsm127 said:
这不是一个个例!因为人眼不能看到,要用相机才能看到!
HD2听筒旁边有两个感应器,一个用于感光,一个用于接近人脸时关闭屏幕.
在WM6.5下,只有接听电话时"接近人脸时关闭屏幕"这个感应器才会发光.而在andoird下有一个是不关闭的!
Click to expand...
Click to collapse
This is not a one example! Because the human eye can not see, to use the camera to see!
HD2 handset next to the two sensors, one for light-sensitive, one for close to face to close the screen.
In WM6.5, only answer the phone "off screen when close to the face" of this sensor will light. But one under the andoird not closed!
t1h5ta3 said:
This is not a one example! Because the human eye can not see, to use the camera to see!
HD2 handset next to the two sensors, one for light-sensitive, one for close to face to close the screen.
In WM6.5, only answer the phone "off screen when close to the face" of this sensor will light. But one under the andoird not closed!
Click to expand...
Click to collapse
How did you get this problem? I mean it's in Chinese or something like that
Edit: Ahh.. you just used google translate. But I really don't understand what he wants to say
t1h5ta3 said:
this is not a one example! Because the human eye can not see, to use the camera to see!
Hd2 handset next to the two sensors, one for light-sensitive, one for close to face to close the screen.
In wm6.5, only answer the phone "off screen when close to the face" of this sensor will light. But one under the andoird not closed!
Click to expand...
Click to collapse
非常感谢你!!!!!!
What he likely is saying is that the led of the proximity sensor is on all the time in android while it is only lit in WM during a phonecall. If that is true, it is a potential battery drainer. With a camera you can see the infrared light, that is why he posted the piccas. Might be a serious issue, but I did not verify.
I don't think this is an issue as such, as infrared viewed with a camera is white... In them photo's, it's a vague red. I could be wrong though. Think this might need some dev input.
To prove the point, get a camera, and TV remote, and point and press a button of the remote to the camera. You will see it glow white !
hd2 orginal have two sensors but in the android onlyone work ! why?
FerretAD said:
I don't think this is an issue as such, as infrared viewed with a camera is white... In them photo's, it's a vague red. I could be wrong though. Think this might need some dev input.
To prove the point, get a camera, and TV remote, and point and press a button of the remote to the camera. You will see it glow white !
Click to expand...
Click to collapse
In wm6.5, it will only listen to the phone work. But in android, regardless of when the are working.
To prove the point, get a camera, and HD2,You will see it glow white !
hd945157206 said:
hd2 orginal have two sensors but in the android onlyone work ! why?
Click to expand...
Click to collapse
你不要说英文!
HD2运行andoird时,有一个传感器一直在工作,发出光! 而这个传感器在wm6.5的情况下,只会在接听电话时才会工作!
这个传感器发出来的光人眼看不到,只能用摄像头才能看到! 可能因为这个原因所以一直没有人发现.
如果你能翻译一下的话就更好了! 让这里的高手们知道这个问题! 这个BUG会一直浪费电! GOOGLE的翻译不行!
gsm127 said:
In wm6.5, it will only listen to the phone work. But in android, regardless of when the are working.
To prove the point, get a camera, and HD2,You will see it glow white !
Click to expand...
Click to collapse
ggguuuys!!!!
GSM guy is right, use a camera and point it at the sensor you will find the white light blinking while in android, where as in WINMO it doesnt, it blinks during calls only!!!
Could be a battery drainer, could be not as well !!!
lets hope hope the devs are aware of this !!!
mally2 said:
ggguuuys!!!!
GSM guy is right, use a camera and point it at the sensor you will find the white light blinking while in android, where as in WINMO it doesnt, it blinks during calls only!!!
Could be a battery drainer, could be not as well !!!
lets hope hope the devs are aware of this !!!
Click to expand...
Click to collapse
Didn't mean to start an argument or anything, all I meant was going by his pictures, I couldn't really see much of the 'white' infrared you normally see in a camera.
But you say that it blinks, that would make more sense now - I have no way of testing it until I get home as i'm at work at the moment
cool man, try it out and let us know, its a good topic for discussion
mally2 said:
ggguuuys!!!!
GSM guy is right, use a camera and point it at the sensor you will find the white light blinking while in android, where as in WINMO it doesnt, it blinks during calls only!!!
Could be a battery drainer, could be not as well !!!
lets hope hope the devs are aware of this !!!
Click to expand...
Click to collapse
yes!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
FerretAD said:
Didn't mean to start an argument or anything, all I meant was going by his pictures, I couldn't really see much of the 'white' infrared you normally see in a camera.
But you say that it blinks, that would make more sense now - I have no way of testing it until I get home as i'm at work at the moment
Click to expand...
Click to collapse
It don't matter!
I know that this pictures is easy to suggest that it is false.
I just want to let developers know this BUG.
I'm home now, and i've tested it... And your right, the infrared is on in Android, and off in WM except when your making a call.
What i've forgot to test, is the infrared still on when the screens off in Android ?
I can't test at the moment as i'm currently putting a new WM ROM on, and then a new Android build on.
gsm127 - Them pictures aren't misleading. What I thought was infrared looks white through a camera, but it's not - It's actually a shade of purple (Like in your photos). Only thing is, is the infrared is on, and pulses every second. That also happens in Android !
Has anybody pointed this out to the dev's ? Do they read these sections ?
FerretAD said:
I'm home now, and i've tested it... And your right, the infrared is on in Android, and off in WM except when your making a call.
What i've forgot to test, is the infrared still on when the screens off in Android ?
I can't test at the moment as i'm currently putting a new WM ROM on, and then a new Android build on.
gsm127 - Them pictures aren't misleading. What I thought was infrared looks white through a camera, but it's not - It's actually a shade of purple (Like in your photos). Only thing is, is the infrared is on, and pulses every second. That also happens in Android !
Has anybody pointed this out to the dev's ? Do they read these sections ?
Click to expand...
Click to collapse
cool man, we now have proof, its definitely could be a battery drainer reason , any one know how to log into IRC and let devs know
Des? know that?
Maybe you should change de thread title ?
Hi !
Maybe you should change de thread title to a brief description of what you found ?
To make it more "visible" to other people
Congrats to have found that !
Regards
bump,
there is another thread running about the same issue,
DONT LET IT DIE
http://forum.xda-developers.com/showthread.php?p=9947428#post9947428

Categories

Resources