mirror of
https://github.com/M4TH1EU/easy-local-alpr.git
synced 2025-09-13 15:43:05 +00:00
optimized build script
This commit is contained in:
parent
da0094ec9b
commit
dc74b776b4
@ -45,9 +45,9 @@ else:
|
|||||||
"openvino_enabled": True,
|
"openvino_enabled": True,
|
||||||
"openvino_device": "CPU",
|
"openvino_device": "CPU",
|
||||||
"npu_enabled": False,
|
"npu_enabled": False,
|
||||||
"klass_lpci_enabled": True, # License Plate Country Identification
|
"klass_lpci_enabled": False, # License Plate Country Identification
|
||||||
"klass_vcr_enabled": False, # Vehicle Color Recognition (paid)
|
"klass_vcr_enabled": False, # Vehicle Color Recognition (paid)
|
||||||
"klass_vmmr_enabled": True, # Vehicle Make and Model Recognition
|
"klass_vmmr_enabled": False, # Vehicle Make and Model Recognition
|
||||||
"klass_vbsr_enabled": False, # Vehicle Body Style Recognition (paid)
|
"klass_vbsr_enabled": False, # Vehicle Body Style Recognition (paid)
|
||||||
"license_token_file": "",
|
"license_token_file": "",
|
||||||
"license_token_data": "",
|
"license_token_data": "",
|
||||||
|
@ -9,6 +9,6 @@ python3.10 -m pip install --upgrade pip pyinstaller
|
|||||||
python3.10 -m pip install ./wheel/ultimateAlprSdk-3.14.1-cp310-cp310-linux_x86_64.whl
|
python3.10 -m pip install ./wheel/ultimateAlprSdk-3.14.1-cp310-cp310-linux_x86_64.whl
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
|
|
||||||
pyinstaller --noconfirm --console --add-data libs:. --add-data assets:assets --add-data static:static --add-data templates:templates --name easy-local-alpr-$VERSION-openvinocpu_linux_x86_64 "alpr_api.py"
|
pyinstaller --noconfirm --onefile --console --add-data libs:. --add-data assets:assets --add-data static:static --add-data templates:templates --name easy-local-alpr-$VERSION-openvinocpu_linux_x86_64 "alpr_api.py"
|
||||||
deactivate
|
deactivate
|
||||||
rm -rf buildenv
|
rm -rf buildenv
|
@ -168,6 +168,8 @@ mv "$BIN_DIR/plugins.xml" "$BUILD_DIR/libs"
|
|||||||
|
|
||||||
# Move the assets to the root directory
|
# Move the assets to the root directory
|
||||||
mv "$SDK_DIR/assets" "$BUILD_DIR/assets"
|
mv "$SDK_DIR/assets" "$BUILD_DIR/assets"
|
||||||
|
# Removes unused models (only keeps TensorFlow and OpenVINO basic license plat recognition)
|
||||||
|
rm -Rf "$BUILD_DIR/assets/images" "$BUILD_DIR/assets/models.amlogic_npu" "$BUILD_DIR/assets/models.tensorrt" $BUILD_DIR/assets/models/ultimateALPR-SDK_klass* $BUILD_DIR/assets/models/ultimateALPR-SDK_*mobile* $BUILD_DIR/assets/models/*korean* $BUILD_DIR/assets/models/*chinese* $BUILD_DIR/assets/models/ultimateALPR-SDK_recogn1x100* $BUILD_DIR/assets/models/ultimateALPR-SDK_recogn1x200* $BUILD_DIR/assets/models/ultimateALPR-SDK_recogn1x300* $BUILD_DIR/assets/models/ultimateALPR-SDK_recogn1x400* $BUILD_DIR/assets/models.openvino/ultimateALPR-SDK_klass*
|
||||||
|
|
||||||
# Deactivate and clean up the build virtual environment
|
# Deactivate and clean up the build virtual environment
|
||||||
echo "Deactivating and cleaning up virtual environment..."
|
echo "Deactivating and cleaning up virtual environment..."
|
||||||
|
@ -132,7 +132,7 @@
|
|||||||
<div>
|
<div>
|
||||||
<label for="grid_size_alpr_grid_debug"
|
<label for="grid_size_alpr_grid_debug"
|
||||||
class="block text-sm font-medium text-gray-700 dark:text-gray-300">Grid Size:</label>
|
class="block text-sm font-medium text-gray-700 dark:text-gray-300">Grid Size:</label>
|
||||||
<input type="number" id="grid_size_alpr_grid_debug" name="grid_size" value="3"
|
<input type="number" id="grid_size_alpr_grid_debug" name="grid_size" value="1"
|
||||||
class="mt-1 block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm dark:bg-neutral-800 dark:border-neutral-700">
|
class="mt-1 block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm dark:bg-neutral-800 dark:border-neutral-700">
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user