This section describes how to upgrade from SmartZone 7 to SmartZone 8. While generally you'll be able to replace SmartZone 7 with SmartZone 8, there are a few important changes you may need to consider.
API Changes
SmartZone now can be used on both Windows and Linux under .Net7+. Since .Net7 and above versions do not support System.Drawing namespace on Linux, some API has been changed, removed or replaced.
- Changes
- SmartZoneOCRSdk.Zone new structure, which is introduced to replace System.Drawing.Rectangle object.
- SmartZoneOCRSdk.Reader.Zone new property to be used instad of "Area".
- SmartZoneOCRSdk.Result.Zone new property to be used instad of "Area".
- SmartZoneOCRSdk.CharacterResult.Zone new property to be used instad of "Area".
- SmartZoneOCRSdk.TextBlockResult.Zone new property to be used instad of "Area".
- SmartZoneOCRSdk.TextLineResult.Zone new property to be used instad of "Area".
- SmartZoneOCRSdk.Image new class, which is introduced to replace System.Drawing.Bitmap object.
- SmartZoneOCRSdk.Reader.AnalyzeField(Image image) new method, which should be used instead of "AnalyzeField" method taking Bitmap.
- SmartZoneOCRSdk.Reader.AnalyzeCharacter(Image image) new method, which should be used instead of "AnalyzeCharacter" method taking Bitmap.
- SmartZoneOCRSdk.Reader.DetectOrient(Image image) new method, which should be used instead of "DetectOrient" method taking Bitmap.
- SmartZoneOCRSdk.Reader.AnalyzeField(Stream stream) new method, which should be used instead of "AnalyzeField" method taking Bitmap.
- SmartZoneOCRSdk.Reader.AnalyzeCharacter(Stream stream) new method, which should be used instead of "AnalyzeCharacter" method taking Bitmap.
- SmartZoneOCRSdk.Reader.DetectOrient(Stream stream) new method, which should be used instead of "DetectOrient" method taking Bitmap.