maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Multimedia (https://talk.maemo.org/forumdisplay.php?f=32)
-   -   camera-ui2 (now a part of CSSU) (updated 09. May) (https://talk.maemo.org/showthread.php?t=70870)

geohsia 2011-03-14 16:48

Re: camera-ui2 testers needed (updated 13.03)
 
If I had any clue how to install this I'd totally help. I have a quick question though regarding the DNG output you alluded to. Is the output similar to FCam or more like stock N900 camera output? The reason I ask is that the FCam output is incredibly difficult to profile because of color shift around the edges of the image where the image shows vignetting. Somehow the N900 stock camera app doesn't display any vignetting or color shifting on the edges.

cloud596 2011-03-14 16:59

Re: camera-ui2 testers needed (updated 13.03)
 
Quote:

Originally Posted by geohsia (Post 967609)
If I had any clue how to install this I'd totally help. I have a quick question though regarding the DNG output you alluded to. Is the output similar to FCam or more like stock N900 camera output? The reason I ask is that the FCam output is incredibly difficult to profile because of color shift around the edges of the image where the image shows vignetting. Somehow the N900 stock camera app doesn't display any vignetting or color shifting on the edges.

just extract it, and put it on under /usr/bin

woody14619 2011-03-14 18:33

Re: camera-ui2 testers neede
 
Quote:

Originally Posted by nicolai (Post 964358)
Sadly there is a bug in a gstreamer-component. Even if the buffer has the full 2592x1968 pixel data (this is the
raw resolution of the camera chip), the gstreamer plugin
only copies at image capture resolution (2576x1960).
That means there are some missing lines at the bottom of the
raw-image.

That may not be a flaw. I work with camera chips at work regularly, and know a bit about them. It may be that the upper/lower lines are actually masked lines (sensors with a black coating over them). Why would you do that? There are lots of reasons, but one of them is to help gauge how much drift you're getting and "noise" on the sensor. If you look at them, are they actually black (0), or something close to it? If it's the later, they're probably masked lines.

It may also be that the chip is not in the right mode. To get those masked regions sometimes the sensor itself has to be put into the right mode to report them back (vs just using them internally for row noise balancing and such). The cam developers at Nokia may have just gone with the default setup and let the pre-packaged module handle the dirty stuff for them. In that case, the code for putting the module into full-frame mode may not even be in there, even if it were open-sourced.

Great work on this. I haven't installed it myself yet just because I like having at least one stable camera. Lots of the ones I have around seem to be in various states of hacked, and I'm not willing to give up the one reliable one right now. :)

geohsia 2011-03-14 20:39

Re: camera-ui2 testers needed (updated 13.03)
 
Quote:

Originally Posted by cloud596 (Post 967619)
just extract it, and put it on under /usr/bin

I did and got a segmentation fault

nicolai 2011-03-14 21:14

Re: camera-ui2 testers needed
 
Quote:

Originally Posted by handaxe (Post 967575)
The same occurs with the new binary.... and indeed it is the exif that is wrong, as gimp displays the file correctly but notes that it "should be" rotated.

I was sure I did this right, but you are right, when rotating the device
clockwise 90 degree the exif orientation tag was wrong.
And fixed!
And I added a new keyboard short cut b/B for switching between
back and front-camera (only in *video* mode).
See attachment in my first post.

Nicolai

handaxe 2011-03-16 00:47

Re: camera-ui2 testers needed (updated 14.03)
 
The z key changes the zoom but the zoom slider doesn't slide as it does using the zoom rocker. Likewise, sliding the slider doesn't change the zoom.

I like those key commands very much. Makes macro focus muuuch easier as macro autufocus can be finicky.

Perhaps focus could be f 1, g 5 or 10 & h 50?

kudos!

nicolai 2011-03-16 01:04

Re: camera-ui2 testers needed
 
Quote:

Originally Posted by nicolai (Post 966843)
I found the reason for this, but no solution so far.
The original camera applications tags the videos
with an "classification" tag. This id starts with
noki://0/ followed by a 90 digit hex key.
I don't know what this key is.
In /apps/camera is a "device-id" key I don't know
what this key is either. But it doesn't seemed to be related
to this one.
If anyone has an idea what this key could be, I can
tag the video files the same way the original camera app
does it.
You can see your own classification id when you
play a video file with gst-launch:
gst-launch-0.10 -t playbin2 uri=file:///home/user/MyDocs/DCIM/<NAME_OF_THE_VIDEOFILE>

regards
Nicolai

The /apps/camera/settings/basic-settings/device-id
is a 25 byte random number.
And the classification id is made as follows:
Concat the 25 bytes device-id with 25 random bytes, and then compute the
sha1 hash of this 50 bytes. This results in a 20 byte hash key.
The classifcation-id is
20 byte hashkey + the above mentioned 25 random bytes!

nicolai 2011-03-16 09:57

Re: camera-ui2 testers needed (updated 13.03)
 
Quote:

Originally Posted by geohsia (Post 967758)
I did and got a segmentation fault

Are you sure you stopped the stock camera-ui before
trying to launch this one?

Nicolai

poogash 2011-03-16 18:07

Re: camera-ui2 testers needed (updated 14.03)
 
i have tried using the dsmetool command way and just replacing camera-ui with your file both give me instant reboot, just replacing gives me the reboot loop.

am i going about this all wrong? am i best just leaving it for more experianced users?

handaxe 2011-03-16 19:51

Re: camera-ui2 testers needed (updated 14.03)
 
Regarding dsmetool: I have found that I get a reboot if I try it on the n900 x-terminal BUT if I ssh in (as root) I can get it to work. I once had problems via ssh but I got it to work after the reboot. Since then, I have been able to use dsmetool via ssh to unload and reload between camera-ui and camera-ui2 at will.

What happens if you "dsmetool -k /usr/bin/camera-ui" as root and then try to run camera-ui2 from the terminal as user? (Note need of path to executable - I forgot to mention that first off until I read Nicolai's response...)

poogash 2011-03-16 20:41

Re: camera-ui2 testers needed (updated 14.03)
 
Quote:

Originally Posted by handaxe (Post 969151)
Regarding dsmetool: I have found that I get a reboot if I try it on the n900 x-terminal BUT if I ssh in (as root) I can get it to work. I once had problems via ssh but I got it to work after the reboot. Since then, I have been able to use dsmetool via ssh to unload and reload between camera-ui and camera-ui2 at will.

What happens if you "dsmetool -k camera-ui" as root and then try to run camera-ui2 from the terminal as user?

you are the man thanks a lot i'll give this bad boy a test

nicolai 2011-03-16 20:52

Re: camera-ui2 testers needed (updated 14.03)
 
Quote:

Originally Posted by poogash (Post 969079)
i have tried using the dsmetool command way and just replacing camera-ui with your file both give me instant reboot, just replacing gives me the reboot loop.

am i going about this all wrong? am i best just leaving it for more experianced users?

I run it from command line.
It isn't ready yet to replace the stock camera-ui. Please don't
use dsmetool. But I must admit, I don't had any reboots
when I used dsmetool.
First, be sure the stock camera-ui does not run.
dsmetool -k /usr/bin/camera-ui
then you can start my app with
dsmetool -t <where ever you put it>

Btw the stock camera-ui in /usr/bin/camera-ui isn't the real
application, but a link to /usr/bin/maemo-invoker.
When you start /usr/bin/camera-ui maemo-invoker
is started and starts (depending on the name of the link)
an application (/usr/bin/camera-ui.launch).
camer-ui.launch is the real camera-ui "application". It isn't really
an application but a shared library with a "main" function.
maemo-launcher now loads the shared library and calls this
main function.
This is how the maemo application framework tries to reduce
the start up time of the stock applications (modest, mediaplayer ...)

regards
Nicolai

AgogData 2011-03-16 20:52

Re: camera-ui2 testers needed (updated 14.03)
 
how can i install the application ? the file inside the .tar file doesn't have an extension

handaxe 2011-03-16 21:01

Re: camera-ui2 testers needed (updated 14.03)
 
Quote:

Originally Posted by AgogData (Post 969194)
how can i install the application ? the file inside the .tar file doesn't have an extension

It does not need an extension - untar it and that is the executable. You can run it from the command line as "./dir/dir/camera-ui2" the dir/dir bit being the path to where you have the executable. Or cd into the directory and "./camera-ui2" will do the trick. BUT, as Nicolai shows above, you first need to remove camera-ui from contention using dsmetool.

poogash 2011-03-16 21:11

Re: camera-ui2 testers needed (updated 14.03)
 
Quote:

Originally Posted by nicolai (Post 969192)
I run it from command line.
It isn't ready yet to replace the stock camera-ui. Please don't
use dsmetool. But I must admit, I don't had any reboots
when I used dsmetool.
First, be sure the stock camera-ui does not run.
dsmetool -k /usr/bin/camera-ui
then you can start my app with
dsmetool -t <where ever you put it>

Btw the stock camera-ui in /usr/bin/camera-ui isn't the real
application, but a link to /usr/bin/maemo-invoker.
When you start /usr/bin/camera-ui maemo-invoker
is started and starts (depending on the name of the link)
an application (/usr/bin/camera-ui.launch).
camer-ui.launch is the real camera-ui "application". It isn't really
an application but a shared library with a "main" function.
maemo-launcher now loads the shared library and calls this
main function.
This is how the maemo application framework tries to reduce
the start up time of the stock applications (modest, mediaplayer ...)

regards
Nicolai

thanks Nicolai i was using the dsmetool -k /usr/bin/camera-ui cmd in root and the dsmetool -t /usr/bin/camera-ui2 (where i unpacked your file) but this was causing a reboot. so i did as handaxe said and ran your file in user not root and it works.
i've got to say what i have seen it looks good works quite well.
i have found auto video mode is a litlle eratic in lower light levels the colour style short cut works well while recording.

Char 2011-03-16 21:16

Re: camera-ui2 testers needed (updated 14.03)
 
would running it like this cause problems?
nohup ~/bin/camera-ui2 >/dev/null &
I haven't seen any absurd effects on CPU ever since you updated it the first time. dsmetool -t always crashes for me :(

nicolai 2011-03-16 22:12

Re: camera-ui2 testers needed (updated 14.03)
 
Quote:

Originally Posted by Char (Post 969211)
would running it like this cause problems?
nohup ~/bin/camera-ui2 >/dev/null &

I don't know.
Quote:

Originally Posted by Char (Post 969211)
I haven't seen any absurd effects on CPU ever since you updated it the first time. dsmetool -t always crashes for me :(

Have you used the full path
dsmetool -t /fullpathtobinary

And of course, you can make your own .desktop file:


[Desktop Entry]
Encoding=UTF-8
Version=0.1
Type=Application
Name=camera_ap_camera
Exec=/usr/bin/camera-ui2
Icon=tasklaunch_camera
X-Osso-Service=com.nokia.cameraui2
X-Osso-Type=application/x-executable
X-Text-Domain=osso-camera-ui

poogash 2011-03-16 22:30

Re: camera-ui2 testers needed (updated 14.03)
 
i have noticed on after each photo is taken the transition from camera to the captured image has the open lens cover screen.
also when in front facing camera i need to restart camera to get back to the main camera.

does the front cam need extra software/drivers as it seems so dark?

nicolai 2011-03-16 22:45

Re: camera-ui2 testers needed (updated 14.03)
 
Quote:

Originally Posted by poogash (Post 969257)
i have noticed on after each photo is taken the transition from camera to the captured image has the open lens cover screen.

Yes, I will fix this.
Quote:

Originally Posted by poogash (Post 969257)
also when in front facing camera i need to restart camera to get back to the main camera.

Yes, capturing images with the front camera does not work. I added
the front camera only for the video mode, but I missed to
disable it when you change back to image capture mode.
Quote:

Originally Posted by poogash (Post 969257)
does the front cam need extra software/drivers as it seems so dark?

No, the front camera is just bad in low light environment.

Nicolai

nicolai 2011-03-16 23:18

Re: camera-ui2 testers needed (updated 17.03.)
 
Updated (see first post).

Fixed
- no "lenscover screen" in transition to the preview window.
- zoom key z/Z updates zoom slider
- switch back from frontcamera to backcamera when scene mode
changed to image capture mode.
- recorded videos are now in "recorded from device" category
- start image viewer/mediaplayer button in preview window
opens the image viewer/mediaplayer with the last taken image/video
(in the prior version the image viewer/ mediaplayer was just opened)
- preview window closes after deleting the image/video

Thank you for your feedback!

Nicolai

AgogData 2011-03-16 23:37

Re: camera-ui2 testers needed (updated 17.03.)
 
nicolai, i got "permission denied" when i typed :
/usr/bin/camera-ui2
after disabling the stock camera

poogash 2011-03-16 23:46

Re: camera-ui2 testers needed (updated 17.03.)
 
@nicolai the f/F short cut on focus seems to be disabled but the g/G still works

nicolai 2011-03-16 23:46

Re: camera-ui2 testers needed (updated 17.03.)
 
@AgogData
This happens, because you have untared the file on the
MyDocs partitition (which is a FAT partition and doesn't know
anything about user and execution rights)
You have to set the execution bits again:

chmod a+x /usr/bin/camera-ui2

handaxe 2011-03-17 00:21

Re: camera-ui2 testers needed (updated 17.03.)
 
Quote:

Originally Posted by poogash (Post 969282)
@nicolai the f/F short cut on focus seems to be disabled but the g/G still works

As it is an increment of 1 it is quite subtle. I too had some trouble testing but did best trying to change focus with f/F at around the macro distance. But perhaps there are issues...

I would like an intermediate focus jump but that may not be technically possible.

AgogData 2011-03-17 00:30

Re: camera-ui2 testers needed (updated 17.03.)
 
its awesome nicolai, i'm gonna use it insted of the stock one..but here is my experience :
- after launching it and opening the camera it was like the stock untill i lightly pressed the camera button, the camera-ui2 settings appeared.
- when i switch to video and pressed record it gace me the stand by screen and switched back to the stock camera or at least the camera-ui2 settings were removed.

F2thaK 2011-03-17 00:33

Re: camera-ui2 testers needed (updated 17.03.)
 
so this supports front camera now?

nicolai 2011-03-17 01:11

Re: camera-ui2 testers needed (updated 17.03.)
 
1 Attachment(s)
Quote:

Originally Posted by AgogData (Post 969298)
its awesome nicolai, i'm gonna use it insted of the stock one..but here is my experience :
- after launching it and opening the camera it was like the stock untill i lightly pressed the camera button, the camera-ui2 settings appeared.
- when i switch to video and pressed record it gace me the stand by screen and switched back to the stock camera or at least the camera-ui2 settings were removed.

You *have to* stop the stock camera-ui before launching
this one. They both react on lenscover and focus button press.
They don't work nicely together.
Quote:

Originally Posted by f2thak (Post 969303)
so this supports front camera now?

Video recording only.

This version is extremely experimental. Use the keyboard shortcut
r/R to toggle between raw image mode.
When raw image mode is enabled it stores an additional DNG
file with the raw image data.
This is really experimental I am not sure if this DNG
is valid. Some image tags are wrong or missing.

As noted here http://talk.maemo.org/showthread.php...358#post964358
There is a bug in a gstreamer component and therefor
some lines at the image bottom are missing.

regards
Nicolai

handaxe 2011-03-17 01:34

Re: camera-ui2 testers needed (updated 17.03.)
 
Quote:

Originally Posted by AgogData (Post 969298)
its awesome nicolai, i'm gonna use it insted of the stock one..but here is my experience :
- after launching it and opening the camera it was like the stock untill i lightly pressed the camera button, the camera-ui2 settings appeared.
- when i switch to video and pressed record it gace me the stand by screen and switched back to the stock camera or at least the camera-ui2 settings were removed.

Unloading the default camera-ui is what running
Code:

dsmetool -k /usr/bin/camera-ui
as root should do. As Nicolai writes, that must happen for you to be successful.

AgogData 2011-03-17 02:26

Re: camera-ui2 testers needed (updated 17.03.)
 
Thats what i did :
- dsmetool -k /usr/bin/camera-ui (root)
- /usr/bin/camera-ui2
xterm says its working ----> then i open the menu and choose camera
BUT when i type
- dsmetool -k /usr/bin/camera-ui2 (root)
it says [can't kill or not found, though its working]

so is it a matter of camera-ui not being stopped ?

handaxe 2011-03-17 02:55

Re: camera-ui2 testers needed (updated 17.03.)
 
Quote:

Originally Posted by nicolai (Post 969316)
This version is extremely experimental. Use the keyboard shortcut
r/R to toggle between raw image mode.
When raw image mode is enabled it stores an additional DNG
file with the raw image data.
This is really experimental I am not sure if this DNG
is valid. Some image tags are wrong or missing.

The DNG develops OK in rawtherapee, ufraw etc. The exif shortcomings are probably tolerable if they prove not to be correctable.

tnx

handaxe 2011-03-17 03:03

Re: camera-ui2 testers needed (updated 17.03.)
 
Quote:

Originally Posted by AgogData (Post 969357)
BUT when i type
- dsmetool -k /usr/bin/camera-ui2 (root)
it says [can't kill or not found, though its working]

No, you should not use "dsmetool -k /usr/bin/camera-ui2" as you never loaded camera-ui2 with dsmetool. When you have closed the x-terminal you can check what is running by typing
Code:

ps | grep camera
. There should be no camera-ui2. If there is then type
Code:

killall camera-ui2
. Then as root, you type
Code:

dsmetool -t /usr/bin/camera-ui
. This re-establishes the old default camera interface in a way that will have it auto-reload if it crashes etc.

nicolai 2011-03-17 11:05

Re: camera-ui2 testers needed (updated 17.03.)
 
Quote:

Originally Posted by handaxe (Post 969368)
The DNG develops OK in rawtherapee, ufraw etc. The exif shortcomings are probably tolerable if they prove not to be correctable.

tnx

They are correctable, I am just too lazy to implement it now :-)

Nicolai

AgogData 2011-03-17 13:07

Re: camera-ui2 testers needed (updated 17.03.)
 
thanks for the great camera app nicolai, i've created an beequeen widget to disable camera-ui and enable camera-ui2, so when i restart my phone i can activate it with one click :)

handaxe 2011-03-17 19:07

Re: camera-ui2 testers needed (updated 17.03.)
 
Quote:

Originally Posted by nicolai (Post 969573)
They are correctable, I am just too lazy to implement it now :-)

Nicolai

Oh yeah! As the preceding pages show, lazy is a real big problem for you ;).

I assume that RAW is a relative term here, as there clearly is processing done to produce the .dng. For instance, there is no vignetting of the sort that is so prominent in fcamera and thus clearly is a feature of the sensor.

geohsia 2011-03-18 03:31

Re: camera-ui2 testers needed (updated 17.03.)
 
I can't seem to get the RAW output. I use the keyboard and toggle r and no change. I only get the JPG image. I am using the latest build on the 1st post. I also tried the binary linked here

geohsia 2011-03-18 05:16

Re: camera-ui2 testers needed (updated 17.03.)
 
Quote:

Originally Posted by handaxe (Post 969368)
The DNG develops OK in rawtherapee, ufraw etc. The exif shortcomings are probably tolerable if they prove not to be correctable.

tnx

Was the DNG file just in the same DCIM directory? I did a "find . -name *.dng -print" but haven't found the files and I tried toggling 'r'. Do you know if the DNG files work on Lightroom? Would be interesting to see how well LR's NR / demosaic algorithms work on these files. I like FCam but the vignetting and color shift around the edges is horrible.

nicolai 2011-03-18 06:34

Re: camera-ui2 testers needed (updated 17.03.)
 
Quote:

Originally Posted by geohsia (Post 970032)
I can't seem to get the RAW output. I use the keyboard and toggle r and no change.

R - enable raw image mode
r - disable raw image mode
:-)

Swimm12984 2011-03-18 07:01

Re: camera-ui2 testers needed (updated 17.03.)
 
Nicolai...Amazing!

geohsia 2011-03-18 08:15

Re: camera-ui2 testers needed (updated 17.03.)
 
Quote:

Originally Posted by nicolai (Post 970089)
R - enable raw image mode
r - disable raw image mode
:-)

I had already tried R and tried it again just now but still don't see any RAW files in the DCIM directory.

Char 2011-03-18 08:36

Re: camera-ui2 testers needed (updated 17.03.)
 
just a suggestion. how about a multi-shot mode? it takes like 3-5 pictures at one shot, then you can pick the best one and delete the rest


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

vBulletin® Version 3.8.8