PDA

View Full Version : Metre App "Maemo Coding Competition Submission" (Name Changed from Ruler App)


klen
07-21-2010, 05:07 PM
Hello,

Here is my submission for Maemo Coding Competition 1. I run out of time to create a debian package and submit it to the testing repository. I hope this does not throw me out of the race.

Application name: Metre App (Name Changed From Ruler App)
Extra libraries needed: openCV (apt-get install libcv4 libcvaux4 libhighgui4)
Binary: Metre App (http://www.sendspace.com/file/3l0y2v) (Archive RulerApp (http://www.sendspace.com/file/v8dpwu))
Debian Package Now Available: metre_0.0.1-1_armel.deb (http://fs03n2.sendspace.com/dl/4f50dad4d0635004389eaee8b7933b3c/4c49fe535e490893/6mpfwc/metre_0.0.1-1_armel.deb)
Developed By: Klen Copic Pucihar

Description:
The Ruler App enables users to measure object dimension up to 1m long. The objects are measured by defining the scale of the captured image. The scale can be defined if the distance to the object from which the image was taken is known. The application estimates the object distance by focusing on an the object. As this method works only at close-up distances, the user needs to calibrate the image with a simple two step procedure described bellow. After the scale is defined the user can start measuring. The user can then save the image with the latest measurement and the scale indicator to phone gallery.

Note: The accuracy of the measurement is heavily dependent on the accuracy of the distance estimation which is influenced by the light conditions. The measurement error should range between 10 and 20 percent.


PROCEDURE:
Step 1: Move close to the object (7-20 cm) and press “CALIBRATE”. Two features will be automatically initialized and can be seen on the screenshot bellow as red dots.
http://talk.maemo.org/attachment.php?attachmentid=12312&stc=1&d=1279744480

Step 2: To measure the object make sure it fits onto the screen and press "CAPTURE". Make sure all the movements are slow as tracking of two red features might fail and you will need to start again.
http://talk.maemo.org/attachment.php?attachmentid=12313&stc=1&d=1279744480

Step 3: To measure drag your finger on the screen from point A to B. In order to save the image into your phone gallery press “SAVE”. To gain access to setting or quit application, exit full-screen.
http://talk.maemo.org/attachment.php?attachmentid=12314&stc=1&d=1279744480

FarmerF
07-22-2010, 09:20 AM
Very interesting app indeed. I do hope you will still upload it to the repo's regardless of the competition.

klen
07-23-2010, 08:13 AM
I have just created a debian package. You can downloade it from
metre_0.0.1-1_armel.deb (http://fs03n2.sendspace.com/dl/4f50dad4d0635004389eaee8b7933b3c/4c49fe535e490893/6mpfwc/metre_0.0.1-1_armel.deb)

I have changed the name of the app to Metre. The deb package is called metre_0.0.1-1_armel.deb.

It will be uploaded to extras-dev repo later on today.

Helmuth
07-23-2010, 09:49 AM
It will be uploaded to extras-dev repo later on today.

Thanks dude! :)

If it's your first time and you need some help have a look at one of the easiest ways to upload to extra devel:
http://maemo.org/packages/view/python2.5-py2deb/

And don't forget to fix the bucktracker issue:
http://wiki.maemo.org/Py2deb

klen
07-23-2010, 10:04 AM
Thanks dude! :)

If it's your first time and you need some help have a look at one of the easiest ways to upload to extra devel:
http://maemo.org/packages/view/python2.5-py2deb/

Tanks for trying to help.

I am now waiting to gain rights for uploading to extras-dev. I already made a deb package and it is not a python app so i guess it can't help me a lot.
Klen

kojacker
07-23-2010, 10:12 AM
Hi Klen, welcome to the comp! Certainly having a .deb won't get you thrown out, we just have to let people know it's not on the repsitory and where to get it :)

You were registered on the wiki in plenty good time, as yet I didnt get any pm from you with further details to put on the voting thread. Most of the details are actually here on this thread and I can get them from here, but ofcourse you might well be better off choosing what you want written rather than me taking it for you :)

It says now on the wiki, above the participants table you filled in, that a good general outline to send me is:

*App name:
*Author:
*Brief description:
*Screenshot(s):
*Features/work to be judged:
*Package name and where to find the app/repository:
*Maemo.org thread or garage thread (if exists)

If you'd like to send me those details in a PM I'll be sure to use them when creating the voting thread. Im expecting the voting thread for System&Utilities to be created tonight or tomorrow.

Bratag
07-23-2010, 10:16 AM
I have to give this a try. A very interesting approach to the problem.

knopow
07-23-2010, 10:51 AM
Errors were encountered while processing:
account-plugin-salut
E: Sub-process /usr/bin/dpkg returned an error code (1)

want to test app but recieve above error

Rob1n
07-23-2010, 11:08 AM
Errors were encountered while processing:
account-plugin-salut
E: Sub-process /usr/bin/dpkg returned an error code (1)

want to test app but recieve above error

Well, that error has absolutely nothing to do with this application. It's one that's come up a few times before - I think the post-install script is broken or something. Anyway, use the Power Search on the right and you should find the relevant thread(s).

Helmuth
07-23-2010, 11:10 AM
I already made a deb package and it is not a python app so i guess it can't help me a lot.

The name is totally confusing, I know. It's a python script you can use to create maemo autobuilder compatible files (you need more than only a deb file). It doesn't matter what kind of app you wan't to package using this script. :)

But good to hear you're working on it. I will give your app a try... in my imagination I have only to have a 6cm ruler with me to calibrate and then zoom out to measure a whole room. :rolleyes:

qwerty12
07-23-2010, 11:16 AM
Its doesn't matter what kind of app you wan't to package. :)


Well, depends. I certainly would never recommend it for compiled apps. It doesn't understand the concept of building an app and nor does it understand the difference between all and any. So, with the former, if you're uploading a compiled app to free using it, you're only able to upload the binary.

Also, I'm sure I'm not alone in disliking the rules and control files generated by it. People should just learn to use Debian's packaging tools. God knows there's enough guides on how to use them.

AlMehdi
07-23-2010, 11:36 AM
Errors were encountered while processing:
account-plugin-salut
E: Sub-process /usr/bin/dpkg returned an error code (1)

want to test app but recieve above error

It's solvable.. by removing some files in /var/lib/dpkg/info/. I am not sure of which. And what ever you do.. do not remove all the files in there. It will break your device.

Bratag
07-23-2010, 11:51 AM
The libs required are 12MB of space - are the optified?

EDIT: Looks like they are.

klen
07-23-2010, 05:03 PM
Errors were encountered while processing:
account-plugin-salut
E: Sub-process /usr/bin/dpkg returned an error code (1)

want to test app but recieve above error

I flashed my N900 with the latest frameware and managed to install the metere_0.0.1-1_armel.deb package without any problems. The only libraries I needed to install were openCV libraries.

You can get it by:
apt-get install libcv4 libcvaux4 libhighgui4

Hope this helps.

Klen

gryllida
07-24-2010, 11:05 PM
Hi klen!

http://www.kimag.es/share/54555205.png

It works as intended. Crashed about five times in first ten minutes of usage. Something feature like crash stack trace might be useful to help troubleshoot the problem. Thanks so much, it's practically a great idea. ~~Gryllida

klen
07-25-2010, 06:22 AM
Hi klen!
http://www.kimag.es/share/54555205.png
It works as intended. Crashed about five times in first ten minutes of usage. Something feature like crash stack trace might be useful to help troubleshoot the problem. Thanks so much, it's practically a great idea. ~~Gryllida

Can you pleas let me know at which step does the app crash? I tried to crash it now and did not manage to do so.

Thanks for the feedback and I am happy to hear that is worked for you.

PS: You can also draw your own arrows on the screen by dragging from point A to point B.

Thanks again,

Klen

nicolai
07-25-2010, 09:51 AM
Hi klen,

It took me some time to figure out, I have to press the capture
icon to actually measure a distance, right?
What you wrote in step 2 sounds like, I have to
press the capture button only if the object does not fit
in screen and after moving away.

And the same here, the application crashed many times, mostly
after pressing the capture button.

regards
nicolai

klen
07-25-2010, 03:37 PM
Hi klen,

It took me some time to figure out, I have to press the capture
icon to actually measure a distance, right?
What you wrote in step 2 sounds like, I have to
press the capture button only if the object does not fit
in screen and after moving away.


Thanks for the feedback. I went through the help steps and agree with your comment. It was not clearly stated that you need to press "CAPTURE" in order to measure the object. Made some changes to PROCEDURE steps. Hope it makes more sense now.

Klen

gryllida
07-28-2010, 09:46 AM
Hi Klen!

http://www.kimag.es/share/54555205.png

It works as intended. Crashed about five times in first ten minutes of usage. Something feature like crash stack trace might be useful to help troubleshoot the problem. Thanks so much, it's practically a great idea. ~~Gryllida

----

Can you pleas let me know at which step does the app crash? I tried to crash it now and did not manage to do so.
Thanks for the feedback and I am happy to hear that is worked for you.
PS: You can also draw your own arrows on the screen by dragging from point A to point B.
Thanks again,
Klen

----

Hi Klen, I've tried testing your program at dark. It turns the light on when calibrating, but doesn't keep it on when the features have been found, leading to their quick loss.

I'm not able to get exact steps to reproduce, the crashes often happen during calibration, without any message, the application just closes off. Having detailed crash info might be very helpful, e.g. like this one (http://crash-stats.mozilla.com/report/index/234078cd-c208-43b8-9cf9-e28cd2100706) includes a stack trace. ~~Gryllida

jd4200
07-28-2010, 10:18 AM
Voted just because you spelt metre correctly :p

Oh and the app looks preety slick!