Support the registration of video shot by UAV through Camera Parameters, and the registered video can be superimposed on the map for display. Camera Parameters can be obtained through flight record file conversion, or directly using UAV subtitle files.
Operating instructions
UAV Video Registration includes obtaining flight record files, extracting parameters, Video Registration and other steps. The detailed steps are as follows:
Get Flight Log File (*.txt)
- Android phone: android/data/DJI. Go. V5/files/Flight Records folder.
- IOS Phone: Files/My iPhone/DJI Fly/Flight Records folder.
- Remote control with screen:
- With DJI FLY model: RM500 – Internal shared storage -- DJI-DJI. Go. V5 -- FlightRecord.
- With DJI GO4 model: RM500 – Internal shared storage -- DJI-DJI. Go. V4 -- FlightRecord.
- DJI RC PRO:Internal Storage/android/data/dji.go.v5/files/FlightRecord。
- Sikong 2:
- The remote controller is not installed with the SD card: the storage location of the flight record file in the remote controller: File Manager-Local Storage-DJI – com. DJI. Industry. Pilot – FlightRecord. The
- remote controller is installed with an SD card. After restarting according to the prompt, the flight record will be stored in the SD card. The path is: SD card \ DJI \ com. DJI. Industry. Pilot \ Flight Record.
TXT to CSV
Online conversion, the conversion address is https://www.phantomhelp.com/LogViewer/upload/, and the conversion steps are as follows:
- Carry out man-machine identity verification;
- Click "Brown" and select the *.txt file;
- Click "Upload Log" button;
- After waiting, copy the link in the following pop-up dialog box and open it in the browser;
- On the newly opened page, click the "Download CSV" button to download the converted CSV File. After downloading, decompress it to view the CSV File.
CSV Calculation/Extraction Parameters
- Calculate Camera Altitude: The camera altitude OSD. Height ft in the flight record file is in feet and needs to be converted to meters. Create a new field named height, convert feet to meters, 1m = 0.3048 feet, height = OSD. Height ft * 0.3048, and calculate the field as follows:
- Intercepting the flight record of Video Time segment: Since the flight record file contains the record of non-flight time, it is necessary to intercept the flight record of the corresponding time period according to the video shooting and End Time. The View By of the video shooting time and End Time is as follows:
- Video Name: If the MP4 name contains event information, you can directly obtain the Video Time from the Video Name, for example, DJI _ 20220921155327 _ 0001 _ W. MP4. The video was shot at 15:53:27 on September 21, 2022. End Time plus video duration is enough.
- Subtitle file (*.srt): The video shooting time is the time of the first frame in the subtitle file, and the video End Time is the time of the last frame, as shown in the following figure:
- Calculate Timestamp: Create a new timestamp field: Time, and calculate the timestamp based on the OSD. FlyTime field. The calculation formula is: = (E2-327.1) * 1000000, and then drag it to assign a value to each line.
Video Registration
- Video Access: Right click Datasource and select Create Dataset to display the Create Dataset dialog. Select Video from Type and display the Add Video Data dialog. Click the Add Local Video button on the dialog and select the UAV video file from the Exercise Data \ Video Registration \ UAV Registration.
- Select Camera Parameters: When creating a new Video Dataset, the software will automatically select the Camera Parameters File or Subtitle File with the same name in the same Video folder by default; If Parameter File or subtitle file is not selected by default when creating a new Video Dataset, You can also select CSV File through Video Registration tab-> Camera Parameter Conversion group-> Import Camera Parameters button. Or select the corresponding subtitle file through the Video Registration tab-> Camera Parameter Registration group-> Import Subtitle File button. The system will assign the corresponding field in the file to the corresponding parameter according to the File Info. Caution:
Sample Data contains the above Data Information, but you need to download a separate installation package. For details, see the Get the Sample Data package .
Parameter Settings are as follows:
- Camera Parameters File: Select the CSV file extracted from the flight record file.
- Sampling time: Set as the video timestamp field, and select the timestamp Time field calculated in the above step.
- Camera Location Information: Set the longitude, latitude and altitude of the camera. The selected fields are shown in the figure below.
- Camera Information: Set the yaw angle, pitch angle and sideslip angle of the camera. The fields to be set are shown in the figure below.
- Camera Intrinsic Parameters: Set the field angle according to the UAV model. In this example, select 84.
After setting the parameters, click OK to display the UAV video based on Camera Parameter Registration. The effect of the superimposed display of the registered video and the map is as follows:
Related content
Calibration Registration instance
SuperMap UAV Survey Video Registration