I use some tutorial From Python and C++ to create my own code for Guess the feeling in images , already found some code and created some code but for use some file , I don't know what it is and what must to do for using it in java Like emotion_classifier_model.xml
anyone can help me to share a code for using this file in JavaCv I will be grateful.(Need code to put image on it and guess the feeling with this xml file.)
link to github from tutorial I use
I use CascadeClassifier From the package org.opencv.objdetect.CascadeClassifier and I think miss some point.
if you know some tutorial in java that use opencv or javacv that tutorial the train and use the trained data I will be grateful too , for sharing it with me.
Related
I need to create an app (using Android Studio) that generates CNC code to operate a 3D printer. It takes a String as input.
I've found a couple libraries in Python and Javascript that does this, but as I don't have time to translate whole libraries to Java, can you recommend any libraries that does that for me? If there are no open-source options, can you recommend any guide to help me develop this conversor?
What we ended up doing:
App asks for a String as input;
String is converted to a bitmap and then saved as a .png;
.png is loaded and converted to a .svg file. We used this repo: https://github.com/jankovicsandras/imagetracerandroid
We developed a parser to convert a .svg to g-code.
It worked but it's not the best solution, we're looking to implement something that runs python in Android, as there are many pythons that do all the work already, but that's how we've done it and it's working by now.
I am currently in the process of developing a Java program that downloads/streams some anime videos:
I want to download the video from:
https://animetwist.net/a/swordartonline/25
I was able to find the direct link to the video:
https://animetwist.net/mount/swordartonline/swordartonline25.mp4
but I have no idea how I could download or stream that video from this java application I'm creating. I have no idea where to start and all the questions I find are related to YouTube videos and not other videos.
What I know/have tried:
VGet - Only for Youtube/Vimeo only...
Xuggler - I tried but don't understand how I could use it to download videos
Any help or a point in the correct direction would be much helpful. I don't exactly understand how it would work. The perfect solution would be something in pure java, but using addons are fine as well.
Sorry if my question is unclear, post a comment below and I'll try to answer it as best I can, thanks for your time.
If you just want to download a file from a URL you do it like any other file in Java. There are several good options for accomplishing this task here.
I have a tiff image with many directories and subdirectories. I would like to navigate this tiff directory tree and import the image into a 2D array, so I can process this image. I am relatively new to java and cannot figure out how to do this. Will someone please reply to my question with a tutorial and examples of code?
Also, does anyone else find the java API documentation difficult to find, difficult to navigate, and somewhat sparse? I am trying to do this as a workaround for a processing sketch I am creating. Are there different workarounds?
Thank you.
Well i didn't even know a tiff could have directories and sub directories... But I would have a look in java File class as a start point to try to see those directories from your app. If you can see them, than you probably can parse them too.
Using Java I need to be able to create an empty CD image and also to inject/extract files into/from this image. Do you know any java libs for that? Is there a way to accomplish it without using JNI? (if not, then your JNI solution is appreciated). Thank you guys.
PS. This task is required for data transportation between emulated environment created by Qemu emulator.
In principle this is simple to implement, just write a file that is properly structured as CD-image. In practice thats probably a lot of work.
Simply googling for "java create iso image" reveal there is already an implementation to do just that: http://jiic.berlios.de/
I want to recognize the barcode from the image file using Java, but I am a beginner to development. So I do not have any idea on this. Please help me.
http://code.google.com/p/zxing/ has a very nice api for scanning barcodes in various formats
if you are interested in decoding a barcode yourself, have a look at this processing example
i have written a while ago
http://www.local-guru.net/blog/2009/09/22/barcodescanner-in-pure-processing
The following links may help you. Check them out.
BarCode of image taken in java
Barcode image generator in java
EDIT after 1st comment:
To get barcode from file, check the following link:
Java Barcode API
Java Barcode generator
Asprise commercial library is the best solution
You have other alternate which can be useful
http://barbecue.sourceforge.net/