Exemple #1
0
        /// <summary> <p>Detects a QR Code in an image, simply.</p>
        ///
        /// </summary>
        /// <param name="hints">optional hints to detector
        /// </param>
        /// <returns> {@link DetectorResult} encapsulating results of detecting a QR Code
        /// </returns>
        /// <throws>  ReaderException if no QR Code can be found </throws>
        public virtual DetectorResult detect(System.Collections.Hashtable hints)
        {
            _resultPointCallback = hints == null?null:(ResultPointCallback)hints[DecodeHintType.NEED_RESULT_POINT_CALLBACK];

            FinderPatternFinder finder = new FinderPatternFinder(_image, _resultPointCallback);
            FinderPatternInfo   info   = finder.find(hints);

            return(ProcessFinderPatternInfo(info));
        }
Exemple #2
0
		/// <summary> <p>Detects a QR Code in an image, simply.</p>
		/// 
		/// </summary>
		/// <param name="hints">optional hints to detector
		/// </param>
		/// <returns> {@link DetectorResult} encapsulating results of detecting a QR Code
		/// </returns>
		/// <throws>  ReaderException if no QR Code can be found </throws>
		public virtual DetectorResult detect(System.Collections.Hashtable hints)
		{
			
			_resultPointCallback = hints == null?null:(ResultPointCallback) hints[DecodeHintType.NEED_RESULT_POINT_CALLBACK];
			
			FinderPatternFinder finder = new FinderPatternFinder(_image, _resultPointCallback);
			FinderPatternInfo info = finder.find(hints);
			
			return ProcessFinderPatternInfo(info);
		}