Azure-Samples / Azure-Samples/cognitive-services-quickstart-code

Using face API with an already opened cv2 image

Open
#285 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
389
Forks
556
Avg merge
3d 12h
Merged PRs (30d)
1

Description

> Please provide us with the following information:
> ---------------------------------------------------------------
How do I use azure face API with an already opened cv2 image without saving it again locally or on the web?
I tried looking for it in the documentations, but couldn't find a solution.
As far as I know and could find, there are only two ways of reading an image:
1. detect_with_url : Needs an URL to read the image.
2. detect_with_stream: Needs an image path to read the image.
### This issue is for a: (mark with an `x`)
```
- [ ] bug report -> please search issues before submitting
- [ ] feature request
- [x] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)
```
### Expected/desired behavior
>

The face API should have a function or work-around to use an already opened image without having to save it.
### OS and Version?

Windows 10 and Raspberry Pi
> ---------------------------------------------------------------
> Thanks! We'll be in touch soon.

Contributor guide

Open the contributing guide

Research direction

Start by checking the Face API documentation and quickstart examples for detect_with_url and detect_with_stream, then determine how an already opened cv2 image can be passed without saving it. Done means the relevant documentation explains the supported input and provides a clear workaround if direct use is unavailable.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, opencv, python
Domain
api, computer-vision, documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.