gkv311 / sview

Stereoscopic media player
GNU General Public License v3.0
97 stars 35 forks source link

Try autodetecting QooCam EGO side-by-side DNG photos #136

Open gkv311 opened 1 month ago

gkv311 commented 1 month ago

QooCam EGO camera stores photos in parallel format within DNG files. It would be helpful to try auto-detecting stereoscopic format of these photos, although it seems that they lack information in any standardized form. Instead, it seems that software coming with the camera detects this information from 'User Comment' section:

File Size                       : 53 MB
File Type                       : DNG
MIME Type                       : image/x-adobe-dng
Exif Byte Order                 : Little-endian (Intel, II)
Make                            : Kandao
Camera Model Name               : QG7018
Preview Image Start             : 48524288
Orientation                     : Horizontal (normal)
Preview Image Length            : 4000499
Software                        : v2.8.10
Modify Date                     : 2024:09:22 12:10:37
Subfile Type                    : Full-resolution image
Image Width                     : 8000
Image Height                    : 3000
Bits Per Sample                 : 16
Compression                     : Uncompressed
Photometric Interpretation      : Color Filter Array
Strip Offsets                   : 524288
Samples Per Pixel               : 1
Rows Per Strip                  : 3000
Strip Byte Counts               : 48000000
X Resolution                    : 72
Y Resolution                    : 72
Planar Configuration            : Chunky
Resolution Unit                 : inches
CFA Repeat Pattern Dim          : 2 2
CFA Pattern 2                   : 2 1 1 0
CFA Layout                      : Rectangular
Black Level Repeat Dim          : 1 1
Black Level                     : 4096
White Level                     : 65530
Default Scale                   : 1 1
Default Crop Origin             : 0 0
Default Crop Size               : 8000 3000
Anti Alias Strength             : 1
Best Quality Scale              : 1
Opcode List 3                   : GainMap
Exposure Time                   : 1/15
F Number                        : 1.8
Exif Version                    : 0230
Aperture Value                  : 1.0
Exposure Compensation           : 0
Max Aperture Value              : 1.9
Focal Length                    : 4.8 mm
User Comment                    : QooCam+EGO                                                                                       PRODUCT=QooCam+EGO PROJECT=Eagle PR_VER=1 HW_VER=V3.0 SW_VER=v2.8.10 LENS=14b614e44614f43406d455261e0313200401f0000b80b0000da894145e227f94401b5bd445be9353d3c11a4bd753e9c3d000000000000803fbccf11b8daec733934d9153870ff7f3fdb9e87bbb1c573b9ec9e873b70ff7f3f000000800000008000000080c800000000000000ffffffff56..24b614e44614f43406d455261e0313201401f0000b80b000065bc41454f45bb45c2a1bb445be9353d3c11a4bd753e9c3d0000000075fe7f3faf35d0ba2b9adabbf623c73a68fc7f3f4fce29bc3421db3bc6a2293c06fb7f3fbffecfc038cd21bcfb0a32bdc800000000000000ffffffff5a..34b614e44614f43406d455261e0313202401f0000b80b000020a341452246f744c8a2bc445be9353d3c11a4bd753e9c3d000000000000803f602b55a700d669a803c45027afff7f3ff1d14bbb00166a28f1d14b3bafff7f3f000000000000000000000000c800000000000000ffffffff59..44b614e44614f43406d455261e0313203401f0000b80b000020a3414588d1ba45c8a2bc445be9353d3c11a4bd753e9c3d000000005cfe7f3fc435c63a548be23b0007c9ba9bff7f3f51794b3b9963e2bbe9294cbb1efe7f3f000000000000000000000000c800000000000000ffffffff0d.. PTS=1727007038359 CPU_TEMP=61 SENSOR_TEMP=56,52 FOCUS_TARGET=4325mm,4325mm FOCUS_DISTANCE=0mm,0mm FOCUS_LEVEL=427,435 IMUHEX=011701A60127370803282D6A EXPINFO0=0000153B,00000400,00000400,00010469 EXPINFO1=0000153A,00000400,00000400,00010469 WBINFO0=076D,0400,0400,06FD,188C WBINFO1=076D,0400,0400,06FD,1A8E MAT0=06A8,1DFB,1F5D,0400,1F4B,05FE,1EB7,0400,1FE5,1DE1,063A,0400 MAT1=06A8,1DFB,1F5D,0400,1F4B,05FE,1EB7,0400,1FE5,1DE1,063A,0400 RECTIFY=0 RECTIFY_LUT_BLOCK_SIZE=64,64 RECTIFY_CROP_RATIO=0.0158,0.0159,0.0176,0.0141
Sensing Method                  : One-chip color area
White Balance                   : Auto
Focal Length In 35mm Format     : 27 mm
Exposure Program                : Not Defined
ISO                             : 528
Date/Time Original              : 2024:09:22 12:10:37
Create Date                     : 2024:09:22 12:10:37
Metering Mode                   : Average
XP Comment                      : 0.0.000
Color Space                     : sRGB
Exposure Mode                   : Auto
DNG Version                     : 1.4.0.0
DNG Backward Version            : 1.1.0.0
Unique Camera Model             : KanDao Digital Camera
Color Matrix 1                  : 0.9539 -0.5309 0.0746 -0.354 0.97 0.4502 -0.0423 0.1335 0.5083
Color Matrix 2                  : 0.7664 -0.2266 -0.0578 -0.4516 1.2609 0.2116 -0.0918 0.2061 0.5102
Analog Balance                  : 1 1 1
As Shot Neutral                 : 0.5386638611 1 0.5723868083
Baseline Exposure               : -0.04
Baseline Noise                  : 1
Baseline Sharpness              : 1
Linear Response Limit           : 1
Shadow Scale                    : 1
Calibration Illuminant 1        : Standard Light A
Calibration Illuminant 2        : D65
Profile Name                    : Embedded
Profile Embed Policy            : Allow Copying
Noise Profile                   : 0.00027914885692875 9.9002188059e-07
Aperture                        : 1.8
CFA Pattern                     : [Blue,Green][Green,Red]
Image Size                      : 8000x3000
Megapixels                      : 24.0
Preview Image                   : (Binary data 4000499 bytes, use -b option to extract)
Scale Factor To 35 mm Equivalent: 5.7
Shutter Speed                   : 1/15
Circle Of Confusion             : 0.005 mm
Field Of View                   : 67.4 deg
Focal Length                    : 4.8 mm (35 mm equivalent: 27.0 mm)
Hyperfocal Distance             : 2.38 m
Light Value                     : 3.2

Note that it seems FFmpeg 7.1 is unable to apply automatic color-conversion from DNG format, so usability of supporting DNG by sView is currently under the question.

gkv311 commented 1 month ago

Sample file: 0010_20240922_121023.dng.zip