maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   Metre App "Maemo Coding Competition Submission" (Name Changed from Ruler App) (https://talk.maemo.org/showthread.php?t=58907)

klen 2010-07-21 21:07

Metre App "Maemo Coding Competition Submission" (Name Changed from Ruler App)
 
3 Attachment(s)
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 (Archive RulerApp)
Debian Package Now Available: 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...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...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...1&d=1279744480

FarmerF 2010-07-22 13:20

Re: Ruler App "Maemo Coding Competition Submission"
 
Very interesting app indeed. I do hope you will still upload it to the repo's regardless of the competition.

klen 2010-07-23 12:13

Re: Ruler App "Maemo Coding Competition Submission"
 
I have just created a debian package. You can downloade it from
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 2010-07-23 13:49

Re: Ruler App "Maemo Coding Competition Submission"
 
Quote:

Originally Posted by klen (Post 762102)
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 2010-07-23 14:04

Re: Ruler App "Maemo Coding Competition Submission"
 
Quote:

Originally Posted by Helmuth (Post 762222)
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 2010-07-23 14:12

Re: Ruler App "Maemo Coding Competition Submission"
 
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 2010-07-23 14:16

Re: Ruler App "Maemo Coding Competition Submission"
 
I have to give this a try. A very interesting approach to the problem.

knopow 2010-07-23 14:51

Re: Ruler App "Maemo Coding Competition Submission"
 
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 2010-07-23 15:08

Re: Ruler App "Maemo Coding Competition Submission"
 
Quote:

Originally Posted by knopow (Post 762293)
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 2010-07-23 15:10

Re: Ruler App "Maemo Coding Competition Submission"
 
Quote:

Originally Posted by klen (Post 762244)
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 2010-07-23 15:16

Re: Ruler App "Maemo Coding Competition Submission"
 
Quote:

Originally Posted by Helmuth (Post 762314)
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 2010-07-23 15:36

Re: Ruler App "Maemo Coding Competition Submission"
 
Quote:

Originally Posted by knopow (Post 762293)
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 2010-07-23 15:51

Re: Ruler App "Maemo Coding Competition Submission"
 
The libs required are 12MB of space - are the optified?

EDIT: Looks like they are.

klen 2010-07-23 21:03

Re: Ruler App "Maemo Coding Competition Submission"
 
Quote:

Originally Posted by knopow (Post 762293)
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 2010-07-25 03:05

Re: Metre App "Maemo Coding Competition Submission" (Name Changed from Ruler App)
 
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 2010-07-25 10:22

Re: Metre App "Maemo Coding Competition Submission" (Name Changed from Ruler App)
 
Quote:

Originally Posted by gryllida (Post 763754)
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 2010-07-25 13:51

Re: Metre App "Maemo Coding Competition Submission" (Name Changed from Ruler App)
 
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 2010-07-25 19:37

Re: Metre App "Maemo Coding Competition Submission" (Name Changed from Ruler App)
 
Quote:

Originally Posted by nicolai (Post 764117)
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 2010-07-28 13:46

Re: Metre App "Maemo Coding Competition Submission" (Name Changed from Ruler App)
 
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 includes a stack trace. ~~Gryllida

jd4200 2010-07-28 14:18

Re: Metre App "Maemo Coding Competition Submission" (Name Changed from Ruler App)
 
Voted just because you spelt metre correctly :p

Oh and the app looks preety slick!

klen 2013-09-03 17:00

Re: Metre App "Maemo Coding Competition Submission" (Name Changed from Ruler App)
 
1 Attachment(s)
Fantastic Result. Thanks to everyone for votes.

Attachment 33283

misiak 2013-09-03 17:31

Re: Metre App "Maemo Coding Competition Submission" (Name Changed from Ruler App)
 
Quote:

Originally Posted by klen (Post 1371723)
Fantastic Result. Thanks to everyone for votes.

Better late than never... :P

nokiabot 2013-09-03 17:48

Re: Metre App "Maemo Coding Competition Submission" (Name Changed from Ruler App)
 
are you cooking more goodies:):D

pinoverclock 2013-09-12 11:17

Re: Metre App "Maemo Coding Competition Submission" (Name Changed from Ruler App)
 
No working links for downloading, can we have new ones please? :)

pichlo 2013-09-12 11:24

Re: Metre App "Maemo Coding Competition Submission" (Name Changed from Ruler App)
 
Quote:

Originally Posted by pinoverclock (Post 1373821)
No working links for downloading, can we have new ones please? :)

Seconded. I have always wanted this app but it has disappeared from the surface of the Earth.

Estel 2014-03-28 02:08

Re: Metre App "Maemo Coding Competition Submission" (Name Changed from Ruler App)
 
That happens when dev isn't persuaded to put program into repos strong enough :/ I bet if CC would make it a rule that program must be in repos to take part in competition, we would have it up to this day...

Anyway, just bumping - if someone still have this program, please, share.

/Estel

klen 2014-03-28 08:57

Re: Metre App "Maemo Coding Competition Submission" (Name Changed from Ruler App)
 
Hi all,

First of all my apologies for not replying and thanks for your interest for the app.

The food news is that Estel volunteered to upload the .deb into repo so you will soon be able to get the app from there.

Best,
Klen

klen 2014-04-14 10:34

Re: Metre App "Maemo Coding Competition Submission" (Name Changed from Ruler App)
 
Download link for deb. Will be active untill the app is made available on repo.

http://148.88.67.49//projects/klen/m...re-0.1-deb.zip

Best,
Klen


All times are GMT. The time now is 08:09.

vBulletin® Version 3.8.8