AllskyTeam / allsky

A Raspberry Pi operated Wireless Allsky Camera
MIT License
1.15k stars 180 forks source link

OpenCV Error - RaspPi4, Buster, ASI120MC-S #181

Closed robertpascale closed 4 years ago

robertpascale commented 4 years ago

Hi Thomas, I've installed from a fresh Raspbian build, got everything installed fine. Setup the GUI, also works fine. I get a single image after I save the config file, but subsequently all images are black. Running from the command line, there are two errors that occur.

Not sure how to tackle the below, but hoping you can provide some guidance:

pi@allsky:~/allsky $ ./allsky.sh preview
can't get debug descriptor: Resource temporarily unavailable
Starting allsky camera...

 ******************************************
 *** Allsky Camera Software v0.6 | 2019 ***
 ******************************************

Capture images of the sky with a Raspberry Pi and an ASI Camera

Add -h or -help for available options 

Author: Thomas Jacquin - <jacquin.thomas@gmail.com>

Contributors:
-Knut Olav Klo
-Daniel Johnsen
-Yang and Sam from ZWO
-Robert Wagner
-Michael J. Kidd - <linuxkidd@gmail.com>

Listing Attached Cameras:
- 0 ZWO ASI120MC-S

ZWO ASI120MC-S Information:
- Resolution:1280x960
- Pixel Size: 3.8μm
- Supported Bin: 1 2 
- Color Camera: bayer pattern:GR
- SDK version 1, 14, 1227
- Initialise Camera OK
- Sensor temperature:23.000000

Capture Settings: 
 Image Type: ASI_IMG_RGB24
 Resolution: 1280x960 
 Quality: 95 
 Exposure: 10000ms
 Max Exposure: 20000ms
 Auto Exposure: 1
 Gain: 50
 Max Gain: 200
 Cooler Enabled: 0
 Target Temperature: 0C
 Auto Gain: 0
 Brightness: 50
 Gamma: 50
 WB Red: 53
 WB Blue: 90
 Binning: 1
 Delay: 10ms
 Daytime Delay: 5000ms
 USB Speed: 40
 Text Overlay: text
 Text Position: 15px left, 30px top
 Font Name:  0
 Font Color: 255 , 255, 255
 Small Font Color: 0 , 0, 255
 Font Line Type: 16
 Font Size: 0.7
 Font Line: 1
 Outline Font : 0
 Flip Image: 0
 Filename: image.jpg
 Latitude: 37.7477S
 Longitude: 145.1949E
 Sun Elevation: -6
 Preview: 1
 Time: 1
 Darkframe: 0
 Show Details: 1

Starting daytime capture
Saving auto exposed images every 5000 ms

Press Ctrl+C to stop

OpenCV Error: Bad flag (parameter or structure field) (Unrecognized or unsupported array type) in cvGetMat, file /build/opencv-L65chJ/opencv-3.2.0+dfsg/modules/core/src/array.cpp, line 2501
terminate called after throwing an instance of 'cv::Exception'
  what():  /build/opencv-L65chJ/opencv-3.2.0+dfsg/modules/core/src/array.cpp:2501: error: (-206) Unrecognized or unsupported array type in function cvGetMat

./allsky.sh: line 32:  9903 Aborted                 ./capture $ARGUMENTS
robertpascale commented 4 years ago

It started working after dark. Not sure if this is just an initialisation issue. Closing