It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I was reading on Facial Recogntion on OpenCV and it required me to use an CSV file for my project. I am using Ubuntu 12.04 and I think it is telling me to use Python to write the code. I have no idea of the code and what I want is to get my own image into the CSV file and let it work. How do I do that? I only have a C++ background and I don't know what to do. Can someone please teach me how to make one of those files? I have googled for a long time but no results.
http://docs.opencv.org/trunk/modules/contrib/doc/facerec/tutorial/facerec_video_recognition.html
The CSV file here is used to define the learning database for FaceRecognition, it's just a list of image files and a corresponding subject id :
/path/to/subject1image1.jpg;0
/path/to/subject1image2.jpg;0
/path/to/subject1image3.jpg;0
...
/path/to/subject2image1.jpg;1
/path/to/subject2image2.jpg;1
...
/path/to/subject3image1.jpg;2
...
You could do this by hand if you have the time or you could use their python script.
To use the script you just have to respect the file hierarchy /basepath/<subject>/<image.ext> then simply run the script with python and it will generates the corresponding CSV file.
Related
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I want do use some of my own converter from html table to xls table, but I don't know where to start. The google don't show me comprehensive results. I know about Apache tika and poi, but do they have something easy to build converter? I used to read POI docs but it's just says about converting from xls-to-html most of time. What you will suggest to read. Where to search? Thank you.
It's a two-step process. I'd advise you to keep them separate.
Scrape and parse HTML to get table data
Write table data into Excel.
If the HTML is XHTML your life gets better: All you need is an XML DOM parser and some code to find the node at the root of the tree with the data.
I prefer Andy Khan's JExcel to POI. I think it's far better for dealing with Excel.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
Me and a friend have being trying to do this for a while and regardless of how hard we searched and tried; we just couldn't do it.
But what we are trying to do is Run/Execute a .jar file from delphi ( from like a click of a button )
I did try using ShellExecute (from the ShellAPI) but I didn't how to pass the parameters correctly;
The end purpose we want it to execute his minecraft server (bukkit) with delphi; (These are the usual parameters that are passed "java -Xmx1024M -Xms1024M -jar minecraft_server.jar") It may seem pointless, but we thought it would be a good challenge and I'm not one for giving up! So I was wondering is it possible with out using outside libraries and could you help me? I'm not asking for a source I'm asking for assistance and a starting point. Thanks in advance
Like this:
ShellExecute(
0,
nil,
'java.exe',
'-Xmx1024M -Xms1024M -jar minecraft_server.jar',
nil,
SW_SHOW
);
In order for this to work, the file minecraft_server.jar must be located in the working directory when you call ShellExecute. If you cannot ensure that then pass the full path to the .jar file.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I'm about to start development of an application with Ruby on Rails, which requires to print stuff, mostly tickets.
I'm guessing the printer I use won't have much impact.
So the question is, what are the different things I should take into consideration with the printing? I'm thinking a normal ruby program should have communication with a printer.
The most portable solution here is for your Rails application to emit a PDF and then hand that off to either the browser for rendering and printing, or to inject it into a local print spooler.
There are a number of ways to get PDF out of Ruby depending on your requirements. The easiest method is to render HTML and use a library to convert it to PDF like PDFKit. A method with more control is one where you draw out the document using a library like Prawn.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I am creating a static library for iOS which reads data from files which have to be present in the system (I am not downloading them when the application runs) and do some calculations and return the results.
I will need to ship the files along the application. So my questions are below
How to include input files in the project so that they get copied along with the application.
How to read from the files when the application is running.
Thanks
How to include input files in the project so that they get copied along with the application.
Copy them into the app's bundle directory.
How to read from the files when the application is running.
Now that's broad enough a question. Maybe you're looking for the NSFileManager, NSFileHandle and NSData classes.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
We are trying to create an excel document which supports macros with some data validation code.
Is it possible to use axlsx package to create such a document.
e.g. A single sheet called Users which contains a VBA script (which can be viewed using Sheet --> View Code)
We could also provide a simple xls template file with this information, would it be possible to add rows with column data using axlsx gem.
Although, the answer is yes but as Brettdj said this is a broad guestion. I think you should first read this and this about creating forms. and then reffer to these links:
how-do-i-set-data-validation-in-vba
visual-basic-applications-validation-rule
Reviewing these addresses will help you to understand exactly what is possible and what is not.