Comments (6)
please can you try dropping an image in here https://onlineexifviewer.com/
if that shows no exif, please download your image direct from google photos web and check again.
Thanks
from gphotos-sync.
I am capturing the image from the webcam, and after that, I am trying to get the location. when I drop the image on https://onlineexifviewer.com/ it has no exif data too. I don't know how to solve it.
this is the code for image capturing
cap = cv2.VideoCapture(0)
images = []
global imgname
#check if connection with camera is successfully
if cap.isOpened():
ret, frame = cap.read() #capture a frame from live video
# Cut down frame to 250x250px
frame = frame[120:120+250,200:200+250, :]
l_b=np.array([0,230,170])# lower hsv bound for red
u_b=np.array([255,255,220])# upper hsv bound to red
#check whether frame is successfully captured
if ret:
# continue to display window until 'q' is pressed
while(True):
if cv2.waitKey(1) & 0XFF == ord('a'):
# Create the unique file path
imgname = os.path.join(ANC_PATH, '{}.jpg'.format(uuid.uuid1()))
# Write out anchor image
images.append(imgname)
cv2.imwrite(imgname, frame)
# Collect positives
if cv2.waitKey(1) & 0XFF == ord('p'):
# Create the unique file path
imgname = os.path.join(POS_PATH, '{}.jpg'.format(uuid.uuid1()))
images.append(imgname)
print(imgname)
# Write out positive image
cv2.imwrite(imgname, frame)
cv2.imshow("Frame",frame) #show captured frame
#press 'q' to break out of the loop
if cv2.waitKey(1) & 0xFF == ord('q'):
break
#print error if frame capturing was unsuccessful
else:
print("Error : Failed to capture frame")
# Release the webcam
cap.release()
# Close the image show frame
cv2.destroyAllWindows()
print error if the connection with camera is unsuccessful
else:
print("Cannot open camera")
from gphotos-sync.
Just to be clear here:
- you are not asking about this project gphoto-sync, you are asking about your own code?
- you are using OpenCV to capture images from a webcam?
from gphotos-sync.
yes, I am asking about my project.
yes I am openCV to capture images from a webcam
from gphotos-sync.
I'm afraid you have come to the wrong place as I have never used OpenCV. I'm of the opinion that it does not create exif because it treats images as NumPy arrays. So you would need to construct your own metadata.
This article seems to confirm my thoughts https://learnopencv.com/what-is-exif-data-in-images/
from gphotos-sync.
Thanks for sharing the article.
from gphotos-sync.
Related Issues (20)
- FREEBSD - pstuil dependency too high HOT 2
- Shared photos are removed and then re-added in version 2.14.2 HOT 4
- Incremental Indexing HOT 7
- Comparison to rclone with google-photos backend HOT 1
- Error When Connecting - Running Cloud Flare and NGINX HOT 2
- NFS Share [Errno 28] No space left on device HOT 7
- Error when running gphotos-sync HOT 3
- Container Restarting HOT 5
- Please delete this thread - Sorry. HOT 1
- No new photos HOT 15
- Why are my photos being deleted HOT 5
- Invalid Syntax HOT 4
- Syntax error on syncing folders called '3 years later' HOT 4
- Not working after upgrade to Python 3.12 & gphotos-sync 3.2 HOT 11
- Many 404 client error while downloading HOT 7
- Creating Duplicate Photos Once Finished HOT 10
- Escape special characters HOT 3
- Is there any way to make the timezone correct? HOT 3
- using the tool with new oauth rules from June 17, 2024 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gphotos-sync.