* tambah timestamp
* full resolution ganti ke PNG compression 0 * tambah reduced resolution di 1280x720 JPG quality 100
This commit is contained in:
@@ -5,7 +5,6 @@ import com.google.gson.Gson;
|
||||
import com.google.zxing.MultiFormatReader;
|
||||
import javafx.embed.swing.SwingFXUtils;
|
||||
import javafx.scene.image.Image;
|
||||
import lombok.val;
|
||||
import org.bytedeco.javacv.Java2DFrameConverter;
|
||||
import org.bytedeco.javacv.OpenCVFrameConverter;
|
||||
import org.bytedeco.opencv.global.opencv_imgcodecs;
|
||||
@@ -37,6 +36,10 @@ public class SomeCodes {
|
||||
public static final Gson gson = new Gson();
|
||||
public static final ConfigFile config = new ConfigFile();
|
||||
|
||||
public static String GetDateTimeString(){
|
||||
return LocalDateTime.now().format(dtf);
|
||||
}
|
||||
|
||||
public static Path GetLogsPath(){
|
||||
return Path.of(currentDirectory, "logs");
|
||||
}
|
||||
@@ -288,7 +291,7 @@ public class SomeCodes {
|
||||
|
||||
public static String[] MakeArray(String... args){
|
||||
if (args!=null && args.length>0){
|
||||
List<String> ll = new ArrayList<String>();
|
||||
List<String> ll = new ArrayList<>();
|
||||
for(String x : args){
|
||||
if (ValidString(x)) ll.add(x);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user