Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@datafire/microsoft_cognitiveservices_ocr
Advanced tools
DataFire integration for Computer Vision Client
Client library for Computer Vision Client
npm install --save @datafire/microsoft_cognitiveservices_ocr
let microsoft_cognitiveservices_ocr = require('@datafire/microsoft_cognitiveservices_ocr').create({
apim_key: ""
});
.then(data => {
console.log(data);
});
The Computer Vision API provides state-of-the-art algorithms to process images and return information. For example, it can be used to determine if an image contains mature content, or it can be used to find all the faces in an image. It also has other features like estimating dominant and accent colors, categorizing the content of images, and describing an image with complete English sentences. Additionally, it can also intelligently generate images thumbnails for displaying large images effectively.
Use this interface to get the result of a Read operation, employing the state-of-the-art Optical Character Recognition (OCR) algorithms optimized for text-heavy documents. When you use the Read File interface, the response contains a field called 'Operation-Location'. The 'Operation-Location' field contains the URL that you must use for your 'GetReadOperationResult' operation to access OCR results.
microsoft_cognitiveservices_ocr.BatchReadFile({
"body": {
"url": ""
}
}, context)
object
Output schema unknown
This interface is used for getting OCR results of Read operation. The URL to this interface should be retrieved from 'Operation-Location' field returned from Batch Read File interface.
microsoft_cognitiveservices_ocr.GetReadOperationResult({
"operationId": ""
}, context)
object
string
: Id of read operation returned in the response of the 'Batch Read File' interface.Recognize Text operation. When you use the Recognize Text interface, the response contains a field called 'Operation-Location'. The 'Operation-Location' field contains the URL that you must use for your Get Recognize Text Operation Result operation.
microsoft_cognitiveservices_ocr.RecognizeText({
"mode": "",
"body": {
"url": ""
}
}, context)
object
string
(values: Handwritten, Printed): Type of text to recognize.Output schema unknown
This interface is used for getting text operation result. The URL to this interface should be retrieved from 'Operation-Location' field returned from Recognize Text interface.
microsoft_cognitiveservices_ocr.GetTextOperationResult({
"operationId": ""
}, context)
object
string
: Id of the text operation returned in the response of the 'Recognize Text'array
: Quadrangle bounding box, with coordinates in original image. The eight numbers represent the four points (x-coordinate, y-coordinate from the left-top corner of the image) of the detected rectangle from the left-top corner in the clockwise direction. For images, coordinates are in pixels. For PDF, coordinates are in inches.
number
object
: Details about the API request error.
string
(values: InvalidImageFormat, UnsupportedMediaType, InvalidImageUrl, NotSupportedFeature, NotSupportedImage, Timeout, InternalServerError, InvalidImageSize, BadArgument, DetectFaceError, NotSupportedLanguage, InvalidThumbnailSize, InvalidDetails, InvalidModel, CancelledRequest, NotSupportedVisualFeature, FailedToProcess, Unspecified, StorageException): The error code.string
: A message explaining the error reported by the service.string
: A unique request identifier.object
string
: Publicly reachable URL of an image.object
: An object representing a recognized text line.
string
: The text content of the line.array
: List of words in the text line.
string
(values: NotStarted, Running, Failed, Succeeded): Status code of the text operation.object
: OCR result of the read operation.
array
: An array of text recognition result of the read operation.
object
: Result of recognition text operation.
object
: An object representing a recognized text region
number
: The orientation of the image in degrees in the clockwise direction. Range between [0, 360).number
: The height of the image in pixels or the PDF in inches.array
: A list of recognized text lines.
integer
: The 1-based page number of the recognition result.string
(values: pixel, inch): The unit used in the Width, Height and BoundingBox. For images, the unit is 'pixel'. For PDF, the unit is 'inch'.number
: The width of the image in pixels or the PDF in inches.object
: An object representing a recognized word.
string
(values: High, Low): Qualitative confidence measure.string
: The text content of the word.FAQs
DataFire integration for Computer Vision Client
The npm package @datafire/microsoft_cognitiveservices_ocr receives a total of 1 weekly downloads. As such, @datafire/microsoft_cognitiveservices_ocr popularity was classified as not popular.
We found that @datafire/microsoft_cognitiveservices_ocr demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.