Labelimg program error, interface
Solution: re-save all the pictures to be marked according to the following procedure
import os
from tqdm import tqdm
from PIL import Image
dir_origin_path = "image save address"
dir_save_path = "image resave address"
img_names = os.listdir(dir_origin_path)
for img_name in tqdm(img_names):
if img_name.lower().endswith(('.bmp', '.dib', '.png', '.jpg', '.jpeg', '.pbm', '.pgm', '.ppm', '.tif', '.tiff')):
image_path = os.path.join(dir_origin_path, img_name)
image = Image.open(image_path)
image = image.convert('RGB')
if not os.path.exists(dir_save_path):
os.makedirs(dir_save_path)
image.save(os.path.join(dir_save_path, img_name))
Read More:
- [Solved] Open3d error: unable to display image using open3d
- [Solved] fatal error C1083: Could Not Open Unable to open include file:“stdint.h”: No such file or directory
- tar: Error opening archive: Failed to open ‘/Users/xxx/Library/Caches/Homebrew/downloads/348a16e
- [Solved] Brew Install ffmpeg Error: tar: Error opening archive: Failed to open
- [Solved] ERROR: Could not open requirements file: [Errno 2] No such file or directory : ‘requirments.txt‘
- Android 10 open file exception open failed: eacces (permission denied) android:requestLegacyExternalStorage= “true“
- flutter | W/zipro(12512): Error opening archive D:\…Invalid file ERROR: dump failed because…
- [Solved] import cv2 Error: ImportError: libGL.so.1: cannot open shared object file: No such file or directory
- mainfest Image Error: (img/icons/andriod-chrome-192×192.png)Download error or resource isn’t a vaild image
- [Solved] import mxnet Error: OSError: libcudart.so.8.0: cannot open shared object file: No such file or directory
- error while loading shared libraries: lib*.so: cannot open shared object file: No such file or directory
- [Solved] Docker Delete Image Error: Error: No such image
- Crop the cropper image .toBlob() error: $(“#image”).cropper(‘getCroppedCanvas’).toBlob( function (blob){})
- ./popins2: error while loading shared libraries: libbifrost.so: cannot open shared object file: No such file or directory
- Unit Open a Higher Version File Error [How to Solve]
- Error: EEXIST file already exists open [How to Solve]
- [619]libgtk-3.so.0 or libXt.so.6: cannot open shared object file: No such file or directory
- [Solved] ./my_cmake_exe: error while loading shared libraries: libswresample.so.4: cannot open shared object file: No such file or directory
- Introduce wangeditor5 to run an error: You may need an appropriate loader to handle this file type (es6 compatibility issue)
- Keil Compile Error: ..\OBJ\USART.axf: error: L6002U: Could not open file ..\obj\sys.o: No such file or directory