# \#programming

**URL:** https://forum.opencv.org/tag/programming/327.md?page=2

[Latest](https://forum.opencv.org/latest.md) · [Categories](https://forum.opencv.org/categories.md) · [Tags](https://forum.opencv.org/tags.md)

**Page:** 3

---

## [RTSP web view issue](https://forum.opencv.org/t/rtsp-web-view-issue/19467)

<div class="topic-metadata">

**Author:** [@gesser0102](https://forum.opencv.org/u/gesser0102)\
**Replies:** 2\
**Last updated:** [December 10, 2024, 5:48am UTC](https://forum.opencv.org/t/rtsp-web-view-issue/19467 "2024-12-10T05:48:55Z")

</div>

I am trying to render an RTSP camera feed in a Flask template. When I run it locally on Windows, the video works perfectly. However, the problem occurs when I try to run it on my Linux server. On the server, the video …

---

## [Replace \<ctype.h\> with \<cctype\> in OpenCV Codebase](https://forum.opencv.org/t/replace-ctype-h-with-cctype-in-opencv-codebase/19468)

<div class="topic-metadata">

**Author:** [@Shyama7004](https://forum.opencv.org/u/Shyama7004)\
**Replies:** 0\
**Last updated:** [December 9, 2024, 6:20am UTC](https://forum.opencv.org/t/replace-ctype-h-with-cctype-in-opencv-codebase/19468 "2024-12-09T06:20:52Z")

</div>

Many OpenCV files use the C standard header \<ctype.h\> for functions like “isdigit”, “isalpha”, and “toupper”. I suggest we can replace \<ctype.h\> with the C++ header “cctype”. Benefits: Functions will be in the std na…

---

## [How can i built a Image Processing Software(Standalone) where i can input a data file and generate the image from that?](https://forum.opencv.org/t/how-can-i-built-a-image-processing-software-standalone-where-i-can-input-a-data-file-and-generate-the-image-from-that/19438)

<div class="topic-metadata">

**Author:** [@Abhi](https://forum.opencv.org/u/Abhi)\
**Replies:** 0\
**Last updated:** [December 4, 2024, 4:28pm UTC](https://forum.opencv.org/t/how-can-i-built-a-image-processing-software-standalone-where-i-can-input-a-data-file-and-generate-the-image-from-that/19438 "2024-12-04T16:28:14Z")

</div>

I am working on developing a software where i can attach the sonar data file and generate the image from that data file and can process the generated image from the file.I had developed a script from where i am able to g…

---

## [OpenCV error in slowmoVideo](https://forum.opencv.org/t/opencv-error-in-slowmovideo/19286)

<div class="topic-metadata">

**Author:** [@slomovideo](https://forum.opencv.org/u/slomovideo)\
**Replies:** 5\
**Last updated:** [November 14, 2024, 2:08pm UTC](https://forum.opencv.org/t/opencv-error-in-slowmovideo/19286 "2024-11-14T14:08:40Z")

</div>

Usage of slowmoVideo shows an OpenCV error: Have OpenCL: true useOpenCL: true true 1 1 terminate called after throwing an instance of 'cv::Exception' what(): OpenCV(4.6.0) ./modules/video/src/optflowgf.cpp:1120: er…

---

## [How to Import OpenCV Stitching Module into React Native Android App with C++ (New Architecture)](https://forum.opencv.org/t/how-to-import-opencv-stitching-module-into-react-native-android-app-with-c-new-architecture/19263)

<div class="topic-metadata">

**Author:** [@javadibrahimli](https://forum.opencv.org/u/javadibrahimli)\
**Replies:** 0\
**Last updated:** [November 12, 2024, 9:29am UTC](https://forum.opencv.org/t/how-to-import-opencv-stitching-module-into-react-native-android-app-with-c-new-architecture/19263 "2024-11-12T09:29:05Z")

</div>

Android/Java How to Import OpenCV Stitching Module into React Native Android App with C++ (New Architecture) Hello OpenCV team, I’m currently working on a React Native Android project and need to incorporate OpenCV’s s…

---

## [C# Determine when the line has been crossed](https://forum.opencv.org/t/c-determine-when-the-line-has-been-crossed/19192)

<div class="topic-metadata">

**Author:** [@Peacemaker](https://forum.opencv.org/u/Peacemaker)\
**Replies:** 2\
**Last updated:** [November 11, 2024, 9:53am UTC](https://forum.opencv.org/t/c-determine-when-the-line-has-been-crossed/19192 "2024-11-11T09:53:59Z")

</div>

hello everyone At the moment I am using Opencv and Absdiff to determine when the line has been crossed. The line can be any color or even laser red. Is my idea good or am I on the wrong way. The screenshot is only for …

---

## [Opencv+flask to process more than 5 cameras](https://forum.opencv.org/t/opencv-flask-to-process-more-than-5-cameras/19218)

<div class="topic-metadata">

**Author:** [@Dangal](https://forum.opencv.org/u/Dangal)\
**Replies:** 1\
**Last updated:** [November 8, 2024, 10:25pm UTC](https://forum.opencv.org/t/opencv-flask-to-process-more-than-5-cameras/19218 "2024-11-08T22:25:47Z")

</div>

hello, OpenCV teams,I want to control more than 5 cameras，and I use python==3.6.9 opencv==4.1.1(jetson tx2 default) with flask to create a web program #app.py for flask import os import time import cv2 from flask impor…

---

## [Bubble detection;contour filter](https://forum.opencv.org/t/bubble-detection-contour-filter/19209)

<div class="topic-metadata">

**Author:** [@jigsaw](https://forum.opencv.org/u/jigsaw)\
**Replies:** 0\
**Last updated:** [November 7, 2024, 8:19am UTC](https://forum.opencv.org/t/bubble-detection-contour-filter/19209 "2024-11-07T08:19:56Z")

</div>

import os import tkinter as tk from tkinter import simpledialog, messagebox, filedialog import cv2 import numpy as np import os import tkinter as tk from tkinter import simpledialog, messagebox, filedialog def get\_vid…

---

## [I'm getting a CORS error while using OpenCV](https://forum.opencv.org/t/im-getting-a-cors-error-while-using-opencv/19121)

<div class="topic-metadata">

**Author:** [@iremkesj](https://forum.opencv.org/u/iremkesj)\
**Replies:** 2\
**Last updated:** [October 26, 2024, 3:36pm UTC](https://forum.opencv.org/t/im-getting-a-cors-error-while-using-opencv/19121 "2024-10-26T15:36:27Z")

</div>

I’m experiencing CORS issues when uploading images and videos in a web-based project. How can I fix this?

---

## [Unhandled exception in Unreal Engine 5.3](https://forum.opencv.org/t/unhandled-exception-in-unreal-engine-5-3/19079)

<div class="topic-metadata">

**Author:** [@Behram\_Patel](https://forum.opencv.org/u/Behram_Patel)\
**Replies:** 3\
**Last updated:** [October 25, 2024, 8:11am UTC](https://forum.opencv.org/t/unhandled-exception-in-unreal-engine-5-3/19079 "2024-10-25T08:11:37Z")

</div>

Unhandled exception at 0x00007FFE699FCB69 in UnrealEditor.exe: Microsoft C++ exception: cv::Exception at memory location 0x0000007BC5D78630. Hello, I’m using the inbuilt opencv plugin (4.5) in UE 5.3. My code reads an…

---

## [(-215:Assertion failed) !ssize.empty() in function ‘cv::resize’](https://forum.opencv.org/t/215-assertion-failed-ssize-empty-in-function-cv-resize/19094)

<div class="topic-metadata">

**Author:** [@Mohammed\_Zaki](https://forum.opencv.org/u/Mohammed_Zaki)\
**Replies:** 0\
**Last updated:** [October 23, 2024, 3:55pm UTC](https://forum.opencv.org/t/215-assertion-failed-ssize-empty-in-function-cv-resize/19094 "2024-10-23T15:55:54Z")

</div>

I have a problem but I don’t know how to fix this I have done all the solutions that you all gave error: { “name”: “error”, “message”: "OpenCV(4.10.0) D:\\a\\opencv-python\\opencv-python\\opencv\\modules\\imgproc\\src\\resi…

---

## [Dimensional Analysis of Screw](https://forum.opencv.org/t/dimensional-analysis-of-screw/19034)

<div class="topic-metadata">

**Author:** [@Sarvagya\_Porwal](https://forum.opencv.org/u/Sarvagya_Porwal)\
**Replies:** 4\
**Last updated:** [October 22, 2024, 9:37pm UTC](https://forum.opencv.org/t/dimensional-analysis-of-screw/19034 "2024-10-22T21:37:34Z")

</div>

In this image I aim to estimate the outer and inner diameter of screw. Regarding outer diameter estimation, I was thinking of coming up with some method to hop from one peak of teeth to next peak… storing the pixel p…

---

## [Cv2.imshow not displaying image](https://forum.opencv.org/t/cv2-imshow-not-displaying-image/19027)

<div class="topic-metadata">

**Author:** [@Karim\_Ait\_Salim](https://forum.opencv.org/u/Karim_Ait_Salim)\
**Replies:** 5\
**Last updated:** [October 21, 2024, 8:58am UTC](https://forum.opencv.org/t/cv2-imshow-not-displaying-image/19027 "2024-10-21T08:58:25Z")

</div>

I’ve installed opencv multiple times even compiled it but the error keeps returning cv2.error: OpenCV(4.10.0) D:\\a\\opencv-python\\opencv-python\\opencv\\modules\\highgui\\src\\window.cpp:1301: error: (-2:Unspecified error) Th…

---

## [Unable to compile NDK Andoird code with OpenCV. STD Cpp function undefined issue](https://forum.opencv.org/t/unable-to-compile-ndk-andoird-code-with-opencv-std-cpp-function-undefined-issue/19008)

<div class="topic-metadata">

**Author:** [@durgeshmn](https://forum.opencv.org/u/durgeshmn)\
**Replies:** 0\
**Last updated:** [October 18, 2024, 1:39pm UTC](https://forum.opencv.org/t/unable-to-compile-ndk-andoird-code-with-opencv-std-cpp-function-undefined-issue/19008 "2024-10-18T13:39:18Z")

</div>

Hi, I am trying to integrate OpenCV ver 3\_4\_15 for my android project. I have added required binaries and header files from the native folder. I am facing cpp std function undefined error. Tried with multiple Android ND…

---

## [Optimizing OpenCV for Real-time Object Detection During Roblox Gameplay](https://forum.opencv.org/t/optimizing-opencv-for-real-time-object-detection-during-roblox-gameplay/18966)

<div class="topic-metadata">

**Author:** [@silvia1](https://forum.opencv.org/u/silvia1)\
**Replies:** 0\
**Last updated:** [October 14, 2024, 12:55pm UTC](https://forum.opencv.org/t/optimizing-opencv-for-real-time-object-detection-during-roblox-gameplay/18966 "2024-10-14T12:55:57Z")

</div>

Hi everyone, I’m currently working on a project that integrates OpenCV to perform real-time object detection during my Roblox gameplay. The goal is to identify specific in-game elements like enemies, collectibles, or ob…

---

## [Large contour not found in binary image](https://forum.opencv.org/t/large-contour-not-found-in-binary-image/18955)

<div class="topic-metadata">

**Author:** [@Jacob\_123](https://forum.opencv.org/u/Jacob_123)\
**Replies:** 3\
**Last updated:** [October 14, 2024, 8:23am UTC](https://forum.opencv.org/t/large-contour-not-found-in-binary-image/18955 "2024-10-14T08:23:16Z")

</div>

I have a binary image (binary\_image\_full\_sizes.png) and I would like to find the large oval contour in the middle. The cv2.findContours() function does not return the contour I’m looking for but when I scale the image by…

---

## [Help Installing OpenCV on Linux (im bad)](https://forum.opencv.org/t/help-installing-opencv-on-linux-im-bad/11724)

<div class="topic-metadata">

**Author:** [@Andymator](https://forum.opencv.org/u/Andymator)\
**Replies:** 1\
**Last updated:** [October 9, 2024, 9:10pm UTC](https://forum.opencv.org/t/help-installing-opencv-on-linux-im-bad/11724 "2024-10-09T21:10:40Z")

</div>

Hi I am emberrassed to make this post but here it goes. I have used RPis and python for a few years, but never really understood the difference between different python versions, the difference between pip and pip3 or …

---

## [What's problem? I am beginner](https://forum.opencv.org/t/whats-problem-i-am-beginner/18917)

<div class="topic-metadata">

**Author:** [@zhangx0000](https://forum.opencv.org/u/zhangx0000)\
**Replies:** 2\
**Last updated:** [October 8, 2024, 8:15pm UTC](https://forum.opencv.org/t/whats-problem-i-am-beginner/18917 "2024-10-08T20:15:44Z")

</div>

my code: import cv2 cascade\_path = 'cascades\\\\haarcascade\_eye.xml' faceCascade = cv2.CascadeClassifier(cascade\_path) I get: \[ERROR:0@0.034\] global persistence.cpp:531 cv::FileStorage::Impl::open Can't open file: 'casc…

---

## [Subprocess read issue in docker](https://forum.opencv.org/t/subprocess-read-issue-in-docker/18840)

<div class="topic-metadata">

**Author:** [@fgrs](https://forum.opencv.org/u/fgrs)\
**Replies:** 2\
**Last updated:** [October 1, 2024, 8:44am UTC](https://forum.opencv.org/t/subprocess-read-issue-in-docker/18840 "2024-10-01T08:44:59Z")

</div>

I’m running nginx in a docker container which takes RTMP stream from my fisheye cameras and when detected exec\_publish opens bash file with my python script that contains all the undistortion/stitching and transcoding. E…

---

## [Linker error when trying to use cv::circle](https://forum.opencv.org/t/linker-error-when-trying-to-use-cv-circle/18842)

<div class="topic-metadata">

**Author:** [@bmar](https://forum.opencv.org/u/bmar)\
**Replies:** 4\
**Last updated:** [September 27, 2024, 5:45pm UTC](https://forum.opencv.org/t/linker-error-when-trying-to-use-cv-circle/18842 "2024-09-27T17:45:38Z")

</div>

Hello, I am running into an issue while trying to access a multitude of functions in OpenCV, including cv::circle. I built OpenCV (shared libs, no contrib modules, no IPP, with world) and added it to an Unreal Engine 5 …

---

## [Question about the opencv sdk version with core.so library](https://forum.opencv.org/t/question-about-the-opencv-sdk-version-with-core-so-library/18769)

<div class="topic-metadata">

**Author:** [@Josh](https://forum.opencv.org/u/Josh)\
**Replies:** 5\
**Last updated:** [September 21, 2024, 4:14pm UTC](https://forum.opencv.org/t/question-about-the-opencv-sdk-version-with-core-so-library/18769 "2024-09-21T16:14:38Z")

</div>

Pls everyone, I’m asking everyone if you know the particular specific android sdk version for Android with core.so library… Pls you can also provide the link to download it… Thanks everyone in addy

---

## [OpenCV isn't working in PyCharm](https://forum.opencv.org/t/opencv-isnt-working-in-pycharm/12579)

<div class="topic-metadata">

**Author:** [@phpjunkie](https://forum.opencv.org/u/phpjunkie)\
**Replies:** 3\
**Last updated:** [September 21, 2024, 7:05am UTC](https://forum.opencv.org/t/opencv-isnt-working-in-pycharm/12579 "2024-09-21T07:05:28Z")

</div>

I think my issue is isolated to pycharm itself. When I run the script from the command prompt the script works just fine. When I run the script from pycharm itself I get this error code: AttributeError: module 'cv2' has …

---

## [Find video frames that are similar to the still image](https://forum.opencv.org/t/find-video-frames-that-are-similar-to-the-still-image/18763)

<div class="topic-metadata">

**Author:** [@kufu12345](https://forum.opencv.org/u/kufu12345)\
**Replies:** 0\
**Last updated:** [September 17, 2024, 3:52am UTC](https://forum.opencv.org/t/find-video-frames-that-are-similar-to-the-still-image/18763 "2024-09-17T03:52:55Z")

</div>

I wrote a code to find video frames similar to the image but I couldn’t find it. I googled and found the code: (ci2v-master) with instructions:$ python ci2v.py --image path/to/image – video path/to/video; I did it like …

---

## [Open the same rtsp capture fails (cap.isOpened is false)](https://forum.opencv.org/t/open-the-same-rtsp-capture-fails-cap-isopened-is-false/18719)

<div class="topic-metadata">

**Author:** [@sazanof](https://forum.opencv.org/u/sazanof)\
**Replies:** 7\
**Last updated:** [September 12, 2024, 12:50pm UTC](https://forum.opencv.org/t/open-the-same-rtsp-capture-fails-cap-isopened-is-false/18719 "2024-09-12T12:50:03Z")

</div>

Hello! I am using opencv-python~=4.10.0.84 with flask In my code, when flask app starts I push to global array cameras\_list entities (cameras) from sqlite database: with app.app\_context(): # Register main tasks …

---

## [Cropping with Python and OpenCV to get passport ratio photos](https://forum.opencv.org/t/cropping-with-python-and-opencv-to-get-passport-ratio-photos/18724)

<div class="topic-metadata">

**Author:** [@marcusderoy](https://forum.opencv.org/u/marcusderoy)\
**Replies:** 5\
**Last updated:** [September 11, 2024, 3:44pm UTC](https://forum.opencv.org/t/cropping-with-python-and-opencv-to-get-passport-ratio-photos/18724 "2024-09-11T15:44:28Z")

</div>

I got the following python code that uses OpenCV to take a given picture and then look for a face and crop that face and save it with the word “Cropped” appended to the file name. Although it’s working great, there’s two…

---

## [Panorama stitching issue](https://forum.opencv.org/t/panorama-stitching-issue/18690)

<div class="topic-metadata">

**Author:** [@harizanov87](https://forum.opencv.org/u/harizanov87)\
**Replies:** 5\
**Last updated:** [September 8, 2024, 4:23pm UTC](https://forum.opencv.org/t/panorama-stitching-issue/18690 "2024-09-08T16:23:25Z")

</div>

Hi folks, I am trying to build a little project here, but I am struggling with the panorama generation. Simple video feed of a planar surface turned into a panorama image. My approach is processing frames in batches th…

---

## [Upon creating an exe file, camera is not turning on](https://forum.opencv.org/t/upon-creating-an-exe-file-camera-is-not-turning-on/18670)

<div class="topic-metadata">

**Author:** [@Ansar](https://forum.opencv.org/u/Ansar)\
**Replies:** 0\
**Last updated:** [September 4, 2024, 2:59pm UTC](https://forum.opencv.org/t/upon-creating-an-exe-file-camera-is-not-turning-on/18670 "2024-09-04T14:59:35Z")

</div>

I have run a code which is capturing a sequence of images. At first I used " camera\_index = 0 # 1 for integrated camera, 0 for USB camera cap = cv2.VideoCapture(camera\_index)" this lines for capturing, but for the requ…

---

## [Converting 2D pixel points to 3D world points](https://forum.opencv.org/t/converting-2d-pixel-points-to-3d-world-points/18595)

<div class="topic-metadata">

**Author:** [@ameen](https://forum.opencv.org/u/ameen)\
**Replies:** 2\
**Last updated:** [August 30, 2024, 6:57pm UTC](https://forum.opencv.org/t/converting-2d-pixel-points-to-3d-world-points/18595 "2024-08-30T18:57:58Z")

</div>

i am a studenta nd i am currently doing my masters in robotcs with AI. i am doing my final project and i am stuck with this math. have pixel points and i want to navigate my robot arm (3DOF)end effecter to the point. i …

---

## [Most suitable solvePnP flag](https://forum.opencv.org/t/most-suitable-solvepnp-flag/18178)

<div class="topic-metadata">

**Author:** [@iegorval](https://forum.opencv.org/u/iegorval)\
**Replies:** 3\
**Last updated:** [August 29, 2024, 4:33pm UTC](https://forum.opencv.org/t/most-suitable-solvepnp-flag/18178 "2024-08-29T16:33:13Z")

</div>

Good afternoon. I think I have confusion about usage of solvePnP(). I have two square targets located at angle to each other. I have tried different flags of solve PnP, but the result always is much more off than I expec…

---

## [Jetson Orin Nano, Build Error in OpenCV with Cuda(no to yes)](https://forum.opencv.org/t/jetson-orin-nano-build-error-in-opencv-with-cuda-no-to-yes/18593)

<div class="topic-metadata">

**Author:** [@honh1](https://forum.opencv.org/u/honh1)\
**Replies:** 6\
**Last updated:** [August 28, 2024, 8:49am UTC](https://forum.opencv.org/t/jetson-orin-nano-build-error-in-opencv-with-cuda-no-to-yes/18593 "2024-08-28T08:49:51Z")

</div>

Hello~ i want to build OpenCV with Cuda, and then first i do is to change jtop’s open cv with cuda NO -\>yes. this is my jtop, and i watched “https://www.youtube.com/watch?v=art0-99fFa8&t=86s” this video, and tryng… b…

[Previous page](https://forum.opencv.org/tag/programming/327.md?match_all_tags=true&page=1&tags%5B%5D=programming)

[Next page](https://forum.opencv.org/tag/programming/327.md?match_all_tags=true&page=3&tags%5B%5D=programming)
