Welcome to the MP3Car.com forums.
You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. Registering will also remove advertisements. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!
If you have any problems with the registration process or your account login, please contact contact us.
|
05-23-2008, 03:33 PM
|
#1
|
|
FLAC
Join Date: May 2006
Location: Calgary, Alberta
Vehicle: 2005 Honda Civic
Posts: 935
|
Making dashcam application with speed overlay.
Highly influenced by this thread, I'm writing an application that will record out your front window while the computer is running and overlay the speed onto the video. You might ask why since there's already RRcam but that isn't standalone and has to be embedded into a skin from what I read. So I'm writing this one independent of RoadRunner or any front end. Currently I'm using the Java Media Framework (JMF) to capture images at a specified framerate and save them in sequence. Then run another file and it merges all the images into a .mov file and plays as a video. All I've got to add is the NMEA parsing from the GPS receiver and the overlay of the text. This thread is just to let you know the progress.
For any questions about my Java front end, it's on pause. Lots of issues with the seek bar.
__________________
Ampie Case
2.5" Hard Drive 80GB Toshiba 5400rpm
Kingston 512 MB DDR RAM PC3200
Xenarc 700TSV - VGA Monitor
VIA EPIA M10000 Mini-ITX Mainboard
M1-ATX 90 Watt - Smart Power Supply
2005 Honda Civic
|
|
|
05-23-2008, 04:19 PM
|
#2
|
|
Variable Bitrate
Join Date: Aug 2006
Location: Clearfield Utah USA
Vehicle: 2008 Chevy Impala SS 5.3 V8
Posts: 345
|
since it's java, are you keeping cross-platformability in mind?
Also, why the mov format?
I like the idea btw  . How will it interface with the gps device?
__________________
nGhost - "The Evolution of Car Entertainment"
Not just software: LinuxICE -- The Car Entertainment Platform"
LinuxICE IRC chatroom: #linuxice irc.freenode.com
|
|
|
05-23-2008, 04:50 PM
|
#3
|
|
Newbie
Join Date: May 2008
Posts: 42
|
Any estimations on the amount of CPU power required to complete these tasks? It sounds like it might be quite a ressource hog...
|
|
|
05-24-2008, 05:07 PM
|
#4
|
|
FLAC
Join Date: May 2006
Location: Calgary, Alberta
Vehicle: 2005 Honda Civic
Posts: 935
|
Cross platform will likely be possible, but I'll need to resource a machine to test it on. I simply have to have a check for the 2 different types of camera drivers for each platform.
.mov right now is just what was in the piece of software I hacked up from forums.sun.com but I'm thinking about converting it to .mpeg or .asf. I'm not sure though, I don't really see a need to. I won't be reviewing the tape very often and if I need to, I can convert the finished video later.
It'll interface with the GPS only to pull the NMEA sentence and then parse the sentence once it has it. You'll be able to get all GPS information from this single string such as heading, speed, location, altitude, all that stuff.
And sorry, no estimates on CPU power right now, going to have to wait until it's done to see how it performs! I got the recording almost done now, just got to work on the NMEA catching/parsing.
__________________
Ampie Case
2.5" Hard Drive 80GB Toshiba 5400rpm
Kingston 512 MB DDR RAM PC3200
Xenarc 700TSV - VGA Monitor
VIA EPIA M10000 Mini-ITX Mainboard
M1-ATX 90 Watt - Smart Power Supply
2005 Honda Civic
|
|
|
05-24-2008, 08:28 PM
|
#5
|
|
Variable Bitrate
Join Date: Aug 2006
Location: Clearfield Utah USA
Vehicle: 2008 Chevy Impala SS 5.3 V8
Posts: 345
|
will it be open source?
__________________
nGhost - "The Evolution of Car Entertainment"
Not just software: LinuxICE -- The Car Entertainment Platform"
LinuxICE IRC chatroom: #linuxice irc.freenode.com
|
|
|
05-24-2008, 09:38 PM
|
#6
|
|
Variable Bitrate
Join Date: Aug 2007
Location: SF
Vehicle: 2002 BMW 330ci vert
Posts: 306
|
If you can get this working to auto record and not error on standby/resume I will be very interested.
|
|
|
05-25-2008, 05:44 AM
|
#7
|
|
Newbie
Join Date: Apr 2008
Location: Baghdad, Iraq/Fort Bragg, NC/Saginaw, MI
Vehicle: 1999/Honda/Prelude
Posts: 27
|
I've put together a fairly reliable NMEA parsing app, but it has a bit of overhead, due to having to hold my serial controller's hand... the Serial controller that came with my GPS likes to blue screen windows, if you try to read data as soon as its dropped in the buffer... for some reason, it like the data to sit in the buffer for atleast 100ms... I havn't been able to figure out a good way around it, other than manually "aging" the data in the buffer, and checking to see if the data is atleast 100ms old before polling the buffer.
but in any sense; for most of my resources, I used:
http://www.gpsinformation.org/dale/nmea.htm
about 90% of the info in there is accurate. I can't speak for Java, but in Visual Basic, parsing the info was very easy. Only thing to remember, is the lat and lng that you get from GGA, RMC, and GLL are not in a "standard" format..
When you are done with the NMEA parsing function, I'd love to see how you managed the logic, on a per-command basis!
thanks
Mike
|
|
|
05-25-2008, 03:50 PM
|
#8
|
|
FLAC
Join Date: May 2006
Location: Calgary, Alberta
Vehicle: 2005 Honda Civic
Posts: 935
|
Quote: Originally Posted by kev000 
will it be open source?
yes
__________________
Ampie Case
2.5" Hard Drive 80GB Toshiba 5400rpm
Kingston 512 MB DDR RAM PC3200
Xenarc 700TSV - VGA Monitor
VIA EPIA M10000 Mini-ITX Mainboard
M1-ATX 90 Watt - Smart Power Supply
2005 Honda Civic
|
|
|
05-25-2008, 04:05 PM
|
#9
|
|
Variable Bitrate
Join Date: Mar 2007
Posts: 252
|
watching this closely if you need a beta tester im all yours 
|
|
|
05-26-2008, 09:00 AM
|
#10
|
|
FLAC
Join Date: May 2006
Location: Calgary, Alberta
Vehicle: 2005 Honda Civic
Posts: 935
|
haha thanks! I took a look at the J3D application from SUN last night and it's very interesting. It caches a frame from the video and then compares every pixel to all the pixels in the next frame. If any pixel has changed to a predefined degree, the frame is said to have changed and therefore detects movement. It's a motion detection application purely written in Java and it works great. I just don't know if I need to incorporate it since this camera will probably record all the time the car is moving. There'd be no point in having it not record if the computer is on. It'd be useful in a home security project though.
__________________
Ampie Case
2.5" Hard Drive 80GB Toshiba 5400rpm
Kingston 512 MB DDR RAM PC3200
Xenarc 700TSV - VGA Monitor
VIA EPIA M10000 Mini-ITX Mainboard
M1-ATX 90 Watt - Smart Power Supply
2005 Honda Civic
|
|
|
05-27-2008, 08:08 PM
|
#11
|
|
FLAC
Join Date: May 2006
Location: Calgary, Alberta
Vehicle: 2005 Honda Civic
Posts: 935
|
I just got the overlay working and now only have to work on the NMEA parsing. I currently have this working with a static speed indicator, it's awesome! conjur, I'll take a look at your resources now as well as SUN's Location API.....I'm sourcing code from a few different places for the parsing.
__________________
Ampie Case
2.5" Hard Drive 80GB Toshiba 5400rpm
Kingston 512 MB DDR RAM PC3200
Xenarc 700TSV - VGA Monitor
VIA EPIA M10000 Mini-ITX Mainboard
M1-ATX 90 Watt - Smart Power Supply
2005 Honda Civic
|
|
|
05-27-2008, 08:31 PM
|
#12
|
|
Variable Bitrate
Join Date: Mar 2007
Posts: 252
|
cant wait to see it all done
|
|
|
05-28-2008, 08:30 AM
|
#13
|
|
Newbie
Join Date: Apr 2008
Location: Baghdad, Iraq/Fort Bragg, NC/Saginaw, MI
Vehicle: 1999/Honda/Prelude
Posts: 27
|
Quote: Originally Posted by Maheriano 
I just got the overlay working and now only have to work on the NMEA parsing. I currently have this working with a static speed indicator, it's awesome! conjur, I'll take a look at your resources now as well as SUN's Location API.....I'm sourcing code from a few different places for the parsing.
Check your PM's.
my code is ugly, and sorta specific to the GPS that I have, but it should give you a good lead on parsing the data.
|
|
|
06-05-2008, 04:54 PM
|
#14
|
|
FLAC
Join Date: May 2006
Location: Calgary, Alberta
Vehicle: 2005 Honda Civic
Posts: 935
|
Sorry, this is on hold for at least a month as I don't have the money to buy a webcam right now. Unless I can get a cheap one a friend is not using. I'm moving back home and it's sucking my finances.
Otherwise the code is almost done and I'll try and JAR it up so you don't have to install all the extra frameworks and JRE/JVM that I did.
__________________
Ampie Case
2.5" Hard Drive 80GB Toshiba 5400rpm
Kingston 512 MB DDR RAM PC3200
Xenarc 700TSV - VGA Monitor
VIA EPIA M10000 Mini-ITX Mainboard
M1-ATX 90 Watt - Smart Power Supply
2005 Honda Civic
|
|
|
06-07-2008, 12:49 AM
|
#15
|
|
Newbie
Join Date: Apr 2008
Location: Baghdad, Iraq/Fort Bragg, NC/Saginaw, MI
Vehicle: 1999/Honda/Prelude
Posts: 27
|
Also, an alternate method:
In my reverse cam, I just used directshow; it can drop the "preview" window from a webcam on ANY control in windows, with almost no overhead... Just out of cuirosity, why are you going with java?
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 07:50 AM.
|
|