- Developing start in 2022.05.27 05:08
- Code version: v1.0.1
- Author: Dachuan Chen
The file you see here are all used for preparing frcnn training and testing files.
- Windows 11
- Blender 3.1
- Python 3.10.4
- pyqt5
- lxml
- labelimg
- Windows 11
- Skipped.
- Blender 3.1
- Use the ".msi" file downloaded from Blender to install. No special modification needed.
- Python 3.10.4
- Download from Python and open the "exe" file.
- Choose "Custom installation" and click "Add Python 3.X to PATH".
- In "Advance Options" page, make sure top 5 checkboxes are all checked.
- In "Setup was successful" page, click "Disable path length limit".
- pyqt5
- Open cmd (WINDOWS + R, type "cmd"), type "pip install pyqt5".
- lxml
- Open cmd (WINDOWS + R, type "cmd"), type "pip install lxml".
- labelimg
- Go to Labelimg Github, click "Code" (green button), click "Download ZIP".
- Extract the downloaded file in the directory that you remembered.
- Follow the Windows installation guide in Labelimg Github.
- Keep in mind that if the last step of installation doesn't work, try to check your directory whether it is only consist of English, delete all Python in your computer and reinstall desired version, close cmd and retry.
This .txt file list out steps to output a txt file inside target directory.
- Follow the steps inside and execute commands inside cmd.
- Copy all the target file name inside "filename.txt".
- Continue with 2 or 3.
This .xlsx file contains cmd commands for bulk renaming JPEG files.
- Paste all the copied filename into column 1 "old file name".
- Type the desire file extension in column 2 "ext.".
- Give files new names in column 3 "new file name". There should be full commands appear in column 5 "full command".
- Copy entire column 5 "full command" and paste it to cmd.
- Detail steps in YouTube.
This .xlsx file contains cmd commands for bulk renaming XML files.
- Paste all the copied filename into column 1 "old file name".
- Type the desire file extension in column 2 "ext.".
- Give files new names in column 3 "new file name". There should be full commands appear in column 5 "full command".
- Copy entire column 5 "full command" and paste it to cmd.
- Detail steps in YouTube.
This .bat file is used to render multiple blender project at the same time. The problem of it is unable to utilize GPU computing somehow.
- Double-click on "Car Batch Render Script.bat"
This .txt file is used to make "Car Batch Render Script.bat"
- Change the target project names and render requirements.
- Save this file and save as "filename.bat".
This .bat file is used to render multiple blender project at the same time. The problem of it is unable to utilize GPU computing somehow.
- Double-click on "Car Batch Render Script1.bat"
This .txt file is used to make "Car Batch Render Script1.txt"
- Change the target project names and render requirements.
- Save this file and save as "filename.bat".
This .py file is used to take xml files from labelimg output directory and store all the coordinate data into .csv file at assigned directory.
- Change path1 as the directory stores ".xml" files.
- Change path2 as the directory you want to store ".csv" file and its filename.
Thie .py file is a blender script and edited with a post in Blender StackExchange. It can export camera coordinate and rotation data into .csv file if camera(empty) is selected. The coordinate is based on the world origin.
- Open in Blender "script" tab.
- Execute with Blender.
Thie .py file is a blender script and edited with a post in Blender StackExchange. It can export camera coordinate and rotation data into .csv file if camera(empty) is selected. The coordinate is based on user set origin. Need to make changes about export data bias before any kind of usage.
- Open in Blender "script" tab.
- Execute with Blender.
This .py file is modified from keras-frcnn. No adjustment was made about the algorithm, but the exporting files. Exported .csv file contains FRCNN labelled area data. Exported .txt file contains frcnn overall test data. (the labeleld rate calculation is not correct, but still good enough for proximate result) The distance estimation function will need to be rewrite for better accuracy.
- Copy all the codes inside this file and replace all the original code inside "test_frcnn.py".
- Test again in CYCU AI Console.
- Two files ("frcnn_test_info.txt" & "target_coordinate.csv") will generate inside folder "test_result". "txt" file contains all information about the test run; "csv" file stores all the FRCNN labeled coordinate.
Email: [email protected]