Unable to get image from CaptureIcaoCompliantImage

General information about Neurotechnology and its software

Unable to get image from CaptureIcaoCompliantImage

Postby Tayo » Jan 04, 2019 15:48

pls can any body help me with how to get the image captured without using file chooser in the CaptureIcaoCompliantImage class in simple-faces-sample example of the JAVA version. i want to save the image into a database, not on the computer. the saveImage method is shown below
Code: Select all
private void saveImage() throws IOException {
        if (subject != null) {
         fc.setSelectedFile(new File("image.png"));
         if (fc.showSaveDialog(this) == JFileChooser.APPROVE_OPTION) {
            subject.getFaces().get(1).getImage().save(fc.getSelectedFile().getAbsolutePath());
         }
}


How can i get the image without using file chooser
Tayo
 
Posts: 1
Joined: Jan 04, 2019 15:35

Re: Unable to get image from CaptureIcaoCompliantImage

Postby MartynasV » Jan 07, 2019 09:24

Tayo wrote:pls can any body help me with how to get the image captured without using file chooser in the CaptureIcaoCompliantImage class in simple-faces-sample example of the JAVA version. i want to save the image into a database, not on the computer. the saveImage method is shown below
Code: Select all
private void saveImage() throws IOException {
        if (subject != null) {
         fc.setSelectedFile(new File("image.png"));
         if (fc.showSaveDialog(this) == JFileChooser.APPROVE_OPTION) {
            subject.getFaces().get(1).getImage().save(fc.getSelectedFile().getAbsolutePath());
         }
}


How can i get the image without using file chooser

Hello Tayo,

If you want to store image to database using our API, then you need to use "Custom Data" feature(more in documentation "4.1.1.3 Biographic and Custom Data Support").
There is also info in this thread: Getting face details from file
Martynas V
Neurotechnology
MartynasV
Neurotechnology
 
Posts: 428
Joined: Feb 27, 2015 11:24
Location: Vilnius, Lithuania


Return to Public

Who is online

Users browsing this forum: No registered users and 3 guests

cron