ankesh007 / body-measurement-using-computer-vision Goto Github PK
View Code? Open in Web Editor NEWGiven 2D image, determine real-world body measurements
Given 2D image, determine real-world body measurements
Hello Guys,
Hope you are doing well,
I have the following error; I appreciate if you can help me;
cv2.error: OpenCV(4.2.0) /Users/travis/build/skvark/opencv-python/opencv/modules/highgui/src/window_QT.cpp:714: error: (-27:Null pointer) NULL window handler in function 'cvSetMouseCallback'
I went through the code and couldn't pinpoint any image processing except modelling basis, which basicaly has body measurements presented from a pre-collected body measurement.
python code2.py -i1 aman1.jpg -i2 aman2.jpg -i3 aman3.jpg -a True
helllooooo
<module 'cv2.cv2' from '/home/panacea/Documents/Yogeshsir/Body-Measurement-using-Computer-Vision/src/venv/lib/python3.5/site-packages/cv2/cv2.cpython-35m-x86_64-linux-gnu.so'>
Traceback (most recent call last):
File "code2.py", line 401, in <module>
main()
File "code2.py", line 376, in main
metre_pixel_x,metre_pixel_y,coordinate,affine_correct_parameters=analyze_chessboard(image,affine_correct_flag)
File "code2.py", line 230, in analyze_chessboard
cv2.setMouseCallback(window_name1, click_and_crop)
cv2.error: OpenCV(4.2.0) /io/opencv/modules/highgui/src/window_QT.cpp:714: error: (-27:Null pointer) NULL window handler in function 'cvSetMouseCallback'
Hello,
I hope you're doing well. I'm working on an assignment for a course that involves CV and body measurements, and I was wondering whether I could fork your repository and use your code for my project. This will not be published anywhere and is solely for grading purposes.
Thank you
E:\opencvdemo>python code.py -i1 C:\Users\ASUS\Desktop\final_saket1.jpg -i2 C:\Users\ASUS\Desktop\final_saket2.jpg -i3 C:\Users\ASUS\Desktop\final_saket3.jpg -a false
(2268, 4032, 3)
(2268, 4032, 3)
waist 350.0494518583487
Traceback (most recent call last):
File "code.py", line 425, in
main()
File "code.py", line 421, in main
metre_pixel_y)
File "code.py", line 345, in measure_distance
right_shoulder_lambda)
File "code.py", line 281, in detect_point_and_ask_user
left = detector_fn_lef(segmented_img, head_point_left[0], head_point_left[1])
File "code.py", line 321, in
left_shoulder_lambda = lambda img, point0, point1: first_sharp_fall(img, point0, point1, -20, 1.5)
File "code.py", line 201, in first_sharp_fall
y0 = np.nonzero(mask[:, x_curr])[0][0]
IndexError: index 0 is out of bounds for axis 0 with size 0
this is what i got the output
i think it goes wrong with marking the points on images
can i get more information on how to input those dots/marks on images correctly
(BMCV) dilshad@kali:~/Desktop/BMCV$ python experiment.py -i1 1.jpg -i2 2.jpg -i3 3.jpg -a True
(2268, 4032, 3)
Segmentation Completed 1
(2268, 4032, 3)
Segmentation Completed 2
Affine Corrected
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
I got this issue, can you provide requirements.txt
OpenCV Error: Unspecified error (The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Carbon support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script) in cvSetMouseCallback, file /io/opencv/modules/highgui/src/window.cpp, line 578
Traceback (most recent call last):
File "code2.py", line 399, in <module>
main()
File "code2.py", line 374, in main
metre_pixel_x,metre_pixel_y,coordinate,affine_correct_parameters=analyze_chessboard(image,affine_correct_flag)
File "code2.py", line 228, in analyze_chessboard
cv2.setMouseCallback(window_name1, click_and_crop)
cv2.error: /io/opencv/modules/highgui/src/window.cpp:578: error: (-2) The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Carbon support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script in function cvSetMouseCallback
how to fix this?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.