English (English)

Sample 2. Step 20: Describing the Cooking field

In this step you will tell the program how to look for the field under the name Cooking, which contains cooking instructions and information about the number of servings.

Note that information about the number of servings is given after the word Serves on all the test images. However, on images 2, 3 and 4 the word "serves" is preceded by other words. Describe the field in such a way as to exclude this unwanted text from the block to be recognized.

For easier navigation in the FlexiLayout tree and to reduce the number of hypotheses for the Cooking element, create a Group element and name it Description:

  1. Within the Cooking element, create a Group element and name it Description.
  2. Within the Description element, create an element of type Static Text and name it Serves. This element will be used to locate the word "Serves" (see Step 21 for details).
  3. Within the Description element, create an element of type Character String and name it Portions. This element will be used to locate the number of servings (see Step 22 for details).
  4. Within the Description element, create an element of type Paragraph and name it CookingDescription. This element will correspond to the Cooking field (see Step 23 for details).
  5. Create a block corresponding to the Cooking field and name it CookingDescription (see Step 24 for details).

25.05.2023 7:55:03

Please leave your feedback about this article

Usage of Cookies. In order to optimize the website functionality and improve your online experience ABBYY uses cookies. You agree to the usage of cookies when you continue using this site. Further details can be found in our Privacy Notice.