---
title: "Discussion on \"Build OpenCV from source code\" | Hashnode"
description: "Discussion on \"Build OpenCV from source code\". Ubuntu 22.04 install OpenCV\nsudo apt install python3-opencv\nWrite a python script to check if it works.\n#!/usr/bin/env python3\n\nimport cv2 as cv\n\nprint(cv.__version__)\n\nshow version.\n$ chmod +x version.py\n$ ./version.py\n4.5.4\n\nBuild from source code\n..."
url: "https://hashnode.com/posts/build-opencv-from-source-code/65b243bc148debe63eaffe78"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Build OpenCV from source code](https://2024.iosdevlog.com/build-opencv-from-source-code?utm_source=hashnode&utm_medium=feed)

Ubuntu 22.04 install OpenCV sudo apt install python3-opencv Write a python script to check if it works. #!/usr/bin/env python3 import cv2 as cv print(cv.\_\_version\_\_) show version. $ chmod +x version.py $ ./version.py 4.5.4 Build from source code ...

Jan 25, 2024 · 4 min read · 2024.iosdevlog.com  
Read the article

-   [#opencv](https://hashnode.com/tag/opencv)

## Written by

[george](https://hashnode.com/@jiaxianhua)

@jiaxianhua

  
[View profile](https://hashnode.com/@jiaxianhua)

Linux RISC-V AI

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
