df8c59406b8d01a5993fb413db006d94c39b5100,homeassistant/components/image_processing/facebox.py,FaceClassifyEntity,process_image,#FaceClassifyEntity#Any#,95
Before Change
Process an image.
response = {}
try:
response = requests.post(
self._url,
json={"base64": encode_image(image)},
timeout=TIMEOUT
).json()
except requests.exceptions.ConnectionError:
_LOGGER.error("ConnectionError: Is %s running?", CLASSIFIER)
response["success"] = False
After Change
Process an image.
response = post_image(self._url_check, image)
if response is not None:
response_json = response.json()
if response_json["success"]:
total_faces = response_json["facesCount"]
faces = parse_faces(response_json["faces"])
self._matched = get_matched_faces(faces)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: home-assistant/home-assistant
Commit Name: df8c59406b8d01a5993fb413db006d94c39b5100
Time: 2018-07-09
Author: robmarkcole@gmail.com
File Name: homeassistant/components/image_processing/facebox.py
Class Name: FaceClassifyEntity
Method Name: process_image
Project Name: MolSSI/QCEngine
Commit Name: b578679cb85a26b172227a9e3ecfc29432604842
Time: 2019-01-27
Author: lnaden@vt.edu
File Name: qcengine/compute.py
Class Name:
Method Name: compute
Project Name: eth-cscs/reframe
Commit Name: c4321e700906cb0906f8eec31ba0e083f0138c97
Time: 2021-02-10
Author: karakasis@cscs.ch
File Name: unittests/test_ci.py
Class Name:
Method Name: test_ci_gitlab_pipeline