<< Click to Display Table of Contents >>

eform.imagepicker_id_info

Sets the ID card scanning options.

Reference

ID scanning options such as ID, name, size, margin and masking information should be included. In addition, it should be set as a JSON format string.

The item keys for setting the ID card scanning options are listed below.

ids

Sets the information of the ID card.

id: ID of the ID card.

name: Name of the ID card.

size: Size of the ID card. Set to the "width x height" format. The unit is mm.

margin: Margins between the ID card and background. The default value is 0. The unit is mm. This is set when you want to shoot with the background under the ID card included. The horizontal margins are applied in a horizontal direction and vertical margins are automatically adjusted to fit the size of the ImagePicker. Even if you set a large margin, the ID card size cannot be smaller than 30% of the ImagePicker size.

mask: Area to be masked. The masked area is displayed in mosaic.

name: Name of the mask.

area: Area of mask. Set to the "X, Y, width, height" format. The unit is mm.

choice

Sets the title and the ID card list of the ID card selection window. If the ID card number in ids is one or items is not set, the first ID card added to ids is scanned.

title: Title of the ID card selection window.

items: ID card list of the ID card selection window. This value can be set to multiple values using ",".

options

Sets the other options.

shootaction: Operation mode of the [Shoot] button. Set it to either forceshoot or refocusing. The default value is forceshoot.

showmaskguide: Sets whether to show the masking guide in the scanning screen. The default value is true.

Sets the ID card scanning options as follows using the item keys and then set this parameter value.

{

   "ids":

   [

       {

           "id":"1",

           "name":"Driver license 1",

           "size":"86x54",

           "margin":"3",

           "mask":

           [

               {"name":"STATE","area":"33,19,28,3"},

               {"name":"DL","area":"54,9,28,6"},

               {"name":"EXP","area":"71,39,9,3"},

               {"name":"SEX","area":"32,47,15,3"}

           ]

       },

       {

           "id":"2",

           "name":"Driver license 2",

           "size":"86x54",

           "margin":"3",

           "mask":

           [

               {"name":"STATE","area":"47,19,30,3.5"},

               {"name":"PHOTO","area":"54,8,28,6"},

               {"name":"SEX","area":"71,39,9,3"},

               {"name":"HAIR","area":"32,47,15,3"}

           ]

       }

   ],

   "choice":{"title":"Please select an ID card.","items":"1,2"},

   "options":{"shootaction":"refocusing","showmaskguide":"false"}

}