Skip to content

Commit fad0b15

Browse files
committed
improve naming
1 parent 0a61fe1 commit fad0b15

File tree

6 files changed

+14
-2
lines changed

6 files changed

+14
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ This project utilizes optical character recognition (OCR) and translation to tra
1616

1717
## New Features
1818

19-
### SyncVideoToAudio.py
19+
### SyncVideoWithAudio.py
2020
This script syncs audio to a video file using advanced checks and features. It performs the following steps:
2121
- **Duration Check:** Ensures that the video and audio durations are within a specified tolerance.
2222
- **Audio Extraction:** Extracts audio from the video if available, or generates silent audio if not.
2323
- **Audio Alignment:** Aligns the audio using cross-correlation to calculate the offset.
2424
- **Synchronization:** Syncs the audio to the video using FFmpeg and saves the output.
2525

26-
### MultipleImageProcessing.py
26+
### TranslateMultipleImage.py
2727
This script processes multiple images by performing OCR to extract text, translating the text, and replacing the original text in the images with the translated text. It includes:
2828
- **Batch Processing:** Allows processing images one by one or multiple images simultaneously using multithreading.
2929
- **Error Handling:** Handles translation errors and missing translations gracefully.
File renamed without changes.
File renamed without changes.

copyTargetFiles.py renamed to copyImages.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
'''
2+
This script can be used if we stop translation queue and we would like to continue from where we stoped
3+
'''
4+
15
import os
26
import shutil
37

imageToVideo.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
'''
2+
This script is used to convert a list of images to a video respecting the order by image name / number
3+
'''
4+
15
import cv2
26
import os
37
import re

videoToImage.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
'''
2+
This script convert an input video to frames / a list of images
3+
'''
4+
15
import os
26
import cv2
37

0 commit comments

Comments
 (0)