Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/drinkingcoder/NeuralMarker
/ resize_viewpoint
Function
resize_viewpoint
eval_utils.py:15–20 ·
view source on GitHub ↗
(img)
Source
from the content-addressed store, hash-verified
13
plt.show()
14
15
def
resize_viewpoint(img):
16
if
img.shape[0] > img.shape[1]:
17
resize = cv2.flip(cv2.transpose(img), 0)
18
return
resize
19
else
:
20
return
img
21
22
def
resize_lighting(img):
23
if
img.shape[0] > img.shape[1]:
Callers
1
eval
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected