Windows Subsystem 2 for Linux, Hyper, ZSH + Oh My Zsh + Powerlevel9k + plugins, FNM + VSCode (+ext) and Nerd Font
To setup native Linux, see this gist
adb help // List all comands | |
== Adb Server | |
adb kill-server | |
adb start-server | |
== Adb Reboot | |
adb reboot | |
adb reboot recovery | |
adb reboot-bootloader |
Windows Subsystem 2 for Linux, Hyper, ZSH + Oh My Zsh + Powerlevel9k + plugins, FNM + VSCode (+ext) and Nerd Font
To setup native Linux, see this gist
public List<Picture> getAllPictures() { | |
ArrayList<Picture> pictures = new ArrayList<Picture>(); | |
Range range = _document.getOverallRange(); | |
for (int i = 0; i < range.numCharacterRuns(); i++) { | |
CharacterRun run = range.getCharacterRun(i); | |
if (run==null) { | |
continue; | |
} |
public static void main(String[] args) throws Exception | |
{ | |
String dataPath = "src/featurescomparison/workingwithimages/extractimagesfromdocument/data/"; | |
HWPFDocument doc = new HWPFDocument(new FileInputStream( | |
dataPath + "document.doc")); | |
List<Picture> pics = doc.getPicturesTable().getAllPictures(); | |
for (int i = 0; i < pics.size(); i++) | |
{ |
private void extractImageText(XHTMLContentHandler xhtml, HWPFDocument document) { | |
if (Config.inst().getProp(ConfigBool.ENABLE_IMAGE_OCR)) { | |
TikaImageHelper helper = new TikaImageHelper(metadata); | |
try { | |
List<Picture> pictures2 = document.getPicturesTable().getAllPictures(); | |
for (Picture picture : pictures2) { | |
ByteArrayInputStream imageData = new ByteArrayInputStream( | |
picture.getContent()); | |
helper.addImage(ImageIO.read(imageData)); | |
} |
public static void main(String[] args) throws Exception | |
{ | |
HWPFDocument doc = new HWPFDocument(new FileInputStream( | |
"data/document.doc")); | |
List<Picture> pics = doc.getPicturesTable().getAllPictures(); | |
for (int i = 0; i < pics.size(); i++) | |
{ | |
Picture pic = (Picture) pics.get(i); | |
.btn-clear { | |
background: #DE363F; | |
color: white; | |
font-weight: bold; | |
border-radius: 4px; | |
} |