fripon / freeture

A Free software to capTure meteors
http://fripon.github.io/freeture
GNU General Public License v3.0
56 stars 23 forks source link

Freeture ported to ARM64 #35

Open gmke opened 7 years ago

gmke commented 7 years ago

I have ported Freeture to the ARM64 architecture and used Aravis 0.6, boost 1.65 and OpenCV3.3. It runs stable on an Odroid-C2. We will use this setup for the Fripon-Cam at the Kepler observatory in Weil der Stadt, Germany. If somebody can find some time, adding a native camera support module for Basler cameras using Pylon5 (now available for ARM64) would be good. Although Aravis is a good idea, it lacks a lot of camera setup possibilities and has some performance limitations.

Markus

gmke commented 7 years ago

first test night completed, no failures, no buffer underruns

[2017-Sep-08 07:27:55.027356] (AcqThread) - CompleteDataPath : /home/odroid/fripon/data/JKS_20170908/captures/ [2017-Sep-08 07:28:05.164912] (DetectionTemporal) - Clear global events list. [2017-Sep-08 07:28:05.166755] (Device) - Stopping camera... [2017-Sep-08 07:28:05.167449] (CameraGigeAravis) - Completed buffers = 189074 [2017-Sep-08 07:28:05.168095] (CameraGigeAravis) - Failures = 0 [2017-Sep-08 07:28:05.168726] (CameraGigeAravis) - Underruns = 0 [2017-Sep-08 07:28:05.169291] (CameraGigeAravis) - Stopping acquisition... [2017-Sep-08 07:28:05.192484] (CameraGigeAravis) - Acquisition stopped. [2017-Sep-08 07:28:05.193018] (CameraGigeAravis) - Unreferencing stream. [2017-Sep-08 07:28:06.193106] (CameraGigeAravis) - Unreferencing camera. [2017-Sep-08 07:28:06.390148] (AcqThread) - Acquisition Thread TERMINATED

gmke commented 6 years ago

our system now completed the first month of regular operation without any problems. We run with 20fps to have a bit longer exposures and avoid missing packets. The system can cope with up to 24fps. The full 30fps would need a working jumbo packet feature. Unfortunately this is broken in the current version of Ubuntu 16.04 for the Odroid C2. Average load is 2.3 with 4 cores, plenty of cpu time reserve for the generation of the pictures and movies and running the webserver. My version of freeture is available on https://github.com/gmke/freeture/

gmke commented 6 years ago

I have used the custom size option in freeture to reduce the image size by 30%. With this payload reduction, its now possible to get the full 30fps with MONO16 and no packet errors. Unfortunately, there is no way to set the offset of this ROI. I directly changed the source code. It should become a parameter in the configuration.

I have created a group to discuss Fripon and Freeture. Please join at https://fripon.groups.io/g/main.

ArkadiuszRaj commented 6 years ago

Long ago I have taken this into discussion. You can check details here https://github.com/fripon/freeture/issues/17

gmke commented 6 years ago

it is easy to implement, they actually already use the arv_camera_set_region () function in the Aravis camera module CameraGigeAravis.cpp. arv_camera_set_region (ArvCamera *camera, gint x, gint y, gint width, gint height); in the code, but with x and y set to zero. I changed it to my needs.

ArkadiuszRaj commented 6 years ago

What can I say... https://github.com/fripon/freeture/pull/18