Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check if video recording is good / file sizes / how it looks / which camera it records #73

Open
ugurkanates opened this issue May 16, 2021 · 1 comment
Assignees

Comments

@ugurkanates
Copy link
Collaborator

No description provided.

@cenarturkmen
Copy link
Collaborator

we can get camera image relative to car or drone, just need to define custom camera from settings.json. We can also record from custom camera. file size related to camera resolution.

ezgif-7-05fcffcdf7b5

settings.json

{
  "SeeDocsAt": "https://github.com/Microsoft/AirSim/blob/master/docs settings.md",
  "Vehicles": {
    "PhysXCar": {
      "VehicleType": "PhysXCar",
      "AutoCreate": true,
      "PawnPath": "",
      "EnableCollisionPassthrogh": false,
      "EnableCollisions": true,
      "AllowAPIAlways": true,
      "RC": {
        "RemoteControlID":-1,
        "AllowAPIWhenDisconnected": false
      },
      "Cameras": {
      	"DenemeCamera": {
	    "CaptureSettings": [
	    {
	    "ImageType": 0,
	    "Width": 500,
	    "Height": 500,
	    "FOV_Degrees": 90,
	    "AutoExposureSpeed": 100,
	    "AutoExposureBias": 0,
	    "AutoExposureMaxBrightness": 0.64,
	    "AutoExposureMinBrightness": 0.03,
	    "MotionBlurAmount": 0,
	    "TargetGamma": 1.0,
	    "ProjectionMode": "",
	    "OrthoWidth": 5.12
	    }
	    ],
	    "NoiseSettings": [
	    {
	    "Enabled": false,
	    "ImageType": 0,
	    
		"RandContrib": 0.2,
		"RandSpeed": 100000.0,
		"RandSize": 500.0,
		"RandDensity": 2,
	    
		"HorzWaveContrib":0.03,
		"HorzWaveStrength": 0.08,
		"HorzWaveVertSize": 1.0,
		"HorzWaveScreenSize": 1.0,
	    
		"HorzNoiseLinesContrib": 1.0,
		"HorzNoiseLinesDensityY": 0.01,
		"HorzNoiseLinesDensityXY": 0.5,
	    
		"HorzDistortionContrib": 1.0,
		"HorzDistortionStrength": 0.002
	      }
	    ],
	    "Gimbal": {
	      "Stabilization": 0,
	      "Pitch": 0, "Roll": 0, "Yaw": 0
	    },
	    "X": 0, "Y": 5, "Z": -3,
	    "Pitch": 0, "Roll": 0, "Yaw": 0
	    },
	"DenemeCamera2": {
	    "CaptureSettings": [
	    {
	    "ImageType": 0,
	    "Width": 750,
	    "Height": 750,
	    "FOV_Degrees": 90,
	    "AutoExposureSpeed": 100,
	    "AutoExposureBias": 0,
	    "AutoExposureMaxBrightness": 0.64,
	    "AutoExposureMinBrightness": 0.03,
	    "MotionBlurAmount": 0,
	    "TargetGamma": 1.0,
	    "ProjectionMode": "",
	    "OrthoWidth": 5.12
	    }
	    ],
	    "NoiseSettings": [
	    {
	    "Enabled": false,
	    "ImageType": 0,
	    
		"RandContrib": 0.2,
		"RandSpeed": 100000.0,
		"RandSize": 500.0,
		"RandDensity": 2,
	    
		"HorzWaveContrib":0.03,
		"HorzWaveStrength": 0.08,
		"HorzWaveVertSize": 1.0,
		"HorzWaveScreenSize": 1.0,
	    
		"HorzNoiseLinesContrib": 1.0,
		"HorzNoiseLinesDensityY": 0.01,
		"HorzNoiseLinesDensityXY": 0.5,
	    
		"HorzDistortionContrib": 1.0,
		"HorzDistortionStrength": 0.002
	      }
	    ],
	    "Gimbal": {
	      "Stabilization": 0,
	      "Pitch": 0, "Roll": 0, "Yaw": 0
	    },
	    "X": 0, "Y": 0, "Z": -5,
	    "Pitch": 0, "Roll": 0, "Yaw": 0
	    }
		
	      },
	      "X": 0, "Y": 0, "Z": 0,
	      "Pitch": 0, "Roll": 0, "Yaw": 0
 } 
 } ,
 
 	       
  "SubWindows": [
    {"WindowID": 0, "CameraName": "DenemeCamera2", "ImageType": 0, "VehicleName": "", "Visible": false},
    {"WindowID": 1, "CameraName": "DenemeCamera", "ImageType": 0, "VehicleName": "", "Visible": false}
  ],
  
  "Recording": {
    "RecordOnMove": false,
    "RecordInterval": 0.05,
    "Folder": "",
    "Enabled": false,
    "Cameras": [
        { "CameraName": "DenemeCamera2", "ImageType": 0, "PixelsAsFloat": false,  "VehicleName": "", "Compress": true }
    ]
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants