Commit 22a5b713 authored by josh's avatar josh
Browse files

minor change to naming

parent 12aa38c6
......@@ -70,12 +70,12 @@ def importAndProcess( imgPath: str, dbPath: str, newImgName: str ):
dbID = max( dbIDs ) + 1
# Create dir for image
baseImagePath = imagesPath.joinpath( "{}-{}-{}".format( dbID, fileExt, newImgName ) )
baseImagePath = imagesPath.joinpath( "{}-{}-{}-Original".format( dbID, fileExt, newImgName ) )
baseImageName = baseImagePath.name
os.mkdir( baseImagePath )
# Step 2: Save Original File
baseImageFilePath = baseImagePath.joinpath( "{}-{}.{}".format( baseImageName, "Original", fileExt ) )
baseImageFilePath = baseImagePath.joinpath( "{}.{}".format( baseImageName, fileExt ) )
cv2.imwrite( str( baseImageFilePath ), imgArr )
# Create dir for sliced images
......@@ -102,12 +102,12 @@ def importAndProcess( imgPath: str, dbPath: str, newImgName: str ):
y = sliceList[i][1]
sliceArr = sliceList[i][2]
sliceBaseName = "{}-{}-{}-{}".format( baseImageName, size, x, y )
sliceBaseName = "{}-{}-{}-{}-Sliced".format( baseImageName, size, x, y )
sliceBasePath = slicedSizePath.joinpath( sliceBaseName )
os.mkdir( sliceBasePath )
# Save Sliced Image
sliceFilePath = sliceBasePath.joinpath( "{}-{}.{}".format( sliceBaseName, "Sliced", fileExt ) )
sliceFilePath = sliceBasePath.joinpath( "{}.{}".format( sliceBaseName, fileExt ) )
cv2.imwrite( str( sliceFilePath ), sliceArr )
# Create Processed Slice Path
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment