Removed imports and variable to pass Ruff linting
This commit is contained in:
parent
574aa1c6c0
commit
9c2ab977c5
1 changed files with 1 additions and 3 deletions
|
|
@ -13,8 +13,6 @@ import time
|
||||||
from PIL import Image
|
from PIL import Image
|
||||||
from pydantic import BaseModel
|
from pydantic import BaseModel
|
||||||
from scipy.stats import norm
|
from scipy.stats import norm
|
||||||
from scipy.ndimage import zoom
|
|
||||||
from scipy.interpolate import interp1d
|
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
from subprocess import CompletedProcess, Popen, PIPE, SubprocessError, STDOUT
|
from subprocess import CompletedProcess, Popen, PIPE, SubprocessError, STDOUT
|
||||||
from threading import Event, Thread
|
from threading import Event, Thread
|
||||||
|
|
@ -623,7 +621,7 @@ class SmartScanThing(Thing):
|
||||||
def save_capture(name, image, metadata):
|
def save_capture(name, image, metadata):
|
||||||
try:
|
try:
|
||||||
jpeg_path = os.path.join(images_folder, name)
|
jpeg_path = os.path.join(images_folder, name)
|
||||||
PIL_image = Image.fromarray(image.astype("uint8"), "RGB").save(
|
Image.fromarray(image.astype("uint8"), "RGB").save(
|
||||||
jpeg_path, quality=95, subsampling=0
|
jpeg_path, quality=95, subsampling=0
|
||||||
)
|
)
|
||||||
try:
|
try:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue