Register    Login    Forum    Search    FAQ

Board index » Software » Linux




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post Posted: Mon Oct 02, 2017 9:14 am 
Offline
User avatar

Joined: Mon Feb 16, 2015 6:37 pm
Posts: 30
Location: Norway
darkframe must be created with http://astronomy-imaging-camera.com/sof ... .0.0.2.exe
AMCap directshow filter as bmp
PS. remember to start Preview before taking darkframe or else the program might hang!


------------------------------------
Update:
I had old version of libASICamera2.so in my /usr/local/lib folder
Now it say load dark ok but it is no difference... hot pixels are still not removed
Attachment:
darkscreen2.png
darkscreen2.png [ 13.36 KiB | Viewed 308 times ]


Is it something wrong with the darkframe?
Here is darkframe and normal black image and normal with dark frame subtraction
http://klo.no/pi/asisnap/dark/dark2.bmp
http://klo.no/pi/asisnap/dark/normal2.jpg
http://klo.no/pi/asisnap/dark/normal2_with_darkframe.jpg

Here is the source code:
Attachment:
asisnap13b.zip [6.23 KiB]
Downloaded 11 times


I keep the lens cap on all the time to see if the red and blue dots are removed when applying darkframe. Thats why all images are black but darkframe is raw8bit bmp and the other is normal jpg images.

Br,
Hamak





--------------------------------------------------------------------------------
Hello
Trying to add dark frame subtraction to asiSnap (next version) but get this error:
Code:
load dark failed 7


The code I use is from main_SDK2_snap.cpp
Code:
ASI_ERROR_CODE err = ASIEnableDarkSubtract(CamNum, "dark.bmp");
   if(err == ASI_SUCCESS)
      printf("load dark ok\n");
   else
      printf("load dark failed %d\n", err);


When compiling I get this warning:
Code:
capture.cpp: In function ‘int main(int, char**)’:
capture.cpp:391:62: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
 ASI_ERROR_CODE err = ASIEnableDarkSubtract(CamNum, "dark.bmp");


When I run the program everything works except dark frame with error code 7?

Here is the dark.bmp http://klo.no/pi/asisnap/dark/dark.bmp

I have attached screenshot when running the program

Hope someone can help with this


Attachments:
darkscreen.png
darkscreen.png [ 31.6 KiB | Viewed 315 times ]


Last edited by hamak on Tue Oct 10, 2017 9:05 pm, edited 1 time in total.
Top 
 Profile  
Reply with quote  
 Post Posted: Mon Oct 09, 2017 1:34 am 
Offline
Site Admin

Joined: Fri Jul 25, 2014 2:43 am
Posts: 194
Hi, Maybe there is something wrong with the dark frame, how did you make the dark bmp?

_________________
ZWO software engineer
Location:lon=120.6 lat=31.3
SuZhou China


Top 
 Profile  
Reply with quote  
 Post Posted: Mon Oct 09, 2017 5:20 am 
Offline
User avatar

Joined: Mon Feb 16, 2015 6:37 pm
Posts: 30
Location: Norway
yang wrote:
Hi, Maybe there is something wrong with the dark frame, how did you make the dark bmp?


Hello Yang
I tried to create tree darkframes
one is made with SharpCap but this saves the darkframe as png

then I just took a darkframe from the command line with raw8 bmp and tried to use this
I also created a black image in paint shop pro 3096x2080 and set it to 256 color pallettte and saved it as windows/os2 BMP with rgb colors

all images ecept png, jpg and tiff can be used as darkframe it looks like.

Is it a safe process do create a workable darkframe with bmp?

NB. when I converted the darkframe from SharpCap to bmp it was accepted into the program but none of them works.

Attachment:
screenshop1.jpg
screenshop1.jpg [ 93.11 KiB | Viewed 254 times ]


Br,
Hamak


Top 
 Profile  
Reply with quote  
 Post Posted: Mon Oct 09, 2017 8:31 am 
Offline
Site Admin

Joined: Fri Jul 25, 2014 2:43 am
Posts: 194
You can make the dark bmp file with our directshow driver:
http://astronomy-imaging-camera.com/sof ... .0.0.2.exe


Attachments:
make dark frame.png
make dark frame.png [ 74.52 KiB | Viewed 251 times ]

_________________
ZWO software engineer
Location:lon=120.6 lat=31.3
SuZhou China
Top 
 Profile  
Reply with quote  
 Post Posted: Mon Oct 09, 2017 9:44 am 
Offline
User avatar

Joined: Mon Feb 16, 2015 6:37 pm
Posts: 30
Location: Norway
yang wrote:
You can make the dark bmp file with our directshow driver:
http://astronomy-imaging-camera.com/sof ... .0.0.2.exe


Hello again Yang
I have now tried this on both windows 7 x64 and windows 10 x64 but the program hangs when trying to take dark frame picture.

Tried with default settings and with the settings I will use: exposure 6s and gain 280 but even default settings hangs the program

Attached zip file from windows 10 machine with pictures of each step
Attachment:
DarkFrame Win10 Fail.zip [115.75 KiB]
Downloaded 13 times


What am I doing wrong here?

Br,
Hamak


Top 
 Profile  
Reply with quote  
 Post Posted: Mon Oct 09, 2017 10:46 am 
Offline
User avatar

Joined: Mon Feb 16, 2015 6:37 pm
Posts: 30
Location: Norway
hamak wrote:
yang wrote:
You can make the dark bmp file with our directshow driver:
http://astronomy-imaging-camera.com/sof ... .0.0.2.exe


Hello again Yang
I have now tried this on both windows 7 x64 and windows 10 x64 but the program hangs when trying to take dark frame picture.

Tried with default settings and with the settings I will use: exposure 6s and gain 280 but even default settings hangs the program

Attached zip file from windows 10 machine with pictures of each step
Attachment:
DarkFrame Win10 Fail.zip


What am I doing wrong here?

Br,
Hamak



I had to enable preview to get it to work. Then save dialog also appeared!
Now I am going to test it on the camera tonight and see if it works
Thanks Yang


Top 
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
 
Post new topic Reply to topic  [ 6 posts ] 

Board index » Software » Linux


Who is online

Users browsing this forum: Baidu [Spider] and 2 guests

 
 

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: